firstname.lastname@example.org (Patrick) wrote in message news:<email@example.com>...
> 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;
> if (count>=16) then
> output <= 1;
> count <= 0;
> output <= 0;
I am no expert on NCOs, but here is a good website for the basic
theory of operation. It will not tell you the best way to implement a
VHDL design. I expect this depends on your target device. You can
also download a simulator if you wish.