Chapter 6 Low power — how the way you write the contract bears on power
6.1 Why is power so important?
Smartphones, earbuds, sensors, wristwatches — many of today’s chips run on batteries and hold heat in your palm. Power is, alongside speed, the most important constraint of design. Even if the same computation can be done, if the power is double, the battery lasts half. “How little power it runs on” decides whether that chip is usable.
6.2 What does a CPU spend power on?
Roughly, there are two sources. One is dynamic power — a little electricity spent each time a transistor switches 0↔1. The more, and the faster, it switches, the more it spends. Usually this is the lead. The other is static power — electricity that just leaks from the circuit, slowly, merely from being powered on. The larger the circuit, the more it constantly leaks a little.
Dynamic power is, roughly, decided by the multiplication of “circuit size × voltage² × speed (frequency)” — remembering it that way makes things clearer. The figure below shows where each takes effect.
6.3 Where do you move to get low power? — the designer’s levers
Looking at this multiplication and the leakage, where things take effect comes into view. The levers the designer holds are mainly four.
- Make the circuit small and simple. Don’t load parts you don’t need. Keep instructions simple and uniform. Both switching and leakage drop. — Here Chapter 4’s RISC works once more. Simple instructions keep the decoder and control unit light, and the circuit small = low power.
- Lower the voltage. Power takes effect as the square of voltage, so lowering it reduces it greatly. But lower it too far, and it slows, or stops working.
- Lower the speed (frequency). It drops proportionally. Work that isn’t urgent, run it slowly.
- Stop the parts you don’t use. For idle parts, stop the clock / cut the power. In kitchen terms, turn off the fire on an unused stove and let an idle worker rest. Leakage stops too.
6.4 Even with the same contract, a machine can be low-power or high-performance
Here, the preface’s point comes full circle. A smartphone’s low-power core and a PC-class high-performance core, even with the same instruction set (contract), have completely different inner builds. The low-power core is built slow, low-voltage, small, and stops things frequently. The high-performance core pushes with speed and many parts (spending that much power). Share the contract, choose the machine — low power is the clearest appearance of that “choosing.”
That RISC-V is favored in smartphone low-power cores and small battery-run devices is because it can be built simple and small, and suits low power. The “simplicity” and “tollgate-free freedom” seen in Chapters 4 and 5 come into effect here in the form of power.