16x8 sram model simulation
DUT `timescale 1ns / 1ps module sram_16x8(addr, clk, din, dout, we); parameter addr_width=4, word_depth=16, word_width=8; input [addr_width-1:0] addr; input [word_width-1:0] din; input clk, we; output [word_width-1:0] dout; reg [word_width-1:0] mem [0:word_depth-1]; reg [word_width-1:0] dout; always@(posedge clk) begin if(!we) mem[addr]