Visible to Intel only — GUID: orr1742337188141
Ixiasoft
Visible to Intel only — GUID: orr1742337188141
Ixiasoft
F.4.2. Simulation Scripts Set-up
Before you compile and simulate the design, add the set-up and run scripts to your testbench environment:
- Navigate to the <example_design_folder>/pcie_ed_sim/sim/mentor directory.
- Copy the msim_avery.tcl and run_avery_questsim.sh files into this directory.
- Edit the msim_avery.tcl file to include the path for the QUARTUS_INSTALL_DIR, AVERY_PCIE and AVERY_PLI variables.
- Search for <QUARTUS_INSTALL_DIR> and replace it with your Quartus installation path.
- Example (your specific path may differ):
- set QUARTUS_INSTALL_DIR “mydisk/linux64/quartus/"
- Search for <AVERY_PCIE_PATH> and <AVERY_PLI_PATH> and replace with the paths to your Avery directories.
- Search for <QUARTUS_INSTALL_DIR> and replace it with your Quartus installation path.
Example (your Avery version may differ):
- set AVERY_PCIE "/mydisk/avery/apciexactor-2.5"
set AVERY_PLI "/mydisk/avery/pli/avery_pli-2021_0104/"
- The simulation is set up for PIPE mode simulation by default. To change it to run a serial simulation, replace all instances of +define+RTILE_PIPE_MODE with +define+RTILE_SERIAL_MODE_SIM in the msim_avery.tcl file.
The msim_avery.tcl script sets up the simulation environment, calling the Quartus® Prime-generated msim_setup.tcl script of the PCIe design example to compile and elaborate the PCIe design example files. It also calls the commands to compile the Avery testbench components integrated above, and runs the simulation.