
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























Sequential LogicFlip-Flops
z
m
z
1
y
r
Clock
y
1
Memory
Combinational
logic
x
n
x 1 Y r Y 1
Clock
State
Input
x
Output
z
0
1
A
C
T
T
T
T
T
T
A
B
C
A
A 1
0
1
0
0
1
0
1
0
0
Q C D
Enabled
Hold
Enabled
Hold
Enabled
(b)
(c)
(a)
Q
C D
1 0 D
1 1 C
1 0 Q
x
0
last Q
0 1
D
Q Q
C
QN
QN
last QN
Copyright © 2000 by Prentice Hall, Inc.
Digital Design Principles and Practices, 3/e
t w
Minimum enable
pulse
width
Q D C
D
may not
change
Setup time
violation
Hold time violation
t
su
(setup)
t
su
Unknown state
t h
(hold)
t
h
both:
output = stored value
no need to ask for permission to look at value… !!!
Latch:
(and clock is asserted)output changes when input changes
Flip-Flop:
output changes only on clock edge
clocking methodology
D-latch:
Q
D C
Q_
Q C D
Q C D
Q
Q
Q_
Q Q_
D
latch
C D
D
latch
D
D
C
C
(time delay)
(falling edge)
D-latch:
Q
D C
Q_
Q C D
Q C D
Q
Q
Q_
Q Q_
D
latch
C D
D
latch
D
D
C
C
(time delay)
(falling edge)
(b) (a)
Combinational logic
Memory
Clock
D
C
Q Q
Q Q C D
0
1
2
3
4
D
t
t/D
t^
y y
Y
x
z
R-S Latch
vs. J-K Flip-Flop:
0
1
0
0
0 0 1 0
Q
0
1
1
1
0
1
0
1
0
1
0
0
Q
S
R
(b)
(c)
(a)
QN Q
J
C
C
0 K
Q
last Q
last QN
QN
(^0) J
x
0
last Q
last QN
x
1
0
1
0
0
1
0
1
1
last QN
last Q
1
K
S
Q Q
R C
S
Q Q
R C
J
Q Q
K C
QM
QM_L
Copyright © 2000 by Prentice Hall, Inc.
Digital Design Principles and Practices, 3/e
J=K=1 J-K = R-S, except:
toggle output…
(b)
(c)
(a)
QN Q
J
C
C
0 K
Q
last Q
last QN
QN
(^0) J
x
0
last Q
last QN
x
1
0
1
0
0
1
0
1
1
last QN
last Q
1
K
S
Q Q
R C
S
Q Q
R C
J
Q Q
K C
QM
QM_L
Copyright © 2000 by Prentice Hall, Inc.
Digital Design Principles and Practices, 3/e
Master/Slave configuration