Repository navigation
Conversation
If macros are already fixed (e.g. by floorplan_anneal), rtl_macro_placer skips placement and never creates blockages. This explicitly applies the base halo to fixed macros to ensure blockages are generated correctly. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
There was a problem hiding this comment.
Code Review
This pull request updates flow/scripts/macro_place_util.tcl to explicitly apply the base halo and block macro channels for fixed macros when rtl_macro_placer skips placement. The review feedback correctly identifies a potential Tcl runtime error due to passing too many arguments to set_macro_base_halo and suggests utilizing the configured blockage_width in block_macro_channels.
| set_macro_base_halo $halo_x $halo_y $halo_x $halo_y | ||
| block_macro_channels |
There was a problem hiding this comment.
There are two issues here:
- Incorrect arguments for
set_macro_base_halo: In OpenROAD,set_macro_base_haloexpects 2 arguments (halo_xandhalo_y). Passing 4 arguments will cause a Tcl runtime error (wrong # args) and crash the flow. - Unused
blockage_width: The script definesblockage_widthon lines 31 and 34 (to respectMACRO_BLOCKAGE_HALOif defined), but it is never used. We should pass-halo $blockage_widthtoblock_macro_channelsto ensure the user-configured blockage halo is respected.
set_macro_base_halo $halo_x $halo_y
block_macro_channels -halo $blockage_width
|
@maliberty I need some guidance here, our flow is broken without this patch we're carrying. What is it that needs to happen when we're running macro placement and we have placed macros before the macro placement stage runs Why does macro_place.tcl have to set up these blockages? |
🔍 QoR checkMetrics reflect the PR merge build — i.e. what will land on the target branch. Advisory — results are log-only and do not affect build status. The authoritative QoR gate remains the local rules-file check. Commit 61 design(s) checked — 4 with regression(s), 1 without a comparable baseline.
❌ asap7/riscv32i-mock-sram base — 1 failing metric(s)
❌ nangate45/ariane133 base — 3 failing metric(s)
❌ nangate45/mempool_group base — 2 failing metric(s)
❌ sky130hd/chameleon base — 2 failing metric(s)
|
|
@joaomai @AcKoucher can mpl create the blockages even if it is otherwise skipping macro placement? It seems simpler than pushing it into the flow. |
Thanks! Please close this PR if this will be fixed in OpenROAD later, we'll just carry the patch for now. |
@maliberty It actually can. I implemented @oharboe I expect the problem you're trying to address here to be resolved once we use |
|
👍 Closing as moot: we're using something like this as a stopgap locally. |
If macros are already fixed (e.g. by floorplan_anneal), rtl_macro_placer skips placement and never creates blockages. We must explicitly apply the base halo to fixed macros.