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.