Download Power Issues in Embedded Systems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Electrical substation wikipedia , lookup

Pulse-width modulation wikipedia , lookup

Variable-frequency drive wikipedia , lookup

Opto-isolator wikipedia , lookup

Solar micro-inverter wikipedia , lookup

Islanding wikipedia , lookup

Power factor wikipedia , lookup

Standby power wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Voltage optimisation wikipedia , lookup

Wireless power transfer wikipedia , lookup

Power inverter wikipedia , lookup

Power over Ethernet wikipedia , lookup

History of electric power transmission wikipedia , lookup

Electrification wikipedia , lookup

Life-cycle greenhouse-gas emissions of energy sources wikipedia , lookup

Electric power system wikipedia , lookup

Audio power wikipedia , lookup

Distribution management system wikipedia , lookup

Amtrak's 25 Hz traction power system wikipedia , lookup

Buck converter wikipedia , lookup

Power electronics wikipedia , lookup

Mains electricity wikipedia , lookup

Alternating current wikipedia , lookup

Power engineering wikipedia , lookup

Embedded system wikipedia , lookup

Switched-mode power supply wikipedia , lookup

AC adapter wikipedia , lookup

CMOS wikipedia , lookup

Transcript
Outline
The Big Picture
Who’s got the Power?
What’s in the bag of tricks?
17 Sep 2002
Embedded Seminar
2
The Big Picture
Phenomenal increase in processor
speed
3GHz Pentium 4 by the end of the year
Shrinkage in size
Mobility highly desired
BUT battery technology not improving at
the same rate
17 Sep 2002
Embedded Seminar
3
Batteries Not Included
Nickel-based batteries
Nickel-Iron
The first rechargeable, old technology
Nickel-cadmium and Nickel-Metal-Hydride
High energy density – good for motors
Lithium-based batteries
Promising because lithium releases electrons
easily
Problem with battery life, dangerous to handle
Others
Zinc-air batteries – can work a laptop for 10 hours
17 Sep 2002
Embedded Seminar
4
Some Terminologies
Power is the rate of energy consumption
Power ≠ energy
Energy depends on how long you run the thing!
Optimizing for speed = optimizing for energy?
Some researchers look at average power
17 Sep 2002
Embedded Seminar
5
Back to Basics
Gate oxide insulator
Gate
N+
source
 



17 Sep 2002

P-


substrate
N+ drain


N-Channel Metallic Oxide Semiconductor Field
Effect Transistor

6
Back to Basics – ACTION!

Gate oxide insulator
-
Gate

+

N+ source
 

17 Sep 2002
+





P-
N+ drain


substrate



N-Channel Metallic Oxide Semiconductor Field
Effect Transistor
7
CMOS
VDD
P-channel MOSFET
Input:
0 = 0V
1 = +5V
Output
CMOS Inverter
N-channel MOSFET
GND
17 Sep 2002
Embedded Seminar
8
CMOS
VDD
P-channel MOSFET
Input:
0 = 0V
Output = 0
CMOS Inverter
N-channel MOSFET
GND
17 Sep 2002
Embedded Seminar
9
CMOS
VDD
P-channel MOSFET
Input:
1 = +5V
Output = 1
CMOS Inverter
N-channel MOSFET
GND
17 Sep 2002
Embedded Seminar
10
Power in CMOS
1
2
P   C  VDD
 f  N  QSC  VDD  f  N  I leak  VDD  I static  VDD
2
P = total power
VDD = supply voltage
f = clock frequency
N = switching (gate transition per clock cycle)
Ileak = leakage power
Istatic = static power
QSC = quantity of charge carried by short-circuit current per
transistion
17 Sep 2002
Embedded Seminar
11
Power in CMOS
1
2
P   C  VDD
 f  N  QSC  VDD  f  N  I leak  VDD  I static  VDD
2
Switching power
Short-circuit power
Dynamic power
17 Sep 2002
Embedded Seminar
Leakage
power
Static
power
Static power
12
Switching Power
Accounts for most (90%) of power
Two major factor is supply voltage and
frequency
Voltage scaling
Frequency scaling
17 Sep 2002
Embedded Seminar
13
Short Circuit Power
During switching, there is a short period
of time when both gates are ON
 a path from VDD to ground
 power dissipation
17 Sep 2002
Embedded Seminar
14
Leakage Power
Diode leakage
Source (and drain) together with substrate
forms a diode
At times, this diode can be reverse-biased
during which current can leak
Sub-threshold leakage
Even when gate is not completely on,
enough of a channel can form for some
movement of charges from source to drain
17 Sep 2002
Embedded Seminar
15
Static Power
Reduced voltage feeding
Both gates can be “weakly on”
Weak current flow from VDD to ground
Other parasitic current flows
Due to imperfect manufacturing or
operating conditions
17 Sep 2002
Embedded Seminar
16
A Digression – The Problems Of
Scaling down
Latch-up effect
Short-channel effect
Punch-through effect
Hot electron effect
Gate erosion
17 Sep 2002
Embedded Seminar
17
Latch-up Effect
17 Sep 2002
Embedded Seminar
18
Tricks in the bag
Voltage Scaling
Frequency Scaling
Power Gating
17 Sep 2002
Embedded Seminar
19
Voltage Scaling
Lower VDD
For the same circuit and technology, this
leads to higher gate delay
Total delay, , is made up of two
components,  = 1 + 2
1 is a constant
2  VDD
17 Sep 2002
Embedded Seminar
20
Frequency Scaling
Widely used in many processors
Intel SpeedStep on mobile processors
Leads to lower performance
Obvious!
17 Sep 2002
Embedded Seminar
21
Power Gating
Turn off power to parts of the circuit
Can be problematic for circuits with
memory
17 Sep 2002
Embedded Seminar
22
What About Memory?
SRAM
Implemented using CMOS
DRAM
Entirely different technology
Implemented using capacitors
17 Sep 2002
Embedded Seminar
23
SRAM
CMOS SRAM Cell
17 Sep 2002
Embedded Seminar
24
DRAM
Single Transistor DRAM cell
Model or Measure?
Hardware measurement
Measures the amount of current
consumed
Depends on how the circuit is designed
Cannot get core CPU power breakdowns
17 Sep 2002
Embedded Seminar
26
Software Estimation
SPICE simulation
Very slow
PowerMill from Synopsys
CAD Tools
Part of a lot of CAD tool chains, eg.
Synopsys
Architectural based simulation
Eg: SimplePower, WATTCH etc.
17 Sep 2002
Embedded Seminar
27
Putting it Together –
System Power
Reference:
Marc A. Viredaz and Deborah A. Wallach,
“Power Evaluation of a Handheld
Computer: A Case Study”. Compaq
Western Research Lab Technical Report
2001/1. May 2001.
http://research.compaq.com/wrl/techreports/abstracts/2001.1.html
17 Sep 2002
Embedded Seminar
28
Dealing with it
System / OS
Algorithms
Architecture
Circuit/Logic
Technology
17 Sep 2002
Embedded Seminar
29
Technology
Low threshold, low voltage
Various technological issues as
discussed
17 Sep 2002
Embedded Seminar
30
Circuit/Logic
Even within CMOS, there are different
types of logic families that consumes
different amount of energy
Transistor size
Layout
Asynchronous circuits
Clocking consumes a lot of power
Pipeline retiming
17 Sep 2002
Embedded Seminar
31
Architecture / Compiler
Trade off area for power
17 Sep 2002
Embedded Seminar
32
Architecture / Compiler
Trade off area for power
Shorter wires less power
Parallelism and concurrency
Directives to allow compiler to do
Voltage scaling
Frequency scaling
Power gating
One more degree of freedom: activity
17 Sep 2002
Embedded Seminar
33
Algorithms
Low power algorithms
Parallelism and concurrency
A under-research area
17 Sep 2002
Embedded Seminar
34
System / OS
System level power management
Heuristics for transiting between various
power modes
Operating environment sensitive power
management
Battery or plugged-in?
Power-domain specific management
schemes
17 Sep 2002
Embedded Seminar
35
Reducing Processor Power
Energy conscious code generation
Reduce switching
Instruction scheduling
Use of Gray code instead of binary
Low power modes
Instruction compression
Parallelism and concurrency
17 Sep 2002
Embedded Seminar
36
Reducing Memory Power
Reduce memory accesses
All compiler techniques for reducing cache
misses
Use registers
Memory reference compaction
Power aware page allocation
Group active pages together
17 Sep 2002
Embedded Seminar
37
Reducing Peripheral Power
Communication
Different power modes for communicating
devices
Data compression
Adaptation in view of traffic and power
Disk
Spin-down and different power modes
(when?)
Display
17 Sep 2002
Embedded Seminar
38
Summary
Some research opportunities still exist
Especially in algorithms and operating
systems
An integrated approach is needed
All levels of the system cooperating with
one another
17 Sep 2002
Embedded Seminar
39