cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
639 Views
Registered: ‎12-12-2018

insdsoc i am implement FFT,but the results were quite different.

this is my xilinx results and matlab :

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

this is my xilinx prams:

 

 static const unsigned ordering_opt = hls::ip_fft::natural_order;
    static const unsigned config_width = 8;
    static const unsigned input_width = 32;
    static const unsigned output_width = 32;
    static const unsigned max_nfft = 7;
  • I used the following image(the first row,and the 1:128cols)cut_left.jpg

 

this is my matlab code:

clear all;clc;
x = imread('cut_left.jpg');
c = size(x);
% printf(x);
scr = x(1,1:128);
dst = fft(scr,128);
........
plot(1:128,abs(dst),'b',1:128,abs(dst2).*128,'g+');
legend('label','xilinx')
  • I'm in the middle of a project. Can anyone help me? I'm going crazy.thanks.

0 Kudos
0 Replies