Skip to content

Commit 2f656fd

Browse files
committed
flow: faster, leaner single openroad invocation flows
no longer save out all .odb/.sdc files automatically, the user can save out as many or as few as they need. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 432a91a commit 2f656fd

20 files changed

Lines changed: 53 additions & 35 deletions

‎flow/scripts/cts.tcl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repair_clock_inverters
99

1010
proc save_progress { stage } {
1111
puts "Run 'make gui_$stage.odb' to load progress snapshot"
12-
write_db $::env(RESULTS_DIR)/$stage.odb
13-
write_sdc -no_timestamp $::env(RESULTS_DIR)/$stage.sdc
12+
orfs_write_db $::env(RESULTS_DIR)/$stage.odb
13+
orfs_write_sdc $::env(RESULTS_DIR)/$stage.sdc
1414
}
1515

1616
# Run CTS
@@ -80,5 +80,5 @@ report_metrics 4 "cts final"
8080

8181
source_env_var_if_exists POST_CTS_TCL
8282

83-
write_db $::env(RESULTS_DIR)/4_1_cts.odb
84-
write_sdc -no_timestamp $::env(RESULTS_DIR)/4_cts.sdc
83+
orfs_write_db $::env(RESULTS_DIR)/4_1_cts.odb
84+
orfs_write_sdc $::env(RESULTS_DIR)/4_cts.sdc

‎flow/scripts/density_fill.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if { $::env(USE_FILL) } {
88
# The .v file is just for debugging purposes, not a result of
99
# this stage.
1010
write_verilog $::env(RESULTS_DIR)/6_1_fill.v
11-
write_db $::env(RESULTS_DIR)/6_1_fill.odb
11+
orfs_write_db $::env(RESULTS_DIR)/6_1_fill.odb
1212
} else {
1313
log_cmd exec cp $::env(RESULTS_DIR)/5_route.odb $::env(RESULTS_DIR)/6_1_fill.odb
1414
# There is no 5_route.v file to copy

‎flow/scripts/detail_place.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ proc do_dpl { } {
3232

3333
set result [catch { do_dpl } errMsg]
3434
if { $result != 0 } {
35-
write_db $::env(RESULTS_DIR)/3_5_place_dp-failed.odb
35+
orfs_write_db $::env(RESULTS_DIR)/3_5_place_dp-failed.odb
3636
error $errMsg
3737
}
3838

3939
report_metrics 3 "detailed place" true false
4040

41-
write_db $::env(RESULTS_DIR)/3_5_place_dp.odb
41+
orfs_write_db $::env(RESULTS_DIR)/3_5_place_dp.odb

‎flow/scripts/detail_route.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if { ![grt::have_routes] } {
77
}
88

99
if { $::env(SKIP_DETAILED_ROUTE) } {
10-
write_db $::env(RESULTS_DIR)/5_2_route.odb
10+
orfs_write_db $::env(RESULTS_DIR)/5_2_route.odb
1111
exit
1212
}
1313

@@ -79,4 +79,4 @@ if { ![design_is_routed] } {
7979

8080
report_metrics 5 "detailed route"
8181

82-
write_db $::env(RESULTS_DIR)/5_2_route.odb
82+
orfs_write_db $::env(RESULTS_DIR)/5_2_route.odb

‎flow/scripts/fillcell.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if { [env_var_exists_and_non_empty FILL_CELLS] } {
88
log_cmd filler_placement $::env(FILL_CELLS)
99
check_placement
1010

11-
write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
11+
orfs_write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
1212
} else {
1313
log_cmd exec cp $::env(RESULTS_DIR)/5_2_route.odb $::env(RESULTS_DIR)/5_3_fillcell.odb
1414
}

‎flow/scripts/final_report.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set_propagated_clock [all_clocks]
88
# Ensure all OR created (rsz/cts) instances are connected
99
global_connect
1010

11-
write_db $::env(RESULTS_DIR)/6_final.odb
11+
orfs_write_db $::env(RESULTS_DIR)/6_final.odb
1212

1313
# Delete routing obstructions for final DEF
1414
source $::env(SCRIPTS_DIR)/deleteRoutingObstructions.tcl

‎flow/scripts/floorplan.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ report_metrics 2 "floorplan final" false false
150150
source_env_var_if_exists POST_FLOORPLAN_TCL
151151
source_env_var_if_exists IO_CONSTRAINTS
152152

153-
write_db $::env(RESULTS_DIR)/2_1_floorplan.odb
154-
write_sdc -no_timestamp $::env(RESULTS_DIR)/2_1_floorplan.sdc
153+
orfs_write_db $::env(RESULTS_DIR)/2_1_floorplan.odb
154+
orfs_write_sdc $::env(RESULTS_DIR)/2_1_floorplan.sdc

‎flow/scripts/floorplan_to_place.tcl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Enable keeping variables between stages
2-
set ::env(KEEP_VARS) 1
2+
set ::env(SINGLE_OPENROAD_INVOCATION_FLOW) 1
33

44
# Floorplan
55
source $::env(SCRIPTS_DIR)/floorplan.tcl
@@ -30,3 +30,6 @@ source $::env(SCRIPTS_DIR)/detail_place.tcl
3030

3131
# Repair timing after placement
3232
source $::env(SCRIPTS_DIR)/repair_timing_post_place.tcl
33+
34+
write_db $::env(RESULTS_DIR)/3_6_place_repair_timing.odb
35+
write_sdc -no_timestamp $::env(RESULTS_DIR)/3_6_place_repair_timing.sdc

‎flow/scripts/global_place.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ proc do_placement { global_placement_args } {
4646

4747
set result [catch { do_placement $global_placement_args } errMsg]
4848
if { $result != 0 } {
49-
write_db $::env(RESULTS_DIR)/3_3_place_gp-failed.odb
49+
orfs_write_db $::env(RESULTS_DIR)/3_3_place_gp-failed.odb
5050
error $errMsg
5151
}
5252

@@ -59,4 +59,4 @@ if { $::env(CLUSTER_FLOPS) } {
5959

6060
report_metrics 3 "global place" false false
6161

62-
write_db $::env(RESULTS_DIR)/3_3_place_gp.odb
62+
orfs_write_db $::env(RESULTS_DIR)/3_3_place_gp.odb

‎flow/scripts/global_place_skip_io.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ if { [env_var_exists_and_non_empty FLOORPLAN_DEF] } {
1313
{*}[env_var_or_empty GLOBAL_PLACEMENT_ARGS]
1414
}
1515

16-
write_db $::env(RESULTS_DIR)/3_1_place_gp_skip_io.odb
16+
orfs_write_db $::env(RESULTS_DIR)/3_1_place_gp_skip_io.odb

0 commit comments

Comments
 (0)