External Memory Interfaces Agilex™ 7 M-Series FPGA IP User Guide

ID 772538
Date 11/18/2024
Public
Document Table of Contents

5.1.4. Simulating the Design Example

This topic describes how to simulate the design example in Synopsys* , and Siemens EDA simulators.

To simulate the example design in the Quartus® Prime software using the Synopsys* simulator, follow these steps:

  1. At the Linux* shell command prompt, change directory to sim\ed_sim\synopsys\vcsmx
  2. Run the simulation by typing the following command at the command prompt:
    sh vcsmx_setup.sh

To simulate the example design in the Quartus® Prime software using the Siemens EDA simulator, follow these steps:

  1. At the Linux or Windows shell command prompt, change directory to sim\ed_sim\mentor
  2. Execute the msim_setup.tcl script that automatically compiles and runs the simulation by typing the following command at the Linux or Windows command prompt:
    vsim -do msim_setup.tcl

    or

    Type the following command at the ModelSim* command prompt:

    source msim_setup.tcl
    

    This command compiles all the design files, elaborates the top-level design, and runs the simulation.

    If you require the -voptargs=+acc option, open the msim_setup.tcl script, go to the end of the file, and search for the

    1. Open the msim_setup.tcl script in an editor.
    2. Go to the end of the file, and search for the ld command.
    3. Change the ld command to ld_debug, and run the command again. The end of the cfile should look like this:
      ld_debug
      run -all
      

For more information about simulating the external memory interface using the Siemens EDA simulator, refer to the Simulating External Memory Interface IP With ModelSim chapter in the External Memory Interfaces Agilex™ 7 M-Series FPGA IP Design Example User Guide.

Note: Altera does not provide the run.do file for the example design with the EMIF interface.

For more information about simulation, refer to the Quartus® Prime Pro Edition User Guide, Third-party Simulation.

If your Quartus® Prime project appears to be configured correctly but the example testbench still fails, check the known issues on the Altera FPGA Knowledge Base before filing a service request.