Forum Discussion
Altera_Forum
Honored Contributor
13 years agoUsing a counter is a good way.
On occasion, I add states just to make up for the delay. You can also think of using a shift register. But in general, a counter is what you want. Weather your particular way is the best or not.. depends on your actual needs. You just have to make sure you reset and enable the counter when you need. For example, in your code I only see the counter being reset to zero once. So, it will only delay the state1 -> state2 transition once. Also, do you guarantee that "condition" is kept true during the 10 cycles? If not, you may have another problem there...