RapidIO Intel FPGA IP User Guide

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

8.3. Simulating the System

To simulate your system with the sample Verilog HDL testbench, follow these steps:
  1. Copy the following files from the \ip\altera\rapidio\lib\rio\qsys_cust_demo subdirectory of your Intel® Quartus® Prime installation directory to your Intel® Quartus® Prime project directory:
    • rio_sys_tb.v
    • sim.do
    • test_bench.v
    • test_input.v
    • test_result.v
  2. Start the ModelSim* software. On the File menu, change directory to your Intel® Quartus® Prime project directory.
  3. Type the following command at the ModelSim* command prompt:

do sim.do

The RapidIO design example performs the following transactions in simulation:

  • Sends a sequence of read requests to the internal registers of the IP core
  • Sets up other internal registers of the IP core for MAINTENANCE and I/O transactions and reads the registers to ensure the write operations completed
  • Writes data to the Maintenance slave, reads it back, and verifies data integrity
  • Sends burst transfer write and read requests to the IP core to send out on the RapidIO link, and verifies data integrity

When simulation completes, on the File menu, click Quit to close the ModelSim* software.