Kraftwerk2¶
A guided reading of "Kraftwerk2 – A Fast Force-Directed Quadratic Placement Approach Using an Accurate Net Model", Peter Spindler, Ulf Schlichtmann and Frank M. Johannes, IEEE Transactions on Computer-Aided Design 27(8), August 2008. See references for the link.
In one paragraph. Kraftwerk2 is a force-directed quadratic placer. Like SimPL it measures wire with the Bound2Bound net model and solves one sparse linear system per axis per iteration. Unlike SimPL it never legalizes along the way. Instead it adds two forces to the wire springs. A hold force cancels the wires' pull at the start of each iteration, so the cells would stay exactly where they are. A move force pulls each cell toward a target point downhill on a potential landscape computed from the cell density by Poisson's equation. One linear system then moves every cell a controlled distance out of the crowded regions, and the iterations stop when less than 20% of the cell area overlaps.
Where it sits in the flow. Kraftwerk2 is a global placer. The paper finishes its output with a Tetris-like legalizer and a greedy detailed placer (chapter 4).
Read first¶
Foundations chapters 3, 4 and 5 (quadratic placement, conjugate gradient, Bound2Bound), and chapter 6, which introduces the density, the potential and Poisson's equation that this guide relies on.
Chapters¶
| # | Chapter | What you learn | Paper |
|---|---|---|---|
| 1 | Three forces and one equation | net, hold and move force; the core system \((C + \mathring C)\Delta x = -\mathring C\,\Phi_x\) | §IV, §V-B to V-D, eq. (15)–(30) |
| 2 | Density, potential and target points | supply and demand, Poisson's equation, large modules, the target density | §V-A, §VIII, §IX, eq. (19)–(26), (33)–(34) |
| 3 | Quality control and convergence | the move-force weights, the movement target \(\mu_T\), the overlap \(\Omega\), why it converges, the whole loop | §VI, §VII, §X, eq. (31)–(40) |
| 4 | Final placement, results and complexity | legalization afterwards, Bound2Bound against clique and star, the benchmark results, runtime growth | §III-A, §VI, §XI, Tables I–IV |
flowchart LR
f["Foundations 3, 4, 5, 6"]:::found --> k1["1 · Three forces"]:::simpl
k1 --> k2["2 · Density and potential"]:::simpl
k2 --> k3["3 · Quality control"]:::simpl
k3 --> k4["4 · Results"]:::simpl
classDef io fill:#fef3c7,stroke:#d97706,color:#451a03
classDef stage fill:#ccfbf1,stroke:#0f766e,color:#042f2e
classDef found fill:#e0e7ff,stroke:#4f46e5,color:#1e1b4b
classDef simpl fill:#fce7f3,stroke:#db2777,color:#500724
classDef mov fill:#dbeafe,stroke:#2563eb,color:#172554
classDef fixed fill:#e5e7eb,stroke:#374151,color:#111827
Kraftwerk2 in ten lines.
- Place every cell by minimizing the Bound2Bound wire cost alone, a few times over (initial placement).
- Repeat until the overlap \(\Omega\) is below 20%:
- Rasterize the cells (demand) and the room (supply) into a density grid \(D\).
- Solve Poisson's equation \(\nabla^2\Phi = -D\); each cell's target is its position minus \(\nabla\Phi\).
- Rebuild the Bound2Bound springs \(C\) at the current positions.
- Solve \((C + \mathring C)\Delta x = -\mathring C\,\partial_x\Phi\) and the same for \(y\), by conjugate gradient.
- Move every cell by \(\Delta\).
- Measure the average movement \(\mu\) and scale the move weights by \(\kappa = 1 + \tanh(\ln(\mu_T/\mu))\).
- Measure the overlap \(\Omega\).
- Hand the result to legalization.