AN 744: Scalable Triple Speed Ethernet Reference Design for Arria 10 Devices

ID 683785
Date 5/13/2016
Public

1.7.2. Simulating the Testbench

The simulation script uses QUARTUS_ROOTDIR environment variable to access Altera simulation model libraries. You have to set the QUARTUS_ROOTDIRto point to the Quartus II installation path after installation. If this environment variable is missing, then you must set the variable manually.

Follow these steps to use the ModelSim simulator to simulate the testbench designs:

  1. Ensure that the QUARTUS_ROOTDIR environment variable is pointing to the Quartus II installation path. If this environment variable is missing, you must set the variable manually.

    The simulation script uses this environment variable to access Altera simulation model libraries.

  2. Change to one of the following directories.
    • <project directory>/altera_eth_tse_wo_1588/testbench/Modelsim/testcase<n> for the design without the IEEE 1588v2 feature.
    • <project directory>/altera_eth_tse_w_1588/testbench/Modelsim/testcase<n> for the design with the IEEE 1588v2 feature.
  3. Launch the Modelsim simulator, and run do tb_run.tcl to set up the required libraries, compile the generated IP functional simulation model, and exercise the simulation model with the provided testbench.