R-Tile Avalon® Streaming Intel® FPGA IP for PCI Express* Design Example User Guide

ID 683544
Date 1/27/2025
Public
Document Table of Contents

2.3.1.3. VCS* MX Simulator

Perform the following steps to execute the simulation via a command line:
  1. Change to the simulation working directory: cd <my_design>/pcie_ed_sim_tb/pcie_ed_sim_tb/sim/synopsys/vcsmx.
  2. Execute the following command: sh vcsmx_setup.sh USER_DEFINED_COMPILE_OPTIONS="+define+rnrb_one_lib_RNR_OVERCLK_FASTSIM\ +define+RNR_FASTSIM_AIB_BYPASS\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrb_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE\ +define+rnrc_one_lib_RNR_OVERCLK_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrc_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE" USER_DEFINED_ELAB_OPTIONS="" USER_DEFINED_SIM_OPTIONS="" TOP_LEVEL_NAME="pcie_ed_sim_tb.pcie_ed_sim_tb" | tee simulation.log
    Note: The command above is a single-line command.
If R-Tile is configured with Enable PIPE Mode Simulation for Example Design, perform the following steps:
  1. cd <my_design>/pcie_ed_sim_tb/pcie_ed_sim_tb/sim/synopsys/vcsmx/
  2. sh run_vcsmx.sh

A successful simulation includes the following message: "Simulation stopped due to successful completion!"

Perform the following steps to execute the simulation in interactive mode. Note that in case you have already generated a simv executable in non-interactive mode, you need to delete the simv file and simv.diadir directory.
  1. Execute the following command: sh vcsmx_setup.sh USER_DEFINED_COMPILE_OPTIONS="+define+rnrb_one_lib_RNR_OVERCLK_FASTSIM\ +define+RNR_FASTSIM_AIB_BYPASS\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrb_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE\ +define+rnrc_one_lib_RNR_OVERCLK_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrc_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE" USER_DEFINED_ELAB_OPTIONS="" USER_DEFINED_SIM_OPTIONS="" TOP_LEVEL_NAME="pcie_ed_sim_tb.pcie_ed_sim_tb" SKIP_SIM=1 | tee simulation.log
  2. Start the simulation in interactive mode: simv -gui &
Note: If R-Tile is configured with Enable PIPE Mode Simulation for Example Design active, use the following command:

sh vcsmx_setup.sh USER_DEFINED_COMPILE_OPTIONS="+define+rnrb_one_lib_RNR_OVERCLK_FASTSIM\ +define+RTILE_PIPE_MODE\ +define+RNR_FASTSIM_AIB_BYPASS\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrb_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrb_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE\ +define+rnrc_one_lib_RNR_OVERCLK_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM\ +define+rnrc_one_lib_RNR_PCIE_TOP_EQ_BYPASS_FASTSIM_H2H\ +define+rnrc_one_lib_RNR_FASTSIM_FORCE_PLL_LOCK_TIME\ +define+XTOR_PCIECXL_LM_SVS_SERDES_ARCHITECTURE" USER_DEFINED_ELAB_OPTIONS="" USER_DEFINED_SIM_OPTIONS="" TOP_LEVEL_NAME="pcie_ed_sim_tb.pcie_ed_sim_tb" SKIP_SIM=1 | tee simulation.log