/Spectrum

Spectrum analyzer system using a 512-point FFT, in a Cyclone IV FPGA. Reads i2s audio from the codec and then does all FFT/VGA functions. Nios just reads the FFT result and draws the display bars. VGA frame buffer on-chip. VGA signals generated on-chip. See the included video files to watch it in action.

Primary LanguageVHDL

SpectrumAnalyzer

This design implements an audio real-time analyzer (RTA), or spectrum analyzer, that converts the audio time-domain signal into a frequency-domain signal. It then displays the spectrum as a series of bars, with the frequency axis in the log domain rather than linear. Log/log is the best mode for analyzing/viewing audio waveforms.

Link_to_video

Image

This project uses the Cyclone IV FPGA used in the DE2-115 evaluation board to:

a) configure and interface to the audio codec

b) buffer the audio samples into a FIFO

c) feed the samples into an FFT

d) collect the results into a dual-port RAM

e) instantiate a Nios soft-core processor

f) interface the RAM onto the Nios bus to read the resuslts

g) FPGA also has a VGA frame buffer and creates the VGA waveform

h) allows the Nios to draw pixels into the VGA frame buffer

The Nios processor reads the FFT data, groups high frequency bins together to display the spectrum in log fashion, and then draws bars into the VGA frame buffer.