Fsm3
From HDLBits
fsm3onehotPrevious
Nextfsm3s
See also: State transition logic for this FSM
The following is the state transition table for a Moore state machine with one input, one output, and four states. Implement this state machine. Include an asynchronous reset that resets the FSM to state A.
State | Next state | Output | |
---|---|---|---|
in=0 | in=1 | ||
A | A | B | 0 |
B | C | B | 0 |
C | A | D | 0 |
D | C | B | 1 |
Module Declaration
module top_module( input clk, input in, input areset, output out);
fsm3onehotPrevious
Nextfsm3s