Forum Discussion
Altera_Forum
Honored Contributor
14 years agoUndefined behavior in my key detection
I am designing a shift key detector.I wrote a test bench. The test showed that my implementation was incorrect. See attachment for the screenshot of ModelSim simulation. Beside the undefined...
Altera_Forum
Honored Contributor
14 years agoHi Tricky, Thank you for your input! It was very helpful to get moving.
My revised code is in attachment. Thanks I gave default values to left and right pressed. But where do I place next_state <= current_state; Is this what you mean by assigning a value to next_state? Right now I left it in the second process, which is WRONG from what I understand. Thanks!