P
Patrick
Guest
Hi everybody,
I would like to implement a NCO (Numerical Controlled Oscillator).
The output is a square wave. The reference clock is 352 MHz.
I want the output varies by step of 2,841ns around a 22MHz square signal.
What is the simplest way to implement it :
if rising_edge(clk_ref) then
count <= count + 1 + in;
end;
if (count>=16) then
output <= 1;
count <= 0;
else
output <= 0;
end;
I would like to implement a NCO (Numerical Controlled Oscillator).
The output is a square wave. The reference clock is 352 MHz.
I want the output varies by step of 2,841ns around a 22MHz square signal.
What is the simplest way to implement it :
if rising_edge(clk_ref) then
count <= count + 1 + in;
end;
if (count>=16) then
output <= 1;
count <= 0;
else
output <= 0;
end;