A finite state machine (FSM) is implemented using the D flip-flops A and B, and logic gates, as shown in the figure below. The four possible states of the FSM are QAQB =
![9.6 One-Hot Encoding Method - Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL [Book] 9.6 One-Hot Encoding Method - Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL [Book]](https://www.oreilly.com/api/v2/epubs/9780470900550/files/images/ch009-f026.jpg)
9.6 One-Hot Encoding Method - Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL [Book]
![flipflop - How do I implement a simple finite state machine with 2 T flip- flops? - Electrical Engineering Stack Exchange flipflop - How do I implement a simple finite state machine with 2 T flip- flops? - Electrical Engineering Stack Exchange](https://i.stack.imgur.com/czo1S.png)