FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5748 Discussions

FFT MegaCore simulation

Altera_Forum
Honored Contributor I
1,064 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 I
60 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,
Altera_Forum
Honored Contributor I
60 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.
Altera_Forum
Honored Contributor I
60 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??
Altera_Forum
Honored Contributor I
60 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.
Altera_Forum
Honored Contributor I
60 Views

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

 

Regards,
Reply