Skip to content

Commit 5049f84

Browse files
authored
Merge pull request #3521 from The-OpenROAD-Project-staging/secure-fix-mod-swap-flow
Made options consistent between SYNTH_WRAPPED_OPERATORS and SWAP_ARIT…
2 parents 73ca2f6 + f49ce27 commit 5049f84

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

flow/scripts/synth.tcl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ 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 {
123+
![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] &&
124+
![env_var_exists_and_non_empty SWAP_ARITH_OPERATORS]
125+
} {
123126
log_cmd abc {*}$abc_args
124127
} else {
125128
scratchpad -set abc9.script $::env(SCRIPTS_DIR)/abc_speed_gia_only.script
@@ -151,7 +154,10 @@ tee -o $::env(REPORTS_DIR)/synth_stat.txt stat {*}$lib_args
151154

152155
# check the design is composed exclusively of target cells, and
153156
# check for other problems
154-
if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] } {
157+
if {
158+
![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] &&
159+
![env_var_exists_and_non_empty SWAP_ARITH_OPERATORS]
160+
} {
155161
check -assert -mapped
156162
} else {
157163
# Wrapped operator synthesis leaves around $buf cells which `check -mapped`

0 commit comments

Comments
 (0)