Skip to content

Commit 2385fd3

Browse files
oharboeclaude
andcommitted
open.tcl: propagated clocks come from the .sdc, not the file name
read_timing took the stage from the design file's name, 4_cts.odb is stage 4, and from stage 4 on called set_propagated_clock on every clock. Every .odb now has its .sdc beside it, and a step after CTS writes set_propagated_clock into it, so reading the .sdc already sets the clocks the flow propagated. The name check only repeated that, and refused a file whose name does not start with a stage number. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7dd5a3a commit 2385fd3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎flow/scripts/open.tcl‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ if { [env_var_exists_and_non_empty DEF_FILE] } {
3333
}
3434

3535
proc read_timing { input_file } {
36-
set design_stage [lindex [extract_stage $input_file] 0]
36+
# The .sdc beside the design file says which clocks are propagated, so
37+
# its name need not say which stage it is from.
3738
log_cmd read_sdc [sdc_file_of $input_file]
3839
if { [file exists $::env(PLATFORM_DIR)/derate.tcl] } {
3940
source $::env(PLATFORM_DIR)/derate.tcl
@@ -48,10 +49,6 @@ proc read_timing { input_file } {
4849
# OpenSTA applies a wire-load model only to nets without parasitics.
4950
log_cmd set_wire_load_model -name $::env(WIRE_LOAD_MODEL)
5051
}
51-
if { $design_stage >= 4 } {
52-
# CTS has run, so propagate clocks
53-
set_propagated_clock [all_clocks]
54-
}
5552

5653
orfs_load_parasitics [file rootname [file tail $input_file]]
5754

0 commit comments

Comments
 (0)