From 2104a93f781d66a64c96fb653a64211e339e3179 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 12 Feb 2019 18:33:52 +0800 Subject: [PATCH] build_soc: allow overriding SoC class name --- artiq/build_soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/build_soc.py b/artiq/build_soc.py index e13eba375..7c1f49e8d 100644 --- a/artiq/build_soc.py +++ b/artiq/build_soc.py @@ -17,7 +17,7 @@ def get_identifier_string(soc, suffix="", add_class_name=True): if suffix or add_class_name: r += ";" if add_class_name: - r += soc.__class__.__name__.lower() + r += getattr(soc, "class_name_override", soc.__class__.__name__.lower()) r += suffix return r