Skip to content

Commit b7a8ba7

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 8facb0e commit b7a8ba7

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ 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.| |
161160
| <a name="KLAYOUT_TECH_FILE"></a>KLAYOUT_TECH_FILE| A mapping from LEF/DEF to GDS using the KLayout tool.| |
162161
| <a name="LATCH_MAP_FILE"></a>LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| |
163162
| <a name="LAYER_PARASITICS_FILE"></a>LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| |
@@ -225,6 +224,7 @@ configuration file.
225224
| <a name="SETUP_REPAIR_SEQUENCE"></a>SETUP_REPAIR_SEQUENCE| Specifies the sequence of moves to do in repair_timing -setup. This should be a string of move keywords separated by commas such as the default when not used: "unbuffer,sizedown,sizeup,swap,buffer,clone,split".| |
226225
| <a name="SETUP_SLACK_MARGIN"></a>SETUP_SLACK_MARGIN| Specifies a time margin for the slack when fixing setup violations. This option allows you to overfix or underfix(negative value, terminate retiming before 0 or positive slack). See HOLD_SLACK_MARGIN for more details.| 0|
227226
| <a name="SET_RC_TCL"></a>SET_RC_TCL| Metal & Via RC definition file path.| |
227+
| <a name="SINGLE_OPENROAD_INVOCATION_FLOW"></a>SINGLE_OPENROAD_INVOCATION_FLOW| Instead of invoking OpenROAD once per stage and saving out the .odb and .sdc file at each stage, invoke OpenROAD once and run through all stages in a single OpenROAD instance.| 0|
228228
| <a name="SKIP_ANTENNA_REPAIR"></a>SKIP_ANTENNA_REPAIR| Skips antenna repair entirely.| 0|
229229
| <a name="SKIP_ANTENNA_REPAIR_POST_DRT"></a>SKIP_ANTENNA_REPAIR_POST_DRT| Skips antenna repair post-detailed routing.| 0|
230230
| <a name="SKIP_ANTENNA_REPAIR_PRE_GRT"></a>SKIP_ANTENNA_REPAIR_PRE_GRT| Skips antenna repair pre-global routing.| 0|
@@ -482,9 +482,9 @@ configuration file.
482482

483483
## All stages variables
484484

485-
- [KEEP_VARS](#KEEP_VARS)
486485
- [NUM_CORES](#NUM_CORES)
487486
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)
487+
- [SINGLE_OPENROAD_INVOCATION_FLOW](#SINGLE_OPENROAD_INVOCATION_FLOW)
488488
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
489489
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
490490

‎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/util.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ proc find_macros { } {
145145
}
146146

147147
proc erase_non_stage_variables { stage_name } {
148-
if { [info exists ::env(KEEP_VARS)] && $::env(KEEP_VARS) == 1 } {
148+
if { $::env(SINGLE_OPENROAD_INVOCATION_FLOW) } {
149149
return
150150
}
151151
# "$::env(SCRIPTS_DIR)/stage_variables.py stage_name" returns list of

‎flow/scripts/variables.yaml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,10 +1232,11 @@ NUM_CORES:
12321232
routing, or place jobs running at the same time.
12331233
stages:
12341234
- All stages
1235-
KEEP_VARS:
1235+
SINGLE_OPENROAD_INVOCATION_FLOW:
12361236
description: >
1237-
Feature toggle to keep intermediate variables during the flow.
1238-
This is useful for the single-run flow, where all stages of the flow
1239-
are run in a single OpenROAD instance.
1237+
Instead of invoking OpenROAD once per stage and saving out the
1238+
.odb and .sdc file at each stage, invoke OpenROAD once and run
1239+
through all stages in a single OpenROAD instance.
12401240
stages:
12411241
- All stages
1242+
default: 0

0 commit comments

Comments
 (0)