Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Altera FFT Vs Matlab FFT. Strange Results

Hi,

I’m testing some FFT Altera Core using those parameters:

1)Single Streaming or Burst 16K length FFT

2)12-14-16 bits input REAL data (pseudorandom code {-1,1})

3)same bits for twiddle (12-14-16)

The input is a pseudorandom function of ONLY two symbol -1 and 1. I put 0 constant as Imag input. Using 16 bit the exponent is 0, with 14 bit the exponent is -1 and for 12 the exponent is -3.

I tested the output both in DSP Builder environment (Simulink) and using pure Matlab script after generating the Core. The results are totally wrong respect the (correct) built in FFT in Matlab (FFTW). In attachment I put the input file, the Altera output and the Matlab output.

Thanks for the support

Gabriele

18 Replies