Professional Documents
Culture Documents
B
0
B
1
B
2
G
2
G
1
G
0
23) flip-flops.
Since, the unused states are 000 after next clock pulse, no dont cares exist.
Step 2
The state diagram of the counter that count 0, 2, 5, 6, 0 .... is shown in figure (i) below,
5
2
0
1
3
4
7
6
5
2
0
1
3
4
7
6
Figure: (i)
S. 14 Spectrum ALL-IN-ONE Journal for Engineering Students, 2013
B.Tech. II-Year II-Sem. ( JNTU-Kakinada )
Step 3
The excitation table of the counter using JK flip-flops is given in table (i)
Present state Next state Required Excitations
Q
3
Q
2
Q
1
Q
3
Q
2
Q
1
J
3
K
3
J
2
K
2
J
1
K
1
0 0 0 0 1 0 0 1 0
0 0 1 0 0 0 0 0 1
0 1 0 1 0 1 1 1 1
0 1 1 0 0 0 0 1 1
1 0 0 0 0 0 1 0 0
1 0 1 1 1 0 0 1 1
1 1 0 0 0 0 1 1 0
1 1 1 0 0 0 1 1 1
Table (i)
Step 4
The minimal expressions for J
3
, K
3
, J
2
, K
2
, J
1
and K
1
can be obtained using K-maps as described below,
K-Map for J
3
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
4 5 7
1
2 1
Q Q
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
4 5 7
1
2 1
Q Q
3 2 1
J Q Q =
K-Map for K
3
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
1
1
4 5 7
1
1
Q
Q
2
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
1
1
4 5 7
1
1
Q
Q
2
3 1 2
K Q Q = +
K-Map for J
2
K-map for K
2
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6
4
5
7
3 1
Q Q
1
Q
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6
4
5
7
3 1
Q Q
1
Q
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
1
4
5
7
1
1
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3 2
6
1
4
5
7
1
1
1
2 1 3 1
J Q Q Q = +
2
1 K =
S. 15 Switching Theory and Logic Design (April-2012, Set-1) JNTU-Kakinada
B.Tech. II-Year II-Sem. ( JNTU-Kakinada )
K-map for J
1
K-map for K
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6 4
5
7
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6 4
5
7
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6 4
5
7
1
1
1
1
Q
3
Q
2
Q
1
00
01 11 10
0
1
0 1 3
2
6 4
5
7
1
1
1
1
1 3 2
J Q Q = 1
1
= K
The minimal expressions are,
J
3
= Q
2
1
Q
K
3
=
1
Q +Q
2
J
2
= Q
1
+
1 3
Q Q
K
2
= 1
J
1
=
2 3
Q Q
K
1
= 1
Step 5
The implementation of minimal expressions using J-K flip-flops is shown in figure (ii)
J
1
Q
1
K
1
J
2
Q
2
K
2
J
3
Q
3
K
3 2
Q 1
Q
3
Q
Clock
J
1
Q
1
K
1
J
2
Q
2
K
2
J
3
Q
3
K
3 2
Q 1
Q
3
Q
Clock
Figure (iii): Synchronous Counter Implementation using JK Flip-Flops
(b) Obtain conversion from D flip-flop to JK flip-flop.
Answer : April-12, Set-1, Q7(b) M[6]
For answer refer Unit-VII, Q24.
S. 16 Spectrum ALL-IN-ONE Journal for Engineering Students, 2013
B.Tech. II-Year II-Sem. ( JNTU-Kakinada )
Q8. Derive a circuit that realizes the FSM defined
by the state assigned table below using JK
flip-flops.
D, 0 B, 0 E
E, 0 C, 1 D
A, 0 D, 1 C
D, 0 E, 0 B
E, 0 B, 0 A
X=1 X=0
NS,Z PS
D, 0 B, 0 E
E, 0 C, 1 D
A, 0 D, 1 C
D, 0 E, 0 B
E, 0 B, 0 A
X=1 X=0
NS,Z PS
Answer : April-12, Set-1, Q8 M[15]
The given FSM state table is,
D, 0 B, 0 E
E, 0 C, 1 D
A, 0 D, 1 C
D, 0 E, 0 B
E, 0 B, 0 A
X=1 X=0
NS,Z
PS
D, 0 B, 0 E
E, 0 C, 1 D
A, 0 D, 1 C
D, 0 E, 0 B
E, 0 B, 0 A
X=1 X=0
NS,Z
PS
Table (i)
From the state table, state diagram can be obtained
as shown in figure (i)
A
B
E D
A
C
x = 0
x = 0
x = 1
x = 0
x = 1
x = 1
x = 1
x
=
1
x = 0
x = 0
A
B
E D
A
C
x = 0
x = 0
x = 1
x = 0
x = 1
x = 1
x = 1
x
=
1
x = 0
x = 0
Figure: (i) State Table
Then, the equivalence classes using partition method
can be obtained as follows,
Consider,
P
0
= (A B C D E)
Partition P
1
States having the same outputs under all input
conditions can be grouped as follows,
P
1
= (A B E) (C D)
Partition P
2
When the machine is in states (ABE), a 1 input
applied will lead to (BEB) states, (B) is the successor of (A)
and (EB) is the successor of (BE). Since (B) and (EB) are
falling in different blocks, P
2
is obtained as,
P
2
= (A) (BE) (CD)
Partition P
3
When the machine is in states (CD), a 1 input applied
will lead to states (AE). (A) is the successor of (C) and (E) is
the successor of (D).
Since (A) and (E) are falling in different blocks. P
3
is
obtained as,
P
3
= (A) (B, E) (C) (D)
Partition P
4
For the inputs 0 and 1, (B, E) successors are in
same block. Thus, no further partition is possible.
The equivalent states are,
B = E
Then, the reduced state table is,
PS NS, Z
x = 0 x =1
A B, 0 B, 0
B B, 0 D, 0
C D, 1 A, 0
D C, 1 B, 0
Table (ii)
As there are 4 states we need two flip-flops. By
assigning state A = 000, B = 01, C = 10 and D = 11, the
excitation table of JK flip-flop can be obtained follows,
S. 17 Switching Theory and Logic Design (April-2012, Set-1) JNTU-Kakinada
B.Tech. II-Year II-Sem. ( JNTU-Kakinada )
Inputs PS NS Flip-flop Inputs Outputs
P Q P Q J
P
K
P
J
Q
K
Q
Z
0 0 0 0 1 0 1 0
0 0 1 0 1 0 1 0
0 1 0 1 1 0 1 1
0 1 1 1 0 0 1 1
1 0 0 0 1 0 1 0
1 0 1 1 1 1 0 0
1 1 0 0 0 1 0 0
1 1 1 0 1 1 0 0
Table (iii)
The minimal expressions for J
P
, K
P
, J
Q
, K
Q
and Z can be obtained using K-maps as described below,
K-Map for J
P
K-Map for K
P
X
PQ
00
01 11 10
0
1
0 1 3 2
6
4 5 7
1
1
XQ
X
PQ
00
01 11 10
0
1
0 1 3 2
6
4 5 7
1
1
XQ
X
PQ
00
01 11 10
0
1
0 1 3 2
6
1
4 5 7
1
X
X
PQ
00
01 11 10
0
1
0 1 3 2
6
1
4 5 7
1
X
P Q
J X =
P
K X =
K-Map for J
Q
K-Map for K
Q
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
X
P
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
X
P
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
Q
J P X = +
Q
K X =
K-Map for Z
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
1
XP
X
PQ
00
01 11 10
0
1
0 1 3 2
6 4 5 7
1
1
XP
Z XP =
S. 18 Spectrum ALL-IN-ONE Journal for Engineering Students, 2013
B.Tech. II-Year II-Sem. ( JNTU-Kakinada )
J
P
= XQ
K
P
= X
J
Q
=
X P +
K
Q
=
X
Z = XP
Implementation of the above expressions using JK flip-flops is shown in figure (ii),
J
P
P
K
P
P
X
J
Q
Q
K
Q
Q
Clk
X
Z
FF
FF
J
P
P
K
P
P
X
J
Q
Q
K
Q
Q
Clk
X
Z
FF
FF
Figure (ii)