Skip to content

Commit

Permalink
fix failing print statement warning about lack of power straps
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Jun 18, 2024
1 parent 5475322 commit b6fd985
Showing 1 changed file with 2 additions and 2 deletions.
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 you do not have power straps generated on layer {insts[0]['layer']} above instances of module {master}! Double check that you will supply power to them.")

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

0 comments on commit b6fd985

Please sign in to comment.