data/full_repos/permissive/487082250/sources/kbdWrapper.v
1: b'%Error: data/full_repos/permissive/487082250/sources/kbdWrapper.v:30: Cannot find file containing module: \'HID\'\nHID ps2(kbdclk,kbddat,keycode);\n^~~\n        ... Looked in:\n             data/full_repos/permissive/487082250/sources,data/full_repos/permissive/487082250/HID\n             data/full_repos/permissive/487082250/sources,data/full_repos/permissive/487082250/HID.v\n             data/full_repos/permissive/487082250/sources,data/full_repos/permissive/487082250/HID.sv\n             HID\n             HID.v\n             HID.sv\n             obj_dir/HID\n             obj_dir/HID.v\n             obj_dir/HID.sv\n%Warning-WIDTH: data/full_repos/permissive/487082250/sources/kbdWrapper.v:59: Operator ASSIGN expects 5 bits on the Assign RHS, but Assign RHS\'s CONST \'?32?sh20\' generates 32 or 6 bits.\n                                                                            : ... In instance kbdWrapper\n                letter=32;  \n                      ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module kbdWrapper(
input clk,
    input kbdclk,
    input kbddat,
    output reg [4:0] letter
);
wire [7:0] keycode;

HID ps2(kbdclk,kbddat,keycode);
always @ (posedge clk) begin






        case(keycode)
        8'h1C: letter=0;
        8'h32: letter=1;
        8'h21: letter=2;
        8'h23: letter=3;
        8'h24: letter=4;
        8'h2B: letter=5;
        8'h33: letter=6;
        8'h4B: letter=7;
        8'h31: letter=8;
        8'h44: letter=9;
        8'h4D: letter=10;
        8'h2D: letter=11;
        8'h1B: letter=12;
        8'h3C: letter=13;
        8'h35: letter=14;


        8'hF0: letter=21;
        8'h29: letter=20;
        default:
                letter=32;
        endcase

end


endmodule
module kbdWrapper(
input clk,
    input kbdclk,
    input kbddat,
    output reg [4:0] letter
);

wire [7:0] keycode;

HID ps2(kbdclk,kbddat,keycode);
always @ (posedge clk) begin






        case(keycode)
        8'h1C: letter=0;
        8'h32: letter=1;
        8'h21: letter=2;
        8'h23: letter=3;
        8'h24: letter=4;
        8'h2B: letter=5;
        8'h33: letter=6;
        8'h4B: letter=7;
        8'h31: letter=8;
        8'h44: letter=9;
        8'h4D: letter=10;
        8'h2D: letter=11;
        8'h1B: letter=12;
        8'h3C: letter=13;
        8'h35: letter=14;


        8'hF0: letter=21;
        8'h29: letter=20;
        default:
                letter=32;
        endcase

end


endmodule