LVDS Tunneling Protocol and Interface (LTPI) IP User Guide: Agilex™ 3 and Agilex™ 5 FPGAs and SoCs

ID 844310
Date 8/15/2025
Public
Document Table of Contents

3.4. Simulating the Design Example

The simulation design example has five interfaces (that is, GPIO, I2C, UART, data channel, and OEM) enabled.

Both LVDS Tunneling Protocol and Interface (LTPI) controller and target IP are generated with fixed set of configurations, as described in the Configuring the Design Example Parameters section. These two IP instances are instantiated in the testbench wrapper and connected through the LVDS interface, as shown in the following figure. The required clocks are generated from the testbench wrapper. Refclk_25Mhz is connected and driven by a base frequency of 25 MHz for link training phase along with the system clock, which frequency operates at 100 MHz. The generated input data of each channel interface is sent to the controller or target TX ports, packetizing and tunneling through the LVDS interface to the target or controller RX ports.

LVDS Tunneling Protocol and Interface (LTPI) IP—Simulation Testbench

Perform these steps to simulate the design example:

  1. Navigate to your LVDS Tunneling Protocol and Interface (LTPI) IP working directory. For example, <example_design_directory>/example_design/testbench.
  2. To run the testbench simulation, execute the following commands based on the simulator you are using. The table below shows the commands to run the supported simulators.
    Table 46.  List of Supported Simulators
    Simulator Command
    VCS* MX

    In the command line, type:

    sh run_vcsmx.sh
    QuestaSim* / ModelSim*
    To run a simulation in the GUI type, in the command line, type:
    vsim -do run_vsim.tcl

    If you prefer to simulate without bringing up the GUI, type:

    vsim -c -do run_vsim.tcl