In
computer architecture, clock gating is a popular
power management
Power management is a feature of some electrical appliances, especially copiers, computers, computer CPUs, computer GPUs and computer peripherals such as monitors and printers, that turns off the power or switches the system to a low-power ...
technique used in many
synchronous circuit
In digital electronics, a synchronous circuit is a digital circuit in which the changes in the state (computer science), state of memory elements are synchronized by a clock signal. In a sequential logic, sequential digital logic circuit, data ...
s for reducing dynamic
power dissipation
In thermodynamics, dissipation is the result of an irreversible process that affects a thermodynamic system. In a dissipative process, energy ( internal, bulk flow kinetic, or system potential) transforms from an initial form to a final form, ...
(a significant source of power dissipation in digital designs), by removing the
clock signal
In electronics and especially synchronous digital circuits, a clock signal (historically also known as ''logic beat'') is an electronic logic signal (voltage or current) which oscillates between a high and a low state at a constant frequency and ...
when the circuit, or a subpart of it, is idle. Clock gating
saves power by pruning part of the
clock tree
In electronics and especially synchronous digital circuits, a clock signal (historically also known as ''logic beat'') is an electronic logic signal (voltage or current) which oscillates between a high and a low state at a constant frequency and i ...
distribution, at the cost of adding more logic to a circuit.
Pruning the clock turns off portions of the circuitry so that the
flip-flops
Flip-flops are a type of light sandal-like shoe, typically worn as a form of casual footwear. They consist of a flat sole held loosely on the foot by a Y-shaped strap known as a toe thong that passes between the first and second toes and around ...
in them do not switch state, as switching the state consumes power. When not switched, the
switching power consumption is reduced. This technique is particularly effective in systems with significant idle time or predictable periods of inactivity within specific module
Essential details
Digital circuits consume power through multiple mechanisms, typically categorised into dynamic and static components. The equation can describe the average power dissipation in a CMOS circuit:
:
* P
dynamic results from charging and discharging capacitive loads during logic transitions. It is proportional to the switching activity, capacitance, supply voltage squared, and clock frequency.
* P
short arises during signal transitions, when both PMOS and NMOS transistors momentarily conduct simultaneously, creating a brief short-circuit current path between power and ground.
* P
leakage is due to subthreshold and gate leakage currents, which occur even when transistors are off. This component becomes increasingly relevant in deep submicron technologies.
* P
static includes the power consumed by always-on blocks, such as biasing circuits or reference generators, and is present even in standby conditions.
These components collectively define the total power profile of a digital system, and their optimisation is crucial for low-power design.
These components become increasingly critical in modern integrated circuits, especially with technology scaling, where leakage and short-circuit power can constitute a significant portion of the total power budget.
Clock gating is one of several techniques used to reduce the power consumption of digital circuits. It specifically targets the dynamic power component, ''P
dynamic'', by lowering unnecessary switching activity in clock signals. The following equation can approximate the dynamic power:
:
Where:
* ''α'' is the switching activity factor,
* ''C
L'' is the load capacitance,
* ''V
dd'' is the supply voltage,
* ''f'' is the clock frequency.
By turning off the clock signal to portions of the circuit when not in use, clock gating reduces ''α'', thus decreasing overall dynamic power consumption. This differs from the
Power gating, Power gating technique
, which cuts the power supply entirely and simultaneously reduces multiple sources of power dissipation.
Clock gating techniques
Clock-gating techniques typically operate by targeting specific clock regions. To apply these techniques, it is often necessary to modify the registers/(flip-flops) in the circuit so that they can be controlled and disconnected from the clock distribution network, effectively isolating blocks of
combinational logic
In automata theory, combinational logic (also referred to as time-independent logic) is a type of digital logic that is implemented by Boolean circuits, where the output is a pure function of the present input only. This is in contrast to sequ ...
.

External circuits can control clock and activation signals through a technique known as Enabled Flip-Flops, or they can be generated internally using traditional clock gating methods.
When the control signal (CNTRL) is set to 1, the clock-gating circuit turns off the clock by holding it at a fixed logic level, either 0 or 1. One typical implementation uses a CMOS pass-transistor controlled by the inverted control signal.
Clock-gating logic can be added to a design in a variety of ways:
# It can be coded into the
register-transfer level
In digital circuit design, register-transfer level (RTL) is a design abstraction which models a synchronous digital circuit in terms of the flow of digital signals (data) between hardware registers, and the logical operations performed on th ...
(RTL) code as enable conditions that can be automatically translated into clock-gating logic by synthesis tools (fine-grained clock gating).
# It can be inserted into the design manually by the RTL designers (typically as module-level clock gating) by instantiating library-specific integrated clock gating (ICG) cells to gate the clocks of specific modules or registers.
# It can be semi-automatically inserted into the RTL by automated clock-gating tools. These tools either insert ICG cells into the RTL or add enable conditions into the RTL code. These typically also offer sequential clock-gating optimisations.
In general, clock gating applied at a coarser granularity leads to reduced resource overhead and greater power savings.
Any RTL modifications to improve clock gating will result in functional changes to the design (since the registers will now hold different values), which need to be verified.
Other considerations
Sequential clock gating is the process of propagating enable conditions through upstream and downstream sequential elements, allowing additional registers to be clock-gated.
. This technique extends clock gating beyond individual flip-flops to optimise power savings across larger circuit portions.
Chips designed for battery-powered or ultra-low-power applications—such as mobile phones, wearable devices, and
embedded systems
An embedded system is a specialized computer system—a combination of a computer processor, computer memory, and input/output peripheral devices—that has a dedicated function within a larger mechanical or electronic system. It is em ...
—typically simultaneously implement multiple clock gating strategies. Manual clock gating involves software drivers that enable or disable clocks to various idle controllers. In contrast, automatic clock gating uses hardware mechanisms to detect when a clock is unnecessary and dynamically turns it off. These approaches often operate together within the same enable tree. For example, an internal bus or bridge may employ automatic gating, keeping the clock disabled until accessed by the
CPU
A central processing unit (CPU), also called a central processor, main processor, or just processor, is the primary processor in a given computer. Its electronic circuitry executes instructions of a computer program, such as arithmetic, log ...
or a
DMA engine. In contrast, peripherals on that bus might be permanently gated off if unused in a particular board design.
See also
*
Power gating
Power gating is a technique used in integrated circuit
An integrated circuit (IC), also known as a microchip or simply chip, is a set of electronic circuits, consisting of various electronic components (such as transistors, resistors, and ...
*
Glitch removal
Glitch removal is the elimination of Glitch#Electronics glitch, glitchesunnecessary signal transitions without functionalityfrom electronic circuits. Power dissipation of a gate occurs in two ways: static power dissipation and dynamic power dissip ...
*
Dynamic frequency scaling
Dynamic frequency scaling (also known as CPU throttling) is a power management technique in computer architecture whereby the frequency of a microprocessor can be automatically adjusted "on the fly" depending on the actual needs, to conserv ...
*
Autonomous peripheral operation
In computing, autonomous peripheral operation is a hardware feature found in some microcontroller architectures to off-load certain tasks into embedded autonomous peripherals in order to minimize latencies and improve throughput in hard real-ti ...
References
{{DEFAULTSORT:Clock Gating
Clock signal
Electronic design automation