2.4.1. Simulation Testbench
The simulation design-under-test (DUT) is the generated design example which includes a synthesizable pattern generator and checker. The figures below show the testbench block diagram for the simplex and duplex options.
The simulation flow replaces the JTAG to Avalon® master bridge module in the Platform Designer system of the System Console control design example with the Avalon® memory-mapped master bus functional model (BFM). This BFM enables a testbench to send Avalon® memory-mapped read/write commands to the design example registers to mimic the functionality of System Console.
The testbench provided in the simulation flow (/models/tb_top.sv) executes the following steps:
- Resets the DUT.
- Initializes the BFM.
- Executes the Avalon® memory-mapped commands to initialize the DUT in the following mode:
- Pattern generator/checker set to PRBS pattern
- Waits for the DUT to initialize the user mode.
- Reports the F-Tile JESD204B link status.
When the simulation ends, the following messages are shown at end.
Message | Description |
---|---|
Pattern Checker(s): Data error(s) found! | Pattern mismatch errors found on the pattern checker |
Pattern Checker(s): OK! | No errors found on the pattern checker |
Pattern Checker(s): No valid data found! | No valid data received by pattern checker |
JESD204B Tx Core(s): Tx link error(s) found! | Link errors reported by JESD204B IP TX |
JESD204B Tx Core(s): OK! | No link errors reported by JESD204B IP TX |
JESD204B Rx Core(s): Rx link error(s) found! | Link errors reported by JESD204B IP RX |
JESD204B Rx Core(s): OK! | No link errors reported by JESD204B IP RX |
TESTBENCH_PASSED: SIM PASSED! | Overall simulation passed |
TESTBENCH_FAILED: SIM FAILED! | Overall simulation failed |