data/full_repos/permissive/20203462/mipsmem.v
1: b'%Warning-WIDTH: data/full_repos/permissive/20203462/mipsmem.v:14: Bit extraction of array[63:0] requires 6 bit index, not 30 bits.\n                                                                : ... In instance mem\n  assign rd = RAM[a[31:2]];  \n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/20203462/mipsmem.v:18: Bit extraction of array[63:0] requires 6 bit index, not 30 bits.\n                                                                : ... In instance mem\n      RAM[a[31:2]] <= wd;\n         ^\n%Error: Exiting due to 2 warning(s)\n'
module mem(input         clk, we,
           input  [31:0] a, wd,
           output [31:0] rd);

  reg  [31:0] RAM[63:0];

  initial
    begin
      $readmemh("memfile.dat",RAM);
    end

  assign rd = RAM[a[31:2]];

  always @(posedge clk)
    if (we)
      RAM[a[31:2]] <= wd;
endmodule
module mem(input         clk, we,
           input  [31:0] a, wd,
           output [31:0] rd);


  reg  [31:0] RAM[63:0];

  initial
    begin
      $readmemh("memfile.dat",RAM);
    end

  assign rd = RAM[a[31:2]];

  always @(posedge clk)
    if (we)
      RAM[a[31:2]] <= wd;
endmodule