Sie sind auf Seite 1von 27

EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G.

Oldham

Physical Limitations of Logic Gates – Week 10a


In a computer we’ll have circuits of logic
gates to perform specific functions
• Computer Datapath: Boolean algebraic
functions using binary variables
• Symbolic representation of functions
using logic gates
• Example:

A C
B
D
•Every node has capacitance and
interconnects have resistance. It takes
time to charge these capacitances.
•Thus, output of all circuits, including
logic gates is delayed from input.
•For example we will define the unit
gate delay
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

UNIT GATE DELAY D


Time delay D occurs between input and output: “computation” is not
instantaneous
Value of input at t = 0+ determines value of output at later time t = D

A
C
B
Logic State

Input (A and B tied together)


1

0 t
0
1 Output
0 t
0 D
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

UNIT GATE DELAY D in ASYNCHRONOUS LOGIC


Time delay D is measured from the last input change

A
C
B
Logic State

Input A
1
Input B
0 t
0
1 Output
0 t
0 D
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Synchronous and Asynchronous Logic


Time delay occurs between input and output in real logic circuits.
Therefore the time at which output appears is difficult to predict… it
depends for example on how many gates you go through.
CK
We will often not distinguish
A asynchronous vs synchronous
C
B logic.
To make logic operations as fast as possible, we need predictability of
signal availability. That is we want to know exactly when “C” is correctly
computed from A and B. This requirement argues for synchronous logic, in
which a clock signal CK actually initiates the computation of C.

Thus in the modified gate, C will be valid precisely one gate delay (D) after
the clock input CK, goes high (A and B are evaluated precisely when CK goes
high, what they do before or after this is irrelevant; CK must go low, then high
again before the NAND gate again looks at A and B).
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

EFFECT OF GATE DELAY


Cascade of Logic Gates

A
B
D

C
Inputs have different delays, but we
ascribe a single worst-case delay
D to every gate
How many “gate delays for shortest path? ANSWER : 2
How many gate delays for longest path? ANSWER : 3
Which path is the important one? ANSWER : LONGEST
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

TIMING DIAGRAMS
Show transitions of variables vs time

A Logic state
B D A, B, C

t
C 0 B
Note B becomes valid one gate
delay after B switches D t
__

__ ( B C )
Note that ( B C )becomes valid two t
gate delays after B&C switch, because D 2 D
the invert function takes one delay and ( A  B)
the NAND function a second. D t
D
No change at t = 3 D t
D 2D3D
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

WHAT IS THE ORIGIN OF GATE DELAY?


Logic gates are electronic circuits that process electrical signals
Most common signal for logic variable: voltage
Specific voltage ranges correspond to “0” or “1”
Volts
Thus delay in voltage rise or fall
(because of delay in charging
3 internal capacitances) will translate
to a delay in signal timing
Range  “1”
2
“Gray area” . . . not allowed
1
Range  “0”
0

Note that the specific voltage range for 0 or 1 depends on “logic


family,” and in general decreases with logic generations
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

VOLTAGE WAVEFORMS (TIME FUNCTIONS)

Inverter input is vIN(t), output is vOUT(t)

inside a large system


v IN ( t ) v OUT ( t )

Vin(t)

t
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

GATE DELAY (PROPAGATION DELAY)


Define  as the delay required for the output voltage to reach 50% of its final
value. In this example we will use 3V logic, so halfway point is 1.5V.
Inverters are designed so that the gate delay is symmetrical (rise and fall)
Vin(t)

1.5

t
Vout(t)
Approximation

1.5

t
D D D
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

EFFECT OF PROPAGATION DELAY ON PROCESSOR SPEED


Computer architects would like each system clock cycle to have
between 20 and 50 gate delays … use 35 for calculations

Implication: if clock frequency = 500 MHz clock period = (5108 s1)1


Period = 2  10 9s = 2 ns (nanoseconds)

Gate delay must be D = (1/35)  Period = (2 ns)/35 = 57 ps (picoseconds)

How fast is this? Speed of light: c = 3  108 m/s

Distance traveled in 57 ps is:

C X D = (3x108m/s)(57x10-12s) = 17 x 10-4 m = 1.7cm


EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

WHAT DETERMINES GATE DELAY?

v IN ( t ) v OUT ( t )

The delay is mostly simply the charging of the capacitors at internal nodes.
We already know how to analyze this.
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Example
The gate delay is simply the charging of the capacitors at
internal nodes.
Oversimplified example using “ideal inverter, II” v OUT ( t )
and 5V logic swing
5
v IN ( t ) v OUT ( t )

Vx
R MODEL
v IN ( t )
v IN ( t ) II v OUT ( t ) 2.5
RC = C
0.1ns 5
vIN vOUT
2.5 Vx
RC = 0.1ns so 0.069ns after vIN
switches by 5V, Vx moves 2.5V t
D = 0.069ns
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Simple model for logic delays


Model actual logic gate as an ideal logic gate fed by an RC
network which represents the dominant R and C in the gate.

Ideal v OUT ( t )
R VX Ideal
v IN ( t ) Logic Logic
gate gate
etc.
C

Actual Logic Gate v OUT ( t )


vIN (t)
vIN vOUT
VX

D = 0. 69 RC t
t
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

How can we build inverters, NAND gates, etc. ?

We need some sort of controlled switch: that is a device in


which a switch opens or closes in response to an input
voltage (a control voltage). If we have a controlled switch it is
an easy matter to build inverters, NAND gates, etc.
For example an electromagnetic relay has a coil producing a
magnetic field causing some contacts to “snap shut” when a
voltage is applied to the coil.
Lets imagine a simple controlled switch, but include in it some
resistance (all real devices have non-zero resistance).
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model


I Output I vs. V
I
R
Input
+ high
Output Input
+ - low
Input V
-

The basic idea: We need a switch which is controlled by an input


voltage. For example: Input V = 0 means the switch is open,
whereas an input voltage of 2V means that the switch is closed
(We will call this a “Type N controlled switch”)
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model

G RN + Type N controlled switch”


Output
+- means switch is closed if
Input
+ input is high. (VG > VS)
- -
S
Type P controlled switch”
G RP + means switch is closed if
Output
+-
+ input is low. (VG < VS)
Input
- -
S

Now lets combine these switches to make an inverter.


EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model of Inverter


- VDD = 2V
SP is closed if
SP VIN < VDD
+
RP
VIN VOUT
+
+
Input RN
+SN is closed if Output
- SN VIN > VSS -
-
VSS = 0V

So if VIN is 2V then SN is closed and SP is open. Hence VOUT is zero.

But if VIN is 0V then SP is closed and SN is open. Hence VOUT is 2V.


EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model of Inverter


VDD = 2V

IF VIN is 2V then SN is
VIN =2V closed and SP is open.
+ Hence VOUT is zero (but
RN VOUT driven through resistance
- RN).
- SS = 0V
V

VDD = 2V
But if VIN is 0V then SP
RP is closed and SN is
VIN =0V open. Hence VOUT is
+
2V (but driven through
VOUT
resistance RP).
-
- SS = 0V
V
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model of Inverter


VDD = 2V

IF there is a capacitance at
VIN =2V the output node (there
+ always is) then VOUT
RN VOUT responds to a change in VIN
- with our usual exponential
- SS = 0V
V form.
VOUT
VDD = 2V
VIN jumps from
2V to 0V
RP
VIN =0V
+ VIN jumps from
VOUT 0V to 2V
- t
- SS = 0V
V
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

Controlled Switch Model of Inverter

We will expand on this model in coming weeks.


The controlled switches will of course be MOS transistors.
The resistance will be the effective output resistance of the MOS
devices.
The capacitance will be the input capacitance of the MOS devices.

But now lets briefly review the energy used in charging and
discharging capacitances so we can start to estimate chip power.
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

ENERGY AND POWER IN CHARGING/DISCHARGING


CAPACITORS – A REVIEW
CASE 1- R t=0
Charging Capacitor initially uncharged
 i (Q=CVDD at end)
V DD C
 RD
Switch moves @ t=0

Power out of "battery" Power into C Power into R


P  i( t ) VDD PC  i( t )VC ( t ) PR  i( t )2 R

Energy out of "battery" Energy into C Energy into R (heat)


 
EC   iVC dt
This must be difference
E   iV DDdt  QVDD
0 0 of E and EC, i.e. 1 CVDD2
 CVDD 2 1 2
 CVDD 2
2
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

ENERGY AND POWER IN CHARGING

R t=0
Capacitor initially uncharged

VDD C (Q=CVDD at end)
 RD
Switch moves @ t=0

Energy out of "battery" Energy into C Energy into R (heat)


1 1
 CVDD
2  CVDD 2 CVDD2
2 2

In charging a capacitor from a fixed voltage source VDD half the


energy from the source is delivered to the capacitor, and half is
lost to the charging resistance, independent of the value of R.
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

ENERGY AND POWER IN CHARGING/DISCHARGING


CAPACITORS
CASE 2- R t=0
discharging Capacitor initially charged
 (Q=CVDD) and discharges.
V DD C
 i RD
Switch moves @ t=0

Power out of battery Power out of C Power into RD


=0 PC  i( t )VC ( t ) PR  i( t )2 R

Energy out of battery Energy out of C Energy into RD (heat)


=0  This must be energy
EC   iVC dt
Power in/out of R 0 initially in C, i.e.
1 1
=0  CVDD 2 CVDD 2
2 2
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

ENERGY IN DISCHARGING CAPACITORS

R t=0

 Capacitor initially charged


VDD C (Q=CVDD) and discharges.
 RD

Switch moves @ t=0

Energy out of C Energy into RD (heat)


1 1
 CVDD 2 CVDD 2
2 2

When a capacitor is discharged into a resistor the energy


originally stored in the capacitor (1/2 CVDD2) is dissipated as heat
in the resistor
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

POWER DISSIPATION in DIGITAL CIRCUITS

Each node transition (i.e. charging or discharging) results in a loss of


(1/2)(C)(VDD)2 How many transitions occur per second? Well if the
node is pulsed up then down at a frequency f (like a clock frequency)
then we have 2f dissipation events.

A system of N nodes being pulsed at a frequency f to a signal voltage


VDD will dissipate energy equal to (N) (2f )(½CVDD2) each second

Therefore the average power dissipation is (N) (f )(CVDD2)


EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

LOGIC POWER DISSIPATION

Power = (Number of gates) x (Energy per cycle) x (frequency)

P = (N) (CVDD2) (f )

N = 107; VDD = 2 V; node capacitance = 10 fF; f = 109 s-1 (1GHz)


P = 400 W! -- a toaster!

Pretty high but realistic


What to do? (N increases, f increases, hmm)
1) Lower VDD
2) Turn off the clock to the inactive nodes

Clever architecture and design!


Lets define a as the fraction of nodes that are clocked
(active). Then we have a new formula for power.
EECS 42 Spring 2001 Lecture 19 Copyright Regents of University of California W. G. Oldham

LOGIC POWER DISSIPATION with power mitigation

Power = (Energy per transition) x (Number of gates) x (frequency) x


fraction of gates that are active (a).
P = a N f CVDD2

In the last 5 years VDD has been lowered from 5V to about 1.5V. It
cannot go very much lower. But with clever design, we can
make a as low as 1 or 10%. That is we do not clock those parts
of the chip where there is no computation being made at the
moment.
Thus the 400W example becomes 4 to 40W, a manageable range
(4W with heat sink, 40W with heat sink plus fan on the chip).

Hot “Heat pipe” – can be


Cu rod Used to remove heat
IC
From an IC better than
Hot
A copper heat conductor
IC Hollow heat pipe

Das könnte Ihnen auch gefallen