From d6b56f567072fed2dc308a9b798cd163f019f256 Mon Sep 17 00:00:00 2001 From: Christian Gelinek Date: Wed, 25 Feb 2026 14:50:42 +1030 Subject: [PATCH 1/2] Added variable DETAIL_PLACEMENT_ARGS This allows to specify arguments to the detailed_placement call during placement. --- docs/user/FlowVariables.md | 2 ++ flow/scripts/detail_place.tcl | 2 +- flow/scripts/variables.yaml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index a5b2a53b0f..0ebd3722ef 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -128,6 +128,7 @@ configuration file. | DETAILED_METRICS| If set, then calls report_metrics prior to repair operations in the CTS and global route stages| 0| | DETAILED_ROUTE_ARGS| Add additional arguments for debugging purposes during detail route.| | | DETAILED_ROUTE_END_ITERATION| Maximum number of iterations.| 64| +| DETAIL_PLACEMENT_ARGS| Specify arguments to the detailed_placement call during placement.| | | DFF_LIB_FILES| Technology mapping liberty files for flip-flops.| | | DFF_MAP_FILE| Optional mapping file supplied to Yosys to map D flip-flops| | | DIE_AREA| The die area specified as a list of lower-left and upper-right corners in microns (X1 Y1 X2 Y2).| | @@ -389,6 +390,7 @@ configuration file. - [CELL_PAD_IN_SITES_DETAIL_PLACEMENT](#CELL_PAD_IN_SITES_DETAIL_PLACEMENT) - [CELL_PAD_IN_SITES_GLOBAL_PLACEMENT](#CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) - [CLUSTER_FLOPS](#CLUSTER_FLOPS) +- [DETAIL_PLACEMENT_ARGS](#DETAIL_PLACEMENT_ARGS) - [DONT_BUFFER_PORTS](#DONT_BUFFER_PORTS) - [EARLY_SIZING_CAP_RATIO](#EARLY_SIZING_CAP_RATIO) - [FLOORPLAN_DEF](#FLOORPLAN_DEF) diff --git a/flow/scripts/detail_place.tcl b/flow/scripts/detail_place.tcl index 7c3c433f8a..2a0babb8d6 100644 --- a/flow/scripts/detail_place.tcl +++ b/flow/scripts/detail_place.tcl @@ -14,7 +14,7 @@ proc do_dpl { } { set_placement_padding -global \ -left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \ -right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) - detailed_placement + detailed_placement {*}[env_var_or_empty DETAIL_PLACEMENT_ARGS] if { $::env(ENABLE_DPO) } { if { [env_var_exists_and_non_empty DPO_MAX_DISPLACEMENT] } { diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index 34041af7e4..7fcc3fb9c4 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -537,6 +537,11 @@ CELL_PAD_IN_SITES_GLOBAL_PLACEMENT: default: 0 type: int tunable: 1 +DETAIL_PLACEMENT_ARGS: + description: > + Specify arguments to the detailed_placement call during placement. + stages: + - place CELL_PAD_IN_SITES_DETAIL_PLACEMENT: description: > Cell padding on both sides in site widths to ease routability in detail From 285155e9e4e693e351a0e3be42ac2c316fc49d5d Mon Sep 17 00:00:00 2001 From: Christian Gelinek Date: Wed, 25 Feb 2026 14:50:42 +1030 Subject: [PATCH 2/2] Added variable DETAIL_PLACEMENT_ARGS This allows to specify arguments to the detailed_placement call during placement. Signed-off-by: Christian Gelinek --- docs/user/FlowVariables.md | 2 ++ flow/scripts/detail_place.tcl | 2 +- flow/scripts/variables.yaml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index a5b2a53b0f..0ebd3722ef 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -128,6 +128,7 @@ configuration file. | DETAILED_METRICS| If set, then calls report_metrics prior to repair operations in the CTS and global route stages| 0| | DETAILED_ROUTE_ARGS| Add additional arguments for debugging purposes during detail route.| | | DETAILED_ROUTE_END_ITERATION| Maximum number of iterations.| 64| +| DETAIL_PLACEMENT_ARGS| Specify arguments to the detailed_placement call during placement.| | | DFF_LIB_FILES| Technology mapping liberty files for flip-flops.| | | DFF_MAP_FILE| Optional mapping file supplied to Yosys to map D flip-flops| | | DIE_AREA| The die area specified as a list of lower-left and upper-right corners in microns (X1 Y1 X2 Y2).| | @@ -389,6 +390,7 @@ configuration file. - [CELL_PAD_IN_SITES_DETAIL_PLACEMENT](#CELL_PAD_IN_SITES_DETAIL_PLACEMENT) - [CELL_PAD_IN_SITES_GLOBAL_PLACEMENT](#CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) - [CLUSTER_FLOPS](#CLUSTER_FLOPS) +- [DETAIL_PLACEMENT_ARGS](#DETAIL_PLACEMENT_ARGS) - [DONT_BUFFER_PORTS](#DONT_BUFFER_PORTS) - [EARLY_SIZING_CAP_RATIO](#EARLY_SIZING_CAP_RATIO) - [FLOORPLAN_DEF](#FLOORPLAN_DEF) diff --git a/flow/scripts/detail_place.tcl b/flow/scripts/detail_place.tcl index 7c3c433f8a..2a0babb8d6 100644 --- a/flow/scripts/detail_place.tcl +++ b/flow/scripts/detail_place.tcl @@ -14,7 +14,7 @@ proc do_dpl { } { set_placement_padding -global \ -left $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) \ -right $::env(CELL_PAD_IN_SITES_DETAIL_PLACEMENT) - detailed_placement + detailed_placement {*}[env_var_or_empty DETAIL_PLACEMENT_ARGS] if { $::env(ENABLE_DPO) } { if { [env_var_exists_and_non_empty DPO_MAX_DISPLACEMENT] } { diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index 34041af7e4..7fcc3fb9c4 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -537,6 +537,11 @@ CELL_PAD_IN_SITES_GLOBAL_PLACEMENT: default: 0 type: int tunable: 1 +DETAIL_PLACEMENT_ARGS: + description: > + Specify arguments to the detailed_placement call during placement. + stages: + - place CELL_PAD_IN_SITES_DETAIL_PLACEMENT: description: > Cell padding on both sides in site widths to ease routability in detail