Forum Discussion
No output depends on input (outputs stuck at VCC or GND) errors
- 3 years ago
Weird. Other things I notice: you have 6 states, but you set S_FSM_ERROR as 'x (and only using 5 bits for the state). It should probably have a defined value. Also, even though you are manually doing one-hot encoding here, did you create a state machine encoding assignment in the Assignment Editor?
Something to try: normally for a state machine, you use two separate processes: a clocked process for the next state logic and a combinatorial process for the outputs. Because you've combined these and you are using non-blocking assignments for what should be combinatorial logic, it's possible the outputs are not getting updated as expected. Try separating out the processes.
- cdmski3 years ago
New Contributor
I can try that, but I haven't had an issue combining state and output logic in the past. When I simulate the design as-is the logic works fine.
(hopefully this snapshot is readable when uploaded)
Under optimization results I see: