dwt2_ram.v
来自「it is used to find traffic」· Verilog 代码 · 共 47 行
V
47 行
//// Verilog Module dwt_final_lib.dwt2_ram.arch_name//// Created:// by - VLSI4.UNKNOWN (VLSI04)// at - 14:41:53 04/26/2008//// using Mentor Graphics HDL Designer(TM) 2004.1b (Build 12)//`resetall`timescale 1ns/10psmodule dwt2_ram(clk,reset,in,out,addr,r_w_en,enable); input clk,reset,enable; input [23:0] in; input [12:0] addr; input r_w_en; output [23:0] out; reg [23:0] out; reg [23:0] mem [8191:0]; always@(posedge clk or negedge reset) begin if(!reset) begin out<=24'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 + -
显示快捷键?