State Machine Design
State Machine Design
Sequence Detector
Step 5\ Equations: Draw K-Map and find the equation for each J
and K of each flip flop in the excitation table.
1
Example: Design 101 Sequence Detector
Or: Design a digital system which receives serial
transmission data (x) and produce output (z). The
output will be Z=1 when the sequence 101 is received.
Solution:
Step1\ State Diagram 0/0
1/0 1/0
0/0
0/0
2
b) State Minimization
We can notice that a and d have the same next state and
output so we will keep just one, we will keep a and any
other d in the table will be changed to the first state a
Present State Next State / Output
X=0 X=1
a a/0 b/0
b c/0 b/0
c a/0 a /1
3
Step 5\ Boolean Equations:
K-Map Simpilfication:
0 1 d d d d d 1
0 0 d d d d d 1
JA = QB 𝑿 KA = 1
0 d d 0 d 1 d d
1 d d 0 d 0 d d
JB = 𝑸A X KB = 𝑿
X
Z
CLK