MIPI D-PHY IP User Guide: Agilex™ 5 FPGAs

ID 817561
Date 7/08/2024
Public
Document Table of Contents

5.5.2.1. Simulation Design Example with External Loopback Enabled Block Diagram

The MIPI D-PHY IP supports a loopback-enabled option. In the example below, a single D-PHY IP has both the matching TX and RX links instantiated within the same IP.

Alternatively, you could instantiate two IPs for TX and RX, respectively. When TX and RX links are instantiated within the same IP, the D-PHY IP checks for the RX-TX pairing for loopback and passes that information to the TG_BFM block for enabling the loopbacks among the different links.

The simulation design example with external loopback enabled contains the major blocks shown in the figure below:

Figure 19. External Loopback Simulation Testbench

As described in the previous section, the synthesis design example contains a traffic generator and an instance of the D-PHY IP.

The TG_BFM model, which includes the following functions:

  • Clock source for PLL reference clock.
  • AXI-Lite interface instantiation which contains read/write tasks and can be used as an AXI-Lite BFM.
  • Loopback MUXing for looping back TX links to RX links on the same D-PHY IP.