Forum Discussion
Altera_Forum
Honored Contributor
16 years agoDE2 Lab 4, Part 4 (VHDL) - Digital Logic
I'm new to VHDL and FPGAs but need to learn how to program with it for my graduate studies. I decided to try out the tutorials and labs on Altera's web site to get a start and have managed to work my...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- I'm not sure how this would synthesize, but you should make your process clocked instead of depending on the counter. What you are describing here is to keep on increasing num as long as the count vector is at that value, not just increase it once when you reach the value. This code will probably generate a combinatorial loop that will give unpredictable results. --- Quote End --- Oh yeah, I forgot compiler ignores sensitivity. This highlights another issue - simulation/synthesis mismatch. The code that was origionally written would probably synthesise to the infinite counter Daixiwen mentioned, but in simulation it would look like a transparent latch.