From 2c9b7697f347072be8048b9d9db6ad11434b4616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Thu, 8 Jan 2026 10:23:24 +0100 Subject: [PATCH] synth: wrapped operators fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit expand env vars correctly Signed-off-by: Øyvind Harboe --- flow/scripts/synth_wrap_operators.tcl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/flow/scripts/synth_wrap_operators.tcl b/flow/scripts/synth_wrap_operators.tcl index 10302046ca..f8c4df91de 100644 --- a/flow/scripts/synth_wrap_operators.tcl +++ b/flow/scripts/synth_wrap_operators.tcl @@ -1,5 +1,5 @@ # Set arithmetic operator modules. Default is the first module in the list. -set deferred_cells { +set deferred_cells [list \ { \$alu ALU_{A_WIDTH}_{A_SIGNED}_{B_WIDTH}_{B_SIGNED}_{Y_WIDTH}{%unused} @@ -7,14 +7,13 @@ set deferred_cells { {KOGGE_STONE -map +/choices/kogge-stone.v} {SKLANSKY -map +/choices/sklansky.v} {BRENT_KUNG} - } - { - \$macc - MACC_{CONFIG}_{Y_WIDTH}{%unused} - {BOOTH -max_iter 1 -map $::env(SCRIPTS_DIR)/synth_wrap_operators-booth.v} - {BASE -map +/choices/han-carlson.v} - } -} + } \ + [list \ + \$macc \ + MACC_\{CONFIG\}_\{Y_WIDTH\}\{%unused\} \ + [list BOOTH -max_iter 1 -map $::env(SCRIPTS_DIR)/synth_wrap_operators-booth.v] \ + {BASE -map +/choices/han-carlson.v}]] + # Reorder the modules based on envar proc reorder_deferred_cells { deferred_cells_var index env_var } {