cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
3,056 Views
Registered: ‎06-06-2016

FFT LogiCORE IP add window function should I do?


Hi all,

I have a problem now, I'm now using FFT LogiCORE IP do FFT arithmetic ,temporarily configuration for stream mode ,but I found that this process is carried out within the FFT LogiCORE IP frame split, and then the FFT arithmetic, now I want to implement a function, I would like to FFT the input data add the window function,(for example hamming window), this what should I do?

The following is what I want to realize the matlab code:
//////////////////////////////////////////////////////////////
clear ;
close all;
Fs=1000;
T=1/Fs;
Tp=1.06;
N=Tp*Fs;
w=100*pi;
n=1:N;
Xn=12*sin(w*n*T+10*pi/180);
wn=hamming(N);
wn1=boxcar(N);
Xn1=Xn.*wn'; %%%%%%%%%%I want to implement this function
xh=fft(Xn1,4096);
figure ;
plot(20*log10(abs(xh)));

 

///////////////////////////////////////////////////////////////

0 Kudos
Reply
4 Replies
balkris
Xilinx Employee
Xilinx Employee
3,041 Views
Registered: ‎08-01-2008

Xilinx FFT core use Cooley-Tukey FFT algorithm . you can't use your own window function
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Reply
3,005 Views
Registered: ‎06-06-2016

Hi, thank you for your reply.

I want to achieve this function, do you have any good Suggestions?

if I want use the xilinx  LogiCORE IP,What should I do ?

0 Kudos
Reply
3,003 Views
Registered: ‎06-06-2016

Xilin have provide relevant operational IP?
0 Kudos
Reply
ekigwana
Observer
Observer
154 Views
Registered: ‎07-15-2015

Enough people have looked at this so,

To apply a window, 

  1. Determine window choice
  2. Get window coefficients for length of FFT, N
  3. Quantize coefficients
  4. Initialize ROM with with coefficient data
  5. Use counter to advance ROM address when input data is valid
  6. Multiply input sample n with coefficient value at address n and shove into FIFO
  7. When N samples are collected in FIFO, send them to FFT block
0 Kudos
Reply