Skip to content

Commit f0b6e26

Browse files
committed
update resistance aware flag in global_route script
Signed-off-by: Jonas Gava <[email protected]>
1 parent 0830394 commit f0b6e26

File tree

1 file changed

+14
-29
lines changed

1 file changed

+14
-29
lines changed

flow/scripts/global_route.tcl

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ load_design 4_cts.odb 4_cts.sdc
88
proc global_route_helper { } {
99
source_env_var_if_exists PRE_GLOBAL_ROUTE_TCL
1010

11-
proc do_global_route { } {
11+
set res_aware ""
12+
append_env_var res_aware ENABLE_RESISTANCE_AWARE -resistance_aware 0
13+
14+
proc do_global_route { res_aware } {
1215
set all_args [concat [list \
1316
-congestion_report_file $::global_route_congestion_report] \
14-
$::env(GLOBAL_ROUTE_ARGS)]
17+
$::env(GLOBAL_ROUTE_ARGS) {*}$res_aware]
1518

16-
if { [env_var_exists_and_non_empty ENABLE_RESISTANCE_AWARE] } {
17-
log_cmd global_route {*}$all_args -resistance_aware
18-
} else {
19-
log_cmd global_route {*}$all_args
20-
}
19+
log_cmd global_route {*}$all_args
2120
}
2221
set additional_args ""
2322
append_env_var additional_args dbProcessNode -db_process_node 1
@@ -26,7 +25,7 @@ proc global_route_helper { } {
2625

2726
pin_access {*}$additional_args
2827

29-
set result [catch { do_global_route } errMsg]
28+
set result [catch { do_global_route $res_aware } errMsg]
3029

3130
if { $result != 0 } {
3231
if { !$::env(GENERATE_ARTIFACTS_ON_FAILURE) } {
@@ -65,13 +64,8 @@ proc global_route_helper { } {
6564
log_cmd global_route -start_incremental
6665
log_cmd detailed_placement
6766
# Route only the modified net by DPL
68-
if { [env_var_exists_and_non_empty ENABLE_RESISTANCE_AWARE] } {
69-
log_cmd global_route -end_incremental -resistance_aware \
70-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_design.rpt
71-
} else {
72-
log_cmd global_route -end_incremental \
73-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_design.rpt
74-
}
67+
log_cmd global_route -end_incremental {*}$res_aware \
68+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_design.rpt
7569

7670
# Repair timing using global route parasitics
7771
puts "Repair setup and hold violations..."
@@ -88,26 +82,17 @@ proc global_route_helper { } {
8882
log_cmd global_route -start_incremental
8983
log_cmd detailed_placement
9084
# Route only the modified net by DPL
91-
if { [env_var_exists_and_non_empty ENABLE_RESISTANCE_AWARE] } {
92-
log_cmd global_route -end_incremental -resistance_aware \
93-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
94-
} else {
95-
log_cmd global_route -end_incremental \
96-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
97-
}
85+
log_cmd global_route -end_incremental {*}$res_aware \
86+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
87+
9888
}
9989

10090

10191
log_cmd global_route -start_incremental
10292
recover_power_helper
10393
# Route the modified nets by rsz journal restore
104-
if { [env_var_exists_and_non_empty ENABLE_RESISTANCE_AWARE] } {
105-
log_cmd global_route -end_incremental -resistance_aware \
106-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
107-
} else {
108-
log_cmd global_route -end_incremental \
109-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
110-
}
94+
log_cmd global_route -end_incremental {*}$res_aware \
95+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
11196

11297
if {
11398
!$::env(SKIP_ANTENNA_REPAIR) &&

0 commit comments

Comments
 (0)