Forum Discussion

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

Help with FFT megacore .mdl design

Would anybody mind taking a look at my .mdl for me? I'm trying to get the spectrum of a sine wave source block and there seems to be a lot of noise. I'd like to have a solid plot of the spectrum in matlab, so I can continue with the design. Right now I have the imaginary input connected to the real input/source, its set up for a 256 point streaming transform. It's for a school project, none of my professors seem to know that much about simulink. Help would be awesome it's starting to come down to the wire. THANKS

3 Replies

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

    **I was inputting negative values into the real input, I think this was one of the problems

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

    I attached the spectrum of a 64 point streaming arch. transform on a sine wave at 12.5 MHz. I plotted it in MatLab with an FFT shift and without scaling. I wonder if there is an overflow, without the FFT shift the spikes occur at the ends of the spectrum, the data shifts as I change the frequency but for the large part isnt accurate.

    Any body have any ideas with whats going on? :confused: