Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou are asking count to go up when count < FFFF and also when it is not <FFFF. So it goes up freely and wraps back to zero and up again.
If you want to go up to FFFF and stay there then delete the second count statement but watch your count is not optimised off by a hostile compiler.