Moore State Table help

Discussion in 'Homework Help' started by Komperf, Oct 4, 2014.

  1. Komperf

    Thread Starter New Member

    Oct 4, 2014
    5
    0
    Hello everyone,

    I am working on the following and am having some issues starting. It is to design a state table for a combination lock using the Moore FSM.

    For example, the first two states are the following:

    State 0: returns 1 when RIGHT is pressed, and 0 otherwise
    State 1: returns 1 once a RIGHT press sets count to the first combination value, 0 for any
    other count value on a RIGHT press, and 2 for a LEFT press.

    I understand that for a Moore FSM, the output values is determine by the input values. I am having an issue starting the state table.

    I know that there are two inputs - Left and Right. For State 0, if the input is Right, the output is 1. If it is Left, it is 0. However, does this mean that I transition right into State 1 afterwards? Or for State 0, if the input is left I am still on State 0?

    Any guidance would be greatly appreciated.
     
  2. Komperf

    Thread Starter New Member

    Oct 4, 2014
    5
    0
    Here is what I have so far for the first two states:
    [​IMG]
     
  3. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I would suggest you read over the section of the eBook regarding Moore FSMs as well as my proposed addendum to it (the introduction and first paragraph of the Mealy section describes some of the differences of each type, which may help you).

    You need to clearly define what the requirements of your state machine are.
     
    Last edited: Oct 6, 2014
Loading...