Skip to content

Commit 8d5b198

Browse files
authored
Merge pull request #3740 from Pinata-Consulting/single-openroad-invocation-flows
flow: faster, leaner single openroad invocation flows
2 parents 6226277 + e7cfcfd commit 8d5b198

20 files changed

Lines changed: 55 additions & 31 deletions

‎docs/user/FlowVariables.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ configuration file.
157157
| <a name="IO_PLACER_H"></a>IO_PLACER_H| A list of metal layers on which the I/O pins are placed horizontally (top and bottom of the die).| |
158158
| <a name="IO_PLACER_V"></a>IO_PLACER_V| A list of metal layers on which the I/O pins are placed vertically (sides of the die).| |
159159
| <a name="IR_DROP_LAYER"></a>IR_DROP_LAYER| Default metal layer to report IR drop.| |
160-
| <a name="KEEP_VARS"></a>KEEP_VARS| Feature toggle to keep intermediate variables during the flow. This is useful for the single-run flow, where all stages of the flow are run in a single OpenROAD instance.| |
160+
| <a name="KEEP_VARS"></a>KEEP_VARS| Feature toggle to keep intermediate variables during the flow. This is useful for the single-run flow, where all stages of the flow are run in a single OpenROAD instance.| 0|
161161
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
162162
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
163163
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
@@ -271,6 +271,7 @@ configuration file.
271271
| <a name="VERILOG_FILES"></a>VERILOG_FILES| The path to the design Verilog/SystemVerilog files providing a description of modules.| |
272272
| <a name="VERILOG_INCLUDE_DIRS"></a>VERILOG_INCLUDE_DIRS| Specifies the include directories for the Verilog input files.| |
273273
| <a name="VERILOG_TOP_PARAMS"></a>VERILOG_TOP_PARAMS| Apply toplevel params (if exist). Passed in as a list of key value pairs in tcl syntax; separated by spaces: PARAM1 VALUE1 PARAM2 VALUE2 stages: - synth| |
274+
| <a name="WRITE_ODB_AND_SDC_EACH_STAGE"></a>WRITE_ODB_AND_SDC_EACH_STAGE| Save out .sdc and .odb file after each stage, useful to disable when using a single OpenROAD instance to run all stages of the flow.| 1|
274275
| <a name="YOSYS_FLAGS"></a>YOSYS_FLAGS| Flags to pass to yosys.| -v 3|
275276
## synth variables
276277

@@ -487,6 +488,7 @@ configuration file.
487488
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)
488489
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
489490
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
491+
- [WRITE_ODB_AND_SDC_EACH_STAGE](#WRITE_ODB_AND_SDC_EACH_STAGE)
490492

491493
## generate_abstract variables
492494

‎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/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)