Altera Home Page
文档资料 许可
在线购买 下载

  主页   |   产品   |   支持   |   最终市场   |   技术中心   |   教育与活动   |   公司介绍   |   在线购买  
  mySupport   |   器件   |   软件   |   IP   |   设计范例   |   参考设计  

 产品
   Quartus II
      SOPC Builder
      MAX+PLUS II
      ModelSim-Altera
  
 资源中心
      简介
      安装&许可
      脚本
       电路板设计& I/O
      网表阅读器 & 综合
      编译增强特性
      优化
      功耗管理
   TimeQuest时序分析器
      标准时序分析器
      仿真 & 确认
      片内调试
      HardCopy设计
  
 软件资源
      操作系统支持
      驱动安装
  
 下载与许可
      下载
   许可
  
 Quartus II EDA 支持
      Quartus II 接口
   综合工具
          Design Compiler
          DC FPGA
          FPGA Compiler II
          LeonardoSpectrum
          Precision RTL Synthesis
          Synplify
   仿真工具
   验证工具
   时序分析工具
   再综合工具
   电路板级工具
  
 老版软件EDA支持
      供应商类
      工具类
      功能类
  

Example of Performing a Functional Simulation of a Synplify Verilog HDL Design with the ModelSim Software

You can perform a functional simulation of the custom megafunction variation you created in Example of Creating a black box for a Verilog HDL Custom Variation of a Megafunction with the Synplify Software before compilation in the Synplicity Synplify or the Quartus II software.

To perform a functional simulation in the ModelTech Modelsim software, you can create a script that performs the following steps:

  • Compiles the altera_mf.v library.

  • Compiles the Verilog Design File (.v) generated by the MegaWizard Plug-In Manager. In this example, the file is my_pll.v.

  • Compiles the top-level Verilog Design File. In this example, the file name is pllsource.v.

  • Compiles the test bench file. In this example, the test bench file name is plltest.v.

You can simulate this sample design in the ModelSim software by using the commands shown in the following sample script:

vlib work                                            # Create working directory
vlog /quartus/eda/sim_lib/altera_mf.v                   # Compile the altera_mf library
exec vmap altera_mf work                                # Create altera_mf library and map it to work
vlog my_pll.v                                           # Compile Megawizard generated file
vlog pllsource.v                                        # Compile source instantiating module
vlog plltest.v                                          # Compile test bench file
vsim -t ps work.plltest                                 # Simulate plltest with resolution in ps
add wave /plltest/*                                     # Add the port signals to the waveform view
add wave /plltest/U1/PLL_1/altclock_component/clock1    # Add the clock1 altclklock signal to the 
                                                        # waveform view
run 1000 ns                                             # Run the simulation for 1000 ns

  请填写反馈意见
  注册索取最新邮件通知