diff --git a/lambdalib/__init__.py b/lambdalib/__init__.py index 6c83112..64d87c9 100644 --- a/lambdalib/__init__.py +++ b/lambdalib/__init__.py @@ -127,9 +127,9 @@ def generate(target, logiclib, outputpath, la_lib='stdlib', exclude=None): copy(outputpath, la_lib, exclude) if isinstance(target, str): - target_name = target - else: - target_name = target.__name__ + target = Chip("module")._load_module(target) + + target_name = target.__name__ for cell in sorted(cells): cell_file = os.path.basename(cell) @@ -137,7 +137,7 @@ def generate(target, logiclib, outputpath, la_lib='stdlib', exclude=None): chip = Chip(cell_name) chip.input(cell) - chip.load_target(target) + chip.use(target) chip.set('asic', 'logiclib', logiclib) chip.set('option', 'flow', 'asicflow') chip.set('option', 'to', 'syn') diff --git a/pyproject.toml b/pyproject.toml index 3292b28..c331eab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ urls = {Homepage = "https://github.com/siliconcompiler/lambdalib"} requires-python = ">= 3.8" license = {file = "LICENSE"} dependencies = [ - "siliconcompiler >= 0.27.0", + "siliconcompiler >= 0.28.0", "Jinja2 >= 3.1.3" ] dynamic = ['version']