MIPI DSI RX Controller Testbench
You can choose to generate the testbench when generating the core in the IP Manager Configuration window.
provides a simulation script for you to run the testbench
quickly using the Modelsim software. To run the Modelsim testbench script, run
vsim -do modelsim.do in a terminal application. You must have
Modelsim installed on your computer to use this script.
The IP Manager generates different encrypted source code for you to simulate with different simulators.
| Directory/File | Note |
|---|---|
| ../Testbench | Contains the example design and testbench files. |
| ../Testbench/aldec | Contains the generated encrypted source code to simulate with the Aldec simulator. |
| ../Testbench/modelsim | Contains the generated encrypted source code to simulate with the Modelsim simulator. |
| ../Testbench/ncsim | Contains the generated encrypted source code to simulate with the NCSIM simulator. |
| ../Testbench/synopsys | Contains the generated encrypted source code to simulate with the VCS simulator. |
The simulation testbench simulates the example design. The design generates a video pattern to the MIPI DSI TX controller and loopback to MIPI DSI RX Controller. The output pixel interface from the DSI RX controller is checked by a checker in the testbench.
After running the simulation successfully, the test prints the following message:
# Mipi test: begin @ 0
# Mipi test: reset released @ 1000
# Mipi test; pll locked @ 1000
# Mipi test: simulation done @ 2001001000
# Mipi test: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Mipi test: RESULT ...... TEST PASSED ^ ^
# Mipi test: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~