Skip to content

Commit d7c0f07

Browse files
committed
Made options consistent between SYNTH_WRAPPED_OPERATORS and SWAP_ARITH_OPERATORS
Signed-off-by: Cho Moon <[email protected]>
1 parent 8945911 commit d7c0f07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flow/scripts/synth.tcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ opt
119119
# Replace undef values with defined constants
120120
setundef -zero
121121

122-
if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] } {
122+
if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] &&
123+
![env_var_exists_and_non_empty SWAP_ARITH_OPERATORS] } {
123124
log_cmd abc {*}$abc_args
124125
} else {
125126
scratchpad -set abc9.script $::env(SCRIPTS_DIR)/abc_speed_gia_only.script
@@ -151,7 +152,8 @@ tee -o $::env(REPORTS_DIR)/synth_stat.txt stat {*}$lib_args
151152

152153
# check the design is composed exclusively of target cells, and
153154
# check for other problems
154-
if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] } {
155+
if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] &&
156+
![env_var_exists_and_non_empty SWAP_ARITH_OPERATORS] } {
155157
check -assert -mapped
156158
} else {
157159
# Wrapped operator synthesis leaves around $buf cells which `check -mapped`

0 commit comments

Comments
 (0)