Recently started using version control BitBucket and I must say sharing code is definitely easier.
So here is the link to the code that generates sin and cos signals according to the required frequency.
It is 2 bit only because the range of values is between [-1,1].
If you are looking for something in the range of [0,1], that would make it a 1 bit NCO which is even easier (you just have to ignore the LSB). Focus only on sin or cos.
This module is great if you have to quickly test something like demodulators etc.
If you figure there are issues or even found a simpler way please feel free to share them.
Alright, I’m onto figuring out the next task, atan in verilog!
P.S. I’m also going to make sharing the code easier on the blog… will try to embed it here.