data/full_repos/permissive/172602559/PONG!!/pong.v
 line:1: before: "Main"
1: b"%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:1: syntax error, unexpected IDENTIFIER\nMain.v\n^~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:2: Define or directive not defined: '`definecolor_red'\n`definecolor_red 8'b11100000\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:3: Define or directive not defined: '`definecolor_blue'\n`definecolor_blue 8'b00000011\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:4: Define or directive not defined: '`definecolor_white'\n`definecolor_white 8'b11111111\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:5: Define or directive not defined: '`definecolor_black'\n`definecolor_black 8'b00000000\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:6: Define or directive not defined: '`definecolor_pink'\n`definecolor_pink 8'b11111010\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:8: Define or directive not defined: '`definestate_reset'\n`definestate_reset 2'b00\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:9: Define or directive not defined: '`definestate_player_select'\n`definestate_player_select 2'b01\n^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:10: Define or directive not defined: '`definestate_game'\n`definestate_game 2'b10\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:11: Define or directive not defined: '`definestate_pause'\n`definestate_pause 2'b11\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:19: Define or directive not defined: '`definekey_esc'\n`definekey_esc 8'h76\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:20: Define or directive not defined: '`definekey_space'\n`definekey_space 8'h29\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:24: Define or directive not defined: '`definepaddle_width'\n`definepaddle_width 64\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:25: Define or directive not defined: '`definepaddle_height'\n`definepaddle_height 8\n^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:27: Define or directive not defined: '`defineball_width'\n`defineball_width 8\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:28: Define or directive not defined: '`defineball_height'\n`defineball_height 8\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:30: Define or directive not defined: '`definescreen_width'\n`definescreen_width 640\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:31: Define or directive not defined: '`definescreen_height'\n`definescreen_height 480\n^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:33: Define or directive not defined: '`defineborder_size'\n`defineborder_size 6\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:34: Define or directive not defined: '`definefeature_size'\n`definefeature_size 11\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:36: Define or directive not defined: '`defineai_speed_default'\n`defineai_speed_default 4\n^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:44: syntax error, unexpected IDENTIFIER, expecting ')' or ','\n outputreg [7:0]color,\n                ^~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:51: syntax error, unexpected IDENTIFIER\nregold_done;\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:57: syntax error, unexpected IDENTIFIER\nreggame;  \n^~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:60: syntax error, unexpected IDENTIFIER\nwireenable_score;\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:65: syntax error, unexpected IDENTIFIER\nregball_dx, ball_dy;     \n^~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:79: syntax error, unexpected IDENTIFIER\nregplayer_number;  \n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:88: syntax error, unexpected IDENTIFIER\nkeyboardkeyb(.clock(clock),.ps2_clock(ps2_clock), .ps2_data(ps2_data),.done(done), .tasta(tasta));\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:94: Define or directive not defined: '`state_reset'\n states<= `state_reset;\n          ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:98: Define or directive not defined: '`ai_speed_default'\n ai_speed<= `ai_speed_default;\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:122: Define or directive not defined: '`state_reset'\n    `state_reset:\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:124: Define or directive not defined: '`screen_width'\n      ball_x<= `screen_width>> 1;  \n               ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:125: Define or directive not defined: '`screen_height'\n      ball_y<= `screen_height>> 1;\n               ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:127: Define or directive not defined: '`screen_width'\n      paddle2_x <= `screen_width>> 1;\n                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:128: Define or directive not defined: '`border_size'\n      paddle2_y <= `border_size<< 2;\n                   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:130: Define or directive not defined: '`screen_width'\n      paddle1_x <= `screen_width>> 1;\n                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:131: Define or directive not defined: '`screen_height'\n      paddle1_y <= `screen_height - (`border_size<< 2);\n                   ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:131: Define or directive not defined: '`border_size'\n      paddle1_y <= `screen_height - (`border_size<< 2);\n                                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:133: Define or directive not defined: '`state_player_select'\n      states<= `state_player_select;\n               ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:138: Define or directive not defined: '`state_player_select'\n    `state_player_select:\n    ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:147: Define or directive not defined: '`key_space'\n      end else if (key == `key_space) begin\n                          ^~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:149: Define or directive not defined: '`state_game'\n       states<= `state_game;\n                ^~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:159: Define or directive not defined: '`state_game'\n    `state_game:\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:162: Define or directive not defined: '`key_space'\n      if (key == `key_space) begin\n                 ^~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:163: Define or directive not defined: '`state_pause'\n       states<= `state_pause;\n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:166: Define or directive not defined: '`feature_size'\n       if (paddle1_x >= `feature_size + `ball_width + (`paddle_width>> 1))\n                        ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:166: Define or directive not defined: '`ball_width'\n       if (paddle1_x >= `feature_size + `ball_width + (`paddle_width>> 1))\n                                        ^~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:166: Define or directive not defined: '`paddle_width'\n       if (paddle1_x >= `feature_size + `ball_width + (`paddle_width>> 1))\n                                                       ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:167: Define or directive not defined: '`ball_width'\n        paddle1_x <= paddle1_x - `ball_width;\n                                 ^~~~~~~~~~~\n%Error: data/full_repos/permissive/172602559/PONG!!/pong.v:170: Define or directive not defined: '`screen_width'\n       if (paddle1_x <= `screen_width - `feature_size - `ball_width - (`paddle_width>> 1))\n                        ^~~~~~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n"
module keyboard(
	input clock,
input ps2_clock,
	input ps2_data,
outputreg done,
outputreg [7:0] tasta
);












reg [3:0] count;
reg skip;

regclock_new;

initial begin
	count<= 4'h1;
	done<= 1'b0;
	tasta<= 8'hf0;
	skip<= 0;
end

always @(posedge clock) begin
	if(ps2_clock == 1) begin
		clock_new<= 1;
	end else begin
		clock_new<= 0;
	end
end

always @(negedgeclock_new)
begin

	case(count)
		1: done <= 0;
		2: tasta[0]<=ps2_data;
		3: tasta[1]<=ps2_data;
		4: tasta[2]<=ps2_data;
		5: tasta[3]<=ps2_data;
		6: tasta[4]<=ps2_data;
		7: tasta[5]<=ps2_data;
		8: tasta[6]<=ps2_data;
		9: tasta[7]<=ps2_data;
		10: ;
		11: begin


				if(tasta == 8'hF0)
					skip<= 1;
				else if (!skip)
					done<= 1;
				else
					skip<= 0;
			end
	endcase

	if(count <= 10)
		count<= count+1;
	else if(count==11)
		count<= 1;
end

endmodule
module keyboard(
	input clock,
input ps2_clock,
	input ps2_data,
outputreg done,
outputreg [7:0] tasta
);













reg [3:0] count;
reg skip;

regclock_new;

initial begin
	count<= 4'h1;
	done<= 1'b0;
	tasta<= 8'hf0;
	skip<= 0;
end

always @(posedge clock) begin
	if(ps2_clock == 1) begin
		clock_new<= 1;
	end else begin
		clock_new<= 0;
	end
end

always @(negedgeclock_new)
begin

	case(count)
		1: done <= 0;
		2: tasta[0]<=ps2_data;
		3: tasta[1]<=ps2_data;
		4: tasta[2]<=ps2_data;
		5: tasta[3]<=ps2_data;
		6: tasta[4]<=ps2_data;
		7: tasta[5]<=ps2_data;
		8: tasta[6]<=ps2_data;
		9: tasta[7]<=ps2_data;
		10: ;
		11: begin


				if(tasta == 8'hF0)
					skip<= 1;
				else if (!skip)
					done<= 1;
				else
					skip<= 0;
			end
	endcase

	if(count <= 10)
		count<= count+1;
	else if(count==11)
		count<= 1;
end

endmodule