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

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

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

Performing a Functional Simulation with QuickHDL Software

You can use Mentor Graphics QuickHDL software to functionally simulate VHDL or Verilog HDL design files before compiling them with the MAX+PLUS® II Compiler.

NOTE: If you wish to functionally simulate a hierarchical design that uses multiple design entry methods, you should use QuickHDL Pro rather than QuickHDL. Refer to Performing a Functional Simulation with QuickHDL Pro Software for more information.

To functionally simulate a VHDL or Verilog HDL design, follow these steps:

  1. Be sure to set up the working environment correctly, as described in Setting Up the MAX+PLUS II/Mentor Graphics/Exemplar Logic Working Environment.
  2. Create a VHDL or Verilog HDL design file that follows the guidelines described in Creating VHDL & Verilog HDL Designs for Use with MAX+PLUS II Software.
  3. Start Design Architect by double-clicking Button 1 on the max_da icon in the Design Manager tools window. You can also start Design Architect software by typing max2_da Enter at the UNIX prompt.
  4. Choose Lib (QuickHDL menu) and specify your work library name as the Work Library name. Choose OK.
  5. Choose Map (QuickHDL menu) to map the instantiated function to the equivalent function in the Altera logic function library. Choose Set to specify altera as the Logical Name and $MAX2_MFLIB as the Physical Name. Choose OK.
  6. Choose Compile (QuickHDL menu) and use the Navigator window to select the icon for your project. Specify your work library name as the Work Library name and select the Simulation setting in the Set VHDL Compilation Options or Set Verilog HDL Compilation Options window. Choose OK to compile.
  7. Choose Simulate (QuickHDL menu) and specify your work library name as the Work Library name. Choose OK to start the QuickHDL Startup window.
  8. Select the icon for your project in the Entity Configuration window and choose OK to simulate the design.
  9. Synthesize and optimize the design, as described in Synthesizing & Optimizing VHDL & Verilog HDL Projects with Galileo Extreme Software or Synthesizing & Optimizing VHDL & Verilog HDL Projects with Leonardo Software.

If your Verilog HDL design uses memory functions (RAM or ROM) that can be initialized with a hexadecimal file (Intel-format) initialization, you must convert these files into Verilog HDL format using the Programming Language Interface (PLI). To use the Altera-provided source code for PLI, perform the following steps:

  1. Download the file http://www.edif.org/lpmweb/convert_hex2ver.c to your project directory.
  2. Copy the following two files from the $MGC_HOME/shared/pkgs/quickhdl/include directory into the /usr/maxplus2 directory:

  • $MGC_HOME/shared/pkgs/quickhdl/include/veriuser
  • $MGC_HOME/shared/pkgs/quickhdl/include/acc_user

Refer to the Mentor Graphics QuickHDL User's Reference Manual, version 8.5-4.6i, for information on compiling the PLI application on different platforms and using the Verilog HDL PLI.

Related Links:


Feedback

Did this information help you?

If no, please log onto mySupport to file a technical request or enhancement.


Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.

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