← ProblemsCircuits / Sequential Logic / Finite State Machines

Simple FSM 1 (asynchronous reset)

36%fsm

This is a Moore state machine with two states, one input, and one output. Implement it.

Current statenext state when in = 0next state when in = 1output out
ABA0
BAB1

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.