📄 pram.v
字号:
//// Synchornous Data RAM, 12x2048//// Replace with your actual memory model..//module pram ( clk, address, we, din, dout);input clk;input [10:0] address;input we;input [11:0] din;output [11:0] dout;// synopsys translate_offparameter word_depth = 2048;reg [10:0] address_latched;// Instantiate the memory array itself.reg [11:0] mem[0:word_depth-1];// Latch addressalways @(posedge clk) address_latched <= address; // READassign dout = mem[address_latched];// WRITEalways @(posedge clk) if (we) mem[address] <= din;// synopsys translate_onendmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -