Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVhdl codes for counter to start and purse
Hi, I need urgent help on how to design a stopwatch that can stop/purse using vhdl code. I will really appreciate any urgent reply to this. Thanks. Waiting for your replies.
Altera_Forum
Honored Contributor
14 years agoAdd the following lines:
--pseudocode
-- on the clock edge
if start = '1' then -- or may be '0' depending on key logic
start_L <= '1';
elsif stop = '1' then
start_L <= '0';
end if;
if start_L = '1' then
count <= count + 1;
end if;