F-Tile JESD204B Intel® FPGA IP Design Example User Guide

ID 729497
Date 10/02/2023
Public
Document Table of Contents

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.

Figure 4. Simulation Testbench Block Diagram (Simplex TX or RX)
Note: Both simplex TX and simplex RX design examples generate the same testbench. The testbench is identical to duplex design, except duplex JESD204B IP is replaced with TX/RX simplex IPs. The testbench instantiates two JESD204B IPs: one simplex TX IP, one simplex RX IP. The TX serial data output of the simplex TX is connected to the RX serial data input of the simplex RX. Pattern generator and pattern checker are generated in simplex simulation testbench to demonstrate the IP in loopback.
Figure 5. Simulation Testbench Block Diagram (Duplex)

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:

  1. Resets the DUT.
  2. Initializes the BFM.
  3. Executes the Avalon® memory-mapped commands to initialize the DUT in the following mode:
    • Pattern generator/checker set to PRBS pattern
  4. Waits for the DUT to initialize the user mode.
  5. Reports the F-Tile JESD204B link status.

When the simulation ends, the following messages are shown at end.

Table 7.  Simulation Messages and Description
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