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 agoinitialising the left and right pressed wont make a difference, it will still create latches because they are only assigned in specific conditions. They need to be assigned in ALL cases, OR they need to be in a clocked process. It is the same with the next state assignment. You need to assign the next state in ALL if branches.