This repository is designed to hold a variety of demonstration sinewave generators. These sinewave generators have been discussed and used as examples as part of the ZipCPU Blog on zipcpu.com. If you watch carefully, you may find examples here before they are posted, as I'm going to be doing my development here.
The reference that I have used to build the CORDIC algorithms within this repository comes from a Cordic Survey, by Ray Andraka.
There have been several blog posts based upon the code within this repository. These include:
No PI for you!, a discussion of the ideal units of phase within an FPGA.
How to build the simplest sine-wave in Verilog, based upon a table-based generator
How to do the same thing, but with only a Quarter-Wave sine table.
How to use a CORDIC to generate both sines and cosines. Ultimately this is about how to convert from polar to rectangular coordinates as well.
How to use a CORDIC to calculate an arctan. This is also known as the rectangular to polar conversion mode of the CORDIC.
If time permits, I have another sine wave generator that uses fewer logic resources than the CORDIC above, but that requires two multiplies and three RAM's--yet doesn't suffer from the phase truncation effects of the CORDIC. I look forward to having the opportunity to post this in the future.
All of the source code in this repository is released under the GPLv3. If these conditions are not sufficient for your needs, other licenses terms may be purchased.