Forum Discussion
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;