Professional Documents
Culture Documents
L-6. Tristates & Latches
L-6. Tristates & Latches
L-6. Tristates & Latches
VLSI I: Lecture #5
Tristate &
Sequential Logics
Outline
Strong ‘0’ & ‘1’
Pass Transistors and Transmission Gates
Non-inverting Buffer
Tristate
Restoring and non-restoring Circuit
Multiplexer (MUX)
XOR & XNOR
CMOS Latches & Flip-Flops
1
13-Mar-21
2
13-Mar-21
Tristates
3
13-Mar-21
Tristate Inverter
4
13-Mar-21
5
13-Mar-21
6
13-Mar-21
3 input XOR
For 3 input XOR gates, we can have the HIGH output when odd numbers of inputs
are at HIGH level. So the 3-input OR gate is called as “Odd functioned OR gate”.
3 input XNOR
XNOR operation with more than two inputs is like that. When there are odd
numbers of inputs in high or logical 1 condition, the output will be 0; otherwise, the
output will be 1.
7
13-Mar-21
D Latch
When CLK = 1, latch is transparent
Q follows D (a buffer with a Delay)
CLK CLK
D
Latch
D Q
Q
D Latch Design
Multiplexer chooses D or old Q
CLK
CLK
D Q Q
1
Q D Q
0
CLK CLK
Old Q
CLK
8
13-Mar-21
D Latch Operation
D Flip-flop
When CLK rises, D is copied to Q
At all other times, Q holds its value
a.k.a. positive edge-triggered flip-flop, master-
slave flip-flop
CLK
CLK
D
Flop
D Q
Q
9
13-Mar-21
D Flip-flop Design
Built from master and slave D latches
CLK CLK
CLK QM
D Q
CLK CLK CLK CLK
CLK
Latch
Latch
QM
D Q
CLK CLK
D Flip-flop Operation
Inverted version of D
QM Q
D
CLK = 0
Q -> NOT(NOT(QM))
CLK = 1
CLK
10
13-Mar-21
Race Condition
Back-to-back flops can
malfunction from clock skew
Second flip-flop fires Early
Sees first flip-flop change
and captures its result
Called hold-time failure or
race condition
11
13-Mar-21
Nonoverlapping Clocks
Nonoverlapping clocks can prevent races
As long as nonoverlap exceeds clock skew
Good for safe design
Industry manages skew more carefully instead
2 1
QM
D Q
2 2 1 1
2 1
1
2
12