Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI have a problem....
Hi.. i am beginner in quartus.. i learned the integer method.. so i used it! the code is this and this works very well. ------------------------------------------------------ Library ie...
Altera_Forum
Honored Contributor
14 years agoyou need to make a synchrnous counter. What you have is just an adder. You will need to store the previous value of the counter in a signal, and have a clock input.
heres an example:
use ieee.numeric_std.all;
signal count : unsigned(7 downto 0);
process(clk, reset)
begin
if reset = '1' then
count <= (others => '0');
elsif rising_edge(clk) then
count <= count + 1;
end if;
end process;
;