Definitionintro
Switching activity
Also called toggle rate, activity factor.
The expected number of transitions of a signal per clock cycle, the main unknown in estimating the dynamic power of a circuit.
The switching activity of a node in a synchronous digital circuit is the expected number of its transitions per clock cycle. It is the factor of the dynamic power , and the one factor that depends on what the circuit computes: capacitance, voltage and frequency are known from the design, while the activity depends on the input data and on the logic. Two conventions exist. The rising activity counts only transitions from 0 to 1, which are the ones that draw charge from the supply, and the toggle rate counts all transitions. Both include glitches, the extra transitions within a cycle, unless the zero-delay model is assumed. This page defines the measure; signal probability propagation, transition density, BDD-based estimation and Monte Carlo estimation are methods that compute or estimate it.
Definition
Let be a node of a circuit clocked at frequency , and let and be the numbers of rising and falling transitions of during clock cycle , as random variables of the input data.
Switching activity. The rising activity and the toggle rate of are
when the limits exist. They are numbers of transitions per cycle, not probabilities: a node with glitches can have .
Zero-delay activity. Under the zero-delay model each node takes one value per cycle, , and changes at most once per cycle. If the sequence is stationary, then
Fact 1 (rising is half of all). For a stationary zero-delay sequence, .
Proof. Stationarity gives . The left side is and the right side is , so the two transition probabilities are equal, and each is half of .
The same holds with glitches in the long run, since rising and falling transitions alternate. So , and the two conventions differ by a factor of 2.
Fact 2 (activity, probability and correlation). For a stationary zero-delay sequence with and lag-one correlation coefficient between and ,
Proof. For 0-1 values, . Its expectation is , using that the two means are equal.
So the activity depends on the signal probability and also on how the signal is correlated in time. For temporally independent values () it is , at most . A signal that alternates every cycle has and ; a constant signal or one that changes very rarely has near 1 and near 0.
Examples and non-examples
A random bit. A fresh fair bit each cycle has and , so and .
An AND gate. With two fresh fair inputs, , and values in different cycles are independent, so and . The gate is less active than its inputs because its output is mostly 0.
A binary counter. Bit of a counter that increments every cycle toggles once every cycles, so and . The bits together toggle times per cycle. A Gray code counter toggles exactly one bit per step, so its total activity is 1. Here the activity of each bit is far from : bit 0 has and , because it alternates.
A clock. A clock rises and falls once per cycle, so and . It is the most active net of a design, and clock power is often a large part of the total.
A glitch. For with a delay on the inverter, is always 0 under zero delay, so its zero-delay activity is 0. With the delay, each rising edge of makes a short pulse on , two transitions, so the true activity is , and . Glitches are part of the activity and of the power; see glitch power.
Non-example: signal probability. alone does not fix the activity. A node with can switch every cycle (, ) or almost never ( near 1).
Non-example: toggle coverage. In verification, toggle coverage records whether each bit went from 0 to 1 and back at least once in a test. It is a yes or no measure of test quality, not a rate, and says nothing about power.
Non-example: transition density. The transition density of a signal is its mean number of transitions per second, a rate in continuous time. In a synchronous circuit it is the activity times the clock frequency, but it is defined also for signals without a clock.
Related definitions
- Signal probability. , the fraction of cycles in which the node is 1; signal probability propagation computes it. With temporally independent inputs and zero delay it gives the activity by Fact 2.
- Transition density. The continuous-time rate of transitions, with Najm's propagation rule; see transition density.
- Glitch activity. The part of beyond the zero-delay activity; see glitch power.
- Hamming distance. For a bus, the number of bits that change between consecutive words is the Hamming distance between them, and its mean is the sum of the bit activities. Bus-invert coding lowers it.
- Effective capacitance. , the switched capacitance per cycle, which multiplied by gives the dynamic power.
References
- 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 section on the sources of power dissipation, with the activity factor of rising transitions and its dependence on signal statistics and logic style
- 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 definitions of signal probability and of transition activity, and the overview of the methods that estimate them
- 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 definition of the average switching activity of a gate over pairs of consecutive input vectors
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 | W4 complete |
|
Tag FXC7EF Edit this page History Report an error Markdown