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 Creating a Verilog HDL Custom Variation of the lpm_ram_dq Function

The following example illustrates how to use the MegaWizard Plug-In Manager to create a custom megafunction variation of the lpm_ram_dq function. You can follow similar steps to create custom megafunction variations of other megafunctions. To create a custom megafunction variation for the lpm_ram_dq function:

  1. On the Tools menu, click MegaWizard Plug-In Manager.

  2. In response to Which action do you want to perform?, select Create a new custom megafunction variation and click Next.

  3. In response to Which type of output file do you want to create?, select Verilog HDL.

  4. In the Available Megafunctions list, click on the + icon to expand the storage folder and select LPM_RAM_DQ.

  5. In response to What name do you want for the file?, type or browse to locate the appropriate file name or location. For this example, the path and file name should be C:\projects\use_lpm_ram_dq.v.

  6. Click Next.

  7. To specify the device and set the bus width and specify which ports to register:

    1. In response to Create RAM for which device family?, select APEX20KE.

    2. In response to How wide should the 'q' output bus be?, select 8 bits.

    3. In response to How wide should the 'address' input bus be?, select 8 bits.

  8. Click Next.

  9. In response to Which ports should be registered?, turn on 'data' input port, 'address' input port, and 'q' output port.

  10. Click Next.

  11. To set the initial content of the memory, under Do you want to specify the initial content of the memory?, select No, leave it blank.

  12. Click Next.

  13. The Summary page informs you of the files that the MegaWizard Plug-In Manager creates. In this example, it creates the following files:

  14. C:\projects\use_lpm_ram_dq.v
    C:\projects\use_lpm_ram_dq.inc
    C:\projects\use_lpm_ram_dq.cmp
    C:\projects\use_lpm_ram_dq.bsf
    C:\projects\use_lpm_ram_dq_bb.v
    C:\projects\use_lpm_ram_dq_inst.v

  1. To create the files and close the MegaWizard Plug-In Manager, click Finish.

 

 

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