Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOne of your states (state P2 to be precise) doesn't have an assignment for nextState, and the compiler infers latches for all states.
You should always check for 'inferred latches' in the message panel and repair the cause. I don't know of any valid use for 'latches' in user code, although some experts may differ.