Skip to content

Commit 6ab1b63

Browse files
committed
use global variables for the maximum number of repair antenna iterations
Signed-off-by: luis201420 <[email protected]>
1 parent 88403f7 commit 6ab1b63

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

flow/scripts/detail_route.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ set all_args [concat [list \
5252

5353
log_cmd detailed_route {*}$all_args
5454

55-
if { ![env_var_equals SKIP_ANTENNA_REPAIR_POST_DRT 1] } {
55+
if { ![env_var_equals SKIP_ANTENNA_REPAIR_POST_DRT 1] && $::env(MAX_REPAIR_ANTENNAS_ITER_DRT) } {
5656
set repair_antennas_iters 1
5757
if { [repair_antennas] } {
5858
detailed_route {*}$all_args
5959
}
60-
while { [check_antennas] && $repair_antennas_iters < 5 } {
60+
while { [check_antennas] && $repair_antennas_iters < $::env(MAX_REPAIR_ANTENNAS_ITER_DRT) } {
6161
repair_antennas
6262
detailed_route {*}$all_args
6363
incr repair_antennas_iters
6464
}
6565
} else {
66-
utl::metric_int "antenna_diodes_count" -1
66+
utl::metric_int "antenna_diodes_count" 0
6767
}
6868

6969
source_env_var_if_exists POST_DETAIL_ROUTE_TCL

flow/scripts/global_route.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ proc global_route_helper { } {
8686
log_cmd global_route -end_incremental \
8787
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
8888

89-
if { ![env_var_equals SKIP_ANTENNA_REPAIR 1] } {
89+
if { ![env_var_equals SKIP_ANTENNA_REPAIR 1] && $::env(MAX_REPAIR_ANTENNAS_ITER_GRT) } {
9090
puts "Repair antennas..."
91-
repair_antennas -iterations 5
91+
repair_antennas -iterations $::env(MAX_REPAIR_ANTENNAS_ITER_GRT)
9292
check_placement -verbose
9393
check_antennas -report_file $::env(REPORTS_DIR)/grt_antennas.log
9494
}

0 commit comments

Comments
 (0)