Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIndefinite states of State Machine - VHDL
Hi Guys, I would like to ask for your help... I wrote a simple code that is identifying the rising edge of incoming signal. There are two states - every time that rising edge existing, the st...
Altera_Forum
Honored Contributor
13 years agoI suppose your incoming signal is asynchronous to your processing clock. As such it will have a different propagation delay to each register in the state machine and in the end each of the state-machine registers may see a different level, and possibly clock in an invalid transition ending up in an undefined state.
So you have to synchronise this external input with a two-stage register chain to avoid this (and metastability) issue.