ALTPLL (Phase-Locked Loop) IP Core User Guide

ID 683732
Date 6/16/2017
Public
Document Table of Contents

Simulating the shift_clk Design in the ModelSim-Altera Software

This ModelSim design example is for the ModelSim-Altera (Verilog) version. To simulate the design in the ModelSim-Altera software, follow these steps:

  1. Download and unzip the shift_clk_msim.zip file to any working directory on your PC.
  2. Locate the folder in which you unzipped the files to, and open the shift_clk.do file in a text editor.
  3. In line 1 of the shift_clk.do file, replace <insert_directory_path_here> with the directory path of the appropriate library files. For example, C:/Modeltech_ae/altera/verilog/stratix.
  4. On the File menu, click Save.
  5. Start the ModelSim-Altera software.
  6. On the File menu, click Change Directory.
  7. Select the folder in which you unzipped the files. Click OK.
  8. On the Tools menu, click TCL and click Execute Macro.
  9. Select the shift_clk.do file and click Open. The shift_clk.do fileis a script file for the ModelSim-Altera software to automate all the necessary settings for the simulation.
  10. The Waveform Viewer appears. Verify the waveform shown in the viewer.
The following figure shows the expected simulation results in the ModelSim-Altera software.
Figure 24. ModelSim Simulation Results