Forum Discussion
Unified FFT giving incorrect output
- 1 year ago
Hi David,
I've consulted Factory about the function of the parallel FFT IP. Actually, a parallel FFT processes a single FFT instance with high data rate channels.
For example, 16 instantiations of a single-wire streaming FFT (FFT IP) will calculate 16 different FFT instances in parallel. This is appropriate if you're processing 16 different channels. A 16-wire parallel FFT(parallel FFT IP) processes a single FFT instance. This is appropriate if you're processing one very high data rate channel.
Back to your question about why you saw multiple peaks in one frame. The reasons are:
1. You have two sine waves in one FFT instance.
2. It's a 2-wrie parallel FFT, the processing cycles should be half of the single FFT, for example, for a 64 points FFT, the frame cycles is 64 for a single wire FFT, but 32 for a 2-wire parallel FFT.
Based on above, I modified the input of the parallel FFT(assign d = {8'h0, sine_noise_out1, 8'h0,sine_noise_out1};) to better show the case, and here is what I got:
As you can see, the sum0 has 2 times of peaks of sum_single in "one frame".
Please note that what I did above is just to show the function of the parallel FFT based on your design. The parallel FFT should be one FFT instance, which means you should combine sine_noise_out0 and sine_noise_out1 as one input sequence and then pipe it into two channels. The same with the output, you should pipe the 2 channels data into one sequence.
Best regards,
Leo Feng
Hi David,
This is Leo, I will help you with your issue.
Can I have your source code and test bench? I will have a look at it and do a simulation with it if necessary.
Also please tell me the Quartus version and the devices that you are using now.
Thank you!
Best regards,
Leo
Hi Leo,
I am using:
Quartus Prime 23.4.0 build 79 11/22/2023 SC Pro Edition (Linux)
QuestaSim Intel Starter FPGA Edition-64, Version 2023.3 linux_x86_64
The IP, SRC and Testbench is attached.
Thank you,
David
- David321 year ago
Occasional Contributor
Hi Leo,
Please tell me the status of your simulation.
We need a solution here quite urgently.
Thanks
David