Writing VHDL Code for FSM
To determine next state transition/logic:
- Use a CASE statement inside IF-THEN statement that checks for the clock condition
- Remember: State machines are implemented using registers
To determine state machine outputs:
- Use Conditional and/or Selected signal assignments
- Or use a second Case statement to determine the state machine outputs.