Algorithm Search⌘K

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 GG, a diagonal matrix C0C_0 of the capacitance that the grid nodes already have from the cells and the wires, and load currents i(t)≥0i(t) \ge 0 on a time window [0,tf][0, t_f], for example the current waveforms of the blocks over one clock cycle. A set of candidate sites KK, each at a grid node, with a largest capacitance ckmax⁡c^{\max}_k that fits in the free space there. A droop limit xmax⁡x_{\max}.

Output. Decap values ckc_k with 0≤ck≤ckmax⁡0 \le c_k \le c^{\max}_k such that the drop x(t)x(t), the solution of

(C0+diag(c)) x˙(t)+Gx(t)=i(t),x(0)=G−1i(0),(C_0 + \mathrm{diag}(c))\, \dot{x}(t) + G x(t) = i(t), \qquad x(0) = G^{-1} i(0),

meets xm(t)≤xmax⁡x_m(t) \le x_{\max} at every node mm and every time tt in the window, with the least total ∑k∈Kck\sum_{k \in K} c_k. Here cc 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 AA, is there a feasible allocation with ∑kck≤A\sum_k c_k \le A?

What is fitted. The capacitance per unit area of a decap, about εox/tox\varepsilon_{ox} / t_{ox} 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 i(t)i(t) 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, ∑m∫0tfmax⁡(0,xm(t)−xmax⁡) dt\sum_m \int_0^{t_f} \max(0, x_m(t) - x_{\max})\, dt, 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 g=10g = 10 S, that is 0.1 Ω0.1\ \Omega. A block at this node draws a step of I=2I = 2 A for τ=1\tau = 1 ns, from rest. Without decap the drop jumps to I/g=200I / g = 200 mV. The limit is xmax⁡=100x_{\max} = 100 mV. With a decap cc at the node, cx˙+gx=Ic \dot{x} + g x = I gives

x(t)=Ig(1−e−gt/c),x(t) = \frac{I}{g} \left(1 - e^{-g t / c}\right),

which grows with tt, so the worst drop is at t=τt = \tau. The limit holds if and only if

c ≥ gτ−ln⁡(1−gxmax⁡/I)=10⋅10−9ln⁡2≈14.4 nF.c \ \ge\ \frac{g \tau}{-\ln(1 - g x_{\max} / I)} = \frac{10 \cdot 10^{-9}}{\ln 2} \approx 14.4 \text{ nF}.

The simple charge rule c=Q/ΔV=Iτ/xmax⁡=20c = Q / \Delta V = I \tau / x_{\max} = 20 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 I/g=200I / g = 200 mV for any finite cc: 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 0.2 Ω0.2\ \Omega, so x2(t)=0.2(1−e−5t/c)x_2(t) = 0.2 (1 - e^{-5 t / c}), and it needs c≥5⋅10−9/ln⁡2.5≈5.46c \ge 5 \cdot 10^{-9} / \ln 2.5 \approx 5.46 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 x1(1 ns)≤20x_1(1 \text{ ns}) \le 20 mV, which needs c≥10⋅10−9/ln⁡1.25≈44.8c \ge 10 \cdot 10^{-9} / \ln 1.25 \approx 44.8 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 cc gave the same two values to three digits.

Known algorithms

  • Charge-based rules. Give each block a decap of Q/ΔVQ / \Delta V 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, i(t)=i0i(t) = i_0, then x(t)→G−1i0x(t) \to G^{-1} i_0 as t→∞t \to \infty, whatever the decap. So if the DC drop G−1i0G^{-1} i_0 exceeds xmax⁡x_{\max} at some node and the load lasts long enough, no allocation is feasible.

Proof. Let C=C0+diag(c)C = C_0 + \mathrm{diag}(c) with positive diagonal and y=x−G−1i0y = x - G^{-1} i_0. Then Cy˙=−GyC \dot{y} = - G y. With E(t)=yTCyE(t) = y^T C y, E˙=2yTCy˙=−2yTGy≤−2λmin⁡(G)∣y∣2≤−2(λmin⁡(G)/max⁡mCmm)E\dot{E} = 2 y^T C \dot{y} = -2 y^T G y \le -2 \lambda_{\min}(G) |y|^2 \le -2 (\lambda_{\min}(G) / \max_m C_{mm}) E, and λmin⁡(G)>0\lambda_{\min}(G) > 0 because GG is positive definite, as the power grid analysis page proves. So EE decays to 0 exponentially, and y→0y \to 0. □\square

Fact 2 (the charge rule is safe at one node). For one node with cx˙+gx=i(t)c \dot{x} + g x = i(t), i≥0i \ge 0 and x(0)=0x(0) = 0, the drop satisfies x(t)≤1c∫0ti(s) dsx(t) \le \frac{1}{c} \int_0^t i(s)\, ds. So c≥Q/xmax⁡c \ge Q / x_{\max}, with QQ the charge drawn in the window, is sufficient.

Proof. Since i≥0i \ge 0 and x(0)=0x(0) = 0, the solution x(t)=1c∫0te−g(t−s)/ci(s) dsx(t) = \frac{1}{c} \int_0^t e^{-g (t - s)/c} i(s)\, ds is nonnegative, and each factor e−g(t−s)/c≤1e^{-g(t-s)/c} \le 1. □\square

  • 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 max⁡txm(t)≤xmax⁡\max_t x_m(t) \le x_{\max} is not convex in cc 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 cc 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

  1. 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
  2. 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
  3. 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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml