lecture 13
DESCRIPTION
Lecture 13. Today we will Examine how the logic gate model (RC circuit) reacts to a sequence of input changes Relate these results to clocking speed Define propagation delay Introduce digital logic gates Examine how signals propagate through logic circuits. Vin. Vin. Vout. Vout. time. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/1.jpg)
Lecture 13
Today we will Examine how the logic gate model (RC circuit) reacts
to a sequence of input changes Relate these results to clocking speed Define propagation delay Introduce digital logic gates Examine how signals propagate through logic circuits
![Page 2: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/2.jpg)
time
Vin
0
time
Vin
0
Vout
time
Vin
0
Vout
Sequential Switching
What if we step up the input to a logic circuit,
wait for the output to respond,
then bring the input back down to perform the next computation?
![Page 3: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/3.jpg)
We need to wait for the output to reach a recognizable logic level, before changing the input again.
This affects clock speed.
Pulse Distortion
0
1
2
3
4
5
6
0 1 2 3 4 5Time
Vin,
Vo
ut
Pulse width = RC
+
Vout(t)
–
R
Vin(t) + C
0123456
0 5 10 15 20 25Time
Pulse width = 10RC
Vin,
Vo
ut
![Page 4: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/4.jpg)
Example
Suppose that the capacitor is discharged at t=0.
With Vin(t) as shown, find Vout(t).
+
Vout(t)
–
Vin(t) + 1 nF
2.5 k
4 V
5 s
Vin(t)
t
![Page 5: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/5.jpg)
Example
First, Vout(t) will approach 4 V exponentially. We write the equation for this part using:
Initial condition Vout(0) = 0 V
Final value Vout,f = 4 VTime constant RC = (2.5 k)(1 nF) = 2.5 s
Vout(t) = Vout,f + (Vout(0)-Vout,f)e-t/RC
Vout(t) = 4-4e-t/2.5s V for 0 ≤ t ≤ 5 s
![Page 6: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/6.jpg)
Example
Then, at 5 s, Vout(t) will approach 0 V exponentially. We write the equation for this part using:
Initial condition Vout(5 s) = ?
Use equation from previous step, since Vout is continuous.
Vout(5s) = 4-4e-5s/2.5s = 3.44 V
Final value Vout,f = 0 V Time constant RC = (2.5 k)(1 nF) = 2.5 s
Vout(t) = Vout,f + (Vout(t0) -Vout,f)e-(t-t0)/RC
Vout(t) = 3.44e-(t-5s)/2.5s for t > 5 s
![Page 7: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/7.jpg)
00.5
11.5
22.5
33.5
4
0 2 4 6 8 10
Vout(t) =4-4e-t/2.5s for 0 ≤ t ≤ 5 s
3.44e-(t-5s)/2.5s for t > 5 s{
Example
Vin(t)
Vout(t)
t (s)
![Page 8: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/8.jpg)
Design Issues
How long between successive inputs?Need output to reach recognizable logic levelOutput must be at this level long enough to serve as
input to next logic gate How many consecutive logic gates does signal go
through before being “cleaned up” or saved in staticmemory cell?Eventually the signal gets really badBut adding hardware adds cost and delay
![Page 9: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/9.jpg)
Propagation Delay
Suppose an input goes from some initial voltage to some final voltage.
In our examples, the input switch is immediate, but in practice it is not.
Propagation delay is officially defined as:
(time when output is halfway to final value) minus
(time when input is halfway to final value)
![Page 10: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/10.jpg)
Illustration
Using our equation for Vout(t), we can find:
tP,LH
(time when Vout(t) = 2 V, as it goes from 0 V to 4 V) – 0 s
tP,HL
(time when Vout(t) = 1.72 V, as it goes from 3.44 V to 0 V) – 5 s
00.5
11.5
22.5
33.5
4
0 2 4 6 8 10
tP,HL
tP,LH
tP,HL = tP,LH = 1.725 s
![Page 11: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/11.jpg)
Propagation Delay
It’s not a coincidence that the propagation delays were the same.
For a general RC circuit that has an input voltage switch at t = t0,
Vout(t) = Vout,f + (Vout(t0) -Vout,f)e-(t-t0)/RC
The time when Vout(t) is ½ (Vout,f + Vout(t0)) is given by
½ (Vout,f + Vout(t0)) = Vout,f + (Vout(t0) -Vout,f)e-(t-t0)/RC
Simplifying,
½ = e-(t-t0)/RC t = (ln 2)(RC) + t0
The propagation delay, the difference between this time and t0, is
tP = (ln 2)(RC) Depends only on time constant!
![Page 12: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/12.jpg)
Graphing Propagation through Multiple Logic Gates
We will want to examine how these RC-related delays affect a signal going through multiple logic gates.
The math involved in putting an RC output (decaying exponential) into another RC circuit is not so easy.
So, when analyzing a circuit with many logic gates, we will use the following simplification:
Logic Gate0 t
V
tPt
V
→ →
![Page 13: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/13.jpg)
Logic Gates
We have been using a simple RC circuit to model a logic gate.
In each case, the final value of Vout was Vin.
This will not always be true; sometimes, the output will go to logic 0 when the input is logic 1 and vice-versa.
To determine what the final value of a logic gate output will be, we need to learn the types of logic gates.
![Page 14: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/14.jpg)
Logic Gates
A
BC=A·BAND C =
A
BNAND BA
NORA
BBA
A A
ORA
BC=A+B
(EXCLUSIVE OR)
A
BBAC NOT XOR
![Page 15: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/15.jpg)
Logic Functions: Truth Tables
We specify what a logic circuit does by listing the output for each possible input. This listing is called a truth table.
A A
0 1
1 0
NOT
A B A·B A·B
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
AND NAND
![Page 16: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/16.jpg)
Logic Functions: Truth Tables
A B A+B A+B
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
OR NOR
A B A B A B0 0 0 1
0 1 1 0
1 0 1 0
1 1 0 1
XOR XNOR
![Page 17: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/17.jpg)
Timing Diagrams
Now let’s look at how signals propagate through logic gates, taking delay into consideration.
Sketch the output for each logic gate in a more complicated circuit.
A
B
A(A)·B
t1
0
A, B
t1
0
A
tP
t1
0 tP
(A)·B
2tP
Invalid info!
![Page 18: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/18.jpg)
Strategy for Timing Diagrams
To find the output for a particular gate,
Graph the inputs for that gate
Graph the result of the logic gate using the input graphs
Shift right by one tP
![Page 19: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/19.jpg)
Example
D
AB
C
t1
0
A, B, C
![Page 20: Lecture 13](https://reader036.vdocuments.mx/reader036/viewer/2022062810/56815a81550346895dc7ea91/html5/thumbnails/20.jpg)
Example
t
1
0
t
1
0
t
1
0
t
1
0
D
AB
C
tP
tP 2tP
tP
2tP 3tP
B A+C
(B)·C D