From 74cd4f989d82ba9a92834cae821e3fdbb96116e3 Mon Sep 17 00:00:00 2001 From: Bastian Koppelmann Date: Mon, 16 Dec 2019 16:56:06 +0100 Subject: [PATCH] Remove hardcoded module class names Signed-off-by: Bastian Koppelmann --- compiler/sram_factory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/sram_factory.py b/compiler/sram_factory.py index bd602980..e971efc0 100644 --- a/compiler/sram_factory.py +++ b/compiler/sram_factory.py @@ -6,6 +6,7 @@ # All rights reserved. # from globals import OPTS +from tech import tech_modules class sram_factory: @@ -37,6 +38,8 @@ class sram_factory: A generic function to create a module with a given module_type. The args are passed directly to the module constructor. """ + + module_type = tech_modules[module_type] # if name!="": # # This is a special case where the name and type don't match # # Can't be overridden in the config file