FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

FFT IP not working

Isnan
Beginner
766 Views

Dear All,

I did some projects using FFT IP to process 20Khz signal from two-channel 5MSPS simultaneously ADC. however, the FFT IP from my design is not working properly. The source_imag of FFT Ip is always zero. and source_real can't detect magnitude and freq. the detail of my problem is in the figure attached. Any help would be greatly appreciated
Thank you very much.

0 Kudos
7 Replies
CheePin_C_Intel
Employee
740 Views

Hi,


As I understand it, you have some inquiries related to the FFT IP. Just to check with you if you have had a chance to run a Modelsim simulation with the FFT IP. This would be helpful to narrow down any functional related problem prior to hardware testing.


Please let me know if there is any concern. Thank you.



Best regards,

Chee Pin


Isnan
Beginner
732 Views

Dear Chee Pin,

Thank you for your reply,, 

after your suggestion, I try to simulate using ModelSim, and the result is similar to real hardware, please see the figure attached.
I think the sop and eop signals are correct. I still can't understand why.
Also, I attach the full Quartus project of FFT simulation (.rar), hopefully you (or anyone) can help me to find the problem. Thank you

Sincerely,
Isnan

CheePin_C_Intel
Employee
710 Views

Hi,


Thanks for your update. Since the hardware observation is matching the FFT, it means that the behavior of the FFT is something expected. I would suggest for you to look into your input data source to check if it only consist of real data or it is consisting of both real and imaginary.


Please let me know if there is any concern. Thank you.


Isnan
Beginner
638 Views

I am sorry I don't understand about matching the FFT, what should I do with input signal? do I need pre processing before FFT?. my input data for sink_real is directly from ADC sampling, whereas for sink_imaginer is zero.  basically I expect output that contains spike represent frequency and magnitude. however, the FFT output is still in sinusoid type.
Anyway,, I will try again with several input variations.
Thank you very much.

CheePin_C_Intel
Employee
637 Views

Hi,


Sorry for the typo. I am actually referring to "hardware observation is matching the FFT simulation". Sorry for missing out the "simulation" which cause confusion.


To ease the debugging, you can try to use Matlab's simulation result as golden reference. Then, feed the same set of data to the FFT simulation. Generally the FFT would have almost similar behavior as the Matlab golden FFT.


Please let me know if there is any concern. Thank you


CheePin_C_Intel
Employee
622 Views

Hi,


Just to follow up with you on this. Thank you.


Isnan
Beginner
602 Views

Hi CheePin,

yeah, still stuck to the last problem, I can't get a signal that represents real and imaginer. I think the sampling data needs some pre-processing or signal conditioning before wiring to FFT IP. btw I did a simulation using Matlab Simulink and the output is good as expected. well, I need to learn more about this FFT IP.

Reply