ADC data accommodation for FFT IP

dedicated to the FPGA topics for all Red Pitaya programmers
Post Reply
javiruni10
Posts: 14
Joined: Tue Jan 30, 2024 9:48 am

ADC data accommodation for FFT IP

Post by javiruni10 » Fri Mar 29, 2024 1:53 am

Hello, trying to get the ADC data (14 bits, RedPitaya 125-10) into the FFT IP and not sure what to do. The FFT IP takes a very specific type of data as input. Any insight on how to do it?

Thanks in advance.

juretrn
Posts: 110
Joined: Tue Nov 16, 2021 11:38 am

Re: ADC data accommodation for FFT IP

Post by juretrn » Tue Apr 02, 2024 9:47 am

Hi,

can you link this FFT IP?

javiruni10
Posts: 14
Joined: Tue Jan 30, 2024 9:48 am

Re: ADC data accommodation for FFT IP

Post by javiruni10 » Thu Apr 11, 2024 4:54 pm

This one: https://www.xilinx.com/support/document ... 9-xfft.pdf

Thanks for your response.

Aditionally, i have been trying on getting my own FFT, since i want to input only real data from my ADC (14 bits) and wrote some code, comprising only:

- Input data declaration
- N samples fft
- Circular convolution over the Xm FFT results. That way, X[j]= w^(i*j)*x(i). The outter loop would work over i, therefore, all X[j] would have a first element before getting the second sample (x(i+1)). The inner loop works over j.

- Twiddle factors are calculated (taken from ROM when i understand how to do it) with the product (i*j) from the previous loop. The operation ((i*j)/(N/2)) gives info both on its integer result and on its remainder. The twiddle factor for a i,j can be calculated with w^(j*i)= ((i*j)%(N/2)) and its sign defined by that same division ((i*j/(N/2)), when that division is even,+w^remainder, when it is odd, -w^remainder. That way i only need to store twiddle factors up to ((N/2)-1).

Am i missing something? Any tutorial to implement this on red pitaya? Found a couple but can't really understand what they do. Is the stage= log2(N) a better aproximation?

Thanks!

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 51 guests