⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ram64x16.v

📁 多个Verilog和vhdl程序例子
💻 V
字号:
// LPM RAM example
//
// Define the black box here (pick a name, say myram_64x16)
// Notice that immediately after the port list, but before the semicolon ';'
//      is the black_box synthesis directive with the LPM_TYPE specified
//      as "LPM_RAM_DQ", and other parameter values set.

module myram_64x16 (
    data,address,inclock,outclock,we,q) /* synthesis black_box LPM_WIDTH=16 LPM_WIDTHAD=6 LPM_TYPE="LPM_RAM_DQ"  */ ; 

input [15:0] data;
input [5:0] address;
input inclock, outclock;
input we;
output [15:0] q;

// Notice that this is an empty module!
endmodule

// Instantiate the LPM parameterized module here in this 
//     higher level module myram
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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -