RapidIO Intel FPGA IP User Guide

ID 683884
Date 9/15/2021
Public
Document Table of Contents

2.5.1. Simulating the Testbench with the ModelSim Simulator

To simulate the RapidIO IP core testbench using the Mentor Graphics ModelSim* simulator, perform the following steps:
  1. Start the ModelSim* simulator.
  2. In ModelSim*, change directory to the directory where the testbench simulation script is located:
    • For Intel® Arria® 10 and Intel® Cyclone® 10 GX variations, change directory to <your_ip>/sim/mentor.
    • For variations other than Intel® Arria® 10 and Intel® Cyclone® 10 GX, change directory to <your_ip>/simulation/mentor.
  3. To set up the required libraries, compile the generated simulation model, and exercise the simulation model with the provided testbench, type one of the following sets of commands:
    1. For Intel® Arria® 10 variations using the Intel® Quartus® Prime Standard Edition software, type the following commands:
      do msim_setup.tcl
      set TOP_LEVEL_NAME <your_ip>_altera_rapidio_<version>.tb
      ld
      run -all

      For example:

      set TOP_LEVEL_NAME my_srio_altera_rapidio_171.tb

      where "my_srio" is the IP variation.

    2. For Intel® Arria® 10 and Intel® Cyclone® 10 GX variations using the Intel® Quartus® Prime Pro Edition software, type the following commands:
      do msim_setup.tcl
      set TOP_LEVEL_NAME altera_rapidio_<version>.tb
      ld
      run -all

      For example:

      set TOP_LEVEL_NAME altera_rapidio_171.tb
    3. For variations other than Intel® Arria® 10 and Intel® Cyclone® 10 GX, type the following commands:
      do msim_setup.tcl
      set TOP_LEVEL_NAME rapidio_0.tb
      ld
      run -all
    Simulation of the testbench might take few minutes. The testbench displays a TESTBENCH_PASSED message after completion.