data/full_repos/permissive/156129873/verilog/keyboardadapter.v
1: b"%Error: data/full_repos/permissive/156129873/verilog/keyboardadapter.v:31: Cannot find file containing module: 'keyboard'\nkeyboard keyboard0(\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/156129873/verilog,data/full_repos/permissive/156129873/keyboard\n             data/full_repos/permissive/156129873/verilog,data/full_repos/permissive/156129873/keyboard.v\n             data/full_repos/permissive/156129873/verilog,data/full_repos/permissive/156129873/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/156129873/verilog/keyboardadapter.v:40: Cannot find file containing module: 'keyboard2ascii'\nkeyboard2ascii keyboard2ascii0(\n^~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module KeyboardAdapter(
	input wire clk, rst,
	input wire ps2data, ps2clk,

	output wire [6:0] data,
	output wire status

);

wire e0;
wire f0;
wire[7:0] raw_data;
wire[6:0] addr;

reg query_res;
wire data_ready;

assign data = addr;
assign status = query_res;

always @(posedge clk) begin
	if (data_ready == 1) begin
		if (f0 == 1)
			query_res <= 0;
		else
			query_res <= 1;
	end
	else query_res <= query_res;
end

keyboard keyboard0(
	.clk(clk), .rst(rst),
	.ps2data(ps2data), .ps2clk(ps2clk),
	.data_ready(data_ready),
	.e0_flag(e0),
	.break_flag(f0), 
	.out(raw_data)
);

keyboard2ascii keyboard2ascii0(
	.e0_flag(e0),
	.key(raw_data),
	.ascii(addr)
);

endmodule
module KeyboardAdapter(
	input wire clk, rst,
	input wire ps2data, ps2clk,

	output wire [6:0] data,
	output wire status

);


wire e0;
wire f0;
wire[7:0] raw_data;
wire[6:0] addr;

reg query_res;
wire data_ready;

assign data = addr;
assign status = query_res;

always @(posedge clk) begin
	if (data_ready == 1) begin
		if (f0 == 1)
			query_res <= 0;
		else
			query_res <= 1;
	end
	else query_res <= query_res;
end

keyboard keyboard0(
	.clk(clk), .rst(rst),
	.ps2data(ps2data), .ps2clk(ps2clk),
	.data_ready(data_ready),
	.e0_flag(e0),
	.break_flag(f0), 
	.out(raw_data)
);

keyboard2ascii keyboard2ascii0(
	.e0_flag(e0),
	.key(raw_data),
	.ascii(addr)
);

endmodule