From 17b85d1958b072d2a7b754d26ae05f84f569cf1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 20 May 2026 13:04:19 +0200 Subject: [PATCH] flow: pass CTS_DPL_DISPLACEMENT to post-CTS detailed_placement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seed `dpl_args` from `env_var_or_empty CTS_DPL_DISPLACEMENT` instead of the empty list, so callers can pass extra flags (typically `-max_displacement `) to the detailed_placement run immediately after CTS without having to fork the script. When the env var is unset, `env_var_or_empty` returns "" and the `{*}$dpl_args` expansion is a no-op — behavior matches the prior `{}` initialization exactly. Signed-off-by: Øyvind Harboe --- flow/scripts/cts.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/scripts/cts.tcl b/flow/scripts/cts.tcl index 1378c9e7b9..218e1f12e7 100644 --- a/flow/scripts/cts.tcl +++ b/flow/scripts/cts.tcl @@ -46,7 +46,7 @@ set_placement_padding -global \ -left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \ -right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) -set dpl_args {} +set dpl_args [env_var_or_empty CTS_DPL_DISPLACEMENT] append_env_var dpl_args USE_NEGOTIATION -use_negotiation 0 set result [catch { log_cmd detailed_placement {*}$dpl_args } msg] if { $result != 0 } {