blob: 58ef085d88c7a74b15695f252e21a04a1650d6bd [file] [log] [blame]
module ebr_test(input clk, input [9:0] addr, input [8:0] d, input we, output reg [8:0] q);
reg [8:0] mem[0:1023];
initial mem[1] = 9'b000000001;
always @(posedge clk) begin
if (we) mem[addr] <= d;
q <= mem[addr];
end
endmodule