data/full_repos/permissive/510695465/InstructionMemory.v
1: b'%Warning-WIDTH: data/full_repos/permissive/510695465/InstructionMemory.v:30: Bit extraction of array[7:0] requires 3 bit index, not 8 bits.\n                                                                           : ... In instance InstructionMemory\nassign Instruction_Code = Mem[PC];\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 InstructionMemory(PC,Reset,Instruction_Code);
input [7:0]PC;
input Reset;
output [7:0] Instruction_Code;

reg [7:0]Mem[7:0];

assign Instruction_Code = Mem[PC];

always@(Reset)
begin
if (Reset == 0)
    begin
    Mem[0] = 8'b00_010_011;
    Mem[1] = 8'b01_010_001;
    Mem[2] = 8'b00_101_100;
    Mem[3] = 8'b11_000_010;
    Mem[4] = 8'b01_101_011;
    Mem[5] = 8'b00_001_010;
    end
end
endmodule
module InstructionMemory(PC,Reset,Instruction_Code);

input [7:0]PC;
input Reset;
output [7:0] Instruction_Code;

reg [7:0]Mem[7:0];

assign Instruction_Code = Mem[PC];

always@(Reset)
begin
if (Reset == 0)
    begin
    Mem[0] = 8'b00_010_011;
    Mem[1] = 8'b01_010_001;
    Mem[2] = 8'b00_101_100;
    Mem[3] = 8'b11_000_010;
    Mem[4] = 8'b01_101_011;
    Mem[5] = 8'b00_001_010;
    end
end
endmodule