Problemcore
Power grid analysis
Also called IR drop analysis, power distribution network analysis.
Compute the voltage drop at every node of an on-chip power grid, modelled as a large RC or RLC mesh with current loads, statically or over time.
Power grid analysis is the problem of finding the voltage at every node of the on-chip network that carries the supply to the cells, given the wires of the network, the connections to the package, and the currents that the cells draw. The difference between the supply voltage and the voltage that a cell sees is its IR drop. A cell that sees too low a supply is slow and can fail timing, so every chip is checked for its worst drop. The grid is a mesh of metal wires on several layers, with vias between them and from millions to billions of nodes. In the static or DC case the drops solve one sparse linear system , where is a symmetric M-matrix, a weighted Laplacian plus the conductances of the pads. In the dynamic case, capacitors and the inductance of the package add a system of differential equations. The problem is easy in theory, a linear system with a unique solution, and hard in practice only through its size.
In plain words
The supply enters the chip at a few pads and spreads over a fine mesh of metal wires to all the cells. Each wire has a small resistance. Each cell pulls a current out of the mesh. The current flowing through the resistance of the wires makes the voltage sag, a little near the pads and more far from them, the same way water pressure falls along a long hose.
Power grid analysis computes this sag at every point of the mesh. It is a big but well-behaved set of equations: one equation per node, saying that the current flowing in equals the current flowing out.
Definition
Instance (DC). An undirected graph on the grid nodes , with a conductance on each wire or via ; a pad conductance from node to an ideal supply at , which models the path through a pad, a bump and the package; and a load current drawn at each node. Every connected part of the graph has at least one node with .
Output. The node voltages that satisfy Kirchhoff's current law at every node, or the drops , which solve
Write . This is the modified nodal analysis of a circuit of resistors and current sources, with the supply nodes eliminated. The usual question that follows is a check: is below a limit, often 5% to 10% of , and does each wire carry a current density below its electromigration limit?
Instance (transient). Also a capacitance from the nodes to ground, for the cells, the wires and the decoupling capacitors, loads that change over time, and for an RLC grid the inductances of the package. The output is on a time interval, which for an RC grid solves
with the DC drop. With inductors, the inductor currents become extra unknowns, as in modified nodal analysis, and the drop can ring.
IR drop. The IR drop at node is , the loss of supply voltage caused by the currents through the resistance of the grid. On the ground grid the same model gives the rise of the ground voltage, often called ground bounce. The cell sees the sum of the two.
M-matrix. A square real matrix is a nonsingular M-matrix when its entries off the diagonal are , it is nonsingular, and its inverse has no negative entries. This is one of many equivalent definitions.
Discrete harmonic function. A function on the nodes is discrete harmonic at node when , a weighted mean of its neighbors, with the supply counted as a neighbor of value 0 through the weight . Row of divided by reads , so the drop is discrete harmonic at every node without a load, and at a loaded node it is above the mean of its neighbors by .
What is fitted. The wire conductances come from the layout and from the sheet resistance of each metal layer and the resistance of each via, which are measured on test structures and given by the foundry. The pad conductance and the package inductance are fitted to measurements or to a package model. The load currents are estimates, from simulation or from power estimation, and they are the least certain input. The analysis is exact for its inputs. Its answer is as good as these numbers.
Variants
- Static (DC) IR drop. Average or peak currents, one linear solve.
- Dynamic IR drop. Currents over time, a transient solve with the decoupling capacitance and, at the chip level, the package inductance.
- Vectorless verification. The currents are not known, only bounds on them, and the question is the worst drop over all currents that meet the bounds. See vectorless power grid verification.
- Single-node queries. The drop at a few nodes only, for example after a local change.
- Incremental analysis. The grid or the loads change a little, and the old answer should be reused.
- Electromigration check. From follow the current of each wire, , and its current density, which Black's equation and the Blech length turn into a lifetime check.
Examples
Take a chain of 3 nodes. Node 0 has a pad of 20 S, the wires 0 to 1 and 1 to 2 have 10 S each, and the loads are 0.2 A at node 1 and 0.3 A at node 2. Then
By hand: all 0.5 A leaves through the pad, so mV. The wire from 0 to 1 carries 0.5 A, so mV. The wire from 1 to 2 carries 0.3 A, so mV. With V the cell at node 2 sees 0.895 V. Check row 1: . Node 0 has no load, and indeed , the weighted mean of its neighbor and the supply.
A second check shows why the worst drop is at a load. On a mesh of 10 S wires with pads of 50 S at the four corners and loads at the center and two other nodes, the worst drop of 8.25 mV is at the center load. The multigrid-like method page works through this mesh.
Known algorithms
- Direct sparse solvers. A Cholesky decomposition of with a fill-reducing order such as nested dissection. Exact up to rounding, and the factor is reused for every time step of a transient run with a fixed step. Memory limits it on the largest grids.
- Iterative solvers. The conjugate gradient method with a preconditioner, such as incomplete Cholesky or a multigrid cycle. Exact in the limit, with a stopping tolerance.
- Multigrid-like analysis (Kozhaya, Nassif and Najm, 2002). One coarse solve with interpolation, no smoothing. Approximate, with the best error in the energy norm over its coarse space.
- Random walks (Qian, Nassif and Sapatnekar, 2003). The drop at one node as the mean reward of walks. Unbiased, with a random error.
- Algebraic multigrid. Coarse grids chosen from the matrix, for irregular grids.
- Vectorless verification (Kouroussis and Najm, 2003). The worst drop over a set of currents, by one linear program per node.
- Transient analysis. The backward Euler method or the trapezoidal rule, with each capacitor replaced by its companion model, turns each time step into a DC problem with the matrix , which has the same structure. See transient circuit analysis.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Multigrid-like power grid analysis | O(N + M^3) worst | O(N + M^2) extra | deterministicnot exactrecursive | 1 language |
| Random walk power grid analysis | O(N + E + W S log d) expected | O(N + E) extra | randomizednot exactiterative | 1 language |
| Vectorless power grid verification | O(F + K (Z + L)) worst | O(Z + S^2) extra | deterministicexactiterative | 1 language |
Bounds
Theorem. If every connected part of the grid has a pad, then is a symmetric, positive definite, nonsingular M-matrix, so for every the drop exists and is unique. If , then .
Proof. is symmetric because , and its entries off the diagonal are . For any vector ,
If , then is constant on each connected part, and at a pad node of that part, so . So is positive definite, hence nonsingular, and is the unique drop.
For the inverse, let with , and suppose that the least entry is negative. Row gives , since . So , which forces , and then all the inequalities are equalities, so for every neighbor . Repeating this along a path to a pad node of the same part reaches a pad node with the value , where gives a contradiction. So . With this shows that column of is nonnegative, so , and is an M-matrix. Then gives .
The same argument gives a discrete maximum principle: at a node with no load, is at most the largest drop among its neighbors, so the largest drop of the grid is at a node with a load. And more load never lowers any drop, since .
- Polynomial. Gaussian elimination solves the DC problem in time. For a planar mesh, nested dissection gives time and fill. is symmetric and diagonally dominant, so the nearly linear time solvers for such systems (Spielman and Teng, 2004) apply in theory.
- Transient. Each time step of backward Euler with step solves , again a symmetric M-matrix when is diagonal with nonnegative entries.
- What is measured. How fast each solver is on real grids is measured, for example on the IBM power grid benchmarks (Nassif, 2008), which have up to a few million nodes.
Reductions
- Same as symmetric diagonally dominant M-matrix systems. Any symmetric matrix with entries off the diagonal, row sums and a positive row sum in each connected part is the of a grid: put a wire of conductance for each nonzero , and a pad of conductance equal to the row sum. So power grid analysis is exactly the problem of solving such systems.
- Electrical flow. The wire currents of the solution are the flow that carries the loads from the supply with the least energy , by Thomson's principle.
- Random walks. By the discrete harmonic property, is the expected reward of a random walk that moves along wires with probabilities , as on the random walk page, and is its expected number of visits to node from node .
- Worst case to linear programming. With bounds on the currents instead of fixed values, the worst drop at a node is a linear program, since is linear in with nonnegative coefficients.
Applications
- Sign-off. Every chip is checked for its worst static and dynamic drop and for the current densities of its grid before tape-out, and the drop at each cell feeds back into the delay of the cell in static timing analysis.
- Grid design. Wire widths, the number of straps and the pad positions are chosen in a loop that runs the analysis many times.
- Decoupling capacitance. Dynamic analysis tells where to place decoupling capacitors.
- Power gating. The resistance of the sleep transistors adds to the grid, and the drop across them must stay small, as on the power gating page.
References
- Sani R. Nassif, Power grid analysis benchmarks, Proceedings of the Asia and South Pacific Design Automation Conference, 376 to 381, 2008, the model of the grid as resistors, capacitors, inductors and current loads, the DC and transient problems, and the IBM power grid benchmarks
- Joseph N. Kozhaya, Sani R. Nassif and Farid N. Najm, A multigrid-like technique for power grid analysis, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 21(10), 1148 to 1160, October 2002, the formulation of DC and transient power grid analysis as a sparse symmetric positive definite system
- Abraham Berman and Robert J. Plemmons, Nonnegative Matrices in the Mathematical Sciences, SIAM, 1994, the chapter on M-matrices and their equivalent conditions, including the nonnegative inverse
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 YA5KK3 Edit this page History Report an error Markdown