Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe phase accu isn't more than
accu :unsigned (NCO_W-1 downto 0);
freq :unsigned (NCO_W-1 downto 0);
...
process(clk);
begin
if rising_edge(clk) then
accu <= accu + freq;
end if;
end process,
square <= freq(NCO_W-1); Review the NCO MegaFunction manual for a detailed description.