Finite state machine (summarizing)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
axcelenator
Messages
33
Reaction score
0
Hello, I have an FSM which has 1 serial input and 4 outputs. The FSM must react to the table attaced in file.
I can see that if the input is(for example)4 the output is 7(+3).
I have to draw a state diagram(mealy). I can't solve it. Need some help
Thanks
 

Attachments

  • FSM.png
    FSM.png
    27.5 KB · Views: 523
Physics news on Phys.org
I take it that arrow coming into the top is your clock.

Have you recognized the function being performed on the serial string?
If you haven't, look closely. What would you expect if you clocked in 1, 0, 1, 0?

Since the four outputs are a function of the four bits being clocked in, what do you need to do with those input bits?
Let's say that the input/output list looked like this:
0,0,0,0 => 0 0 0 0
0,0,0,1 => 0 0 0 1
0,0,1,0 => 0 0 1 0
0,0,1,1 => 0 0 1 1
0,1,0,0 => 0 1 0 0
... => ...
What kind of gate would do that for you?