Orientation and Channel Spacing
The previous article established physical keep-out halos around hard macros. This article examines macro orientation and inter-macro routing channel spacing.
A hard macro features fixed pin locations established during physical hardening. Engineers cannot reposition individual pins on a hardened block. However, physical designers can rotate or mirror the entire macro. Selecting the correct macro orientation aligns pins directly with destination circuits.
Orientation Transforms in LEF and DEF
LEF and DEF standards define eight geometric orientations for rectangular macros.
These include the identity N (north, unrotated), three rotations (S, E, W), and four mirrored variants (FN, FS, FE, FW).
Transforming orientation rotates or flips all internal geometries and interface pins simultaneously.
Designers adjust orientation so that macro interface pins point directly toward connecting logic.
Orientation Selection Example
Consider regfile_8x8 from the previous article.
The macro features data output pins along its east edge.
It connects to a second macro, alu_macro, placed to its right with input pins on its west edge.
Option A in Figure 1 shows the optimal configuration.
Placing regfile_8x8 in orientation N directs output pins toward the input pins of alu_macro.
The interconnect bus follows short, straight paths.
In contrast, Option B flips regfile_8x8 into orientation FN.
This orientation places output pins on the opposite side, forcing bus wires to route around the entire macro.
This unnecessary detour consumes routing tracks and increases propagation delay.
Routing Channel Spacing
Orientation aligns interface pins, but floorplanners must also allocate sufficient spacing between macros. The space between adjacent macros forms a routing channel. Routing channels must accommodate all interconnect tracks, standard cell buffers, and macro halos. A channel that is too narrow prevents complete routing and causes DRC errors. Adjust macro positions during floorplanning to prevent congested channels.
Practice Exercise
A macro has interface pins on its north boundary. It connects to standard cell logic positioned directly north of the macro. Determine the required orientation for the macro.
Solution
Use the default orientation N.
The pins already reside on the north edge, facing the destination logic directly.
Orientation modifications are only required when interface pins point away from connecting circuits.
The next article combines coordinates, orientation, and halos into an OpenLane macro placement configuration.