Skip to content

Commit

Permalink
update use of load target
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Sep 19, 2024
1 parent a7f0bae commit f6e2738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lambdalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ 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)
cell_name, _ = os.path.splitext(cell_file)

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')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit f6e2738

Please sign in to comment.