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 Black Box for a VHDL Custom Megafunction Variation with the FPGA Compiler II Software

To specify that the FPGA Compiler II software should treat the use_lpm_ram_dq.v file that you created in Example of Creating a VHDL Custom Variation of the lpm_ram_dq Function as a black box, refer to the following code sample from the top-level design file. To modify the source code for the vhdl_design.vhd file to define the module name and port type and to specify that the module is a black box, refer to the following code sample:

LIBRARY ieee;
USE ieee.std_logic_1164.all;
ENTITY vhdl_design IS
PORT    (
        address :  IN STD_LOGIC_VECTOR  (7 DOWNTO 0);
        clock   :  IN STD_LOGIC;
        wen     :  IN STD_LOGIC;
        data    :  IN STD_LOGIC_VECTOR  (7 DOWNTO 0);
        q       : OUT STD_LOGIC_VECTOR  (7 DOWNTO 0);
        );
END vhdl_desgn;
ARCHITECTURE rtl OF vhdl_design IS
--component declaration of the "wrapper"
COMPONENT use_lpm_ram_dq
PORT    (
        address :  IN STD_LOGIC_VECTOR  (7 DOWNTO 0);
        clock   :  IN STD_LOGIC;
        wen     :  IN STD_LOGIC;
        data    :  IN STD_LOGIC_VECTOR  (7 DOWNTO 0);
        q       : OUT STD_LOGIC_VECTOR  (7 DOWNTO 0);
        );
END_COMPONENT;
BEGIN
--direct instantiation of the "wrapper"
u1: use_lpm_ram_dq
PORT MAP        (
                address => address,
                inclock => clock,
                we => wen,
                data => data,
                q => q
                );
                
END rtl;

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