selectram_a2.v
来自「本人正在学习vhdl语言」· Verilog 代码 · 共 42 行
V
42 行
//
// Module: SelectRAM_A2
//
// Description: Verilog instantiation template
// Block SelectRAM
// Single Port 8192 x 2 bits
//
// Device: VIRTEX-II Family
//-------------------------------------------------------------------------------------------
//
// Syntax for Synopsys FPGA Express
// synopsys translate_off
defparam
//"Read during Write" attribute for functional simulation
U_RAMB16_S2.WRITE_MODE = "READ_FIRST" -type string; //WRITE_FIRST(default)/ READ_FIRST/ NO_CHANGE
//RAM initialization ("0" by default) for functional simulation: see example
// synopsys translate_on
//Block SelectRAM Instantiation
RAMB16_S2 U_RAMB16_S2 ( .DI(), //insert 2-bit data_in bus ([1:0])
.ADDR(), //insert 13-bit address bus ([12:0])
.EN(), //insert enable signal
.WE(), //insert write enable signal
.SSR(), //insert set/reset signal
.CLK(), //insert clock signal
.DO() //insert 2-bit data_out bus ([1:0])
);
// Attribute Decalrations:
/* synopsys attribute
Attribute "Read during Write mode" = WRITE_FIRST(default)/ READ_FIRST/ NO_CHANGE
WRITE_MODE "READ_FIRST"
*/
//Attributes for RAM initialization ("0" by default): see example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?