Skip to content

Commit b72f6c7

Browse files
committed
variables: use default values, gives error on spelling mistakes
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 5cefa05 commit b72f6c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

flow/scripts/synth.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ read_checkpoint $::env(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil
33

44
hierarchy -check -top $::env(DESIGN_NAME)
55

6-
if { [env_var_equals SYNTH_GUT 1] } {
6+
if { $::env(SYNTH_GUT) } {
77
# /deletes all cells at the top level, which will quickly optimize away
88
# everything else, including macros.
99
delete $::env(DESIGN_NAME)/c:*
@@ -32,7 +32,7 @@ if { [env_var_exists_and_non_empty SYNTH_OPT_HIER] } {
3232
set synth_full_args [concat $synth_full_args -hieropt]
3333
}
3434

35-
if { ![env_var_equals SYNTH_HIERARCHICAL 1] } {
35+
if { !$::env(SYNTH_HIERARCHICAL) } {
3636
# Perform standard coarse-level synthesis script, flatten right away
3737
synth -flatten -run :fine {*}$synth_full_args
3838
} else {

flow/scripts/util.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ proc hier_options { } {
193193
if {
194194
[env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] ||
195195
[env_var_exists_and_non_empty SWAP_ARITH_OPERATORS] ||
196-
[env_var_equals OPENROAD_HIERARCHICAL 1]
196+
$::env(OPENROAD_HIERARCHICAL)
197197
} {
198198
return "-hier"
199199
} else {

0 commit comments

Comments
 (0)