Forum Discussion
State Machine file
- 2 years ago
Thank you for your replies. There are some cases where the state machine has to make transition from one state to another based on which condition comes first. I did find a way to work with multiple outgoing transitions, by negating the highest priority condition in the subsequent transitions.
That's not really how a state machine works. State transitions are pure logic, either based solely on the state you are in (Moore state machine) or based on the state and input signals (Mealy state machine). There is no priority. If you want to qualify a certain transition, you could create a separate input signal for this that would cause this transition to happen when the new signal is active.
Side note: state machine files are not very flexible for state machine creation. You may want to edit the output HDL instead of using the graphical tool.