Problemcore
Placement
Also called VLSI placement, standard cell placement.
Assign positions to the cells of a netlist in rows of a chip without overlap, so that wire length, timing and routing congestion are small.
Placement is the step of chip design that gives every cell of a netlist a position on the chip. The cells must lie in the placement region, on the rows and sites of a standard cell layout, and must not overlap each other or the fixed blocks. Among the legal placements, one with small total wire length is wanted, usually measured by the half-perimeter wirelength (HPWL), with limits on the density of cells and on timing. The problem is NP-hard even for unit cells in one row, so every placer in use is a heuristic. This page states the problem; the methods are on the pages of the placers.
In plain words
A chip is like a city block with long, narrow streets of equal width. The parts of the circuit are houses of the same depth but different widths, and each must stand on one street, with no two houses on the same spot. Some parts must talk to each other through wires. Long wires are slow, use power and fill up the space for wiring.
So you want to put the houses that talk to each other close together. But the space is limited, the houses cannot pile up, and a few points on the edge of the block, the pads, are fixed. Finding the best layout is hard even when all houses are the same size and there is only one street.
Definition
Input.
- A netlist: a hypergraph with movable cells, a set of fixed pins (pads, pins of fixed macros), nets and pins in total, and net weights .
- For each cell a width and a height . For standard cells all heights equal the row height , and widths are multiples of the site width . Each pin has an offset inside its cell.
- A placement region , here a rectangle, with rows at heights , , and in each row a set of sites at -coordinates that are multiples of .
- Fixed positions for every , and fixed rectangles (macros, blockages) that no cell may overlap.
Output. A position of the lower left corner of each cell , and possibly an orientation.
Legality.
- Each cell lies inside and outside every blockage.
- Each standard cell sits in a row and on a site: and is a site position.
- No two cells overlap: the open rectangles are pairwise disjoint.
Objective. Minimize the total weighted wirelength
where the HPWL of a net is computed from its pin positions, with pin offsets in the exact form and with every pin at its cell center in the simpler form that global placement uses. The page or tool must say which form it means.
Further constraints that real flows add.
- Density. Divide into bins. In each bin the area of the cells must be at most for a target density .
- Timing. With a delay model and a clock period, every path must meet its required time, or the objective becomes the worst or the total negative slack (see timing-driven placement).
- Routability. The estimated routing demand at each place must not exceed the routing capacity.
Variants
- Global and detailed placement. Global placement finds rough positions that may overlap a little but satisfy the density bound. Legalization moves the cells to legal sites with small displacement, and detailed placement improves a legal placement by local moves. Each stage is a problem in its own right.
- Standard cell, gate array and mixed size. In a gate array all cells are unit sites, which turns placement into an assignment of cells to grid points. Mixed-size placement adds movable macros much larger than a row.
- Other wirelength models. Some placers minimize a quadratic sum over a clique or star model, or a smooth form such as the log-sum-exp wirelength, as a means to reduce HPWL. The problem stays defined by HPWL.
- Fixed order in a row. If the left-to-right order of the cells in each row is given, the remaining problem is continuous: the constraints for neighbors and the bounding box form of HPWL make it a linear program, solvable in polynomial time if positions need not be on sites.
- Floorplanning. Placement of a few large blocks of free shape is floorplanning, with area as a main objective.
Examples
One row, four cells. Sites at in one row; unit cells ; a pad at and a pad at ; pins at the cell centers. The nets, all of weight 1, are
With integer positions, the HPWL of a net is the number of the lines that separate its pins. So the total is the sum over these 5 lines of the number of nets that cross them. The line is always crossed by , and the line by . For the inner lines, let be the set of cells to the left.
| line | best | nets crossing | least count | |
|---|---|---|---|---|
| 1 | , | 2 | ||
| 2 | , or | three of the five | 3 | |
| 3 | , | 2 |
So every placement has . The order meets every line at its least count, so it is optimal with . The order is also optimal. The order has , and the reverse order has 15, the worst of all 24 orders. This line-by-line view is the idea behind min-cut placement.
Density. Place 6 unit cells in a array of bins of area 1 with . A global placement that puts all 6 cells in one bin may have small HPWL, but that bin holds 6 times the allowed area, and a legalizer must move 5 cells out, which makes the wirelength larger.
Known algorithms
None of these has a proved approximation ratio for the placement problem. What each one guarantees is local.
- Min-cut placement (Breuer 1977). Bisects the netlist and the region again and again with a hypergraph partitioner. Heuristic; each step minimizes, approximately, the nets crossing one cut line. With terminal propagation the steps see the cells outside the region.
- Quadratic placement. Minimizes a sum of squared lengths over a clique or star model, a convex problem solved exactly by a sparse linear system. The minimum ignores overlap, so the placer adds spreading forces or partitioning. Heuristic for the placement problem.
- Analytical placement, electrostatics-based placement and SimPL. Minimize a smooth wirelength plus a density penalty by gradient methods. Heuristic; the penalty enforces the density bound only approximately.
- Force-directed placement. Moves cells by spring forces of the nets. Heuristic.
- Simulated annealing placement (TimberWolf). Random swaps and moves with a cooling schedule. Converges in probability only with a logarithmic schedule that no placer uses.
- Legalization and detailed placement. Tetris and Abacus legalization, and independent set matching for detailed placement. Abacus solves the movement problem of one row exactly for a fixed order.
Placers are compared on benchmark suites, such as the ISPD 2005 and 2006 placement contests, by the HPWL of the legal result, scaled by a density penalty in the 2006 contest.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Electrostatics-based placement | O(k (P + n + M^2 log M)) worst · average | O(P + n + M^2) extra | deterministicnot exactiterative | 1 language |
| Force-directed placement | O(P + E + R (T (n + E) + G)) worst · average · best | O(n + E + G) extra | deterministicnot exactiterative | 1 language |
| HeAP FPGA placement | O(k (t (n + Q) + S log^2 S)) total | O(n + Q + S) total | deterministicnot exactrecursive | 1 language |
| Min-cut placement | O(p (n + m + P) log S) worst · average | O(n + m + P) extra | randomizednot exactrecursive | 1 language |
| Quadratic placement | O(P + E + n (n + E)) worst | O(n + E) extra | deterministicnot exactiterative | 1 language |
| SimPL | O(k (t (n + P) + n log n log(K S))) worst · average | O(n + P) extra | deterministicnot exactrecursive | 1 language |
| Simulated annealing placement | O(L M n D + n (n + K) + K S + P) worst · average | O(n + P + K S) extra | randomizednot exactrandomized | 1 language |
Bounds
- NP-hard. The decision version (is there a legal placement with ?) is NP-hard already for unit cells, 2-pin nets and one row, by the linear arrangement reduction below, and also for two blocks of sites, by the bisection reduction. Both use only numbers polynomial in the input size, so the problem is NP-hard in the strong sense.
- In NP for site grids. When every cell must sit on a site of a finite grid, a placement is a certificate of polynomial size, so the decision version is NP-complete.
- Lower bounds used in practice. The cut-line form gives lower bounds: for a fixed cut line, the number of nets crossing it is at least the least cut of the netlist that puts the right numbers of cells on the two sides. Quadratic and spectral relaxations give other bounds. No known bound is tight on large netlists.
Reductions
- From optimal linear arrangement. Given a graph on vertices, make one row of unit sites, a unit cell per vertex and a 2-pin net per edge. Every legal placement fills all sites, so it is a bijection onto , and . This is the cost of a linear arrangement, and minimizing it is NP-complete (Garey, Johnson and Stockmeyer, 1976).
- From minimum bisection. Let have vertices ( even) and edges. Make one row with a left block of unit sites, a blockage of width , and a right block of sites, with a unit cell per vertex and a 2-pin net per edge. A placement with edges across the blockage has . If is the bisection width, the placement built from a minimum bisection has , and any placement with has , which is larger because when . So every optimal placement splits the vertices by a minimum bisection.
- To hypergraph partitioning. Cutting the region by a line and asking which cells go to each side, with a capacity per side, is hypergraph partitioning with fixed vertices for the pads. Min-cut placement uses this relation, but it is not a reduction that keeps the optimum.
Applications
- Every digital chip. Placement sits between floorplanning and routing in the physical design flow. Its result fixes most of the wire length, so it decides much of the delay, power and routability of the chip.
- FPGAs. Placement assigns logic blocks to the fixed slots of an FPGA, a gate array variant.
- Printed circuit boards and packages. Components on a board, with the same wirelength and overlap rules.
- Related layout problems. Arranging nodes in a line or on a grid to keep linked nodes close, as in graph drawing, sparse matrix ordering and the facility layout form of the quadratic assignment problem.
References
- Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, second edition, Springer, 2022, Chapter 4, Global and Detailed Placement (the placement problem, its objectives and constraints, global placement, legalization and detailed placement)
- M. R. Garey, D. S. Johnson and L. Stockmeyer, Some simplified NP-complete graph problems, Theoretical Computer Science 1(3), 237 to 267, 1976, the NP-completeness of minimum bisection and of optimal linear arrangement, the two problems reduced to placement on this page
- Naveed A. Sherwani, Algorithms for VLSI Physical Design Automation, third edition, Kluwer, 1999, the chapter on placement (problem formulation and the classes of placement algorithms)
- M. A. Breuer, Min-cut placement, Journal of Design Automation and Fault-Tolerant Computing 1(4), 343 to 362, 1977, the formulation of placement as repeated partitioning with cut lines
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag YZHF10 Edit this page History Report an error Markdown