data/full_repos/permissive/172602559/FPGA_Lab_5-keyboard_interface/FPGA Keyboard Interface/db/receiver.v
1: b'%Error: Cannot find file containing module: Keyboard\n        ... Looked in:\n             data/full_repos/permissive/172602559/FPGA_Lab_5-keyboard_interface/FPGA/Keyboard\n             data/full_repos/permissive/172602559/FPGA_Lab_5-keyboard_interface/FPGA/Keyboard.v\n             data/full_repos/permissive/172602559/FPGA_Lab_5-keyboard_interface/FPGA/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: Cannot find file containing module: Interface/db,data/full_repos/permissive/172602559\n%Error: Cannot find file containing module: data/full_repos/permissive/172602559/FPGA_Lab_5-keyboard_interface/FPGA\n%Error: Cannot find file containing module: Interface/db/receiver.v\n%Error: Exiting due to 4 error(s)\n'
module receiver( 
		output reg newChar,
		output reg[7:0] char, 
		input PS2_CLK, PS2_DAT, reset 
); reg[3:0] bitPos;
wire parityCheck; 

xor M1(parityCheck, char[0], char[1], char[2], char[3], char[4], char[5], char[6], char[7]); 

	always @ (negedge PS2_CLK) 
	begin 
		newChar = 0; 
		if (reset) bitPos = 0;
		else if (bitPos == 0 & PS2_DAT == 0) bitPos = 1;
	else if (bitPos >= 1 & bitPos <= 8) begin 
		char[bitPos - 1] = PS2_DAT; 
		bitPos = bitPos + 1'd1; 
	end 
	else if (bitPos == 9) begin
		if (PS2_DAT == ~parityCheck) 
			bitPos = 10;
		else 
			bitPos = 0;
end 
else if (bitPos == 10 & PS2_DAT == 1) begin
	newChar = 1; 
	bitPos = 0;
end 
else bitPos = 0;
end 

endmodule
module receiver( 
		output reg newChar,
		output reg[7:0] char, 
		input PS2_CLK, PS2_DAT, reset 
);
 reg[3:0] bitPos;
wire parityCheck; 

xor M1(parityCheck, char[0], char[1], char[2], char[3], char[4], char[5], char[6], char[7]); 

	always @ (negedge PS2_CLK) 
	begin 
		newChar = 0; 
		if (reset) bitPos = 0;
		else if (bitPos == 0 & PS2_DAT == 0) bitPos = 1;
	else if (bitPos >= 1 & bitPos <= 8) begin 
		char[bitPos - 1] = PS2_DAT; 
		bitPos = bitPos + 1'd1; 
	end 
	else if (bitPos == 9) begin
		if (PS2_DAT == ~parityCheck) 
			bitPos = 10;
		else 
			bitPos = 0;
end 
else if (bitPos == 10 & PS2_DAT == 1) begin
	newChar = 1; 
	bitPos = 0;
end 
else bitPos = 0;
end 

endmodule