data/full_repos/permissive/175316557/multi_input.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/175316557/multi_input.v:15: Cannot find file containing module: 'keyboard_press_driver'\nkeyboard_press_driver kpd(\n^~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/keyboard_press_driver\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/keyboard_press_driver.v\n             data/full_repos/permissive/175316557,data/full_repos/permissive/175316557/keyboard_press_driver.sv\n             keyboard_press_driver\n             keyboard_press_driver.v\n             keyboard_press_driver.sv\n             obj_dir/keyboard_press_driver\n             obj_dir/keyboard_press_driver.v\n             obj_dir/keyboard_press_driver.sv\n%Error: Exiting due to 1 error(s)\n"
module keyboard_input (
           input [3:0] KEY,
           input clk,
           input PS2_DAT,
           input PS2_CLK,
           input resetn,
           output reg [2:0] keycode
       );

wire wvalid;
wire wmakeBreak;
wire [7:0] woutcode;

keyboard_press_driver kpd(
                          .CLOCK_50(clk),
                          .valid(wvalid),
                          .makeBreak(wmakeBreak),
                          .outCode(woutcode),
                          .PS2_DAT(PS2_DAT),
                          .PS2_CLK(PS2_CLK),
                          .reset(~resetn)
                      );

wire wtrulyvalid;
assign wtrulyvalid = wvalid && wmakeBreak;

always @(posedge clk)
begin
    if (!resetn) keycode <= 3'b000;
    else if ( wtrulyvalid && woutcode == 8'h74 )
        keycode <= 3'b010;
    else if ( wtrulyvalid && woutcode == 8'h6B ) 
        keycode <= 3'b100;
    else if (wtrulyvalid && woutcode == 8'h72 ) 
        keycode <= 3'b011;
    else if (wtrulyvalid && woutcode == 8'h75)
        keycode <= 3'b001;
	 else
       keycode <= 3'b000;
end
endmodule
module keyboard_input (
           input [3:0] KEY,
           input clk,
           input PS2_DAT,
           input PS2_CLK,
           input resetn,
           output reg [2:0] keycode
       );


wire wvalid;
wire wmakeBreak;
wire [7:0] woutcode;

keyboard_press_driver kpd(
                          .CLOCK_50(clk),
                          .valid(wvalid),
                          .makeBreak(wmakeBreak),
                          .outCode(woutcode),
                          .PS2_DAT(PS2_DAT),
                          .PS2_CLK(PS2_CLK),
                          .reset(~resetn)
                      );

wire wtrulyvalid;
assign wtrulyvalid = wvalid && wmakeBreak;

always @(posedge clk)
begin
    if (!resetn) keycode <= 3'b000;
    else if ( wtrulyvalid && woutcode == 8'h74 )
        keycode <= 3'b010;
    else if ( wtrulyvalid && woutcode == 8'h6B ) 
        keycode <= 3'b100;
    else if (wtrulyvalid && woutcode == 8'h72 ) 
        keycode <= 3'b011;
    else if (wtrulyvalid && woutcode == 8'h75)
        keycode <= 3'b001;
	 else
       keycode <= 3'b000;
end
endmodule