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

Fix failing print statement warning about lack of power straps #868

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions hammer/vlsi/hammer_vlsi_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,8 @@ def _dump_power_straps_for_hardmacros(self) -> None:
copy_fields = ["layer", "direction", "net_order", "width", "spacing", "group_pitch"]
if len(above_insts) > 0: # in some cases top_layer == top layer in power strap API
above_desc = {k: above_insts[0][k] for k in copy_fields}
elif not check_abut:
self.logger.error(f"par.power_straps_abutment is False, but you do not have power straps generated on layer {above_insts[0]['layer']} above instances of module {master}! Double check that you will supply power to them.")
elif len(insts) > 0 and not check_abut:
self.logger.error(f"par.power_straps_abutment is False, but power straps for instances of module {master} are being generated on layer {insts[0]['layer']}, which is the same as the module's top layer! Double check that you will supply power to these instances.")

# Filter for top_layer == layer and valid/bad orientation
abut_insts = list(filter(lambda m: m["top_layer"] == m["layer"] and
Expand Down
Loading