Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update use of load target #76

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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