Visible to Intel only — GUID: nfa1432199985003
Ixiasoft
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:
- 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.
- 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.
- 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.