@@ -13,7 +13,11 @@ proc global_route_helper { } {
1313 -congestion_report_file $::global_route_congestion_report ] \
1414 $::env(GLOBAL_ROUTE_ARGS) ]
1515
16- log_cmd global_route {*}$all_args
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+ }
1721 }
1822 set additional_args " "
1923 append_env_var additional_args dbProcessNode -db_process_node 1
@@ -61,8 +65,13 @@ proc global_route_helper { } {
6165 log_cmd global_route -start_incremental
6266 log_cmd detailed_placement
6367 # Route only the modified net by DPL
64- log_cmd global_route -end_incremental \
65- -congestion_report_file $::env(REPORTS_DIR) /congestion_post_repair_design.rpt
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+ }
6675
6776 # Repair timing using global route parasitics
6877 puts " Repair setup and hold violations..."
@@ -79,16 +88,26 @@ proc global_route_helper { } {
7988 log_cmd global_route -start_incremental
8089 log_cmd detailed_placement
8190 # Route only the modified net by DPL
82- log_cmd global_route -end_incremental \
83- -congestion_report_file $::env(REPORTS_DIR) /congestion_post_repair_timing.rpt
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+ }
8498 }
8599
86100
87101 log_cmd global_route -start_incremental
88102 recover_power_helper
89103 # Route the modified nets by rsz journal restore
90- log_cmd global_route -end_incremental \
91- -congestion_report_file $::env(REPORTS_DIR) /congestion_post_recover_power.rpt
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+ }
92111
93112 if {
94113 !$::env(SKIP_ANTENNA_REPAIR) &&
0 commit comments