Skip to content

Commit 2453de8

Browse files
authored
Merge pull request #4130 from The-OpenROAD-Project-staging/switched-inout-to-pct
Switched input/output delay values to a percentage of the clock period
2 parents 7eb0a69 + c821045 commit 2453de8

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

flow/designs/rapidus2hp/hercules_idecode/prects_0.3.sdc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set sdc_version 1.4
55
current_design hercules_idecode
66

77
set clk_period 370
8+
# Roughly 150ps for a 370ps clock
9+
set input_pct 0.4054
10+
# Roughly 50ps for a 370ps clock
11+
set output_pct 0.1351
812

913
convert_time_value clk_period
1014

@@ -18,5 +22,5 @@ create_clock -name "clk" -add -period $clk_period \
1822
set_clock_latency $clk_period clk
1923

2024
### Setup input delay is set to 20% of CT
21-
set_input_delay 0.150 -clock clk [all_inputs]
22-
set_output_delay 0.050 -clock clk [all_outputs]
25+
set_input_delay [expr { $clk_period * $input_pct }] -clock clk [all_inputs]
26+
set_output_delay [expr { $clk_period * $output_pct }] -clock clk [all_outputs]

flow/designs/rapidus2hp/hercules_is_int/prects_0.3.sdc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set sdc_version 1.4
55
current_design hercules_is_int
66

77
set clk_period 370
8+
# Roughly 150ps for a 370ps clock
9+
set input_pct 0.4054
10+
# Roughly 50ps for a 370ps clock
11+
set output_pct 0.1351
812

913
convert_time_value clk_period
1014

@@ -18,5 +22,5 @@ create_clock -name "clk" -add -period $clk_period \
1822
set_clock_latency $clk_period clk
1923

2024
### Setup input delay is set to 20% of CT
21-
set_input_delay 0.150 -clock clk [all_inputs]
22-
set_output_delay 0.050 -clock clk [all_outputs]
25+
set_input_delay [expr { $clk_period * $input_pct }] -clock clk [all_inputs]
26+
set_output_delay [expr { $clk_period * $output_pct }] -clock clk [all_outputs]

0 commit comments

Comments
 (0)