From a7e467a71d88c8937b40e171ec3aad7acba73af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Thu, 15 Jan 2026 09:15:22 +0100 Subject: [PATCH] variables: document MACRO_PLACE_HALO and MACRO_BLOCKAGE_HALO a bit more MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- docs/user/FlowVariables.md | 4 ++-- flow/scripts/variables.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index 849694d481..37d554cf60 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -162,10 +162,10 @@ configuration file. | LATCH_MAP_FILE| Optional mapping file supplied to Yosys to map latches| | | LAYER_PARASITICS_FILE| Path to per layer parasitics file. Defaults to $(PLATFORM_DIR)/setRC.tcl.| | | LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| | -| MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| | +| MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. To ease routing around macros, it can be useful to have a larger `MACRO_PLACE_HALO` than `MACRO_BLOCKAGE_HALO`. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| | | MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| | | MACRO_PLACEMENT_TCL| Specifies the path of a TCL file on how to place macros manually. The user may choose to place just some of the macros in the design. The macro placer will handle the remaining unplaced macros.| | -| MACRO_PLACE_HALO| Horizontal/vertical halo around macros (microns). Used by automatic macro placement.| | +| MACRO_PLACE_HALO| Horizontal/vertical halo around macros (microns). Used by automatic macro placement. There is no provision for setting a halo per macro, this is a global setting. With an advanced flow, beyond the scope of ORFS, a user could generate a mock .lef with halos that vary per macro, generate a macro placement .tcl and use `MACRO_PLACEMENT_TCL` to place macros. A .lef halo excludes all instances, including standard cells and macros. `MACRO_PLACE_HALO` applies only to macros. If this value is too high, then area is wasted, too low and the flow can fail later in detailed placement or routing.| | | MACRO_ROWS_HALO_X| Horizontal distance between the edge of the macro and the beginning of the rows created by tapcell. Only available for ASAP7 PDK and GF180/uart-blocks design.| | | MACRO_ROWS_HALO_Y| Vertical distance between the edge of the macro and the beginning of the rows created by tapcell. Only available for ASAP7 PDK and GF180/uart-blocks design.| | | MACRO_WRAPPERS| The wrapper file that replaces existing macros with their wrapped version.| | diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index 39604101c1..279970237f 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -452,12 +452,26 @@ MACRO_PLACE_HALO: description: > Horizontal/vertical halo around macros (microns). Used by automatic macro placement. + + There is no provision for setting a halo per macro, this is a global + setting. With an advanced flow, beyond the scope of ORFS, a user + could generate a mock .lef with halos that vary per macro, + generate a macro placement .tcl and use `MACRO_PLACEMENT_TCL` to + place macros. A .lef halo excludes all instances, including standard + cells and macros. `MACRO_PLACE_HALO` applies only to macros. + + If this value is too high, then area is wasted, too low and the flow can + fail later in detailed placement or routing. stages: - floorplan MACRO_BLOCKAGE_HALO: description: > Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. + + To ease routing around macros, it can be useful to have a larger + `MACRO_PLACE_HALO` than `MACRO_BLOCKAGE_HALO`. + Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.