State Machine Design Tips(1)
Use One-Hot Encoding for State Machines
- Shift-register like structure
- One Flip-Flop is assigned to each state
- Works well in Xilinx ¡°register-rich¡± FPGAs
- Number of required Flip-Flops may be higher than other state machines, but logic to generate state is less complex
Prototype OHE State Machine:
Qx, Qy, and Qz are composed of
state variables from previous states