From f2c23b3de0d4a78a79f3be677cd7db2a3d8dfb34 Mon Sep 17 00:00:00 2001 From: Jeff Ng Date: Thu, 24 Sep 2026 21:44:26 +0000 Subject: [PATCH] enabled tristate cleanup in synthesis code review feedback Signed-off-by: Jeff Ng --- flow/designs/asap7/aes-mbff/config.mk | 3 +++ flow/scripts/synth.tcl | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/flow/designs/asap7/aes-mbff/config.mk b/flow/designs/asap7/aes-mbff/config.mk index 5536ff6915..1b99d55a65 100644 --- a/flow/designs/asap7/aes-mbff/config.mk +++ b/flow/designs/asap7/aes-mbff/config.mk @@ -3,6 +3,9 @@ export PLATFORM = asap7 export DESIGN_NAME = aes_cipher_top export DESIGN_NICKNAME = aes-mbff +# ignore unsynthesizable timing controls +export SYNTH_SLANG_ARGS += --ignore-timing + export VERILOG_FILES = $(sort $(wildcard $(DESIGN_HOME)/src/aes/*.v)) export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/aes/constraint.sdc diff --git a/flow/scripts/synth.tcl b/flow/scripts/synth.tcl index f94b68c60f..7327312e53 100644 --- a/flow/scripts/synth.tcl +++ b/flow/scripts/synth.tcl @@ -143,6 +143,11 @@ if { synth -flatten -run coarse:fine {*}$synth_full_args } +# Resolve internal tristates left by the slang frontend --- +if { [env_var_equals SYNTH_HDL_FRONTEND slang] } { + tribuf -logic + opt_clean +} if { $::env(SYNTH_MOCK_LARGE_MEMORIES) } { memory_collect