Project 3, Part 2: Macro-Aware Placement and Routing
In the previous article, we fixed the SRAM macro in the floorplan. In Projects 1 and 2, the placement tool distributed cells across an open, uniform row field. In this project, the macro represents an immovable obstruction. Every signal interacting with the memory must route to fixed pin coordinates along one macro perimeter. In this article, we analyze how macro boundaries influence placement legalization and channel routing congestion.
Standard Cell Placement with Obstructions
openlane --flow Classic --run-tag sram_run1 --from OpenROAD.GlobalPlacement --to OpenROAD.DetailedPlacement \
designs/sram_ctrl/config.json
[INFO DPL-0001] Placed 152 instances
Max displacement: 2.6 um
Although the controller contains only 152 standard cells, maximum legalization displacement rises to 2.6 µm (compared to 1.4 µm in Project 2). Global placement attempts to position controller cells directly adjacent to macro interface pins. However, the 10 µm macro halo prohibits cell placement in that zone. The legalizer shifts cells outward to the halo boundary, increasing displacement.
Pin Access Congestion at the Macro Boundary
Inspect the layer congestion report generated after global routing:
[INFO GRT-0096] Final congestion report:
Layer Resource Demand Usage (%) Max H / Max V / Total Overflow
---------------------------------------------------------------------------------------
met1 40512 6120 15.11% 0 / 0 / 0
met2 39880 9842 24.68% 0 / 3 / 3
met3 28640 4410 15.40% 0 / 0 / 0
met4 14320 1270 8.87% 0 / 0 / 0
---------------------------------------------------------------------------------------
Total 123352 21642 17.55% 0 / 3 / 3
Total routing utilization across the die is low (17.55%). However, routing layer met2 exhibits localized overflow (3 routing tiles where demand exceeds available tracks). Figure 1 displays the spatial congestion heatmap from the OpenROAD GUI.
Congestion concentrates along the macro pin perimeter. Thirty-two data inputs, 32 data outputs, 9 address lines, and control signals must traverse this channel. Unlike Projects 1 and 2 where routing demand was distributed uniformly, macro pin boundaries create physical bottlenecks. All connected signal traces must funnel through routing tracks directly facing the pin edge.
Detailed Routing Convergence
openlane --flow Classic --run-tag sram_run1 --from OpenROAD.GlobalRouting designs/sram_ctrl/config.json
Inspect detailed router iterations:
[INFO DRT-0195] Start 0th optimization iteration.
Completing 100% with 41 violations.
[INFO DRT-0195] Start 1st optimization iteration.
Completing 100% with 3 violations.
[INFO DRT-0195] Start 2nd optimization iteration.
Completing 100% with 0 violations.
[INFO DRT-0198] Complete detail routing.
Initial detailed routing produced 41 violations in the congested pin channel, compared to only 7 violations in Project 1. The router required three complete optimization iterations to rip up and reroute congested tracks before achieving zero violations. Congestion along macro edges increases routing complexity.
Pin access bottlenecks represent common implementation hurdles. Physical designers frequently alter macro floorplan positions, expand halo widths, or modify macro pin distributions rather than forcing routers to resolve congested channels.
Practice Exercise
Propose one floorplan modification that reduces routing congestion along the macro pin perimeter without changing router settings. Explain why the modification relieves congestion.
Solution
Widen the routing channel adjacent to the macro pin edge. This can be accomplished by shifting the macro further left (increasing distance to controller cells) or expanding the halo width specifically along the right-hand edge.
A wider channel provides more horizontal and vertical routing tracks across the interface corridor. The 70+ bus wires can distribute across more tracks, eliminating localized track overflow and reducing detailed routing iterations.
Placement and routing achieved zero violations. In the next article, we examine black-box LVS verification, power grid continuity, and signoff for macro integration.