Altera_Forum
Honored Contributor
15 years agoDebugging Current State in Simulation (VHDL/Quartus)?
Hey, I've implemented a moore-type finite state machine using process statements and a state variable "y" which holds the current state.
TYPE State_type IS (state0,state1,state2...) -- lots of other states left out Signal y: State_type; Is there a way in simulation to debug exactly what state y is currently in, without assigning output variables to each state (I have a lot of states, and this isn't very elegant..)? Like making the states represent integers and debugging those or something? Thanks for your help.