Forum Discussion
Altera_Forum
Honored Contributor
12 years agocalculate 64 bit unsigned
hi, i've implemented a nco megafunction with a 64 bit phase accumulator in order to obtain very high precision output frequencies. Now to be able to program externally (by microcontroller for ex...
Altera_Forum
Honored Contributor
12 years agolooks like this will work (not a function)
constant fo:unsigned(31 downto 0) := x"11110000";
constant fclk : unsigned(31 downto 0) := x"ffff0000";
constant temp: unsigned(95 downto 0) := fo & x"0000000000000000";
constant phase : unsigned(95 downto 0) := temp/fclk;
then choose 64 bits of phase