Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIn vhdl, you can run multiple counters on the 1 sec clock edge:
if(Seconds /= 59) then
Seconds <= Seconds + 1;
else
Seconds <= (others => '0');
if(Minutes /= 59) then
Minutes <= Minutes + 1;
else
Minutes <= (others => '0');
if(Hours /=23) then
Hours <= Hours + 1;
else
Hours <= (others => '0');
end if;
end if;
end if;