Power consumption is another metric I want to estimate before committing to a hardware architecture.
Where does power come from?
RTL power reports commonly separate power into three categories:
- Internal power
- Switching power
- Leakage power
In the terminology commonly taught in class, internal and switching power belong to dynamic power, while leakage power belongs to static power.
Dynamic power
A common first-order model is:
Here, represents switching activity, is capacitance, is voltage, and is operating frequency.
In many active digital circuits, dynamic power is a major part of total power. The quadratic dependence on voltage explains why voltage management can be so important in mobile chips.
Static power
We can express static power approximately as:
where is the leakage current.
Internal, switching, and leakage power
Internal power
Consider an inverter changing between 0 and 1. During the transition, both the pull-up and pull-down networks can briefly conduct, creating a current path from VDD to ground. Cell internal power also includes energy dissipated inside the cell when internal nodes charge and discharge.
As we increase transition activity or operating frequency, this contribution can increase.
Switching power
A gate drives wires and input pins with capacitance. Charging and discharging those capacitive loads requires energy. Power reports categorize this as switching power.
Leakage power
Transistors can draw leakage current even when they are not switching. The combined leakage of the cells contributes to static power.
How I estimate and optimize power
Dynamic power
At the RTL architecture stage, I normally cannot change the operating voltage directly. Instead, I focus on two variables:
- Frequency. If the specification allows it, reducing operating frequency can reduce dynamic power.
- Switching activity. I try to avoid unnecessary transitions. In particular, complex combinational paths can generate glitches as intermediate signals settle.
My general preference is to avoid unnecessarily deep logic and excessive switching. Of course, critical-path length alone does not determine switching activity, and the real power impact must be checked using activity data and implementation tools.
Static power
EDA tools can estimate leakage by summing the leakage contributions of cells using library data.
For early comparisons, I often use area as a rough proxy for static power: a design with substantially more cells often has more leakage. This is only an approximation, since different cell types and threshold-voltage choices can have very different leakage characteristics.
Final thoughts
These rules of thumb are most useful before implementation. Once RTL, synthesis, and physical design are available, the reports give us more realistic values.
During IC design competitions, however, time is limited. We often cannot implement every possible architecture just to compare them. Having even a rough understanding of power, area, and timing helps me decide which approach is worth trying first.