网站首页
IC库存
IC展台
电子资讯
技术资料
PDF文档
我的博客
IC72论坛
ic72 logo
资料首页最新产品 技术参数 电路图 设计应用 解决方案 代理商查询 IC替换 IC厂商 电子辞典
关键字: 技术文章 PDF资料 IC价格 电路图 代理商查询 IC替换 IC厂商 电子辞典

Instantiating LPMs in Verilog

The example in this section defines a black box for an ALTERA LPM_RAM_DQ,
which is then instantiated at a higher level. The LPM_RAM_DQ is a parameterized
RAM with separate input and output ports. ALTERA recommends
using the LPM_RAM_DQ to implement asynchronous memory or memory
with synchronous inputs and/or outputs. The LPM_RAM_DQ function uses
EABs in FLEX10K DEVICEs, and latch arrays in other DEVICE families. If you
are using a FLEX10K DEVICE, ALTERA recommends that you use synchronous
rather than asynchronous RAM functions.
1. Define a black box with the name myram_64x16. Notice that
immediately after the port list, but before the semicolon ';' is the
syn_black_box synthesis directive with the LPM_TYPE specified as
LPM_RAM_DQ, along with other specified arguments.
module myram_64x16 (data, address, inclock, outclock, we, q)
/* synthesis syn_black_box
LPM_WIDTH=16
LPM_WIDTHAD=6
LPM_TYPE="LPM_RAM_DQ" */ ;
input [15:0] data;w
input [5:0] address;
input inclock, outclock;
input we;
output [15:0] q;
// This is an empty module
endmodule
2. Now instantiate the LPM in a higher-level module.
module myram(clock, we, data, address, q);
input clock, we;
input [15:0] data;
input [5:0] address;
output [15:0] q;
myram_64x16 inst1 (data, address, clock, clock, we, q);
endmodule


热门搜索:PDUMV20 SBB2805-1 PS2408 2804623 2838319 BT151S-800R118 PS-410-HGOEMCC RBC11A LS606M TLM626SA PS361220 1553DBPCB TLM825GF B30-7100-PCB 2839240 TLP810NET 2920120 01M2251SFC3 TLM615SA 2839648 01B1002JF ADS1013IDGSR 6SPDX UL24RA-15 SBB2808-1
COPYRIGHT:(1998-2010) IC72 达普IC芯片交易网
客户服务:service@IC72.com 库存上载:IC72@IC72.com
(北京)联系方式: 在线QQ咨询:点击这里给我发消息 联系电话:010-82614113 传真:010-82614123
京ICP备06008810号-21 京公网安备 11010802032910 号 企业资质