For a lab exercise I have to design a 2-input sequence and Im struggling with the state diagram, as It has 2 inputs, i've designed it with one input before. the sequence to be detected is 1032 which can be written as:
\$ A_{0} \text{ | 0 0 1 1} \$
\$ A_{1} \text{ | 1 0 1 0} \$
So how should I go about designing this state diagram?
Answer
You need five states:
- Nothing detected (initial state)
- Detected 1
- Detected 10
- Detected 103
- Detected 1032
Some hints: Each state has four possible state transitions corresponding to inputs: 00 (0), 01 (2), 10 (3) and 11 (4). Most of these transitions will lead to state one. 01 input will always lead to state two.
No comments:
Post a Comment