4740 - Lecture18 Latches and Flipflops
4740 - Lecture18 Latches and Flipflops
ECE4740:
Digital VLSI Design
Lecture 18: Latches and flipflops
646
Latches
647
1
6/8/2018
• (C is a metastable
B
operation point)
Vi1 = Vo2
648
Bistable circuits
• Cross-coupling of Vi1
two inverters results
in bistable circuit Vi2
(=two stable states)
2
6/8/2018
650
clk clk
In In
Out Out
3
6/8/2018
MUX–based latches
• Change stored value by cutting feedback
feedback feedback
0 1
Q Q
D 1 D 0
CLK CLK
!CLK
input sampled
D (transparent mode)
CLK
CLK
D Q !CLK
4
6/8/2018
CLK !Q • Reduced
noise margin
D Q
• Higher
leakage
currents:
threshold
drop!
!CLK WHY?
654
B
B B
clk
5
6/8/2018
N latch
P latch
Logic B
Logic A
CLK
N latch
P latch
Logic A
6
6/8/2018
Edge-triggered bistables
Flip-flops
658
D Q
0
1 Q CLK
1
QM
D 0
CLK CLK
CLK
Slave
Master D
7
6/8/2018
MS ET FF implementation
master slave
T2 I5 T4 I6 Q
I2 I3
QM
T1 I4 T3
D I1
0
CLK
1
MS ET FF implementation (cont’d)
master slave
T2 I5 T4 I6 Q
I2 I3
QM
T1 I4 T3
D I1
1
CLK
0
clock load is 8!
CLK=1 master hold; slave transparent
661
8
6/8/2018
Timing properties of MS ET FF
Setup time
663
9
6/8/2018
Propagation delay
delay already
included in tsetup
664
665
10
6/8/2018
2.0 QM 2.0 I 2 2 T2
1.5 1.5 Q
Volts
Volts
CLK CLK
D D
1.0 1.0
I 2 2 T2 QM
0.5 0.5
0.0 0.0
2 0.5 2 0.5
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
time (nsec) time (nsec)
CLK
tsetup
D ✓
Q ?
tpd,ff tpd,ff
667
11
6/8/2018
CLK
Q ? ?
tpd,ff tpd,ff
668
1.5
Volts
1 tpd,ff,LH tpd,ff,HL
0.5
-0.5
same procedure:0 0.5 1 1.5 2 2.5
shift input D until Time (ns)
circuit fails
669
12
6/8/2018
D T1 QM T2 Q
I2 I4
!CLK CLK
D T1 QM T2 Q
I2 I4
!CLK CLK
reverse conduction
671
13
6/8/2018
672
CLK CLK
!CLK !CLK
673
14
6/8/2018
P2 P4
!CLK CLK
B P4
P2
on
!CLK CLK
675
15
6/8/2018
P2 P4
off
!CLK CLK
Pseudo-static two-phase ET FF
CLK1 CLK2 Q
P1 P3 I3 I4 !Q
D I1 I2
P2 P4
CLK2 CLK1
dynamic
master transparent storage
slave hold
16
6/8/2018
CLK
tnon_overlap
CLK1
CLK2
678
679
17
6/8/2018
SR latch basics
input high sets
opposite output high S R Q !Q
S 0 0 Q !Q memory
!Q
1 0 1 0 set
0 1 0 1 reset
Q
R 1 1 0 0 not allowed
0 0 1 0 1 reset
Q
R 1 1 0 0 not allowed
0
A B !(A+B)
18
6/8/2018
1 0 1 0 1 reset
Q
R 1 1 0 0 not allowed
0
A B !(A+B)
0 0 1 0 1 reset
Q
R 1 1 0 0 not allowed
1
A B !(A+B)
19
6/8/2018
A NOR1 CLK1
CLK
B NOR2 CLK2
CLK
A
B NOR1
CLK1
NOR2
CLK2
684
A NOR1 CLK1
CLK
B NOR2 CLK2
CLK
B
CLK1 NOR2
NOR1
CLK2
685
20
6/8/2018
D
!Q
D Q
Q
CLK
off on
M2 M4
Q 1
0 !Q
CLK M6 M8 CLK
on
M1 M3
off
M7 R 1
0 S M5
off on
GND
21
6/8/2018
GND
6T CMOS SR Latch
issues with noise
margins and static
CLK CLK power consumption due
to threshold drop across
R PTs
S
CLK
CLK M2 M4
Q M6 S
we will see this M5 !Q
structure again when R
talking about SRAMs
M1 M3
689
22