Professional Documents
Culture Documents
Outputs
Combinational
Circuit
Memory
elements
S R Q Q’
1 0 1 0
0 0 1 0 (after S=1, R=0)
(b) Truth Table
0 1 0 1
0 0 0 1 (after S=0, R=1)
1 1 0 0
S R Q Q’
1 0 0 1
1 1 0 1 (after S=1, R=0) (b) Truth Table
0 1 1 0
1 1 1 0 (after S=0, R=1)
0 0 1 1
2 Q’ 1 0 1 0
1
S 1 1 0 1
1 1 1 indeterminate
(a) Logic diagram (c) Characteristic table
SR S
00 01 11 10
Q’ Q Q
X 1
0
1 X 1
R S 1
R
Q(t+1) = S+R’Q
CP SR = 0
(b) Graphical Symbol
(d) Characteristic equation
Clocked RS flip-flop
S
D 3
1 Q
CP
2 Q’
R 4
5
Clocked D flip-flop
K Q
Clocked JK
CP flip-flop
Q’
J
Q’
Master Slave
Y’ Q’
R R R
CP
MASTER-SLAVE FLIP-FLOP
8 Q’
6
4
K 2
Y’
CP 9
2 S
5 Q
CP
3
R 6 Q’
2
1 S 2
1 S
CP=0 CP=0
3
1 R 3
1 R
D=0 4 1 D=1 4 0
(a) With CP = 0
Operation of the D-type edge-triggered flip-flop
1 0 1 1
2
1 S 2
0 S
CP=1 CP=1
3
0 R 3
1 R
D=0 4 1 D=1 4 0
So Q = 0 & Q’ = 1 So Q = 1 & Q’ = 0
(b) With CP = 1
Operation of the D-type edge-triggered flip-flop
Direct Inputs
Asynchronous
Function Table
Inputs Outputs
Q’ Q Clear Clock J K Q Q’
Clear
0 x x x 0 1
K J
1 0 0 No Change
1 0 1 0 1
CP 1 1 0 1 0
1 1 1 Toggle
x R Q’ A’
B’
x’
S Q A
B
Example of clocked sequential circuit
(Analysis)
State table for circuit
01 10
0/0
0/0
11
1/0
Bx B Bx B
00 01 11 10 00 01 11 10
A A
0 1 0 1 1 1
1 1
A 1 1 1 A 1
x x
SA = B x’ RA = B’x
SB = A’x
RB = Ax’ y=
AB’x
x
y
A Input = x (External)
B’ Output = y
Clocked RS flip-flop
CP
x’ R Q’ B’
A
x
S Q B
A’
x R Q’ A’
B’
x’
S Q A
B
Clocked sequential circuit
CP
B
y
B K Q’ A’
C’
x
J Q A
B’
C
x’
JA = BC’x + B’Cx’ and KA = B+y
g 1/1
0/0
1/1
f
1/1 State diagram
1/1
Present State a a b c d e f f g f g a
Input Value 0 1 0 1 0 1 1 0 1 0 0
Output Value 0 0 0 0 0 1 1 0 1 0 0
State Table
Next State Output
Present State x=0 x=1 x=0 x=1
a a b 0 0
b c d 0 0
c a d 0 0
d e f 0 1
e a f 0 1
f g f 0 1
g a f 0 1
Reducing the State Table
Next State Output
State a a b c d e d d e d e a
Input 0 1 0 1 0 1 1 0 1 0 0
Output 0 0 0 0 0 1 1 0 1 0 0
Reduced State Table
Next State Output
Present State x=0 x=1 x=0 x=1
a a b 0 0
b c d 0 0
c a d 0 0
d e d 0 1
e a d 0 1
0/0 m flip-flops can represent
001 up to 2m distinct states (i.e.
a if m=3, 8 states => 000-
0/0 0/0 111)
D Q(t+1) T Q(t+1)
0 0 0 Q(t) NC
1 1 1 Q’(t)
(c) D (d) T
Flip-flop excitation tables
Q(t) Q(t+1) S R Q(t) Q(t+1) J K
0 0 0 X 0 0 0 X
0 1 1 0 0 1 1 X
1 0 0 1 1 0 X 1
1 1 X 0 1 1 X 0
(a) RS (b) JK
Q(t) Q(t+1) D Q(t) Q(t+1) T
0 0 0 0 0 0
0 1 1 0 1 1
1 0 0 1 0 1
1 1 1 1 1 0
(c) D (d) T
Design Procedure for Sequential Logic Circuits
Excitation table 1 1 X 0
Q’ Q Q’ Q
K J K J
CP
KA JA KB JB
A’ External
A outputs
Combinational Circuit (none)
B’
B x
External Inputs
00 01 11 10 00 01 11 10
A A
0 1 0 X X X X
A 1 X X X X 1 1
x
KA = Bx
JA = Bx’
Bx B Bx B
00 01 11 10 00 01 11 10
A A
0 1 X X 0 X X 1
1 1 X X 1 X X 1
JB = x KB = A . X = Ax + A’x’
K J K J
JA = Bx’
KA = Bx CP
JB = x
KB = A x
Excitation table
Present state Input Next State Flip-flop Inputs Output
A B C x A B C SA RA SB RB SC RC y
0 0 1 0 0 0 1 0 X 0 X X 0 0
0 0 1 1 0 1 0 0 X 1 0 0 1 0
0 1 0 0 0 1 1 0 X X 0 1 0 0
0 1 0 1 1 0 0 1 0 0 1 0 X 0
0 1 1 0 0 0 1 0 X 0 1 X 0 0
0 1 1 1 1 0 0 1 0 0 1 0 1 0
1 0 0 0 1 0 1 X 0 0 X 1 0 0
1 0 0 1 1 0 0 X 0 0 X 0 X 1
1 0 1 0 0 0 1 0 1 0 X X 0 0
1 0 1 1 1 0 0 X 0 0 X 0 1 1
Q(t) Q(t+1) S R
0 0 0 X
0 1 1 0
1 0 0 1
1 1 X 0
Cx C Cx Cx
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
00 x x 00 x x x x 00 x x 1
01 1 1 01 x x 01 x
11 x x x x 11 x x x x 11 x x x x
A
10 x x x 10 1 10
Cx Cx
Cx
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
00 x x x x x x x x 1 x x
01 1 1 1 1 x x 1
11 x x x x x x x x x x x x x x x x
10 x x x x 1 x x 1 1 1
RB=BC+Bx SC=x’ RC=x y=Ax
S Q A
x A’
R Q’
B
S Q
R Q’ B’
S Q C
R Q’
CP
1/0
The circuit is 1/0 110
self-starting and
0/0 1/1
self-correcting
100
0/0
since it
eventually goes
to a valid state 1/1 1/1
from which it 111
continues to
operate as State diagram of the circuit
required.
000
001 111
110
010
101
011
100
1 0 1 0 1 1
1 1 0 0 0 1
1 1 1 1 1 1
A1
A1A0 A1A0 A1A0
A2 00 01 11 10 A2 00 01 11 10 A2 00 01 11 10
0 1 0 1 1 0 1 1 1 1
A2 1 1 1 1 1 1 1 1 1 1
TA1 = A0 TA0 = 1
A0
TA2 = A1A0 Maps for a 3-bit binary counter
Logic diagram 0f a 3-bit binary counter
A2 A1 A0
Q Q Q
T T T
CP
1
TA2 = A1A0
TA1 = A0
TA0 = 1
Q: Design a counter that counts a repeated sequence as
shown below using JK flip-flop
Don’t care
011
111
Count sequence Flip-flop inputs
A B C JA KA JB KB JC KC
Excitation table
0 0 0 0 X 0 X 1 X
Q(t) Q(t+1) J K
0 0 1 0 X 1 X X 1
0 0 0 X
0 1 0 1 X X 1 0 X
0 1 1 X
5 0 0 X 0 0 X 1 X
1 0 X 1
1 0 1 X 0 1 X X 1
1 1 X 0
7 1 0 X 1 X 1 0 X
Don’t care: 011 & 111
BC BC
00 01 11 10 00 01 11 10
A A
0 x 1 0 x x x x
1 x x x x 1 x 1
JA = B KA = B
BC BC
00 01 11 10 00 01 11 10
A A
0 1 x x 0 x x x 1
1 1 x x 1 x x x 1
JB = C KB = 1
BC BC
00 01 11 10 00 01 11 10
A A
0 1 x x 0 x 1 x x
1 1 x x 1 x 1 x x
JC = B’ KC = 1
A B C
B’
Count
Pulses 1
Using K-maps
JA = B
KA = B
000 111 JB = C
KB = 1
JC = B’
Unused states 001 110 KC = 1
011
111
010 101 (b) Logic Diagram
of Counter
Counter is self-starting
100 011
Design with State Equation
With D Flip Flops Present Input Next
Characteristic equation State State
Q(t+1) = D A B x A B
0 0 0 0 0
Example # 1: State equations from the given table are:
0 0 1 0 1
A(t+1) = DA(A,B,x) = ∑ (2,4,5,6) 0 1 0 1 0
B(t+1) = DB(A,B,x) = ∑ (1,3,5,6) 0 1 1 0 1
1 0 0 1 0
1 0 1 1 1
DA = AB’ + Bx’
1 1 0 1 1
DB = A’x + B’x +ABx’
1 1 1 0 0
Bx Bx
Q Qt D
A 00 01 11 10 A 00 01 11 10
0 0 0
0 1 0 1 1
0 1 1
1 1 1 1 1 1 1
1 0 0
DB = A’x + B’x
DA = AB’ + Bx’ 1 1 1
+ABx’
D Q A
x A’
D Q B
B’
DA = AB’ + Bx’
DB = A’x + B’x +ABx’ Logic diagram
CP
Example # 2 : Design a sequential Circuit as per given conditions using D flip flops:-
A(t+1) = C + D
B(t+1) = A Q D Q D Q D Q D
D C B A
C(t+1) = B
D(t+1) = C
So
CP
DA = C + D
DB = A
DC = B
DD = C
Example # 3:- Design a Sequential Circuit with JK flip-flops to satisfy
the given equations:-
State Equations [Characteristic equation of JK flip-flops = Q(t+1) = (J) Q’ + (k’) Q ]
A(t+1) = A’B’CD + A’B’C + ACD + AC’D’
B(t+1) = A’C + CD’ + A’BC’
C(t+1) = B
D(t+1) = D’
Algebraic manipulations for matching characteristic equation of JK flip-
flops:
A(t+1) = (B’CD + B’C) A’ + (CD + C’D’)A
= (J)A’ + (K’) A