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

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

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

Instantiating LPM Functions in VHDL

You can use Mentor Graphics Design Architect software to help you instantiate library of parameterized modules (LPM) functions in your VHDL design files.

To incorporate an LPM function into a VHDL design file, perform the following steps:

  1. Be sure to set up the Design Architect working environment correctly, as described in Setting Up the MAX+PLUS II/Mentor Graphics/Exemplar Logic Working Environment.

  2. Open a dummy schematic in the Design Architect software:

    1. Start the Altera®/Mentor Graphics interface by typing max2_dmgr Enter at a UNIX prompt.
    2. Start the Design Architect software by double-clicking Button 1 on the max2_da icon in the Design Manager tools window.

    3. Choose the OPEN_SHEET button in the Design Architect session_palette, then specify your project name in the Component Name box. Choose OK.

  3. Instantiate the desired LPM function in the dummy schematic:

    1. Choose Altera Libraries (Library menu).

    2. Choose ALTERA LPMLIB (Altera Libraries menu).

    3. Choose from the available LPM functions on the ALTERA LPMLIB menu.

    4. In the LPM_<lpm function> dialog box, specify a name for the LPM function in the Cell Name box and appropriate values for the function's parameters. Make sure that any hexadecimal (Intel-format) file that you use to specify the initial content of a memory function does not have the same name as the design file name. Choose Megafunctions/LPM from the MAX+PLUS® II Help menu for detailed information about LPM functions.

    5. Choose OK to generate the LPM function, the corresponding VHDL simulation model, and a VHDL Component Declaration/Attribute Declaration/Attribute Specification (.cmp) template.

  4. Close the Design Architect software without saving the dummy schematic.

  5. Instantiate the function created in step 2 in your design file. Use the template file to help prevent syntax and other errors.

  6. Continue with the steps necessary to complete your design file, as described in Creating VHDL & Verilog HDL Designs for Use with MAX+PLUS® II Software.

Installing the Altera­provided MAX+PLUS II/Mentor Graphics/Exemplar Logic interface on your computer automatically creates the sample hierarchical VHDL design file /usr/maxplus2/examples/mentor/example8/adder16.vhd, which includes LPM function instantiation.


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.

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