idwt2_ram.v

来自「it is used to find traffic」· Verilog 代码 · 共 45 行

V
45
字号
//// Verilog Module dwt_final_lib.idw2_ram.arch_name//// Created://          by - VLSI4.UNKNOWN (VLSI04)//          at - 11:34:12 05/03/2008//// using Mentor Graphics HDL Designer(TM) 2004.1b (Build 12)//`resetall`timescale 1ns/10psmodule idwt2_ram(clk,reset,in,out,addr,r_w_en,enable);        input clk,reset,enable;    input [7:0] in;    input [12:0] addr;    input r_w_en;    output [7:0] out;        reg [7:0] out;        reg [7:0] mem [4095:0];          always@(posedge clk or negedge reset)    begin      if(!reset)      begin        out<=8'b0;      end      else      begin        if(enable==1'b1)        begin        if(r_w_en==1'b0)    //read at active low         out<=mem[addr];         else         mem[addr]<=in;       end     end     end     // ### Please start your Verilog code here ###  endmodule  

⌨️ 快捷键说明

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