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 lambdapdk interface #117

Merged
merged 2 commits into from
Aug 21, 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ license = {file = "LICENSE"}
dependencies = [
"siliconcompiler>=0.26.2",
"Jinja2>=3.1.2",
"lambdapdk>=0.1.12",
"lambdapdk>=0.1.28",
"lambdalib>=0.2.0"
]
dynamic = ["version"]
Expand Down
13 changes: 9 additions & 4 deletions scgallery/designs/_common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from siliconcompiler import Chip
from siliconcompiler import Chip, Schema
from lambdapdk.freepdk45.libs import fakeram45
from lambdapdk.asap7.libs import fakeram7
from lambdapdk.sky130.libs import sky130sram
Expand Down Expand Up @@ -53,6 +53,11 @@ def add_lambdalib_memory(chip):
chip.add('option', 'library',
[lib for lib in libs if lib.startswith('lambdalib_')])

# Add non-lambdalib
chip.add('asic', 'macrolib',
[lib for lib in libs if not lib.startswith('lambdalib_')])
has_asic_macros = any(
[len(chip.get('asic', 'macrolib',
step=Schema.GLOBAL_KEY, index=Schema.GLOBAL_KEY)) > 0
for lib in libs if lib.startswith('lambdalib_')])
if not has_asic_macros:
# Add non-lambdalib
chip.add('asic', 'macrolib',
[lib for lib in libs if not lib.startswith('lambdalib_')])