Skip to content

Commit 02efa6c

Browse files
committed
global and detailed route: consistent implementation cts output of arguments
all arguments passed to cts, detailed and global route are printed so that it is easy to copy and paste from the log, modify and override in the config.mk file. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent d9e56d3 commit 02efa6c

File tree

3 files changed

+28
-21
lines changed

3 files changed

+28
-21
lines changed

flow/scripts/detail_route.tcl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ append additional_args " -save_guide_updates -verbose 1"
6363
set arguments [expr {[info exists ::env(DETAILED_ROUTE_ARGS)] ? $::env(DETAILED_ROUTE_ARGS) : \
6464
[concat $additional_args {-drc_report_iter_step 5}]}]
6565

66-
puts "detailed_route arguments: $arguments"
66+
set all_args [concat [list \
67+
-output_drc $::env(REPORTS_DIR)/5_route_drc.rpt \
68+
-output_maze $::env(RESULTS_DIR)/maze.log] \
69+
$arguments]
6770

68-
detailed_route -output_drc $::env(REPORTS_DIR)/5_route_drc.rpt \
69-
-output_maze $::env(RESULTS_DIR)/maze.log \
70-
{*}$arguments
71+
puts "detailed_route [join $all_args " "]"
72+
73+
detailed_route {*}$all_args
7174

7275
if { [info exists ::env(POST_DETAIL_ROUTE_TCL)] } {
7376
source $::env(POST_DETAIL_ROUTE_TCL)

flow/scripts/global_place.tcl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ if {[info exist ::env(PLACE_DENSITY_LB_ADDON)]} {
2828
set place_density $::env(PLACE_DENSITY)
2929
}
3030

31-
set global_placement_args ""
31+
set global_placement_args {}
3232
if {$::env(GPL_ROUTABILITY_DRIVEN)} {
33-
append global_placement_args " -routability_driven"
33+
lappend global_placement_args {-routability_driven}
3434
}
3535
if {$::env(GPL_TIMING_DRIVEN)} {
36-
append global_placement_args " -timing_driven"
36+
lappend global_placement_args {-timing_driven}
3737
}
3838

3939
proc do_placement {place_density global_placement_args} {
40+
set all_args [concat [list -density $place_density \
41+
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
42+
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)] \
43+
$global_placement_args]
44+
4045
if { 0 != [llength [array get ::env GLOBAL_PLACEMENT_ARGS]] } {
41-
global_placement -density $place_density \
42-
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
43-
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
44-
{*}$global_placement_args \
45-
{*}$::env(GLOBAL_PLACEMENT_ARGS)
46-
} else {
47-
global_placement -density $place_density \
48-
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
49-
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
50-
{*}$global_placement_args
46+
lappend all_args {*}$::env(GLOBAL_PLACEMENT_ARGS)
5147
}
48+
49+
puts "global_placement [join $all_args " "]"
50+
51+
global_placement {*}$all_args
5252
}
5353

5454
set result [catch {do_placement $place_density $global_placement_args} errMsg]

flow/scripts/global_route.tcl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ if {[info exist env(FASTROUTE_TCL)]} {
2222
# If GLOBAL_ROUTE_ARGS is specified, then we do only what the
2323
# GLOBAL_ROUTE_ARGS specifies.
2424
proc do_global_route {} {
25-
global_route -guide_file $::env(RESULTS_DIR)/route.guide \
26-
-congestion_report_file $::env(REPORTS_DIR)/congestion.rpt \
27-
{*}[expr {[info exists ::env(GLOBAL_ROUTE_ARGS)] ? $::env(GLOBAL_ROUTE_ARGS) : \
28-
{-congestion_iterations 30 -congestion_report_iter_step 5 -verbose}}]
25+
set all_args [concat [list -guide_file $::env(RESULTS_DIR)/route.guide \
26+
-congestion_report_file $::env(REPORTS_DIR)/congestion.rpt] \
27+
[expr {[info exists ::env(GLOBAL_ROUTE_ARGS)] ? $::env(GLOBAL_ROUTE_ARGS) : \
28+
{-congestion_iterations 30 -congestion_report_iter_step 5 -verbose}}]]
29+
30+
puts "global_route [join $all_args " "]"
31+
32+
global_route {*}$all_args
2933
}
3034

3135
set result [catch {do_global_route} errMsg]

0 commit comments

Comments
 (0)