User guide
Altera Corporation 41
Exercise 4: Analyze & Compare the Results in Hardware
14. To view the fast Fourier transform (FFT) of the unfiltered data, type
the following command in the MATLAB Command Window:
plot_fft(adder_result_tap,'Frequency Response - Unfiltered Data',10e7) r
Parameters in this command line include the following:
● adder_result_tap is the name of the signal represented by
the adder_result_tap SignalTap II block in the Simulink model.
● Frequency Response - Unfiltered Data is the title of
the plot.
● 10e7 is the sampling frequency (100 MHz).
A MATLAB plot displays the frequency response of the unfiltered
data, as shown in Figure 31.
Figure 31. FFT Response of adder_result_tap—Unfiltered Data
15. To view the frequency response of the filtered data, type the
following command in the MATLAB Command Window:
plot_fft(fir_result_tap,'Frequency Response - Filtered Data',10e7) r
where:
● fir_result_tap is the name of the signal represented by the
fir_result_tap SignalTap II block in the Simulink model.