Forum Discussion
Altera_Forum
Honored Contributor
11 years agoPlease - try modelsim. It will REALLY help you debug your code.
Trying to debug at the gate level is really not going to help here. The synthesisor is only doing what you've told it. There is likely a bug in your Verilog, that I dont have time to look at. This should be your job. My review - the code is still overly complicated. All you need is a counter in S5. The counter counts while you're in S5, then when you reach the correct value, you move to S6.