data/full_repos/permissive/176151176/PS2MouseKeyboard/PS2_Mouse_Controller.v
1: b'%Warning-PINMISSING: data/full_repos/permissive/176151176/PS2MouseKeyboard/PS2_Mouse_Controller.v:322: Cell has missing pin: \'count\'\n  mouse_tracker tester(\n                ^~~~~~\n                     ... Use "/* verilator lint_off PINMISSING */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/176151176/PS2MouseKeyboard/PS2_Mouse_Controller.v:158: Cannot find file containing module: \'PS2_Controller\'\n  PS2_Controller #(.INITIALIZE_MOUSE(1)) tracker2(\n  ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/176151176/PS2MouseKeyboard,data/full_repos/permissive/176151176/PS2_Controller\n             data/full_repos/permissive/176151176/PS2MouseKeyboard,data/full_repos/permissive/176151176/PS2_Controller.v\n             data/full_repos/permissive/176151176/PS2MouseKeyboard,data/full_repos/permissive/176151176/PS2_Controller.sv\n             PS2_Controller\n             PS2_Controller.v\n             PS2_Controller.sv\n             obj_dir/PS2_Controller\n             obj_dir/PS2_Controller.v\n             obj_dir/PS2_Controller.sv\n%Error: Exiting due to 1 error(s), 1 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