Skip to content

Commit

Permalink
Add backwards compatible behavior to set_propagated_clock when not found
Browse files Browse the repository at this point in the history
in sdc

Signed-off-by: Kareem Farid <[email protected]>
  • Loading branch information
kareefardi committed Jul 1, 2024
1 parent 4a06378 commit b991e06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/openroad/common/io.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ proc read_sdc_wrapper {} {
puts stderr $errmsg
exit 1
}
if { [info exists ::env(_PROPAGATE_ALL_CLOCKS)] && $::env(_PROPAGATE_ALL_CLOCKS) } {
set matches [exec bash -c "{ grep set_propagated_clock $sdc_in | grep -v '#.*set_propagated_clock'; } || true"]
if { $matches == "" } {
puts "\[INFO\]: No (un)set_propagated_clock found in $sdc_in"
puts "\[INFO\]: Propagating all clocks"
set_propagated_clock [all_clocks]
}
}
}


Expand Down

0 comments on commit b991e06

Please sign in to comment.