Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYeah... I think you are right, and I should explain a little bit more about the idea of the code.
The input is a sine wave. The design will be implemented on a Altera Cyclone FPGA, installed on a USRP. The input clock has a frequency of 64Mhz. The input signal is compared to a counter(whose frequency I can change... knowing the frequency of the clock). At every time that input goes from positive value to negative(we use the 2's complement properties here... and exactly the fact that if the signal is negative the first bit is 1 and if positive the first bit is 0) the control wave is restored to 0 and the comparison between the input signal and the control one is done one more time. Hope this helps, Sorry for not doing it from the start.