2.5 Simulating the Design
(Ask a Question)A testbench (top.v
) is provided to simulate the design. The testbench
simulates the filter pattern and waveform selection. It contains the test selection for the
coefficient inputs (low-pass, high-pass, band-pass, and band-stop) and data input. It also
monitors the UART_IF module status signals, output signals (DATAOUT), and FFT output status
signals (DATA Valid and output ready) for the verification of filter output.
The following figure shows the simulation waveform.
- Change the radix of the input to decimal, right-click DATAI, go to the radix option, and select decimal.
- Right-click DATAI, select the format option and select Analog (automatic).
In the preceding figure:
- COEFFI represents Input coefficients
- DATAI represents FIR input data
- FIRO represents FIR output data
The following figure contains the Low-Pass Filter Output waveform, which is highlighted in the following figure.
In the preceding figure:
- DATAO_IM represents the imaginary part of the FFT output
- DATAO_RE represents the real part of the FFT output