data/full_repos/permissive/491573622/im.v
1: b'%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:31: Operator ASSIGN expects 32 bits on the Assign RHS, but Assign RHS\'s CONST \'16\'hc00\' generates 16 bits.\n                                                            : ... In instance im\n        for(i = 16\'h0c00; i <= 16\'h13ff; i = i + 1)\n              ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:35: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1060] = 32\'hac0a0100;  \n          ^\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:36: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1061] = 32\'h014a5026;  \n          ^\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:37: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1062] = 32\'h200a0032;  \n          ^\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:38: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1063] = 32\'hac0a7f08;  \n          ^\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:39: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1064] = 32\'h8c0a0100;  \n          ^\n%Warning-WIDTH: data/full_repos/permissive/491573622/im.v:40: Bit extraction of array[5119:3072] requires 13 bit index, not 16 bits.\n                                                            : ... In instance im\n        im[16\'h1065] = 32\'h42000018;  \n          ^\n%Error: Exiting due to 7 warning(s)\n'
module im(
    input [31:0] pc,
    output [31:0] instr
    );
    integer i;
    reg [31:0] im[16'h13ff:16'h0c00];
    initial
    begin
        for(i = 16'h0c00; i <= 16'h13ff; i = i + 1)
            im[i] = 32'b0;
        $readmemh("code.txt", im);

        im[16'h1060] = 32'hac0a0100;
        im[16'h1061] = 32'h014a5026;
        im[16'h1062] = 32'h200a0032;
        im[16'h1063] = 32'hac0a7f08;
        im[16'h1064] = 32'h8c0a0100;
        im[16'h1065] = 32'h42000018;
    end
    assign instr = im[pc[16:2]];
endmodule
module im(
    input [31:0] pc,
    output [31:0] instr
    );

    integer i;
    reg [31:0] im[16'h13ff:16'h0c00];
    initial
    begin
        for(i = 16'h0c00; i <= 16'h13ff; i = i + 1)
            im[i] = 32'b0;
        $readmemh("code.txt", im);

        im[16'h1060] = 32'hac0a0100;
        im[16'h1061] = 32'h014a5026;
        im[16'h1062] = 32'h200a0032;
        im[16'h1063] = 32'hac0a7f08;
        im[16'h1064] = 32'h8c0a0100;
        im[16'h1065] = 32'h42000018;
    end
    assign instr = im[pc[16:2]];
endmodule