Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions flow/scripts/macro_place_util.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ if { [find_macros] != "" } {
}

log_cmd rtl_macro_placer {*}$all_args

# 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.
if { [info commands set_macro_base_halo] ne "" && [info commands block_macro_channels] ne "" } {
set_macro_base_halo $halo_x $halo_y $halo_x $halo_y
block_macro_channels
Comment on lines +74 to +75

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

There are two issues here:

  1. Incorrect arguments for set_macro_base_halo: In OpenROAD, set_macro_base_halo expects 2 arguments (halo_x and halo_y). Passing 4 arguments will cause a Tcl runtime error (wrong # args) and crash the flow.
  2. Unused blockage_width: The script defines blockage_width on lines 31 and 34 (to respect MACRO_BLOCKAGE_HALO if defined), but it is never used. We should pass -halo $blockage_width to block_macro_channels to ensure the user-configured blockage halo is respected.
    set_macro_base_halo $halo_x $halo_y
    block_macro_channels -halo $blockage_width

}
} else {
puts "No macros found: Skipping macro_placement"
}