Hello all, I am generating the clock of frequency 548KHz from an input clock of
73.728MHz. I am using the Direct digital frequency synthesis DDFS technique from
************************************************* Running... 929 929.134 t=0.000000
929.134period=929.134000
929.134t=929.134000 freq=1076271.022264 HZ 2747 2746.71 t=929.134000
2746.71period=1817.576000
2746.71t=2746.710000 freq=550183.321083 HZ 4578 4577.85 t=2746.710000
4577.85period=1831.140000
4577.85t=4577.850000 freq=546107.889075 HZ Exiting VeriLogger Pro at simulation time 10000000
0 Errors, 0 Warnings Compile time = 0.00000, Load time = 0.04700, Execution time = 0.04700
Normal exit
*********************************************************************** Here is the code of my program:
*********************************************************************** // Thanks to Jonathan Bromley for his valuable suggestions for the code. `timescale 1ns/1ps module fulladd28(out,clock,reset); parameter a=28'd1995207; parameter w = 28; // bit width of phase accumulator output out; input clock, reset; reg [w-1:0] sum; always @(posedge clock or posedge reset) if(reset) sum