1 / 30

Basics of Energy & Power Dissipation

Basics of Energy & Power Dissipation. Lecture notes S. Yalamanchili, S. Mukhopadhyay. A. Chowdhary. Outline. Basic Concepts Dynamic power Static power Time, Energy, Power Tradeoffs Activity model for power estimation Combinational and sequential logic. Reading.

robert
Télécharger la présentation

Basics of Energy & Power Dissipation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basics of Energy & Power Dissipation Lecture notes S. Yalamanchili, S. Mukhopadhyay. A. Chowdhary

  2. Outline • Basic Concepts • Dynamic power • Static power • Time, Energy, Power Tradeoffs • Activity model for power estimation • Combinational and sequential logic

  3. Reading • http://en.wikipedia.org/wiki/CPU_power_dissipation • http://en.wikipedia.org/wiki/CMOS#Power:_switching_and_leakage • http://www.xbitlabs.com/articles/cpu/display/core-i5-2500t-2390t-i3-2100t-pentium-g620t.html • http://www.cpu-world.com/info/charts.html

  4. Vdd PMOS Vin Vout NMOS Ground Where Does the Power Go in CMOS? • Dynamic Power Consumption • Caused by switching transitions  cost of switching state • Static Power Consumption • Caused by leakage currents in the absence of any switching activity • Power consumption per transistor changes with each technology generation • No longer reducing at the same rate • What happens to power density? AMD Trinity APU

  5. GATE DRAIN SOURCE BODY n-channel MOSFET GATE DRAIN SOURCE tox L L • Vgs < Vth transistor off - Vth is the threshold voltage • Vgs > Vth transistor on • Impact of threshold voltage • Higher Vth, slower switching speed, lower leakage • Lower Vth, faster switching speed, higher leakage • Actual physics is more complex but this will do for now!

  6. Charge as a State Variable • For computation we should be able to identify if each of the variable (a,b,c,x,y) is in a ‘1’ or a ‘0’ state. • We could have used any physical quantity to do that • Voltage • Current • Electron spin • Orientation of magnetic field • ……… a a x x b b All nodes have some capacitance associated with them c c y y We choose voltageon the capacitor at each node (a,b,c…) to distinguish between a ‘0’ and a ‘1’. Logic 0: Cap is discharged Logic 1: Cap is charged + -

  7. Vdd PMOS Vin Vout NMOS Ground Abstracting Energy Behavior • How can we abstract energy consumption for a digital device? • Consider the energy cost of charge transfer Modeled as an on/off resistance Modeled as an output capacitance

  8. Switch from one state to another To perform computation, we need to switch from one state to another Connect the cap to GND thorough an ON NMOS Logic 1: Cap is charged Logic 0: Cap is discharged + - Connect the cap to VCC thorough an ON PMOS The logic dictates whether a node capacitor will be charged or discharged.

  9. Dynamic Power Voltage VDD VDD iDD VDD CL iDD CL 0 T Time Output Capacitor Discharging Output Capacitor Charging Input to CMOS inverter CL = load capacitance Dynamic power is used in charging and discharging the capacitances in the CMOS circuit.

  10. Vdd Vout Switching Delay Vdd Charging to logic 1

  11. Vdd Vout Switching Delay Vdd Discharging to logic 0

  12. Switching Energy CL is the load capacitance Energy dissipated per transition? Courtesy: Prof. A. Roychowdhury

  13. Power Vs. Energy • Energy is a rate of expenditure of energy • One joule/sec = one watt • Both profiles use the same amount of energy at different rates or power P2 Power(watts) P1 P0 Same Energy = area under the curve Time Power(watts) P0 Time

  14. Dynamic Power vs. Dynamic Energy Voltage VDD VDD iDD VDD CL iDD CL 0 T Time Output Capacitor Discharging Output Capacitor Charging Input to CMOS inverter activity factor = fraction of total capacitance that switches each cycle Dynamic power: consider the rate at which switching (energy dissipation) takes place

  15. Vdd A B Vdd A C C A B B Higher Level Blocks Vdd A A C B B C A B

  16. Implications • What if I halved the clock rate to reduce dynamic energy? • What if I turned off the clock to a block of logic? • What if I lower the voltage? • How can I reduce the capacitance? Combinational Logic input clk cond clk clk

  17. Static Power • Technology scaling has caused transistors to become smaller and smaller. As a result, static power has become a substantial portion of the total power. GATE DRAIN SOURCE Gate Leakage Junction Leakage Sub-threshold Leakage

  18. Energy-Delay Interaction • Delay decreases with supply voltage but energy/power increases Delay Energy Energy or delay Energy-Delay Product (EDP) Power State Target of optimization VDD VDD

  19. Example AMD Trinity A10-5800 APU: 100W TDP

  20. Static Energy-Delay Interaction GATE • Static energy increases exponentially with decrease in threshold voltage • Delay increases with threshold voltage DRAIN SOURCE leakage delay tox leakage or delay L Vth

  21. Optimizing Power vs. Energy Maximize battery life  minimize energy Thermal envelopes  minimize peak power Example:

  22. What About Wires? • We will not directly address delay or energy expended in the interconnect in this class • Simple architecture model: lump the energy/power with the source component Lumped RC Model Resistance per unit length Capacitance per unit length

  23. B i n v e r t O p e r a t i o n C a r r y I n a 0 1 R e s u l t b 0 2 1 L e s s 3 C a r r y O u t ALU Energy Consumption • Can we count the number of transitions in each 1-bit ALU for an operation? • Can we estimate static power? • Computing per operation energy

  24. Closer Look: A 4-bit Ripple Adder A3 B3 A2 B2 A1 B1 A0 B0 Carry Cin S3 S2 S1 S0 • Critical Path = DXOR+4*(DAND+DOR) for 4-bit ripple adder (9 gate levels) • For an N-bit ripple adder • Critical Path Delay ~ 2(N-1)+3 = (2N+1) Gate delays • Activity (and therefore power) is a function of the input data values!

  25. Modeling Component Energy • Per-use energies can be estimated from • Gate level designs and analyses • Circuit-level designs and analyses • Implementation and measurement • There are various open-source tools for analysis • Mentor, Cadence, Synopsys, etc. Hardware Design Circuit-level Estimation Tool Estimation Results: Area, Energy, Timing, etc. Technology Parameters

  26. Example: A Simple Energy Model • We can use a simple model of per-access energy for the architecture components @16nm • Each unit can be accessed multiple times depending on instruction type • An Intel/AMD x86 instruction consume 600pJ ~ 4nJ dynamic energy.

  27. Summary • Two major classes of energy/power dissipation – static and dynamic • Managing energy is different from managing power  leads to different solutions • Technology plays a major role in determining relative costs • Energy of components are often estimated using approximate models of switching activity

  28. Study Guide • Explain the difference between energy dissipation and power dissipation • Distinguish between static power dissipation and dynamic power dissipation • What is the impact of threshold voltage on the delay and energy dissipation? • As you increase the supply voltage what is the behavior of the delay of logic elements? Why? • As you increase the supply voltage what is the behavior of static and dynamic energy and static and dynamic power of logic elements?

  29. Study Guide (cont.) • Do you expect the 0-1 and 1-0 transitions at the output of a gate to dissipate the same amount of energy? • For a mobile device, would you optimize power or energy? Why? What are the consequences of trying to optimize one or the other? • Why does the energy dissipation of a 32-bit integer adder depend on the input values? • If I double the processor clock frequency and run the same program will it take less or more energy?

  30. Glossary • Dynamic Energy • Dynamic Power • Load capacitance • Static Energy • Static Power • Time constant • Threshold voltage • Switching energy

More Related