← ProblemsCircuits / Sequential Logic / Finite State Machines
Simple FSM 1 (asynchronous reset)
36%fsmThis is a Moore state machine with two states, one input, and one output. Implement it.
| Current state | next state when in = 0 | next state when in = 1 | output out |
|---|---|---|---|
| A | B | A | 0 |
| B | A | B | 1 |
In words: while in is 1 the machine stays in its current state; when in is 0 it switches to the other state. The output depends only on the current state: out is 1 in state B and 0 in state A.
The reset input areset is asynchronous (active-high) and resets the machine into state B.