Forum Discussion
Altera_Forum
Honored Contributor
12 years agoThere are cases in your code where LED_out retains the previous value.
To avoid latches you need to always give LED_out a value that depends only on the process inputs (state, key*). If you need LED_out to have memory, make it a flip-flop. Same for LED_R