data/full_repos/permissive/162251494/GuitarHero.v
 line:149: before: "."
1: b'%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:187: Value too large for 6 bit number: 101000\n  else if(x_counter >= 6\'d101000 & y_counter < 7\'b1111000) begin\n                       ^~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:453: Operator EQ expects 32 or 5 bits on the LHS, but LHS\'s VARREF \'state\' generates 4 bits.\n                                                                     : ... In instance GuitarHero.pFSM0\n  else if(state == 16) begin\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:278: Operator LTE expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  else if (counter <= 9 & ~loss) begin\n                   ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:317: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c1Draw <= {c1Curr[28:0], c1Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:318: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c2Draw <= {c2Curr[28:0], c2Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:319: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c3Draw <= {c3Curr[28:0], c3Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:320: Bit extraction of var[9:0] requires 4 bit index, not 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n   c4Draw <= {c4Curr[28:0], c4Pattern[counter]};\n                                     ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:315: Operator LTE expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  else if (counter <= 9 & ~loss) begin\n                   ^~\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:349: Operator GT expects 32 or 4 bits on the LHS, but LHS\'s VARREF \'counter\' generates 1 bits.\n                                                                     : ... In instance GuitarHero.gsm0\n  if (counter > 9) begin\n              ^\n%Warning-WIDTH: data/full_repos/permissive/162251494/GuitarHero.v:170: Operator ADD expects 8 bits on the LHS, but LHS\'s SEL generates 6 bits.\n                                                                     : ... In instance GuitarHero.p0\n assign X_out[7:0] = x_counter[5:0] + column[1:0]*6\'b101000;\n                                    ^\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:79: Cannot find file containing module: \'keyboard\'\n keyboard kb(.keyboard_clk(PS2_CLK), .keyboard_data(PS2_DAT), .clock50(CLOCK_50), .reset(0), .read(read), .scan_ready(scan_ready), .scan_code(scan_code));\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard.v\n             data/full_repos/permissive/162251494,data/full_repos/permissive/162251494/keyboard.sv\n             keyboard\n             keyboard.v\n             keyboard.sv\n             obj_dir/keyboard\n             obj_dir/keyboard.v\n             obj_dir/keyboard.sv\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:80: Cannot find file containing module: \'oneshot\'\n oneshot pulse(.pulse_out(read), .trigger_in(scan_ready), .clk(CLOCK_50));\n ^~~~~~~\n%Error: data/full_repos/permissive/162251494/GuitarHero.v:133: Cannot find file containing module: \'vga_adapter\'\n vga_adapter VGA(\n ^~~~~~~~~~~\n%Error: Exiting due to 3 error(s), 10 warning(s)\n'
module hex_decoder(hex_digit, segments);
    input [3:0] hex_digit;
    output reg [6:0] segments;
   
    always @(*)
        case (hex_digit)
            4'h0: segments = 7'b100_0000;
            4'h1: segments = 7'b111_1001;
            4'h2: segments = 7'b010_0100;
            4'h3: segments = 7'b011_0000;
            4'h4: segments = 7'b001_1001;
            4'h5: segments = 7'b001_0010;
            4'h6: segments = 7'b000_0010;
            4'h7: segments = 7'b111_1000;
            4'h8: segments = 7'b000_0000;
            4'h9: segments = 7'b001_1000;
            4'hA: segments = 7'b000_1000;
            4'hB: segments = 7'b000_0011;
            4'hC: segments = 7'b100_0110;
            4'hD: segments = 7'b010_0001;
            4'hE: segments = 7'b000_0110;
            4'hF: segments = 7'b000_1110;   
            default: segments = 7'h7f;
        endcase
endmodule
module hex_decoder(hex_digit, segments);

    input [3:0] hex_digit;
    output reg [6:0] segments;
   
    always @(*)
        case (hex_digit)
            4'h0: segments = 7'b100_0000;
            4'h1: segments = 7'b111_1001;
            4'h2: segments = 7'b010_0100;
            4'h3: segments = 7'b011_0000;
            4'h4: segments = 7'b001_1001;
            4'h5: segments = 7'b001_0010;
            4'h6: segments = 7'b000_0010;
            4'h7: segments = 7'b111_1000;
            4'h8: segments = 7'b000_0000;
            4'h9: segments = 7'b001_1000;
            4'hA: segments = 7'b000_1000;
            4'hB: segments = 7'b000_0011;
            4'hC: segments = 7'b100_0110;
            4'hD: segments = 7'b010_0001;
            4'hE: segments = 7'b000_0110;
            4'hF: segments = 7'b000_1110;   
            default: segments = 7'h7f;
        endcase
endmodule