
Lu S. answered 04/13/22
Exclusively tutoring computer engineering topics!
create a FSM with 6 states. state 0 outputs 2, state 1 outputs 8, state 3 outputs 4, etc etc. state 0 always transitions to state 1, 1 to 2, 2 to 3, etc etc. once FSM reaches the last state, then it stays in that state.
create your current state, next state, and output truth table. generate functions for your next state based on current state, and your output based on current state.