Skip to content

Commit 56420c0

Browse files
committed
add env var to prevent erasing non-stage variables
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 33e151a commit 56420c0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

flow/scripts/util.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ proc find_macros { } {
145145
}
146146

147147
proc erase_non_stage_variables { stage_name } {
148+
if { [info exists ::env(KEEP_VARS)] && $::env(KEEP_VARS) == 1 } {
149+
return
150+
}
148151
# "$::env(SCRIPTS_DIR)/stage_variables.py stage_name" returns list of
149152
# variables to erase.
150153
#

flow/scripts/variables.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,3 +1231,10 @@ NUM_CORES:
12311231
routing, or place jobs running at the same time.
12321232
stages:
12331233
- All stages
1234+
KEEP_VARS:
1235+
description: >
1236+
Feature toggle to keep intermediate variables during the flow.
1237+
This is useful for the single-run flow, where all stages of the flow
1238+
are run in a single OpenROAD instance.
1239+
stages:
1240+
- All stages

0 commit comments

Comments
 (0)