Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI would put those lines:
if (tmp="1001") then
tmp <= "0001"; inside the clocked event. I'm not sure how the synthesizer will read your code, but it could identify those two lines as an asynchronous reset. Keep everything synchronous and it will work better. Is there any reason why you want to keep an internal counter and put its value minus one on the output?