Skip to content

Commit 017df8c

Browse files
committed
variables: GLOBAL_ROUTE_ARGS now has the default defined
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 89cffd7 commit 017df8c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

flow/scripts/global_route.tcl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@ proc global_route_helper {} {
1212

1313
fast_route
1414

15-
# The default behavior if the user didn't specify GLOBAL_ROUTE_ARGS is to
16-
# produce a drc report every 5 iterations.
17-
#
18-
# If GLOBAL_ROUTE_ARGS is specified, then we do only what the
19-
# GLOBAL_ROUTE_ARGS specifies.
2015
proc do_global_route {} {
21-
set all_args [concat [list -congestion_report_file $::global_route_congestion_report] \
22-
[expr {[env_var_exists_and_non_empty GLOBAL_ROUTE_ARGS] ? $::env(GLOBAL_ROUTE_ARGS) : \
23-
{-congestion_iterations 30 -congestion_report_iter_step 5 -verbose}}]]
16+
set all_args [concat [list \
17+
-congestion_report_file $::global_route_congestion_report] \
18+
$::env(GLOBAL_ROUTE_ARGS)]
2419

2520
log_cmd global_route {*}$all_args
2621
}

flow/scripts/variables.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,3 +609,9 @@ ABSTRACT_SOURCE:
609609
Which .odb file to use to create abstract
610610
stages:
611611
- generate_abstract
612+
GLOBAL_ROUTE_ARGS:
613+
description: >
614+
Replaces default arguments for global route.
615+
stages:
616+
- grt
617+
default: -congestion_iterations 30 -congestion_report_iter_step 5 -verbose

0 commit comments

Comments
 (0)