Module 4: Placement · 4.1 Global Placement

Placement as an Optimisation Problem

Digital logic design typically evaluates correctness as a binary condition: a circuit functions correctly or fails. In physical placement, correctness involves numerical optimization. Multiple distinct placements can satisfy design rules and timing constraints. Designers evaluate placements by comparing objective metrics such as wire length, congestion, and timing slack.

The Placement Problem and Objective Function

A synthesized gate-level netlist is a topological graph of cell instances and interconnected nets. It contains no physical coordinate data. Floorplanning establishes the physical canvas: core boundaries, standard cell rows, power rings, and macro halos. Global placement assigns physical coordinates $(x, y)$ to every standard cell instance within this canvas.

The primary objective of global placement is total wire length minimization subject to physical constraints. Every cell must reside within the core boundaries, and local cell density must remain below specified limits. Because actual routed interconnects do not exist yet, placers estimate net length using Half-Perimeter Wirelength (HPWL). HPWL measures half the perimeter of the minimum bounding box enclosing all pins of a net:

$$\text{HPWL} = (x_{\max} - x_{\min}) + (y_{\max} - y_{\min})$$

HPWL provides an optimistic estimate because physical wires must detour around routing obstacles. However, it computes quickly across millions of iterations during analytical optimization.

HPWL of one net, and two placements of a four-cell chain
Figure 1: Left, the bounding box that defines HPWL for a four-pin net. Right, the same four cells and three nets placed in two orders; the second costs twice the wirelength.

Manual HPWL Calculation Example

Consider a four-cell pipeline chain: A connects to B (net1), B connects to C (net2), and C connects to D (net3). Evaluate two candidate placements on a one-dimensional row grid ($y = 0$).

Placement 1 positions cells in topological order:

Cell x y
A 0 0
B 1 0
C 2 0
D 3 0

Placement 2 positions cells out of sequence:

Cell x y
A 0 0
B 3 0
C 1 0
D 2 0

Because all cells share $y = 0$, the HPWL calculation simplifies to horizontal span $|x_2 - x_1|$:

Net Placement 1 HPWL Placement 2 HPWL
net1 (A to B) |1 - 0| = 1 |3 - 0| = 3
net2 (B to C) |2 - 1| = 1 |1 - 3| = 2
net3 (C to D) |3 - 2| = 1 |2 - 1| = 1
Total 3 6

Placement 2 requires twice the wire length of Placement 1. Placement 1 aligns physical layout with logical connectivity, minimizing total interconnect length.

Global placement permits temporary cell overlaps during initial optimization phases. Permitting overlaps allows the analytical solver to find lower-wirelength configurations. Subsequent legalization steps eliminate overlaps and snap cells into discrete row sites.

Practice Exercise

Three cells (X, Y, Z) connect through two nets: netA (X to Y) and netB (Y to Z). Evaluate two candidate coordinate sets:

  • Placement 1: X = (0,0), Y = (2,0), Z = (2,3)
  • Placement 2: X = (0,0), Y = (0,3), Z = (2,3)

Calculate total HPWL for each placement. Identify which placement the optimization engine prefers.

Solution

Placement 1:

  • netA: $\Delta x = 2, \Delta y = 0 \implies \text{HPWL} = 2$
  • netB: $\Delta x = 0, \Delta y = 3 \implies \text{HPWL} = 3$
  • Total HPWL = 5

Placement 2:

  • netA: $\Delta x = 0, \Delta y = 3 \implies \text{HPWL} = 3$
  • netB: $\Delta x = 2, \Delta y = 0 \implies \text{HPWL} = 2$
  • Total HPWL = 5

Both configurations yield an identical total HPWL of 5. The placement engine considers both solutions equally viable. Optimization algorithms frequently encounter multiple equivalent solutions in symmetric networks.

The next article examines trade-offs between wire length minimization, routing congestion, and timing closure.

Wirelength, Congestion and Timing →