Skip to content

Commit

Permalink
set_dont_touch on preplaced pins in SDC file so that synthesis doesn'…
Browse files Browse the repository at this point in the history
…t insert gates (#806)
  • Loading branch information
harrisonliew authored Oct 12, 2023
1 parent 5306b86 commit bea3275
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hammer/vlsi/hammer_vlsi_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2211,6 +2211,11 @@ def sdc_pin_constraints(self) -> str:
name=delay.name
))

# set_dont_touch on any preplaced pins
for pin in self.get_pin_assignments():
if pin.preplaced:
output.append(f"set_dont_touch [get_nets {pin.pins}]")

# Custom sdc constraints that are verbatim appended
custom_sdc_constraints = self.get_setting("vlsi.inputs.custom_sdc_constraints") # type: Union[List[str], str]
if isinstance(custom_sdc_constraints, str):
Expand Down

0 comments on commit bea3275

Please sign in to comment.