Inferensys

Glossary

Power Gating

Power gating is a circuit design technique that uses switches to completely cut off power to idle logic blocks, eliminating both dynamic and static (leakage) power consumption.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
POWER-AWARE TINYML

What is Power Gating?

Power gating is a fundamental circuit-level technique for eliminating energy waste in idle hardware components, critical for extending battery life in TinyML and edge computing devices.

Power gating is a circuit design technique that uses header or footer switches to completely cut off the power supply (VDD or VSS) to an idle logic block, core, or subsystem. This action eliminates both dynamic power (from switching activity) and, more importantly, static power or leakage current, which becomes a dominant source of energy waste in deep sub-micron semiconductor technologies. By creating a virtual power rail, it allows unused sections of a chip to be placed in a true zero-power state.

In TinyML deployment, power gating is applied at granular levels, from entire neural network accelerators and microcontroller cores down to individual SRAM banks and peripheral blocks. Implementing it requires careful management of state retention for critical registers and introduces a wake-up latency penalty as the gated domain is repowered and re-initialized. It is often used hierarchically with clock gating for finer-grained control, forming a cornerstone of advanced Dynamic Power Management (DPM) strategies for energy-constrained devices.

CIRCUIT DESIGN TECHNIQUE

Key Characteristics of Power Gating

Power gating is a fundamental technique in ultra-low-power circuit design, using switches to completely cut off power to idle logic blocks. Its implementation involves several distinct architectural and operational characteristics critical for TinyML systems.

01

Header vs. Footer Switches

Power gating is implemented using header switches (PMOS transistors between VDD and the virtual VDD rail) or footer switches (NMOS transistors between the virtual GND rail and actual GND).

  • Header switches are larger for equivalent resistance but simplify design by keeping the ground network intact.
  • Footer switches typically use smaller NMOS transistors, saving area, but require careful management of ground bounce.

The choice affects area, wake-up latency, and noise characteristics of the power-gated domain.

02

Isolation Cells

When a block is powered down, its outputs become floating, potentially causing large leakage currents in connected, still-powered blocks. Isolation cells are mandatory interface logic placed at the outputs of a power-gated domain.

  • They clamp the output to a known, safe logic level (usually zero) during sleep mode.
  • They are always powered by the always-on (AON) domain.
  • Failure to implement them correctly can lead to functional failure and increased power consumption, negating the benefits of gating.
03

State Retention

A key challenge is preserving the internal state (e.g., register values) of a block when power is removed. State retention techniques address this:

  • Retention Registers: Special flip-flops with a secondary, always-powered low-leakage cell that saves state during sleep. They add significant area overhead.
  • Software Save/Restore: The processor saves critical registers to always-on memory before shutdown and restores them on wake-up. This increases latency and software complexity.
  • The choice is a direct trade-off between wake-up latency, area, and static power savings.
04

Wake-Up Latency & In-Rush Current

Turning a block back on is not instantaneous and has a power cost.

  • Wake-Up Latency: The delay from asserting the wake-up signal to the block being fully operational and stable. It is dominated by the time needed to charge the large virtual power network capacitance through the high-resistance power switch.
  • In-Rush Current: A large, instantaneous current spike when the switch first closes, as all discharged capacitances in the block charge simultaneously. This can cause supply voltage droop in other active blocks. Sequenced wake-up of sub-blocks is used to mitigate this.
05

Granularity & Control

Power gating can be applied at different levels of granularity, each with distinct control mechanisms:

  • Fine-Grained (Cell-Level): Power switches are integrated into standard cells. Controlled by synthesis tools, offering very fine control but high area overhead.
  • Coarse-Grained (Block-Level): Large switches gate power to entire macros or processor cores. Controlled by the operating system or firmware via Power Management Unit (PMU) registers. This is the most common approach for TinyML accelerators and MCU peripherals.
  • Always-On Domain: A critical co-design concept. A small portion of the chip (PMU, wake-up logic, critical timers) must remain powered to manage the gating of other domains.
06

Power & Area Trade-Offs

Implementing power gating involves significant engineering trade-offs:

  • Area Overhead: Power switches, isolation cells, retention registers, and additional control wiring can increase die area by 5-15%.
  • Static Power Savings: The primary benefit. By cutting off VDD, subthreshold leakage current is reduced to near zero in the gated block, offering orders of magnitude reduction in idle power.
  • Dynamic Power Impact: No impact during active computation. The energy overhead comes from the switching energy of the power gates and the energy cost of saving/restoring state.
  • Design Complexity: Introduces new verification challenges for power-up/down sequences, signal isolation, and timing closure across multiple power states.
COMPARISON

Power Gating vs. Other Low-Power Techniques

A feature comparison of circuit-level and architectural power management techniques used in microcontroller and TinyML systems.

Feature / MetricPower GatingClock GatingDynamic Voltage & Frequency Scaling (DVFS)Near-Threshold Computing (NTC)

Primary Power Target

Static (Leakage)

Dynamic (Switching)

Dynamic (Switching)

Dynamic & Static

Mechanism

Cuts power supply via header/footer switch

Disables clock signal to idle logic

Dynamically scales voltage & frequency

Operates logic at near-threshold voltage

Power Savings

90% leakage reduction

Eliminates dynamic power in gated blocks

Cubic reduction with voltage (P ∝ V²f)

5-10x energy efficiency gain

Wake-up Latency

High (10s-100s µs)

Low (1-10 clock cycles)

Medium (µs range for V/F transition)

Low (part of normal operation)

State Retention

Requires special retention flops or SRAM

Yes (flops retain state)

Yes

Yes

Area Overhead

High (switches, isolation cells)

Low (clock gating cells)

Low (voltage regulators, PLLs)

Medium (variation-tolerant circuits)

Typical Use Case

Long idle periods (sleep modes)

Fine-grained block idling

Workload-proportional scaling

Extreme energy-constrained always-on logic

Complexity of Control

High (requires power sequencing)

Low (automated by synthesis tools)

Medium (requires OS/runtime governor)

High (requires specialized design & verification)

IMPLEMENTATION PATTERNS

Power Gating in Practice: TinyML and AI Use Cases

Power gating is a critical technique for achieving the extreme energy efficiency required by battery-powered and energy-harvesting AI devices. These cards detail its practical application across TinyML systems.

01

Hierarchical Power Domains in SoCs

Modern System-on-Chips (SoCs) for AI implement fine-grained power domains to isolate subsystems. A typical architecture includes:

  • Always-On (AON) Domain: A tiny, ultra-low-leakage region powering critical wake-up logic and real-time clocks.
  • Sensor Hub Domain: Powers analog front-ends and basic DSP for continuous sensing.
  • Main CPU/ML Accelerator Domain: The largest domain, containing the application cores and neural processing unit (NPU), which is power-gated completely between inference bursts.
  • Peripheral Domains: Isolated power for radios (BLE, Wi-Fi) and memory blocks. This hierarchy allows the system to power-gate the computationally intensive ML block (consuming milliwatts when idle) while the nano-watt AON domain monitors for trigger events.
02

Wake-on-Inference for Always-On Sensors

This pattern enables ultra-low-power ambient intelligence. A simple, always-powered feature extractor (e.g., computing MFCCs for audio or FFT for vibration) runs on a minimal, non-gated circuit. When extracted features cross a threshold, it triggers a power-on signal to the main power-gated domain containing the full neural network for classification.

Example: A smart wake-word detector. The AON domain runs a low-power analog VAD (Voice Activity Detection). Only upon detecting speech does it power-gate-on the DSP and TinyML model for keyword spotting, achieving an average power draw in the tens of micro-watts.

03

Model Partitioning & Layer-Wise Gating

For larger models that cannot fit entirely in an MCU's SRAM, selective power gating of memory banks is used. The model is partitioned into segments. While one segment is active in SRAM for computation, the Flash memory bank holding the next segment is power-gated. Similarly, in multi-core AI accelerators, individual processing elements (PEs) or systolic array tiles can be power-gated when not in use during a layer's computation, exploiting spatial sparsity in the neural network.

04

Integration with DVFS and Clock Gating

Power gating is most effective as part of a holistic power management unit (PMU) strategy. The standard sequence for entering a low-power state is:

  1. Clock Gating: Halt clocks to idle logic (stops dynamic power).
  2. Dynamic Voltage and Frequency Scaling (DVFS): Lower voltage/frequency of the still-powered block.
  3. Power Gating: If the idle period is predicted to be long enough to amortize the wake-up energy penalty, the footer/header switch opens, cutting all power (eliminates leakage). This creates a power state hierarchy where deeper sleep states have longer wake-up latencies but lower leakage.
05

Use Case: Predictive Maintenance on Energy Harvesting

In industrial IoT, a vibration sensor powered by a piezoelectric harvester uses aggressive power gating to operate energy-neutrally.

  • The high-gain analog sensor amp and a tiny feature extraction core (calculating RMS) run from a nano-power domain.
  • Every hour, if the RMS indicates abnormal vibration, it powers on the main Cortex-M4 and SRAM bank.
  • A TinyML anomaly detection model (e.g., autoencoder) runs on the full vibration spectrum.
  • The result is transmitted via a power-gated BLE radio.
  • The entire high-power domain is then shut down, with leakage reduced to pico-amps, allowing operation from intermittent energy sources.
06

Use Case: Battery-Powered Vision AI

A wildlife camera trap using a CNN for animal classification employs temporal power gating to achieve multi-year battery life.

  • A passive infrared (PIR) sensor in the AON domain detects motion.
  • This triggers power to the image sensor, ISP, and SRAM.
  • A frame buffer is filled, then the image sensor is power-gated.
  • The ML accelerator domain is powered on to execute the quantized CNN (e.g., MobileNetV2).
  • Only if classification confidence is high is the cellular modem domain powered on to transmit. This orchestration reduces average system current from ~100mA during active inference to <10µA during sleep, dominated by the PIR and AON domain leakage.
POWER GATING

Frequently Asked Questions

Power gating is a fundamental circuit design technique for eliminating static power consumption in idle logic blocks. These questions address its implementation, trade-offs, and role in TinyML systems.

Power gating is a circuit-level power management technique that uses header or footer switches to completely disconnect a logic block or processor core from its power supply (VDD) or ground (GND) when idle. A header switch is a high-threshold PMOS transistor placed between VDD and the virtual VDD of the block, while a footer switch is a high-threshold NMOS transistor placed between the block's virtual GND and the actual GND. When the block is inactive, the switch is opened, cutting off all power. This eliminates both dynamic power (from switching activity) and, critically, static power or leakage current, which is the current that flows through transistors even when they are nominally 'off' due to sub-threshold and gate oxide leakage. The block is reactivated by closing the switch, restoring power after a brief but non-negligible wake-up latency.

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.