Forum Discussion

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

Help with altera FFT

hello;

what i want to do is to get spectrum of an sinusoidal signal using the altera fft core i have generated a v8 fft with the following setting:

fft point : 64 (to start with)

architecture : brust

data width : 16

twidle width : 16

i am including the matlab files in the attachment .. the input is a 64 point 2`compliment form.

in the compare.m file i am doing three fft,,2 matlab fft and 1 altera core fft

what i cant figure out is why the magnitude of the second and the the third power spectrum has bigger amplitude than the first fft at the signal fundmental frequency ?

and why are those two are not so clean like the first one ?

please have a look .. thanks to anyone who replies.

56 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    attached is a basic block diagram of a windowed FFT.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for the block diagram. Can you please tell me how to generate the numbers for the LUT?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you try the vector wave form simulation or only the matlab simulation???????????

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    can someone tell me please what is that function :

    ??? Undefined command/function 'Sfftmodel'.

    Error in ==> create_fft_model at 45

    [roc,ioc,eoc] = Sfftmodel(rin,iin,N,THROUGHPUT,ARCH,DATA_PREC,TWIDDLE_PREC,INVERSE); ???

    that is the function that altera creat for the fft , but matlab dont know that function...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    there is a dll and mex file in $QUARTUS_ROOTDIR\ip\altera\fft\lib which you'll need