Clock Gating and the ICG Cell
Clock distribution networks switch on every clock cycle. In modern System-on-Chip (SoC) devices, clock trees account for over thirty percent of total dynamic power dissipation. Clock gating reduces dynamic power by disabling clock toggling to idle register banks. Designers must implement clock gating using glitch-free architectures.
Hazards of Discrete Combinational Clock Gating
Never gate a clock signal manually using a discrete AND gate (assign gated_clk = clk & en;).
If the enable signal transitions while the clock signal is high, the gate output produces a narrow runt pulse.
This runt pulse violates flip-flop minimum pulse-width specifications, triggering timing violations and circuit metastability.
Standard static timing analysis tools assume clean clock trees and cannot catch these asynchronous glitch hazards.
The Integrated Clock Gating Cell Architecture
Standard cell libraries provide specialized Integrated Clock Gating (ICG) cells to solve glitch hazards. An ICG cell integrates an active-low transparent latch ahead of a combinational AND gate:
The latch becomes transparent only when the clock is low.
When the clock transitions high, the latch captures and holds the enable signal stable.
Because the enable input to the AND gate cannot change while the clock is high, the gate output generates clean, full-width clock pulses.
Changes on en during high clock phases remain queued in the latch until the subsequent low clock phase.
Behavioral RTL Clock-Gate Inference
Do not instantiate physical ICG cells manually in portable RTL code. Describe conditional register enables using standard behavioral syntax:
always @(posedge clk or negedge rst_n) begin
if (!rst_n)
data_reg <= {WIDTH{1'b0}};
else if (en)
data_reg <= data_in;
// Omission of else implies holding state: inferred as clock gating
end
During synthesis, EDA compilers recognize registers sharing common clock and enable nets. The compiler automatically consolidates the enable conditions into a single ICG cell driving the shared clock branch:
Driving an entire register bank with one ICG cell suppresses clock toggling across both the flip-flops and the local clock tree buffer network.
Verification Exercise
Explain why an enable signal that toggles on every consecutive clock cycle yields minimal power savings from clock gating.
View Solution
Clock gating saves dynamic power by suppressing clock tree switching transitions. If the enable signal alternates between 1 and 0 on every cycle, downstream clock nets still toggle during half of all cycles. Dynamic power savings depend on sustained idle intervals where the clock remains disabled over consecutive cycles. Rapidly alternating enables provide almost zero dynamic power reduction.
Integrated Clock Gating cells prevent clock glitching through internal latch stages. The next article explores power gating architectures that cut static leakage current during standby states.