Forum Discussion
Altera_Forum
Honored Contributor
14 years agosignal freq: unsigned(15 downto 0);
signal accu: unsigned(19 downto 0);
if rising_edge(clk) then
accu <= accu + freq;
end if;
square_out <= accu(19);signal freq: unsigned(15 downto 0);
signal accu: unsigned(19 downto 0);
if rising_edge(clk) then
accu <= accu + freq;
end if;
square_out <= accu(19);