Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou are not resetting your counter to zero, which you must, because modelsim will start with counter set to 'UUUU'.
Also, note that in your module, the reset is synchronous and subject to the enable signal. Thus, you need to have enable = 1 and reset = 1 long enough for count to reset to zero.