The V^2 term in the dynamic power consumption equation comes from the physics of charging and discharging a capacitor. In a CMOS (Complementary Metal-Oxide-Semiconductor) transistor, which is the type commonly used in modern CPUs, dynamic power consumption is primarily due to the charging and discharging of load capacitances as the transistor switches states. Here's an explanation of each part of the equation and how V^2 arises:
Load Capacitance (C)
Transistors in a CPU drive various capacitive loads, which include the gate capacitances of other transistors, interconnect capacitances, and any other parasitic capacitances. To change the state of a logic gate, the input capacitance must be charged or discharged, which involves moving charge across the capacitor.
Supply Voltage (V)
The voltage applied to the transistor determines the amount of potential energy required to charge the capacitor. When a transistor switches and the output changes from low to high, the capacitance is charged up to the supply voltage (V). When the output changes from high to low, the capacitor discharges.
Energy to Charge a Capacitor (E)
The energy required to charge a capacitor to a voltage V is given by the formula:
[ E = \frac{1}{2} C V^2 ]
This equation tells us the energy stored in a capacitor when it is charged to a voltage V. The 1/2 factor comes from the integration of charge over voltage as the capacitor is charged, which results in an area under the curve that forms a triangle in the charge-voltage graph.
Dynamic Power Consumption (P_dynamic)
Dynamic power consumption occurs because of the repeated charging and discharging of this capacitance. Every time the transistor switches, energy is consumed to charge the capacitor, and then when the transistor switches off, the energy is dissipated as heat when the capacitor is discharged (usually through a resistor, like an internal transistor resistance). The power used over time for these charging and discharging cycles is given by:
[ P = \frac{Energy}{Time} ]
Since transistors are charging and discharging once every clock cycle, you multiply the consumed energy per transition by the frequency of transitions (f), the switching frequency. Considering that both charging and discharging happen in one full cycle, you might expect the energy calculation to be multiplied by 2, but because half of the energy is used for charging and half for discharging, they effectively cancel each other out.
Combining the energy of one transition and the frequency, you get the equation for dynamic power consumption:
[ P_dynamic = \frac{1}{2} C V^2 f ]
Here, the activity factor (α) is introduced to account for the fact that not all capacitors are charged and discharged in every cycle (some parts of the circuitry may not switch with every clock cycle).
With all this, the final formula for dynamic power consumption is:
[ P_dynamic = \alpha C V^2 f ]
As you can see, the supply voltage squared term (V^2) comes from the energy required to charge and discharge the capacitive loads in the CPU. Since the dynamic power consumption is proportional to the square of the supply voltage, it's a dominant factor in power consumption, which is why lowering the supply voltage can significantly reduce power consumption.