data/full_repos/permissive/504478691/MIPS/CPU54/Memory.v
1: b'%Warning-WIDTH: data/full_repos/permissive/504478691/MIPS/CPU54/Memory.v:12: Bit extraction of array[2047:0] requires 11 bit index, not 8 bits.\n                                                                           : ... In instance Memory\n    assign dout = mem[addr];\n                     ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/504478691/MIPS/CPU54/Memory.v:16: Bit extraction of array[2047:0] requires 11 bit index, not 8 bits.\n                                                                           : ... In instance Memory\n        mem[addr] = din;\n           ^\n%Error: Exiting due to 2 warning(s)\n'
module Memory(clk, addr, cs, w, din, dout);
    input clk;
    input [7:0] addr;
    input cs;
    input w;
    input [7:0] din;
    output [7:0] dout;

    reg [7:0] mem[0:2047];
    integer i;

    assign dout = mem[addr];
    wire cs_w_clk;
    assign cs_w_clk = cs & w & clk;
    always @(posedge cs_w_clk)
        mem[addr] = din;
endmodule
module Memory(clk, addr, cs, w, din, dout);

    input clk;
    input [7:0] addr;
    input cs;
    input w;
    input [7:0] din;
    output [7:0] dout;

    reg [7:0] mem[0:2047];
    integer i;

    assign dout = mem[addr];
    wire cs_w_clk;
    assign cs_w_clk = cs & w & clk;
    always @(posedge cs_w_clk)
        mem[addr] = din;
endmodule