Module 4: Placement · 4.2 Detailed Placement & Legalization

Cell Flipping and Row Alignment

Standard cell rows contain continuous VDD and VSS power rails along their top and bottom boundaries. Abutting cells share these power rails horizontally. Stacking consecutive rows without orientation changes places opposite supply rails directly against each other. Adjacent VDD and VSS tracks violate design rules and cause electrical shorts.

Physical design resolves this problem by alternating row orientation vertically. Row 1 uses standard orientation N. Row 2 flips vertically across the x-axis into orientation FS. Row 3 returns to orientation N. This alternating pattern matches identical supply rails at every row interface: VDD meets VDD, and VSS meets VSS. Neighboring rows share a single conductive power track.

Alternating row orientation and flipping a single cell
Figure 1: Left, rows alternating N and FS so each boundary rail serves both rows. Right, one cell mirrored from N to FN so its input pin faces its driver, shortening the net without moving the cell.

Cell Flipping During Detailed Placement

Row flipping configures entire rows during floorplanning. In contrast, detailed placement flips individual standard cells horizontally. The placement tool mirrors cells across their vertical axis (transforming N to FN, or FS to S). Mirroring swaps left and right pin coordinates without altering cell row coordinates.

When a cell input pin faces away from its driving gate, flipping the cell places the pin closer to the driver. This transformation reduces net wire length without requiring site relocation.

Consider a gate instance U42 placed at $x = 20.00\ \mu\text{m}$. Input pin A resides on the east boundary at $x = 20.36\ \mu\text{m}$. The driving cell sits to the west at $x = 17.10\ \mu\text{m}$. In orientation N, the net span equals $20.36 - 17.10 = 3.26\ \mu\text{m}$. Flipping U42 to FN moves pin A to the west boundary at $x = 19.64\ \mu\text{m}$. The net span decreases to $19.64 - 17.10 = 2.54\ \mu\text{m}$.

Flipping affects all pins on the target instance. Moving one pin closer to its driver may move another pin further from its load. Detailed placement algorithms evaluate total net wire length changes across all connected pins before committing a flip.

Practice Exercise

A buffer features an input pin A on its west boundary and an output pin Y on its east boundary. Its driving cell is located $4.0\ \mu\text{m}$ to the west. Its load cell is located $4.0\ \mu\text{m}$ to the east. Evaluate whether horizontal flipping improves total connected wire length.

Solution

Flipping provides no wire length improvement. The driver and load sit symmetrically on opposite sides of the buffer. Flipping places input pin A on the east and output pin Y on the west. Both interconnects must traverse the width of the cell in reverse directions. Total net wire length remains unchanged due to geometric symmetry.

The next article executes global placement and detailed placement in OpenLane and analyzes placement reports.

← Legalising a Global Placement Running Global and Detailed Placement →