Power Analysis in VLSI: Dynamic, Leakage, Activity and Fixes

Power analysis in VLSI explained with real ASAP7 data: switching, internal and leakage power, activity from VCD/SAIF, Vt and corner effects, and debug fixes.

Power Analysis in VLSI: Dynamic, Leakage, Activity and Fixes
On this page 11 sections
  1. What is power analysis in VLSI?
  2. The components of power
    1. Switching power
    2. Internal power
    3. Leakage power
  3. Real example: report_power on gcd (ASAP7)
  4. Switching activity: the biggest source of error
  5. Power analysis across the flow
  6. Reducing power: what physical design can change
  7. Debugging a power number that is over budget
  8. Interview questions and answers
  9. FAQ
  10. Summary
  11. References

Timing tells you whether a chip works at the target frequency. Power tells you whether it can be packaged, cooled and powered by its battery or board, and whether the power grid will hold up. Power analysis in VLSI estimates how much power the design uses, where it goes and why, and gives the grid (IR drop and EM) checks the current they need.

This guide explains power analysis from a physical design engineer's point of view: the power components, the formulas behind them, how the tool uses Liberty data and switching activity, and how to debug a power number that is over budget. The numbers come from real open data. We take Liberty tables from the ASAP7 predictive 7 nm library and run real report_power results on the gcd design from OpenROAD-flow-scripts (ORFS) with OpenSTA. Anything that does not come straight from those files or runs is labelled illustrative.

What is power analysis in VLSI?#

Power analysis is a static or simulation-based calculation of the power a gate-level design uses. It needs four things:

  • The design and cell models: the netlist plus Liberty (.lib) files, which hold internal energy and leakage for every cell.
  • Parasitics: the net capacitance from SPEF after routing, or estimates before routing.
  • Constraints: the SDC clocks, which set frequencies and slews.
  • Switching activity: how often each net toggles and how long it sits at 1. This comes from simulation (VCD or SAIF) or from default values propagated through the logic (vectorless).

The result is power per instance, per hierarchy and per group (sequential, combinational, clock, memory, I/O), split into internal, switching and leakage power. Physical design uses it at every stage: early budgets, Vt and sizing choices after placement, clock power after CTS, and the instance currents for IR drop analysis and electromigration checks after routing.

Figure 1. The power components a power report adds up: switching, internal and leakage.

The components of power#

Switching power#

Every time a net goes from 0 to 1, the driver charges the net capacitance (wire plus input pins) from the supply, using energy C·V². Half is stored on the capacitor and half is lost in the pull-up. On the next 1-to-0 transition the stored half is dumped to ground. On average, each transition costs ½·C·V²:

Formula
P_switching = 0.5 x C_net x V^2 x TR TR (toggle rate, transitions/s) = activity (transitions per clock cycle) x f_clock

Watch the definitions. Some textbooks write α·C·V²·f, where α is the probability of a 0-to-1 transition per cycle. That is the same formula with a different α. OpenSTA's set_power_activity -activity is transitions per clock cycle, so a clock net has activity 2 (one rise and one fall per cycle).

Worked example 1 (illustrative net, real ASAP7 voltage and gcd clock): a 3 fF net at 0.77 V with activity 0.1 under the 310 ps gcd clock (3.23 GHz):

TR = 0.1 / 310 ps = 3.23 × 10⁸ transitions/s P = 0.5 × 3 fF × 0.77² × 3.23 × 10⁸ ≈ 0.29 µW

Worked example 2 (illustrative clock leaf net): one clock buffer drives 8 flip-flops. The ASAP7 DFFHQNx1_ASAP7_75t_R CLK pin capacitance is 0.522 fF (real Liberty value), so the pins add 4.18 fF. Add 6 fF of wire (illustrative) for 10.18 fF. With activity 2:

P = 0.5 × 10.18 fF × 0.77² × (2 / 310 ps) ≈ 19.5 µW

That is about 68 times the data net, from one leaf net. This is why the clock network is usually the largest single power consumer, and why clock gating is the first power fix.

Internal power#

Internal power is spent inside the cell: charging its internal nodes, plus short-circuit (crowbar) current while the input edge passes through the region where both the pull-up and pull-down conduct. Liberty stores it as energy per transition in internal_power tables indexed by input transition and output load, separately for rise and fall and for each supply pin (related_pg_pin).

Here is the real ASAP7 RVT FF table for INVx1_ASAP7_75t_R (output rise, VDD). With voltage_unit 1V and capacitive_load_unit 1 fF, the energy unit is fJ:

Data table
Input slew (ps) Load 0.72 fF Load 5.76 fF Load 46.08 fF
5 0.156 0.166 0.164
20 0.152 0.156 0.142
80 0.189 0.169 0.108
320 0.393 0.306 0.174
Figure 2. Internal energy of the ASAP7 INVx1 cell versus input slew (real Liberty table): slow edges cost energy.

Two lessons come straight from the table:

  1. Slow input edges cost energy. At light load, the entry goes from 0.156 fJ at 5 ps to 0.393 fJ at 320 ps (2.5×). Both transistors stay on longer while the slow edge crosses the middle of the supply range. So max transition (DRV) violations are a power problem as well as a timing problem.
  2. A heavier load reduces the short-circuit part. With a large load, the output moves slowly, so less current flows straight through during the input edge. The total still rises, because the load's ½CV² is counted as switching power.

You will also see small negative entries in some tables (the VSS-side table of this inverter has them). They come from how characterization splits supply current between pins and subtracts the energy that charges the load. The tool combines the entries for each transition. Read the tool's report instead of adding pg-pin tables by hand.

Worked example 3 (illustrative, real table entry): this inverter drives 2.88 fF with a 20 ps input slew, at activity 0.1 and 3.23 GHz. The rise entry is 0.154 fJ (VDD), so internal ≈ 0.154 fJ × 3.23 × 10⁸ ≈ 50 nW. Switching on the 2.88 fF output is 0.5 × 2.88 fF × 0.77² × 3.23 × 10⁸ ≈ 275 nW. For a small gate on a real net, switching usually beats internal. If the input slew degrades to 320 ps, the internal number rises to about 127 nW.

Sequential cells also burn internal power on the clock pin every edge, even when D does not change. The ASAP7 DFFHQNx1 Liberty has CLK-pin internal_power entries for the states where D equals Q, a few tenths of a fJ per edge for each supply pin. Multiply by every flop and two edges per cycle, and idle registers still cost real power. Clock gating removes exactly this.

Leakage power#

Leakage flows whenever the supply is on: subthreshold conduction (the main term in most cells), gate tunnelling and junction leakage. Liberty folds them into leakage_power values. These are often state-dependent (when conditions), with a default value for when the state is unknown.

Real values for INVx1 in the ASAP7 libraries (leakage_power_unit 1pW):

Data table
Library / corner Condition Leakage, A=1 Leakage, A=0 Default
RVT, FF 0.77 V, 0 °C 19.4 pW 45.8 pW 32.6 pW
LVT, FF 0.77 V, 0 °C 220.7 pW 328.3 pW 274.5 pW
SLVT, FF 0.77 V, 0 °C 2,833.6 pW 3,760.5 pW 3,297.0 pW
RVT, TT 0.70 V, 25 °C 49.0 pW 53.3 pW 51.2 pW
RVT, SS 0.63 V, 100 °C 961.1 pW 453.2 pW 707.2 pW

Three practical points:

  • Vt flavour moves leakage by orders of magnitude. For the same inverter, SLVT leaks about 100 times as much as RVT. Use low-Vt cells only where timing needs them.
  • Temperature dominates corner selection for leakage. In ASAP7, the "slow" SS corner leaks most because it is characterized at 100 °C. Report leakage at the hot corner, not the fast-process corner by habit. Temperature inversion is a separate effect on delay; leakage still rises with temperature.
  • State matters. If a net sits at 0 for 90% of the time (illustrative), the inverter averages 0.9 × 45.8 + 0.1 × 19.4 = 43.2 pW, not the 32.6 pW default. Duty cycle from simulation (SAIF T0/T1 or VCD) makes leakage more accurate.

Real example: report_power on gcd (ASAP7)#

To show how the pieces add up, we ran OpenSTA (sta from an OpenROAD conda build, 2022) on the ORFS gcd netlist (298 ASAP7 cells: 35 DFFHQx4 flops plus combinational logic) with the ORFS ASAP7 SDC (310 ps clock). We used the FF Liberty files (0.77 V, 0 °C) and no parasitics, so these are pre-layout, pin-capacitance-only numbers:

Code
read_liberty ... ;# ASAP7 RVT FF libraries read_verilog gcd_asap7_netlist.v link_design gcd read_sdc constraint.sdc ;# create_clock -period 310 (ps) set_power_activity -input -activity 0.1 set_power_activity -input_port reset -activity 0 report_power
Code
Group Internal Switching Leakage Total ---------------------------------------------------------------- Sequential 2.0038e-04 1.6319e-05 1.0982e-08 2.1671e-04 64.8% Combinational 8.1226e-05 3.6420e-05 2.3240e-08 1.1767e-04 35.2% ---------------------------------------------------------------- Total 2.8161e-04 5.2739e-05 3.4222e-08 3.3438e-04 100.0% 84.2% 15.8% 0.0%

We then changed one thing at a time:

Data table
Run (real results) Internal Switching Leakage Total
RVT, 310 ps, inputs 0.1, reset 0 281.6 µW 52.7 µW 34.2 nW 334.4 µW
Same, but reset left at default 0.1 301.4 µW 63.7 µW 34.2 nW 365.2 µW
RVT, inputs 0.3, reset 0 528.8 µW 158.2 µW 34.2 nW 687.0 µW
RVT, 620 ps clock 140.8 µW 26.4 µW 34.2 nW 167.2 µW
All cells LVT (310 ps) 300.9 µW 55.0 µW 275.8 nW 356.2 µW
All cells SLVT (310 ps) 349.8 µW 57.5 µW 3,307.9 nW 410.6 µW
Figure 3. Real report_power results for gcd on ASAP7: frequency moves dynamic power, Vt flavour moves leakage.

What the runs show:

  • Activity assumptions change the answer. Leaving reset at the default activity of 0.1 adds 9%. Real resets do not toggle in steady state. Tripling input activity doubled total power (2.05×), not tripled it, because flop clock-pin power does not depend on data activity.
  • Dynamic power scales with frequency, leakage does not. Doubling the period halved internal and switching power exactly. Leakage stayed at 34.2 nW.
  • Vt swaps trade leakage for speed. Going all-LVT raised leakage 8.1×, and all-SLVT about 97×. Dynamic power rose too, mainly internal. At 0 °C leakage is still under 1% here. At a hot corner, or in a large design that idles most of the time, it matters much more.
  • Pre-layout numbers understate switching. With no wire capacitance, internal power dominates (84%). After routing, SPEF adds wire capacitance to every net and the switching share grows. Always quote which stage and which parasitics a number used.

These ratios are for this small block at this corner. Do not treat them as typical for other designs.

Switching activity: the biggest source of error#

The formulas are simple. The activity is where power numbers go wrong.

Data table
Activity source What it contains Strength Weakness
Vectorless (default + propagation) Activity set on inputs or key nets, propagated through cells by probability Fast, available early Ignores real correlation; can be far off
SAIF Per-net toggle count and time at 0 / 1 / X over a window Compact; good average power No time information: no peak or cycle-level power
VCD (or FSDB) Every value change with its time Average, peak and time-based power; window selection Huge files; must pick representative windows

Practical rules:

  • Use the right test. Average power should come from a realistic workload for each mode (idle, typical, peak). A scan or reset-heavy test gives a meaningless number for functional power.
  • Check annotation coverage. RTL simulation names map well to flops and ports after synthesis, but most combinational nets change name, so the tool propagates through them. OpenSTA has report_activity_annotation, and commercial tools have similar reports. A low annotated percentage means your "simulation-based" number is mostly vectorless.
  • Get the scope right. read_vcd -scope tb/dut or read_saif -scope must point at the instance that matches the netlist top. A wrong scope gives you silently zero annotation.
  • Glitches need timing. Zero-delay simulation misses glitch toggles. Gate-level simulation with SDF delays captures them, which matters in deep XOR and arithmetic logic.

Power analysis across the flow#

Data table
Stage Parasitics Activity Use
RTL / synthesis Wire-load or none Vectorless or RTL SAIF Budget, architecture choices
Placement Estimated from placement SAIF propagated Vt mix, sizing, early clock estimate
Post-CTS Estimated + real clock tree SAIF / VCD Clock power, gating efficiency
Post-route sign-off Extracted SPEF per corner Gate-level VCD/SAIF Final power, dynamic IR, EM

Pair each power number with its corner: leakage at the hot corner, dynamic power at the fast or nominal corner with the highest-activity mode, in the matching MMMC view. The instance currents are what dynamic IR analysis puts on the grid built during power planning.

Figure 4. The power analysis flow: inputs, activity propagation, per-instance power and where the results go.

Reducing power: what physical design can change#

Data table
Lever Main component Physical design action
Clock gating Internal + switching (clock) Place ICGs close to their register groups; balance enable timing; see clock gating
Clock tree design Clock switching Fewer, right-sized buffers; shorter clock trees; multi-bit flip-flops
Vt mix Leakage Use RVT/HVT by default; LVT only on failing paths; recover after timing closure
Sizing and slew Internal Fix max transition; downsize over-sized cells with positive slack
Placement Switching Keep high-activity nets short; avoid detours through congestion
Power gating Leakage Switch cells, isolation and retention: power gating
Multi-voltage All (V²) Lower-voltage domains with level shifters

Voltage is the strongest lever because both switching and internal energy scale roughly with V². That decision usually belongs to architecture and the UPF, not late physical design. Any fix that changes cells or wires must be followed by re-timing (setup and hold) and usually an ECO loop.

Debugging a power number that is over budget#

Use this order. It checks the cheapest and most common mistakes first.

Figure 5. Debug flowchart for a power number that is over budget.
  1. Check the inputs first: annotation coverage, activity on static nets (reset, test mode, configuration), SDC clock frequencies and corner libraries. Many power "problems" are setup problems.
  2. Rank by group and hierarchy (report_power -highest_power_instances in OpenSTA) to see whether the clock, a memory or one block dominates.
  3. Clock first: gating coverage, idle registers that still get clocks, buffer count and drive strength.
  4. Then slews, long high-activity nets and the Vt mix, checking leakage at the hot corner.
  5. Re-run timing after every change, and re-run power with the same activity file so results stay comparable.

Interview questions and answers#

1. What are the components of dynamic power? Switching power (½CV² per transition on net capacitance) and internal power (internal node charging plus short-circuit current). Liberty gives internal energy; the tool computes switching from net C, V and toggle rate.

2. Why does a slow input transition increase power? Both the pull-up and pull-down conduct for longer, so short-circuit current flows longer. The real ASAP7 INVx1 table shows the light-load entry rising 2.5× from 5 ps to 320 ps slew.

3. Which corner do you use for leakage? The hot corner, usually at high temperature and the voltage that maximizes leakage. In ASAP7, the SS (100 °C) library shows the highest INVx1 leakage even though SS is the slow process corner.

4. What is the difference between VCD and SAIF? SAIF keeps toggle counts and time at each logic value per net, which is enough for average power. VCD keeps every value change with its time, so you can also compute peak or time-based power.

5. What is vectorless power analysis? Activity is set on inputs (or by a default) and propagated through cells using probabilities. It is fast and available early, but it ignores real signal correlation.

6. Why is clock power so high? The clock toggles twice every cycle, drives the largest capacitance in the design (every flop clock pin plus the tree) and keeps flop internal power going even when data is idle.

7. Does lowering frequency reduce leakage? No. Dynamic power scales with frequency; leakage depends on voltage, temperature, Vt and state. In the gcd run, doubling the period halved dynamic power and left leakage at 34.2 nW.

8. How does power analysis connect to IR drop? Power analysis produces per-instance current (average or time-based), which the IR tool puts on the extracted power grid to calculate voltage drop.

More questions: STA and CTS interview questions.

FAQ#

Is power analysis part of sign-off? Yes. Post-route power with extracted parasitics and representative activity is signed off per mode, and its currents feed IR drop and EM sign-off.

Where does the tool get cell power data? From Liberty: internal_power tables and leakage_power values. Wrong or mismatched libraries give wrong power, just as they give wrong timing. See physical design inputs and the NLDM vs CCS guide for how Liberty tables work.

Can I practise power analysis with open tools? Yes. OpenSTA supports set_power_activity, read_vcd, read_saif and report_power, and ORFS ships ASAP7, Nangate45 and Sky130 libraries with power data. These are for learning, not production sign-off.

Is short-circuit power reported separately? Usually not. It is part of internal power, because Liberty characterization includes it in the internal energy tables.

Summary#

Power analysis adds up three things: switching power (½CV² on every net transition), internal power (energy from Liberty tables per transition, including short-circuit current) and leakage (state-dependent values that rise sharply with low Vt and temperature). Real ASAP7 data shows the main levers: slow slews raise internal energy, SLVT leaks about 100 times as much as RVT, and leakage peaks at the hot corner. The gcd runs show that dynamic power follows frequency and activity, leakage does not, and a careless activity setting changes the answer by about 10%. Get the activity, parasitics and corner right first, then fix clock power, slews, long nets and Vt mix, and hand the instance currents to IR drop and EM analysis.

References#

  • OpenSTA command reference (set_power_activity, read_vcd, read_saif, report_activity_annotation, report_power): https://opensta.readthedocs.io/en/latest/Commands/
  • OpenSTA examples, power analysis: https://opensta.readthedocs.io/en/latest/Examples/
  • OpenROAD-flow-scripts, ASAP7 platform (NLDM Liberty files for RVT, LVT, SLVT; FF, TT, SS): https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/platforms/asap7
  • OpenROAD-flow-scripts, gcd design and ASAP7 constraints: https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/designs
  • L. T. Clark et al., "ASAP7: A 7-nm finFET predictive process design kit," Microelectronics Journal, vol. 53, pp. 105–115, 2016.

Written by

Swasti Pujari

Associate Director, Backend Engineering at CoreIC Technologies, with 15+ years in VLSI Physical Design and backend engineering. Previously Practice Head at UST Global, leading Physical Design, STA, EMIR, DFT, and Physical Verification. Delivered 3nm, 6nm and 7nm projects for AMD, Intel, and Microchip, and published IEEE research on hybrid AI-EDA floorplanning.