Try this:
process(clk, reset)
begin
if (reset='1') then
cntr <=0;
timer_alti<='0';
elsif (clk'event and clk='1') then
cntr <= cntr + 1;
if(cntr=3200) then
timer_alti <='1'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.