Module 4: Placement · 4.2 Detailed Placement & Legalization

Running Global and Detailed Placement

This article executes the placement flow on the reference design alu8. The alu8 design contains approximately 1860 sky130_fd_sc_hd standard cells. Module 3 established core rows, power grids, and I/O pins. The placement stage positions all 1860 cells into legal row sites.

Executing Placement in OpenLane

In OpenLane interactive mode, execute the placement command:

% package require openlane 0.9
% prep -design alu8 -tag placement_run1
% run_synthesis
% run_floorplan
% run_placement

The run_placement command chains two OpenROAD tools. First, RePlAce executes global placement to minimize wire length and balance density. Next, OpenDP performs detailed placement and legalization.

Reading the Placement Log

The tool log records progress messages with module prefixes GPL (global placement) and DPL (detailed placement):

[INFO]: Running Global Placement (skip IO)...
[INFO GPL-0002] DBU: 1000
[INFO GPL-0003] Iter: 1     overflow: 0.712   HPWL: 1084302
[INFO GPL-0003] Iter: 20    overflow: 0.401   HPWL: 891447
[INFO GPL-0003] Iter: 40    overflow: 0.183   HPWL: 831960
[INFO GPL-0003] Iter: 61    overflow: 0.098   HPWL: 812394
[INFO GPL-0004] Global placement converged (overflow < 0.10).

[INFO]: Running Detailed Placement...
[INFO DPL-0001] Total cells: 1860
[INFO DPL-0002] Total displacement: 4821.3 dbu
[INFO DPL-0003] Max displacement: 38.5 dbu
[INFO DPL-0004] Legalization: 0 overlaps remaining.
[INFO]: Placement complete. Final HPWL: 818210 dbu

Placement Summary Metrics

OpenLane generates a placement summary table:

Metric Value
Total cells placed 1,860
Core area utilisation (actual) 47.2%
Final HPWL 818,210 dbu (about 818.2 um total at 1000 dbu/um)
Global placement iterations 61
Total legalisation displacement 4,821.3 dbu
Max single-cell displacement 38.5 dbu
Legalisation overlaps remaining 0

Verify the remaining overlap count first. A value of zero indicates complete legalization success. Non-zero values indicate physical design rule violations that invalidate downstream steps.

The SKY130 process defines 1000 Database Units (dbu) per micron. A maximum displacement of 38.5 dbu equals $0.0385\ \mu\text{m}$. This small displacement confirms that global placement converged near valid row sites.

Inspecting the Layout

Open the placement DEF file in Magic:

magic -rcfile sky130A.magicrc -T sky130A.tech alu8.placement.def

The core area now contains continuous rows of standard cells. Cells alternate orientation along adjacent rows to share VDD and VSS power rails. Physical interconnect wires do not exist yet. Routing occurs later in Module 6.

Practice Exercise

A placement run reports a maximum displacement of 2150 dbu. Convert this value to microns. Evaluate whether this displacement requires investigation before clock tree synthesis.

Solution

At 1000 dbu per micron: $$2150\ \text{dbu} = 2.15\ \mu\text{m}$$ In sky130_fd_sc_hd, standard cell rows measure $2.72\ \mu\text{m}$ in height. A displacement of $2.15\ \mu\text{m}$ moves a cell almost an entire row height during legalization. This large shift indicates local density congestion or poor global placement convergence. Identify the displaced instance and inspect local cell density before proceeding.

The placement layout is legal and verified. Section 4.3 analyzes pre-CTS timing reports derived from cell placements.

← Cell Flipping and Row Alignment Why Placement Already Affects Timing →