Page 1 of 1

Fast quadrature signal CORDIC

Posted: Fri Apr 07, 2023 8:15 pm
by ansh
Hi,

For my application, I have 2 fast signals that are in quadrature. I need to be able to keep track of tan inverse (ADC1/ADC 2) and specifically count how many times the phase passes through a certain value.

I am currently using my own FPGA code that uses the CORDIC IP to calculate the inverse tangent. Since this is my own code it does not have the many of the nice features that the standard red pitaya FPGA firmware has.

I wanted edit the red pitaya FPGA code to add this into it. But was confused about what would be the best way to do it. I am not familiar with the red pitaya FPGA code and not sure where I can find a document that explains it. I am new to FPGA programming so help would be appreciated :D .

Best,
Ansh

Re: Fast quadrature signal CORDIC

Posted: Wed Apr 12, 2023 2:34 pm
by redpitaya
Hello Ansh,

Red Pitaya uses a combination of Verilog and System Verilog, which then connects with C programs through hardware registers.

I would suggest going through the tutorials on our webpage and from the University of Ljubljana. That should give you a few ideas:
https://redpitaya-knowledge-base.readth ... s/top.html
https://lniv.fe.uni-lj.si/redpitaya/

If you experience any issues, please let me know.