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

ID 683372
Date 4/07/2025
Public
Document Table of Contents

3.3.1.2. Steps to Run Simulation : VCS* MX

Working Directory

<example_design>/pcie_ed_sim_tb/pcie_ed_sim_tb/sim/synopsys/vcsmx/

Instructions

  1. Run the following commands:
    sh run_vcsmx.sh
  2. A successful simulation ends with the following message,
    "Simulation stopped due to successful completion!"
    in the simulation.log file that was generated.
Note: To run a simulation in interactive mode, use the following steps: (if you already generated a simv executable in noninteractive mode, delete the simv and simv.daidir)
  1. Open the vcsmx_setup.sh file and add a debug option to the VCS command:
    vcs -debug_access+all
  2. Add the SKIP_SIM=1 option to the command in the run_vcsmx.sh script before running it. The command should look like below:
    sh vcsmx_setup.sh USER_DEFINED_COMPILE_OPTIONS="-kdb\ +define+gdrb_GDR_PCIE_SS_DV\ +define+GDR_FASTSIM_AIB_BYPASS\  +define+RTLSIM\ +define+SSM_SEQUENCE\ -ignore\ initializer_driver_checks\ -sverilog\ +define+IP7581SERDES_UX_SIMSPEED" USER_DEFINED_ELAB_OPTIONS="+vcs+lic+wait\ -full64\ -ignore\ initializer_driver_checks\ -hsopt=gates\ -debug_pp\ -debug_access+all" USER_DEFINED_SIM_OPTIONS="" SKIP_SIM=1 DEVICES_SIM_LIB_DIR=$QUARTUS_ROOTDIR/../devices/sim_lib2   QUARTUS_SIM_LIB_DIR=$QUARTUS_ROOTDIR/eda/sim_lib2
    
    Note: The command above is a single-line command.
  3. Start the simulation in interactive mode:
    simv -gui &
  4. Pull the signals of interest into the waveform list and click Start to run the simulation.
  5. A successful simulation ends with the following message in the log console:
    "Simulation stopped due to successful completion!"