Do the problem with one-hot encoding.
Using binary state encodings, complete a state transition table and output table for the FSM. Write Boolean equations for the next state and output and sketch a schematic of the FSM.
Reset
A/0
B/0
so
S1
S2
Figure 3.70 State transition diagram for Exercise 3.23
B/0
AB/1
A/0
A + B/0