Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAlso, because you've set the asynch reset to be a version of itself, its unlikely to reset itself properly as I guess it wont hold the reset value long enough. Just use a synchronous reset instead:
if (C'event and C='1') then
if tmp = "1000" then
tmp <= "0000";
else
tmp <= tmp + 1;
end if;
end if;