Forum Discussion
Altera_Forum
Honored Contributor
17 years agoHelp 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
Honored Contributor
- Altera_Forum
Honored Contributor
Thanks for the block diagram. Can you please tell me how to generate the numbers for the LUT?
- Altera_Forum
Honored Contributor
if you have MATLAB you can type "help window" to get a listing of the window functions and learn their usage. for example:
my_window = hann(window_length); it doesn't look like Octave has hann, but you can see which windows are supported here: http://octave.sourceforge.net/doc/funref_signal.html i attached a 256-point Hann window coefficient list. - Altera_Forum
Honored Contributor
Did you try the vector wave form simulation or only the matlab simulation???????????
- Altera_Forum
Honored 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
Honored Contributor
there is a dll and mex file in $QUARTUS_ROOTDIR\ip\altera\fft\lib which you'll need