Flip Flops�
Dr. R. Murugesan
Associate Professor of Computer Science
C.P.A. College
Bodinayakanur
Introduction
2
Combinational logic
Memory elements
Combinational outputs
Memory outputs
External inputs
Sequential circuit = Combinational logic + Memory Elements
Introduction
3
Memory Elements
4
command
Memory element
stored value
Q
Q(t): current state
Q(t+1) or Q+: next state
Memory Elements
5
command
Memory element
stored value
Q
clock
Positive edges
Negative edges
Positive pulses
Memory Elements
6
S-R Latch
R=HIGH (and S=LOW) 🢧 RESET state
S=HIGH (and R=LOW) 🢧 SET state
both inputs LOW 🢧 no change
both inputs HIGH 🢧 Q and Q' both LOW (invalid)!
7
S-R Latch
8
S
R
Q
Q'
S-R Latch
9
R
S
Q
Q'
0
1
1
0
0
0
1
0
1
0
0
1
0
0
0
1
1
1
0
0
Gated D Latch
10
D
EN
Q
Q'
D
Q
Q'
EN
Gated D Latch
11
When EN=1, Q(t+1) = D
Latch Circuits: Not Suitable
12
Edge-Triggered Flip-flops
13
Positive edges
Negative edges
Clock signal
Edge-Triggered Flip-flops
14
S
C
R
Q
Q'
S
C
R
Q
Q'
D
C
Q
Q'
D
C
Q
Q'
J
C
K
Q
Q'
J
C
K
Q
Q'
Positive edge-triggered flip-flops
Negative edge-triggered flip-flops
S-R Flip-flop
15
X = irrelevant (“don’t care”)
↑ = clock transition LOW to HIGH
S-R Flip-flop
16
S-R Flip-flop
The pulse transition detector.
17
S
Q
Q'
CLK
Pulse transition detector
R
Positive-going transition
(rising edge)
CLK
CLK'
CLK*
CLK'
CLK
CLK*
Negative-going transition
(falling edge)
CLK'
CLK
CLK*
CLK
CLK'
CLK*
D Flip-flop
18
A positive edge-triggered D flip-flop formed with an S-R flip-flop.
S
C
R
Q
Q'
CLK
D
↑ = clock transition LOW to HIGH
J-K Flip-flop
19
J-K Flip-flop
20
J
Q
Q'
CLK
Pulse transition detector
K
Q(t+1) = J.Q' + K'.Q
T Flip-flop
21
Q(t+1) = T.Q' + T'.Q
T
Q
Q'
CLK
Pulse transition detector
J
C
K
Q
Q'
CLK
T
Thank You