Problemadvanced
Decoupling capacitance allocation
Also called decap placement, decap sizing.
Place and size on-chip decoupling capacitors in free space so that power grid voltage droops meet their limit with the least total decap area.
Decoupling capacitance allocation is the problem of choosing where to put extra capacitors on a chip, between the supply grid and the ground grid, and how large to make each one, so that the short dips of the supply voltage stay within their limit with the least total capacitor area. When a block starts to switch, it draws a burst of current within a fraction of a nanosecond. The grid and the package cannot deliver that current at once, because of their resistance and inductance, so the supply at the block droops. A capacitor near the block holds charge and gives it up during the burst, and the grid refills it afterwards. Decoupling capacitors, or decaps, take area, usually in the free space left between cells or blocks, and the common thin-oxide decaps leak, so they are not free. The problem is a nonlinear optimization over a transient simulation of the grid. A decap cannot fix a drop that persists, only a droop that is short compared with the time it takes the grid to recharge the capacitor.
In plain words
Think of a busy kitchen tap fed by a long, thin pipe. When many people draw water at once, the pressure at the tap falls. A small tank next to the tap smooths this out: it gives water during the rush and refills when the rush is over.
Decaps are these tanks for electric charge. The question is how big each tank should be and where to put it, so that the voltage never falls too far, while using as little chip area as possible. A tank right next to the busy spot helps much more than the same tank far away.
Definition
Instance. A power grid in drop form, as on the power grid analysis page: a conductance matrix , a diagonal matrix of the capacitance that the grid nodes already have from the cells and the wires, and load currents on a time window , for example the current waveforms of the blocks over one clock cycle. A set of candidate sites , each at a grid node, with a largest capacitance that fits in the free space there. A droop limit .
Output. Decap values with such that the drop , the solution of
meets at every node and every time in the window, with the least total . Here is placed on the diagonal at the nodes of the sites. For an RLC grid, the inductances of the package add their currents as extra unknowns.
Decision version. Given also a budget , is there a feasible allocation with ?
What is fitted. The capacitance per unit area of a decap, about for a thin-oxide MOS decap, is a property of the process. Its leakage and its series resistance are fitted to measurements. The current waveforms come from simulation or from estimates of the activity of each block, and they are the least certain input. The grid conductances and the package model are as on the power grid analysis page.
Variants
- Floorplan level. The sites are the white space between the blocks of a floorplan, and the floorplanner can move blocks to make room for decaps near noisy blocks, as in Zhao, Roy and Koh (2002).
- Placement level. The sites are the free space in the rows of a standard-cell layout, as in Su, Sapatnekar and Nassif (2003).
- Soft violation measure. Instead of the hard limit at every node and time, minimize the integral over time and nodes of the droop above the limit, , which is smoother and has a gradient almost everywhere.
- With leakage. Add the leakage of the decaps to the cost, since thin-oxide decaps leak much.
- With package inductance. With RLC models the chip capacitance and the package inductance form a resonant circuit, and too much or too little decap can move the resonance to a frequency at which the loads are strong.
- Frequency domain. Require that the impedance of the grid seen from each load stays below a target over a band of frequencies, a common rule at the board and package level.
- Unknown loads. With bounds on the currents instead of waveforms, as in vectorless verification.
Examples
One node. A node gets its supply through a conductance S, that is . A block at this node draws a step of A for ns, from rest. Without decap the drop jumps to mV. The limit is mV. With a decap at the node, gives
which grows with , so the worst drop is at . The limit holds if and only if
The simple charge rule nF is safe but asks for 39% more, because it ignores the current that the grid supplies during the burst. With an assumed density of 10 fF per square micrometer, 14.4 nF takes about 1.44 square millimeters. If the burst lasted much longer, the drop would reach mV for any finite : a decap only delays the drop.
Location matters. Take a chain: a pad of 10 S at node 1, a wire of 10 S from node 1 to node 2, and a step of 1 A for 1 ns at node 2, with no other capacitance. The DC drops are 100 mV at node 1 and 200 mV at node 2. The limit at node 2 is 120 mV. A decap at node 2 sees the whole path of , so , and it needs nF. A decap at node 1 cannot help with the wire from node 1 to node 2, which always carries the full 1 A and adds 100 mV, so it must hold mV, which needs nF. Putting the decap one wire away from the load costs 8.2 times more capacitance. A backward Euler simulation with 20000 steps and a bisection on gave the same two values to three digits.
Known algorithms
- Charge-based rules. Give each block a decap of from the charge it draws in a cycle. Simple and safe at one node, as the bound below shows, and often wasteful.
- Allocation to a floorplan. Zhao, Roy and Koh (2002) estimate the noise of each block from a transient model of the grid, find the decap each block needs, and feed the demand for white space back into floorplanning.
- Sensitivity-based optimization. Su, Sapatnekar and Nassif (2003) minimize the integral violation measure over the decap sizes. They compute its gradient for all sites at once with one forward and one backward transient run, by the adjoint method, and use it in a gradient-based nonlinear optimizer, a relative of gradient descent.
- Transient analysis inside the loop. Each check of a candidate needs a transient simulation of the grid with its companion model, which fast grid solvers such as the multigrid-like method make cheaper.
Bounds
Fact 1 (decaps cannot fix a persistent drop). If the load is constant, , then as , whatever the decap. So if the DC drop exceeds at some node and the load lasts long enough, no allocation is feasible.
Proof. Let with positive diagonal and . Then . With , , and because is positive definite, as the power grid analysis page proves. So decays to 0 exponentially, and .
Fact 2 (the charge rule is safe at one node). For one node with , and , the drop satisfies . So , with the charge drawn in the window, is sufficient.
Proof. Since and , the solution is nonnegative, and each factor .
- Complexity. We do not know a published proof that the problem is NP-hard, and this page claims none. Each feasibility check is a transient simulation, and the constraint is not convex in in general, so the known methods are local or heuristic.
- What is measured. The reductions of noise and decap area that the papers report are measurements on their own designs and grids. This page does not repeat them.
Reductions
- To nonlinear programming. With the soft violation measure, the problem is a smooth nonlinear program in with box constraints, whose gradient the adjoint method gives.
- One node to a closed form. For one node and a step load, the example gives the least decap exactly.
- From power grid analysis. Every candidate is checked by a transient power grid analysis, so the problem calls that problem many times.
Applications
- Floorplanning and placement. White space is kept near noisy blocks and filled with decap cells after placement.
- Power gating. When a gated block wakes up, the inrush current recharges it and can droop the grid of its neighbors. Decaps on the always-on grid absorb this, as on the power gating page.
- Sign-off. Dynamic IR drop checks include the decap of each layout and report where more decap would help.
References
- Shiyou Zhao, Kaushik Roy and Cheng-Kok Koh, Decoupling capacitance allocation and its application to power-supply noise-aware floorplanning, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 21(1), 81 to 92, 2002, the allocation of decoupling capacitance to the blocks of a floorplan from the noise of a transient grid model, and its use inside floorplanning
- Haihua Su, Sachin S. Sapatnekar and Sani R. Nassif, Optimal decoupling capacitor sizing and placement for standard-cell layout designs, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 22(4), 428 to 436, 2003, the problem with the free space of the rows as sites, the integral of the droop over the limit as the measure, and its gradient by the adjoint method
- Sani R. Nassif, Power grid analysis benchmarks, Proceedings of the Asia and South Pacific Design Automation Conference, 376 to 381, 2008, the RC and RLC grid models with node capacitances used for transient analysis
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 AHRKAH Edit this page History Report an error Markdown