A reader asks how this can be achieved in the most efficient manner possible...
Seconds ago as I pen these words, I received the following email from a reader:
I feel like the guy who has lost the goose that lays the golden eggs.
Let me explain...
I want to make a sine and cosine wave in an FPGA.
Now, I could use a CORDIC / NCO, but I need small.
I don't need any particular frequency; I just need a sine/cosine wave.
I used to have a spread sheet which showed how to do this; the spread sheet had two columns: "'sine" and "cosine" (and I think a third called "temp"). The equations for the cells were such that all you had was a shift / add in each cell and you got a sine and cosine wave (also no magic numbers to start the columns, just 0 and 1).
But I lost it, just when I need it, and I can't find it on the web.
Bummer! I hate it when something like that happens. You have something lying around for ages, but you can't find it when you need it. So if you know where such a spreadsheet might be found, please email me with the news and I'll be happy to pass it on.
Questions? Comments? Feel free to email me – Clive "Max" Maxfield – at email@example.com). And, of course, if you haven't already done so, don't forget to Sign Up for our weekly Programmable Logic DesignLine Newsletter.