Forum Discussion
Altera_Forum
Honored Contributor
11 years agoGenerating higher frequency sine waves from 5MHz RAM
Currently using the Stratix III EP3SL150F1152 DSP Developers Kit in Verilog. I generated one period sine wave 5MHz sampling at 250MHz (50 samples in a .MIF file from MATLAB ). I ported it to a RAM ...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- I'm not too familiar with the NCO approach, but I would like to keep my Vpp to be 1. In MATLAB I had my amplitude to be 0.5. Correct me if I'm wrong, but the clocking into my modules are what my sampling frequency is. It would have to match the MATLAB implemented into a MIF file and in my Verilog design. So by changing my input clock from 250MHz to 500MHz through PLL, my sampling frequency will give me double the samples (100 samples for 5MHz at 250MHz sampling frequency), raising the threshold of address manipulation before undersampling. --- Quote End --- You are following the equation: Fo = Fs/samples per cycle That is correct and you want to change Fo by changing Fs. You can but in most cases we change samples per cycle and keep Fs. just instantiate an nco core. You don't need to worry about how it works internally but you will input into it increment value for your target Fo.