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 Verilog HDL Custom Megafunction Variation with the Leonardo Spectrum Software

To specify that the LeonardoSpectrum software should treat the cam_wrapper_v.v file, which you created in Example of Creating a Verilog HDL Custom Variation of the altcam Function, as a black box, refer to the following code sample from the top-level design file. In this example, the top-level design file is camsource.v. To modify the source code for the camsource.v file to define the module name and port type and to specify that the module is a black box, you can use the cam_wrapper_bb.v empty module declaration and add it to the camsource.v top-level design file as shown in the following code sample:

Camsource.v

module camsource (
        pattern,
        wraddress,
        wren,
        wrx,
        wrxused,
        wrdelete,
        inclock,
        inclocken,
        inaclr,
        maddress,
        mfound,
        mcount,
        rdbusy,
        wrbusy);
);
input [31:0] pattern;
input [4:0]  wraddress;
input        wren;
input [31:0] wrx;
input        wrxused;
input        wrdelete;
input        inclock;
input        inclocken;
input        inaclr;
output [4:0] maddress;
output       mfound;
output [4:0] mcount;
output       rdbusy;
output       wrbusy;
cam_wrapper_v U1 (.pattern(pattern), .wraddress(wraddress), .wren(wren), .wrx(wrx),
                        .wrxused(wrxused), .wrdelete(wrdelete), .inclock(inclock),
                        .inclock(inclock), .inclocken(inclocken), .inaclr(inaclr),
                        .maddress(maddress), .mfound(mfound), .mcount(mcount),
                        .rdbusy(rdbusy), .wrbusy(wrbusy));
endmodule
module cam_wrapper_v (
        pattern,
        wraddress,
        wren,
        wrx,
        wrxused,
        wrdelete,
        inclock,
        inclocken,
        inaclr,
        maddress,
        mfound,
        mcount,
        rdbusy,
        wrbusy);
input [31:0] pattern;
input [4:0]  wraddress;
input        wren;
input [31:0] wrx;
input        wrxused;
input        wrdelete;
input        inclock;
input        inclocken;
input        inaclr;
output [4:0] maddress;
output       mfound;
output [4:0] mcount;
output       rdbusy;
output       wrbusy;
endmodule

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