Skip to content

Commit c983aa3

Browse files
committed
enabled tristate cleanup in synthesis
Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
1 parent e2e6b16 commit c983aa3

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎flow/designs/asap7/aes-mbff/config.mk‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ export PLATFORM = asap7
33
export DESIGN_NAME = aes_cipher_top
44
export DESIGN_NICKNAME = aes-mbff
55

6+
ifeq ($(SYNTH_HDL_FRONTEND), slang)
7+
# ignore unsynthesizable timing controls
8+
export SYNTH_SLANG_ARGS = --ignore-timing
9+
endif
10+
611
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/aes/*.v))
712
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/aes/constraint.sdc
813

‎flow/scripts/synth.tcl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ if {
143143
synth -flatten -run coarse:fine {*}$synth_full_args
144144
}
145145

146+
# Resolve internal tristates left by the slang frontend ---
147+
if { [env_var_equals SYNTH_HDL_FRONTEND slang] } {
148+
tribuf -logic
149+
opt_clean
150+
}
146151

147152
if { $::env(SYNTH_MOCK_LARGE_MEMORIES) } {
148153
memory_collect

0 commit comments

Comments
 (0)