data/full_repos/permissive/203063855/src/instrmem.v
1: b'%Warning-WIDTH: data/full_repos/permissive/203063855/src/instrmem.v:30: Bit extraction of array[9:0] requires 4 bit index, not 7 bits.\n                                                                      : ... In instance InstrMem\n        instr = DataMem[memAddr];\n                       ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module InstrMem(clk, addr, instr);

  input clk;
  input[6:0] addr;
  output[31:0] instr;

  reg[31:0] instr;
  reg[6:0] memAddr;
  reg[31:0] DataMem[0:9];







  initial
        $readmemb("../src/instrmem.data", DataMem);
  

  always @(posedge clk) begin

        memAddr = addr;

        instr = DataMem[memAddr];
  end

endmodule
module InstrMem(clk, addr, instr);


  input clk;
  input[6:0] addr;
  output[31:0] instr;

  reg[31:0] instr;
  reg[6:0] memAddr;
  reg[31:0] DataMem[0:9];







  initial
        $readmemb("../src/instrmem.data", DataMem);
  

  always @(posedge clk) begin

        memAddr = addr;

        instr = DataMem[memAddr];
  end

endmodule