Skip to content

Commit fb32451

Browse files
authored
Merge pull request #3315 from Pinata-Consulting/scripts-consistency
Scripts consistency
2 parents 116bc99 + 62490a9 commit fb32451

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

flow/scripts/cts.tcl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ if { ![env_var_equals SKIP_CTS_REPAIR_TIMING 1] } {
7575

7676
report_metrics 4 "cts final"
7777

78-
if { [env_var_exists_and_non_empty POST_CTS_TCL] } {
79-
source $::env(POST_CTS_TCL)
80-
}
78+
source_env_var_if_exists POST_CTS_TCL
8179

8280
write_db $::env(RESULTS_DIR)/4_1_cts.odb
8381
write_sdc -no_timestamp $::env(RESULTS_DIR)/4_cts.sdc

flow/scripts/detail_route.tcl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ if { ![env_var_equals SKIP_ANTENNA_REPAIR_POST_DRT 1] } {
6262
utl::metric_int "antenna_diodes_count" -1
6363
}
6464

65-
if { [env_var_exists_and_non_empty POST_DETAIL_ROUTE_TCL] } {
66-
source $::env(POST_DETAIL_ROUTE_TCL)
67-
}
65+
source_env_var_if_exists POST_DETAIL_ROUTE_TCL
6866

6967
check_antennas -report_file $env(REPORTS_DIR)/drt_antennas.log
7068

flow/scripts/global_route.tcl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ load_design 4_cts.odb 4_cts.sdc
66
# This proc is here to allow us to use 'return' to return early from this
77
# file which is sourced
88
proc global_route_helper { } {
9-
if { [env_var_exists_and_non_empty PRE_GLOBAL_ROUTE] } {
10-
source $::env(PRE_GLOBAL_ROUTE)
11-
}
9+
source_env_var_if_exists PRE_GLOBAL_ROUTE
1210

1311
proc do_global_route { } {
1412
set all_args [concat [list \

flow/scripts/pdn.tcl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ load_design 2_3_floorplan_tapcell.odb 2_1_floorplan.sdc
55
source $::env(PDN_TCL)
66
pdngen
77

8-
if { [env_var_exists_and_non_empty POST_PDN_TCL] } {
9-
source $::env(POST_PDN_TCL)
10-
}
8+
source_env_var_if_exists POST_PDN_TCL
119

1210
# Check all supply nets
1311
set block [ord::get_db_block]

0 commit comments

Comments
 (0)