APB3 to AXI4 Lite Converter Testbench
You can choose to generate the testbench when generating the core in the IP Manager Configuration window. To generate testbench, the Testbench Deliverables Option signals must be enabled.
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 testbench includes several tests that use either randomly generated data or user input data. The testbench also includes a comparator to indicate a pass/fail for the read and write operations.
| Test | Description | Input Type |
|---|---|---|
| Write | Single write test | Random or user input |
| Read | Single read test | Random or user input |
| Continuous Write | 8 (default) cycles write test | Random |
| Continuous Read | 8 (default) cycles read test | Random |
| Write Wait | Single wait write test | User input |
| Read Wait | Single wait read test | User input |
| Write then Read | Single write then read test | User input |
| Error | Error test | User input |
After running the write simulation, the test prints the following message:
80000- PASS! the output write address is correct
80000- PASS! the output write data is correct
After running the read simulation, the test prints the following message:
480000- PASS! the output read address is correct
510000- PASS! the output read data is correct
After running the error simulation, the test prints the following message:
5980000- PASS! the signal is correct on State Error