Skip to content

Commit

Permalink
small SDC fixes (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliew authored Mar 14, 2024
1 parent 60ac826 commit 95dbc18
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 @@ -2229,15 +2229,15 @@ def sdc_pin_constraints(self) -> str:

# Also specify loads for specific pins.
for load in self.get_output_load_constraints():
output.append("set_load {load} [get_port {name}]".format(
output.append("set_load {load} [get_ports {name}]".format(
load=load.load.value_in_units(cap_unit),
name=load.name
))

# Also specify delays for specific pins.
for delay in self.get_delay_constraints():
minmax = {None: "", "setup": "-max", "hold": "-min"}
output.append("set_{direction}_delay {delay} -clock {clock} {minmax} [get_port {name}]".format(
output.append("set_{direction}_delay {delay} -clock {clock} {minmax} [get_ports {name}] -add_delay".format(
delay=delay.delay.value_in_units(self.get_time_unit().value_prefix + self.get_time_unit().unit),
clock=delay.clock,
direction=delay.direction,
Expand Down

0 comments on commit 95dbc18

Please sign in to comment.