Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- I am thinking to make a table for the calculation of cos(x)/sin(x). I know this could be a very large table if I want the precision to be high. Generally speaking, what is the phase step (x = x+step; x0=0) for making such a table to satisfy the average precision requirement? --- Quote End --- There's no hard-and-fast rule that I've found. It's pretty simple to create a MATLAB script that sweeps a tone across a large number of frequencies with your given NCO parameters. The power spectrum of the sinusoid will then show the harmonic level in your sinusoid. The SFDR will either meet your requirements, or it will not, if it does not, you tweak your parameters and re-test. Here's an m-file I wrote a while back ... it still works, I just ran it in MATLAB. Cheers, Dave