Skip to content

Commit f2c23b3

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

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

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

6+
# ignore unsynthesizable timing controls
7+
export SYNTH_SLANG_ARGS += --ignore-timing
8+
69
export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/aes/*.v))
710
export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/aes/constraint.sdc
811

‎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)