Lecture 10 - Power and wrap up Flashcards
What is the formula of power, given energy and time?
Power = Energy / Time
Watt = Joule / Sec
What is the definition of power
Power is the rate of which energy is consumed.
Should you optimize for power or energy?
Depends on the system we are designing.
If we are dependent on keeping the system below a temperature to avoid it breaking down, f.example PC or large data centers. Power is important to optimize for, as increased power consumption generates more heat.
In this case, energy is not that important as it is always available. Though it can lead to bigger cost.
For hand held devices, energy is a concern. This is because we have limited energy in form of for example limited battery life. If we minimize energy consumption, we can extend the battery life of the device.
How can a NMOS transistor act as a switch?
. Drain
Gate Body
Source
If the value at the gate is 1, the transistor is closed(ON) and the current can flow between the DRAIN and the SOURCE of the transistor.
The switch is OFF(open) when the gate-value is 0, and there cannot flow a current between the source and drain of the transistor.
What is a PMOS transistor
The opposite of NMOS.
On when a 0 is supplied at the GATE. Off when a 1 is supplied.
How can you build a CMOS Invertor?
. Vdd
. PMOS
V_in. V_out
NMOS
Combine PMOS and a NMOS transistor.
Connect one of their two terminals (DRAIN, SOURCE)
Combine their GATE inputs and take the output from their connected terminals.
When Vin is 0, the PMOS is ON and the curcuit will flow from Vdd to Vout.
When Vin is 1, the NMOS will be on and the value from Voud will be discharged through the NMOS and there will be a logical 0 at the output.
This means that a 0 at input gives 1 at out, and 1 at in gives 0 at out.
How is power consumed in a CMOS Invertor?
When in is 0 or 1 there are no path between Vdd and ground, so no power is consumed, meaning in steady state, there is no power consumption.
Power is only consumed during input/output transitions.
What is dynamic power?
Power consumption by circuit while doing something useful.
Calculated by:
Power = afC(Vdd)²
a: activity factor (how often is input changed)
f: frequency
C: Capacitance
Vdd: Supply voltage
What is static power?
Power consumed by circuit while doing nothing.
This consumption is caused by transistors leaking even when they are in off state.
Ideally, a current will flow between SOURCE and DRAIN when there is a channel between them. But when the device is so small, just a few nano meters, even without a channel, electrons can pass through. This causes an current to occur called Sub-threshold Leakage current.
What should stop the current is an insulator between the s and d, but when the transistors are so small, so are these. Therefor there will also be come electrons moving from the Gate down to the body of the transistor. This is a current called a gate leakage current.
There is also a current between the drain and the body called a junction leakage.
P_static = Vdd * I_static
I_Static: The currents that are flowing
Does static or dynamic power dominate in a circuit?
Depends on the technology nodes.
High technology nodes, the leakage power forms a very small portion.
Leakage grow with technology scaling.
How can you prevent leakage?
Use materials that are less prone to leakage
What hardware techniques can be used to reduce power consumption?
Clock gating
Power gating
What software techniques can be used to reduce power consumption?
Sleep modes
Dynamic voltage and frequency scaling (DVFS)
What is clock gating?
Circuits typically only change state when the clock is active - rising/falling edge of clock.
Idea: When a circuit is not in use, turn off the clock
How can circuit clocks be turned off
Instead of providing the clocksignal directly to a flip flop, pass it through an ANDgate with an enable signal.
This creates a frequency of the power equation to 0. The dynamic power therefor becomes 0
P = afC*Vdd²
Clock gating does not reduce static power, as static power is independant on clock frequency.
What is power gating?
Used to avoid static (and dynamic) consumption.
Idea: Turn off power supply when circuit is not in use.
Use a sleep signal. When sleep signal is 1 for a PMOS device, the device is off.
Sleep transistors are usually made with high technology nodes, as these has lower leakage
What overhead does power gating result in?
Area overhead: Needs extra transistors - sleep transistors
Energy overhead: Sleep transistors needs to be turned on and off. Sleep signal must be created and distributed.
Performance overhead: Sleep unit must be charged and stable for a little while before it can be used.
Power gating should therefore only be implemented when we know it will not be used in a sufficient amount of time. Power saving must be more than the overhead.
How can OS power management be used as a software way to reduce power consumption?
The OS controls the power consumption of the system by using multiple power modes that are supplied by the hardware.
What modes to choose from is dependent on for example:
- how much activity is happening
- whether we are likely to miss deadlines
To save power, the OS can use sleep modes to provide saving. These are similar to power gating,only they are controlled by the OS.
There is an overhead from entering and exiting sleep modes.
There might be multiple levels of sleep modesproviding different trade offs between overhead and savings.
What is dynamic voltage and frequency scaling?
OS can choose among multiple frequencies and voltages.
Reducing frequency and voltage reduces dynamic power
Is energy affected by reducing frequency?
If execution time stays the same, and the frequency is lower, then energy is being saved.
If execution time doubles and power consumption halves, the energy stays the same.
Name something that is effected by power consumption?
Heat generation
Name something that is effected by energy usage?
Battery life
What is a CMOS circuit?
Complimentary metal oxide semiconductor
What are the two mechanisms of power consumption in CMOS circuits
Dynamic: The logic uses most of its power when changing its output value. If inputs and outputs stays unchanged, dynamic power is not consumed.
Static: Leakage, Transistors draws current even when they’re off. Removed only by turning off power supply