Skip to content

Commit b4daa38

Browse files
committed
synth: Work around $buf residue
Signed-off-by: Martin Povišer <[email protected]>
1 parent bcb209d commit b4daa38

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

flow/scripts/synth.tcl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,14 @@ tee -o $::env(REPORTS_DIR)/synth_check.txt check
115115
tee -o $::env(REPORTS_DIR)/synth_stat.txt stat {*}$stat_libs
116116

117117
# check the design is composed exclusively of target cells, and check for other problems
118-
check -assert -mapped
118+
if {![env_var_exists_and_non_empty NEW_OPERATOR_SYNTHESIS]} {
119+
check -assert -mapped
120+
} else {
121+
# Wrapped operator synthesis leaves around $buf cells which `check -mapped`
122+
# gets confused by, once Yosys#4931 is merged we can remove this branch and
123+
# always run `check -assert -mapped`
124+
check -assert
125+
}
119126

120127
# Write synthesized design
121128
write_verilog -nohex -nodec $::env(RESULTS_DIR)/1_1_yosys.v

0 commit comments

Comments
 (0)