FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6519 Discussions

FFT MegaCore simulation

Altera_Forum
Honored Contributor II
1,819 Views

Hi, 

 

I'm working with Altera streaming 1024 points FFT core (fft v13). I want to get spectrum but i'm enable to extract frequency information from outputs. 

 

Anybody can help me please! Thanks 

 

Regards,
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
815 Views

I attached the response that I get. My input is a sin. In the axis of the spectrum i have time samlpes but i want to have frequence. 

 

PS: Sorry for my poor english 

 

Regards,
0 Kudos
Altera_Forum
Honored Contributor II
815 Views

You're not very clear on what you're doing. My guess is you're using DSP Builder and the FFT Megacore as that screenshot looks like a Simulink scope. If you want useful answers you need to give much more information so that people don't have to guess. 

 

You've connected your input data and output data to a scope, which always shows a signal plotted against time. To get a graph of the frequency you need to save that data to a variable using a "To Workspace" block. Then you can use the MATLAB command "plot" the points against any values you like. 

 

You may be able to do it directly using the vector scope block as well.
0 Kudos
Altera_Forum
Honored Contributor II
815 Views

Hi dabuk,  

 

Thank you for your reply. I will do it. 

Sorry, I am a beginner in DSP. I will be more clear.  

 

I have to implement an algorithm in fpga which allows me to make the time-frequency analysis. 

 

I'm obliged to extract input signal frequency??
0 Kudos
Altera_Forum
Honored Contributor II
815 Views

I'm no expert either. 

 

I guess you will have to create a component that reads in the values of the FFT and then finds the maximum magnitude. You can then multiply the time-step of the maximum value by the frequency per bin and you will have the frequency of the largest component. 

 

To do this you will have to write some HDL or use a tool like DSP Builder.
0 Kudos
Altera_Forum
Honored Contributor II
815 Views

I'm using DSP Builder. I will try it and i'll tell you the result. 

 

Regards,
0 Kudos
Reply