What is Clock gating?

A low-power design technique that stops the clock to idle circuit blocks, avoiding wasted switching power.

Field: IC design flow and EDA

Japanese name: クロックゲーティング

Why stopping the clock saves power

Dynamic power is roughly activity factor times capacitance times voltage squared times frequency. The clock net toggles every cycle and drives every flip-flop's clock pin through a large buffered tree, so the clock network is often one of the biggest single consumers of dynamic power. When a register's contents will not change, because its enable is inactive, clocking it wastes energy in the flip-flops and in the clock branch feeding them. Clock gating stops the clock to such registers or blocks, eliminating that switching while keeping their stored state.

The integrated clock gating cell

Simply ANDing the clock with an enable is risky: if the enable changes while the clock is high, the gated clock can be truncated or produce a glitch. Static timing analysis checks that the enable settles before the clock rises and stays stable until it falls, which in a 2.0 ns, 50% duty cycle clock leaves only the 1.0 ns low phase. Designs therefore use integrated clock gating (ICG) cells, which contain a latch that is transparent only while the clock is low, so the enable is frozen during the high phase. ICGs also include a test-enable input so gated flip-flops are clocked during scan testing.

How tools insert it

In register-transfer level code, a register written only when an enable is true is normally implemented with a multiplexer that feeds the old value back. Synthesis tools recognize this pattern and replace the feedback multiplexers of a group of flip-flops with one ICG, saving both power and multiplexer area. This fine-grained gating is automatic. Coarse-grained gating, controlled by a power manager or software, stops the clock to entire blocks such as an idle accelerator. Gating cells placed nearer the clock root save more power but complicate clock tree timing.

Clock gating vs. power gating

Clock gating removes dynamic power but not leakage, since the block stays powered; in exchange, state is retained and the block resumes on the very next clock edge. Power gating turns off a large switch transistor between the block and its supply, removing nearly all leakage too, but state must be saved or held in retention registers, outputs need isolation cells, and waking up takes time while the supply stabilizes. Chips combine both: clock gating for idle periods of a few cycles, power gating for long ones.

Try it: questions about Clock gating

In a circuit that stops the clock with a two-input AND gate of the clock and an enable signal, what does the STA clock gating check verify?

  1. AThat the enable signal changes at the same time as the rising clock edge
  2. BThat the enable signal changes only while the clock is 1
  3. CThat the enable signal does not change while the clock is 1 and finishes changing while the clock is 0
Show answer and explanation

Answer: C. That the enable signal does not change while the clock is 1 and finishes changing while the clock is 0

With an AND gate, if the enable changes while the clock is 1, the output clock can be cut short or a short pulse (glitch) can appear. STA therefore checks that the enable is stable before the rising clock edge (gating setup) and held until after the falling edge (gating hold). With a 2.0 ns period and 50% duty cycle, enable changes must fit within the 1.0 ns from the falling edge to the next rising edge. Using a clock gating cell with a built-in latch makes this easier to satisfy.

Which correctly compares clock gating and power gating?

  1. ABoth have exactly the same effect and overhead
  2. BClock gating cuts dynamic power and resumes instantly; power gating also cuts leakage but takes time to resume
  3. CPower gating reduces only dynamic power
Show answer and explanation

Answer: B. Clock gating cuts dynamic power and resumes instantly; power gating also cuts leakage but takes time to resume

Clock gating only stops the clock, so state is retained and operation resumes on the next clock, but leakage continues. Power gating cuts power and so also reduces leakage, but needs time to save and restore state and for the supply to stabilize. They are combined: clock gating for idle periods of a few cycles, power gating for long ones.

FAQ

What is the difference between clock gating and power gating?

Clock gating stops the clock to cut dynamic power while keeping the block powered, so it resumes instantly but still leaks. Power gating cuts the supply, removing leakage as well, but requires state saving and a longer wake-up.

Why not gate a clock with a simple AND gate?

If the enable changes while the clock is high, the AND output can produce a shortened pulse or glitch that may clock flip-flops incorrectly. An integrated clock gating cell latches the enable during the low phase to prevent this.

Does clock gating reduce leakage power?

No. It only removes switching power in the gated flip-flops and clock wiring; leakage continues as long as the block is powered.

Questions that mention Clock gating (3)

Clock gating appears in 5 practice questions across 4 topics, including Power Management, Timing analysis and CDC, Logic circuits.

  1. When is the output of a 2-input AND gate 1?
  2. Which low-power design technique stops the clock to unused circuit blocks to reduce wasted power?
  3. Which describes power gating?

Books on IC design flow and EDA Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

Semiconductor, Electronics and Computing Calculators

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary