← Back to the chapter · Previous detail

Technical detail · Measure-First Optimization

Find the operating-point break-even

For the same 8 Mcycle task, suppose the 48 MHz point needs the core voltage to rise from 1.0 V to 1.3 V. The dynamic term is multiplied by 1.3 x 1.3 = 1.69, so dynamic energy becomes 2.028 mJ while dynamic charge becomes 1.56 mA-s. With the 2 mA fixed overhead on the same 1.3 V rail, the shorter run costs 0.433 mJ (0.333 mA-s), making the fast case 2.461 mJ, worse than the 16 MHz baseline at 2.20 mJ. The useful rule is to race within the constant-voltage band, then stop when voltage scaling crosses the measured break-even point.

That is why the energy-optimal frequency is often a middle value rather than the maximum. As long as you can raise frequency at constant voltage, race to the top and sleep. Once further speed demands more voltage, the square-law dynamic penalty eventually overtakes the linear time saving, and pushing faster costs more energy. Two other conditions must also hold: the device must return to a genuinely low sleep floor after finishing, and the wake and transition overhead must be small compared with the saving. Race-to-sleep is a real and useful strategy, but it is a claim to verify with the voltage curve and the sleep behavior, not a universal law.

← Back to the chapter · Previous detail