Sunday, 2 April 2017

digital logic - Designing State Diagram for a 2 input sequence detector


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:




  1. Nothing detected (initial state)

  2. Detected 1

  3. Detected 10

  4. Detected 103

  5. 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

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...