data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v
1: b'%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator GT expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                  ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                               ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                              ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                          ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:157: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator GT expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                  ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                               ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                              ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                                          ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:158: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator GT expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                  ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                               ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                                              ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                          ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:159: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator GT expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                  ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                               ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                              ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                                          ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:160: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));\n                                                                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator GT expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                  ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'ypos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                 ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                  ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                               ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                              ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                           ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator GTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                          ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:161: Operator LTE expects 32 or 31 bits on the LHS, but LHS\'s VARREF \'xpos\' generates 10 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));\n                                                                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:164: Operator OR expects 31 bits on the LHS, but LHS\'s SEL generates 1 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  blue[0] = (red[1]|i)?0:1;\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:164: Logical Operator COND expects 1 bit on the Conditional Test, but Conditional Test\'s OR generates 31 bits.\n                                                                                    : ... In instance VGA_Control.game_inst\n  blue[0] = (red[1]|i)?0:1;\n                      ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:68: Operator ASSIGNW expects 11 bits on the Assign RHS, but Assign RHS\'s VARREF \'hcont\' generates 10 bits.\n                                                                                   : ... In instance VGA_Control.videosyncs_inst\n    assign hc = hcont;\n              ^\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:69: Operator ASSIGNW expects 11 bits on the Assign RHS, but Assign RHS\'s VARREF \'vcont\' generates 10 bits.\n                                                                                   : ... In instance VGA_Control.videosyncs_inst\n    assign vc = vcont;\n              ^\n%Error: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:17: Cannot find file containing module: \'BUFG\'\n BUFG bufg_inst(clk25, clk25_int);\n ^~~~\n        ... Looked in:\n             data/full_repos/permissive/128685316/VGA_mouvement,data/full_repos/permissive/128685316/BUFG\n             data/full_repos/permissive/128685316/VGA_mouvement,data/full_repos/permissive/128685316/BUFG.v\n             data/full_repos/permissive/128685316/VGA_mouvement,data/full_repos/permissive/128685316/BUFG.sv\n             BUFG\n             BUFG.v\n             BUFG.sv\n             obj_dir/BUFG\n             obj_dir/BUFG.v\n             obj_dir/BUFG.sv\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:26: Output port connection \'hc\' expects 11 bits on the pin connection, but pin connection\'s VARREF \'xpos\' generates 10 bits.\n                                                                                   : ... In instance VGA_Control\n videosyncs videosyncs_inst(clk25, red, green, blue, rout, gout, bout, hsync, vsync, xpos, ypos);\n                                                                                     ^~~~\n%Warning-WIDTH: data/full_repos/permissive/128685316/VGA_mouvement/VGA_Control.v:26: Output port connection \'vc\' expects 11 bits on the pin connection, but pin connection\'s VARREF \'ypos\' generates 10 bits.\n                                                                                   : ... In instance VGA_Control\n videosyncs videosyncs_inst(clk25, red, green, blue, rout, gout, bout, hsync, vsync, xpos, ypos);\n                                                                                           ^~~~\n%Error: Exiting due to 1 error(s), 46 warning(s)\n'
module game(xpos, ypos, red, green, blue, clk);
input [9:0] xpos;
input [9:0] ypos;
input clk;
output reg [2:0] red;
output reg [2:0] green;
output reg [1:0] blue;
reg [4:0] temp;

reg [30:0] clock_counter;
reg [30:0] i;

always @(clk)
begin
	clock_counter = clock_counter+1;
	
	if (clock_counter==50000000)
	begin
		i = (i+1)%256;
		clock_counter = 0;
	end
	
	if (clock_counter<50000000)
	begin
		if (i<128) green[0] = 1;
		else green[0] = 0;

		temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));
		temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));
		temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));
		temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));
		temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));
		
		red[1] = temp[0]|temp[1]|temp[2]|temp[3]|temp[4];
		blue[0] = (red[1]|i)?0:1;
	end
end
endmodule
module game(xpos, ypos, red, green, blue, clk);

input [9:0] xpos;
input [9:0] ypos;
input clk;
output reg [2:0] red;
output reg [2:0] green;
output reg [1:0] blue;
reg [4:0] temp;

reg [30:0] clock_counter;
reg [30:0] i;

always @(clk)
begin
	clock_counter = clock_counter+1;
	
	if (clock_counter==50000000)
	begin
		i = (i+1)%256;
		clock_counter = 0;
	end
	
	if (clock_counter<50000000)
	begin
		if (i<128) green[0] = 1;
		else green[0] = 0;

		temp[0] = ((ypos>203+i && ypos <=206+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));
		temp[1] = ((ypos>207+i && ypos <=221+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));
		temp[2] = ((ypos>222+i && ypos <=225+i) && (xpos>=105+i&&xpos<=142+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=235+i));
		temp[3] = ((ypos>226+i && ypos <=241+i) && (xpos>=105+i&&xpos<=108+i || xpos>=150+i&&xpos<=153+i || xpos>=195+i&&xpos<=198+i));
		temp[4] = ((ypos>242+i && ypos <=245+i) && (xpos>=105+i&&xpos<=145+i || xpos>=150+i&&xpos<=190+i || xpos>=195+i&&xpos<=235+i));
		
		red[1] = temp[0]|temp[1]|temp[2]|temp[3]|temp[4];
		blue[0] = (red[1]|i)?0:1;
	end
end
endmodule