Algorithm Search⌘K

Conceptcore

Glitch power

Also called spurious transitions, hazard power.

Power wasted by extra transitions that appear when inputs of a gate arrive at different times, which zero-delay power estimates miss.

Glitch power is the part of the dynamic power of a circuit that is spent on transitions that the logic function does not need. When the inputs of a gate change at different times, because they come through paths with different delays, the gate output can change several times in one clock cycle before it settles. A node whose final value is the same as before may still pulse to the other value and back, and a node that must change once may change three times. Each extra transition charges or discharges the node capacitance like a needed one. These extra transitions are glitches (also called spurious transitions or hazards), and their power is glitch power. Zero-delay estimates of switching activity count at most one transition per node per cycle, so they do not see glitch power at all. In arithmetic circuits such as adders and multipliers, glitches can be a large part of the power.

In plain words

A gate does not wait for all its inputs. It reacts to each input as soon as the change arrives. If one input changes early and another late, the output first reacts to the early one, then to the late one.

Think of an XOR gate whose two inputs both flip. The right answer is no change. But if one flip arrives first, the output flips, and when the second arrives it flips back. The wire switched twice for nothing, and each switch costs energy.

In a long chain of gates, such early and late arrivals are everywhere. The deeper a gate is, and the more its input paths differ in length, the more it glitches. Making the paths equal in length, or cutting long chains with registers, removes most of these useless switches.

The idea

Where the extra transitions come from. Fix a delay model and a pair of consecutive input vectors x→x′x \to x', with all inputs changing at time 0. Each node yy has a waveform y(t)y(t) that starts at fy(x)f_y(x) and ends at fy(x′)f_y(x'). Let NyN_y be its number of transitions. The functional transition count is [fy(x)≠fy(x′)][f_y(x) \ne f_y(x')], which is what the zero-delay model counts. The glitch count of yy is the difference

Gy  =  Ny−[fy(x)≠fy(x′)],G_y \;=\; N_y - [f_y(x) \ne f_y(x')],

and glitch power is 12∑yCyVDD2f⋅E[Gy]\frac{1}{2} \sum_y C_y V_{DD}^2 f \cdot E[G_y] for clock frequency ff. This is a part of the dynamic power, not a different kind of power; this page is about that part only.

Glitches come in pairs. For every node and every pair of vectors, GyG_y is even and nonnegative. Proof. A 0-1 waveform that starts at aa and ends at bb changes value an even number of times if a=ba = b and an odd number if a≠ba \ne b, since each transition flips the value. So Ny≡[a≠b](mod2)N_y \equiv [a \ne b] \pmod 2, and Ny≥[a≠b]N_y \ge [a \ne b]. □\square A glitch on a node whose value does not change is a pulse, two transitions; a node that must change changes 1, 3, 5, ... times. So the energy of one glitch is that of a full charge and discharge, CVDD2C V_{DD}^2.

Balanced paths remove glitches under transport delay. Under the transport delay model (see inertial and transport delay), a gate with delay dd outputs at time tt its function of the input values at time t−dt - d. Suppose the circuit is balanced: for every gate, all its fanins have the same arrival time, so every path from the primary inputs to a node yy has the same delay DyD_y. Then every node makes at most one transition per input change. Proof. By induction in topological order, y(t)=fy(x)y(t) = f_y(x) for t<Dyt < D_y and y(t)=fy(x′)y(t) = f_y(x') for t≥Dyt \ge D_y. For a primary input D=0D = 0 and this is the input step. For a gate y=g(z1,…,zk)y = g(z_1, \ldots, z_k) with delay dd, all zjz_j have the same Dzj=Dy−dD_{z_j} = D_y - d, so at time t−dt - d they all hold their old values if t<Dyt < D_y and all hold their new values if t≥Dyt \ge D_y, which gives y(t)=g(fz1(x),…)=fy(x)y(t) = g(f_{z_1}(x), \ldots) = f_y(x) or fy(x′)f_y(x'). □\square Without balance this fails: the XOR example above has paths of different length to one gate. The proof also needs all inputs to switch at the same instant; inputs that arrive from registers with different delays are paths of different length too.

Inertial delay filters short pulses. A real gate does not pass a pulse that is shorter than about its own delay; the inertial delay model drops such pulses. So the transport model overestimates glitches, especially in deep logic where pulses get narrow. Power simulators therefore use event-driven logic simulation with inertial delays from timing data, or timing simulation, to count glitches.

How estimators treat glitches. A zero-delay estimator, such as zero-delay BDD-based estimation or simulation, gives the functional activity only. The same BDD method with symbolic simulation over time steps gives the exact expected transitions under transport delay, glitches included. Transition density counts each input transition that passes a gate as an output transition, so it includes glitches between independent inputs but assumes they are separated in time.

Examples

The numbers below are exact expected values for fresh uniform random input vectors in every cycle and unit transport delay on every gate, computed by symbolic simulation with BDDs. They are toy circuits, not measurements of real designs, and real gates with inertial delay would filter some of these pulses.

An XOR gate with skew. Let y=a⊕by = a \oplus b, where bb reaches the gate one unit later than aa. With fresh random inputs, aa and bb both flip in a quarter of the cycles. Then yy flips when aa arrives and flips back when bb arrives: a glitch of two transitions while the zero-delay value does not change.

Parity: chain versus tree. The parity of 8 inputs can be computed by a chain of 7 XOR gates, ck=ck−1⊕xkc_k = c_{k-1} \oplus x_k, or by a balanced tree of 7 XOR gates. Under zero delay every gate has activity 1/21/2 in both, 3.5 transitions per cycle in total. Under unit delay:

structure transitions per cycle, zero delay transitions per cycle, unit delay output, unit delay
chain 3.5 14 3.5
tree 3.5 3.5 0.5

In the chain, the input xjx_j with j≥1j \ge 1 reaches gate ckc_k after k−j+1k - j + 1 units, and x0x_0 arrives together with x1x_1, so the new values arrive at ckc_k in kk separate steps, each a flip with probability 1/21/2, and ckc_k makes k/2k/2 transitions on average. The chain spends 4 times the zero-delay power, three quarters of it on glitches. The tree is balanced, so by the theorem above it has no glitches.

Ripple-carry adders. In a ripple-carry adder the carry of bit ii is ready only after the carries below it, so the high sum bits change first on the propagate signal and later on the carry. For a 4-bit adder (17 gates), the zero-delay activity is 1875/256≈7.321875/256 \approx 7.32 transitions per cycle and the unit-delay activity is 617/64≈9.64617/64 \approx 9.64, so glitches are 24 percent of all transitions. The top sum bit makes 79/64≈1.2379/64 \approx 1.23 transitions per cycle where the zero-delay model gives 1/21/2. For a 5-bit adder the share of glitches is 29 percent; it grows with the width, because the high bits get more late carry arrivals.

y=a∧aˉy = a \wedge \bar a. With a delay on the inverter, each rising edge of aa makes a pulse on yy, a hazard in the classic sense. The function is the constant 0, so all of its power is glitch power.

Where it is used

  • Power estimation. Glitches decide how far a zero-delay estimate is from the real power. Sign-off power analysis uses activity from gate-level simulation with timing, and Monte Carlo power estimation can use any such simulator.
  • Path balancing. Inserting buffers or choosing structures so that the inputs of each gate arrive together removes glitches, as in the parity tree. The buffers add capacitance, so balancing pays only where the glitch activity is high.
  • Registers and retiming. A register passes one clean value per cycle, so it stops glitches from spreading. Pipelining or retiming a deep datapath shortens the logic between registers and lowers the glitch power, at the cost of register power.
  • Gate sizing and delay tuning. Gate sizing changes delays and can be used to equalize the arrival times at the inputs of high-activity gates.
  • Operand isolation and guarding. Operand isolation holds the inputs of an unused block steady, which stops both functional and glitch transitions inside it.
  • Arithmetic design. Multipliers, adders and multiply-accumulate units are chosen and laid out with glitches in mind, since their deep, unbalanced carry and partial-product logic produces most of the glitches of a typical datapath.

References

  1. Anantha P. Chandrakasan, Samuel Sheng and Robert W. Brodersen, Low-power CMOS digital design, IEEE Journal of Solid-State Circuits 27(4), 473 to 484, April 1992, the discussion of spurious transitions (glitching) and of how the structure of a circuit, chain or tree, changes them
  2. Abhijit Ghosh, Srinivas Devadas, Kurt Keutzer and Jacob White, Estimation of average switching activity in combinational and sequential circuits, Proceedings of the 29th ACM/IEEE Design Automation Conference, 253 to 259, 1992, the general delay model, under which the estimated activity includes the transitions caused by unequal path delays
  3. Farid N. Najm, A survey of power estimation techniques in VLSI circuits, IEEE Transactions on VLSI Systems 2(4), 446 to 455, December 1994, the discussion of delay models and glitches in power estimation

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)
WritingW4 complete
  • a review of the text: no review record reviews/NQ600F/text.yaml