Inferensys

Glossary

Power Gating

Power gating is a low-power design technique that completely shuts off power to an idle circuit block using header or footer switches to eliminate both dynamic and static power dissipation.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
LOW-POWER DESIGN TECHNIQUE

What is Power Gating?

Power gating is a fundamental circuit-level technique for managing energy consumption in modern processors and accelerators, particularly critical for NPUs in edge and embedded systems.

Power gating is a low-power design technique that completely shuts off the power supply to an idle digital circuit block using header or footer switches, eliminating both dynamic power and static leakage power dissipation. This is distinct from clock gating, which only prevents switching activity. By creating a power domain with a dedicated switch, the block enters a zero-leakage state, a critical capability for extending battery life in mobile and IoT devices where NPUs operate intermittently.

Implementing power gating requires careful design of power domains, isolation cells to protect signals, and state retention strategies like State Retention Power Gating (SRPG). The Power Management Unit (PMU) controls the switch, managing the latency and energy cost of the power-on/off sequence. This technique is formally specified using standards like the Unified Power Format (UPF) and is a primary method for managing dark silicon, allowing more transistors on a chip without exceeding Thermal Design Power (TDP) limits.

NPU POWER AND THERMAL MANAGEMENT

Key Characteristics of Power Gating

Power gating is a foundational low-power design technique that eliminates both dynamic and static power dissipation in idle circuit blocks. Its implementation involves several critical architectural and control considerations.

01

Header vs. Footer Switches

Power gating is implemented using header switches (PMOS transistors) placed between the VDD supply and the block, or footer switches (NMOS transistors) placed between the block and VSS (ground).

  • Header Switches: Control the power (VDD) rail. Typically larger due to lower hole mobility in PMOS, requiring more area.
  • Footer Switches: Control the ground (VSS) rail. More area-efficient due to higher electron mobility in NMOS.

The choice affects area, wake-up latency, and noise characteristics. Modern designs often use a combination for finer control.

02

Isolation Cells

When a block is powered down, its outputs become floating, potentially causing large leakage currents in connected, active blocks. Isolation cells (or clamp cells) are mandatory logic gates inserted at the outputs of a powered-down domain.

  • They drive a known, safe logic value (e.g., logic 0) to the always-on domain.
  • Prevent crowbar current in downstream logic.
  • Are themselves always powered and are a key part of the power intent specification (e.g., defined in UPF).
03

State Retention

Simply cutting power loses all internal register states. State Retention Power Gating (SRPG) preserves critical flip-flop data during sleep mode.

  • Uses special retention flip-flops with a separate, always-on power supply for the state element.
  • Only the combinational logic and non-retention storage are powered off.
  • Enables a fast, context-preserving wake-up, crucial for processor caches and control units. The retention supply has minimal leakage compared to the full block.
04

Wake-Up and Sleep Latency

Turning a block on/off is not instantaneous. Wake-up latency is the time from asserting the power-on signal to the block being functionally ready. Sleep latency is the time to safely power down.

  • Dominated by the time to charge/discharge the large virtual power rail capacitance through the high-resistance power switch.
  • Directly impacts the minimum idle time for which power gating is beneficial (the break-even time).
  • Requires careful sequencing: enable isolation, save state, then cut power (sleep); restore power, restore state, then disable isolation (wake-up).
05

Power Switch Granularity

The physical distribution and control granularity of power switches are key design parameters.

  • Fine-Grained Power Gating: Many small switches distributed throughout the block. Offers faster, more localized control and reduces peak in-rush current but has higher area overhead and routing complexity.
  • Coarse-Grained Power Gating: Fewer, larger switches at the block perimeter. Lower area overhead but slower wake-up and larger localized current spikes.
  • Multi-Granularity Hierarchies: Modern NPUs use a hierarchy, e.g., coarse switches for large blocks (tensor cores) and fine switches within for execution units.
06

In-Rush Current Management

When a large block is powered on, the simultaneous charging of all internal capacitance causes a massive, instantaneous in-rush current spike.

  • This spike can cause a voltage droop on the shared power grid, disrupting neighboring active circuits (power integrity issue).
  • Managed by staggered wake-up: sequentially enabling banks of power switches with a controlled delay.
  • Requires dedicated control logic in the Power Management Unit (PMU) to sequence the enable signals, trading wake-up time for current slew rate control.
COMPARISON

Power Gating vs. Clock Gating

A technical comparison of two fundamental low-power design techniques for integrated circuits, highlighting their mechanisms, impact, and typical use cases.

Feature / MetricPower GatingClock Gating

Primary Power Savings

Static (Leakage) & Dynamic

Dynamic Only

Fundamental Mechanism

Physically disconnects power supply via header/footer switch

Disables clock signal to idle logic blocks

Power Domain Granularity

Coarse (entire logic blocks, cores)

Fine (individual registers, functional units)

Wake-up Latency

High (10s-1000s of clock cycles)

Low (1-2 clock cycles)

State Retention

Requires special retention registers (SRPG) or loses state

State is preserved in flip-flops

Design Complexity & Overhead

High (power switches, isolation cells, retention, complex sequencing)

Low (integrated into clock tree synthesis)

Control Granularity

Typically software/firmware (OS/PMU) controlled

Typically hardware-automated or compiler-inserted

Typical Use Case

Long idle periods (sleep states, core power-down)

Cycle-by-cycle idle within active operation

Impact on Timing Closure

Significant (requires power-aware static timing analysis)

Minimal (standard flow)

Standard for Specification

Unified Power Format (UPF)/IEEE 1801

Implied by Register-Transfer Level (RTL) code or synthesis directives

LOW-POWER DESIGN

Power Gating in Modern Hardware

Power gating is a fundamental technique for eliminating leakage power in idle circuit blocks by completely shutting off their power supply using header or footer switches.

01

Core Mechanism

Power gating uses header switches (PMOS transistors between VDD and the block) or footer switches (NMOS transistors between the block and GND) to create a virtual power rail. When the switch is open, the block is disconnected from the true power supply, eliminating both dynamic power (from switching) and static leakage power. The key challenge is managing the inrush current when power is restored and ensuring state retention if needed.

02

Implementation Strategies

  • Fine-Grained Power Gating (FGPG): Switches are integrated into standard cells, allowing power-down of individual logic gates. Offers granular control but high area overhead.
  • Coarse-Grained Power Gating (CGPG): Larger switches control power to entire macro blocks or cores. More common, with lower area impact.
  • State Retention Power Gating (SRPG): A critical variant where a small, always-on power island retains register states (using retention flip-flops) while the rest of the logic is powered off, enabling fast wake-up.
03

Design & Verification Flow

Power gating intent is specified using the Unified Power Format (UPF) or Common Power Format (CPF). This defines power domains, isolation cells, level shifters, and retention strategies. The EDA flow must verify:

  • Power Domain Crossing: Signals crossing from a powered-off to a powered-on domain require isolation cells to prevent floating values.
  • Level Shifting: Voltage differences between domains require level shifters.
  • Power Sequencing: Correct order for turning switches on/off to avoid latch-up or corruption.
04

Trade-offs and Challenges

Benefits: Drastic reduction in leakage power, which dominates at advanced process nodes (e.g., <7nm). Essential for meeting Thermal Design Power (TDP) limits. Costs:

  • Area Overhead: 3-10% for switch cells and routing.
  • Performance Penalty: Voltage drop (IR) across the switch.
  • Wake-up Latency: Time to restore power and re-establish stable voltage (microseconds to milliseconds).
  • Rush Current: Requires careful sequencing to avoid supply noise.
05

Use in NPUs and Accelerators

Neural Processing Units exploit extreme parallelism with many identical processing elements (PEs). Power gating is applied at multiple levels:

  • PE Clusters: Idle clusters during low-utilization phases of a neural network layer.
  • On-Chip Memory Banks: SRAM blocks not actively accessed.
  • Specialized Functional Units: (e.g., non-linear activation units) when not in use. This granular control is a key driver for NPU Performance per Watt, allowing them to maintain high peak throughput while minimizing idle power in edge and mobile deployments.
06

System-Level Coordination

Power gating does not operate in isolation. It is coordinated with other power management techniques:

  • Clock Gating: Applied first to halt activity; power gating follows after a determined idle period.
  • Dynamic Voltage and Frequency Scaling (DVFS): Often, frequency is ramped down before power gating a block.
  • Power-Aware Scheduling: The OS or runtime (e.g., via ACPI states) determines when blocks are idle long enough to justify the wake-up latency cost of power gating. This coordination is managed by the Power Management Unit (PMU).
POWER AND THERMAL MANAGEMENT

Frequently Asked Questions

Essential questions and answers about power gating, a fundamental technique for eliminating leakage power in modern processors and neural processing units (NPUs).

Power gating is a circuit-level power management technique that completely shuts off the power supply to an idle or inactive block of logic within an integrated circuit to eliminate both dynamic power and static power (leakage) dissipation. It works by inserting high-threshold voltage transistors, known as header switches (between VDD and the block) or footer switches (between the block and GND), which act as power switches. When a block is not needed, these switches are turned off, disconnecting the block's power rail and reducing its power consumption to near zero. The block's internal state is typically lost unless a complementary technique like state retention power gating (SRPG) is employed.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.