Skip to content

Commit 832999c

Browse files
authored
Merge pull request #3524 from The-OpenROAD-Project-staging/duty-clipping
a7/mock-array: clip duty cycle to 1.0
2 parents 28651b9 + a166927 commit 832999c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flow/designs/asap7/mock-array/power.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ foreach pin $pins {
3939
if { $activity_origin != "vcd" } {
4040
continue
4141
}
42+
set duty [lindex $activity 1]
43+
if { $duty > 1.0 } { # this generates an sta error
44+
set duty 1.0
45+
}
4246
puts $fp "set_power_activity \
4347
-pin \[get_pins \{[get_property $pin full_name]\}\] \
4448
-activity [expr [lindex $activity 0] * $clock_period] \
45-
-duty [lindex $activity 1]"
49+
-duty $duty"
4650
}
4751
close $fp
4852

0 commit comments

Comments
 (0)