data/full_repos/permissive/515245706/milestone3/game.v
1: b'%Error: data/full_repos/permissive/515245706/milestone3/game.v:1: Cannot find include file: ./gameBoardPart2/gameBoardPart2.v\n`include "./gameBoardPart2/gameBoardPart2.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v.v\n             data/full_repos/permissive/515245706/milestone3,data/full_repos/permissive/515245706/./gameBoardPart2/gameBoardPart2.v.sv\n             ./gameBoardPart2/gameBoardPart2.v\n             ./gameBoardPart2/gameBoardPart2.v.v\n             ./gameBoardPart2/gameBoardPart2.v.sv\n             obj_dir/./gameBoardPart2/gameBoardPart2.v\n             obj_dir/./gameBoardPart2/gameBoardPart2.v.v\n             obj_dir/./gameBoardPart2/gameBoardPart2.v.sv\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:2: Cannot find include file: ./gameStateFSM/gameStateFSM.v\n`include "./gameStateFSM/gameStateFSM.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:3: Cannot find include file: ./gameStateDatapath/gameStateDatapath.v\n`include "./gameStateDatapath/gameStateDatapath.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:4: Cannot find include file: ./countDown/countDown.v\n`include "./countDown/countDown.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:5: Cannot find include file: ./movementCounter/movementCounter.v\n`include "./movementCounter/movementCounter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:6: Cannot find include file: ./vga_adapter/vga_adapter.v\n`include "./vga_adapter/vga_adapter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:7: Cannot find include file: ./vga_adapter/vga_controller.v\n`include "./vga_adapter/vga_controller.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:8: Cannot find include file: ./vga_adapter/vga_address_translator.v\n`include "./vga_adapter/vga_address_translator.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:9: Cannot find include file: ./vga_adapter/vga_pll.v\n`include "./vga_adapter/vga_pll.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone3/game.v:122: Too many digits for 1 bit number: 1\'b010\n  .hexID(1\'b010)\n         ^~~~~~\n%Error: Exiting due to 10 error(s)\n'
module test(
	input [9: 0] SW,
	input [3: 0] KEY,
	input CLOCK_50,

	output VGA_CLK,
	output VGA_HS,
	output VGA_VS,
	output VGA_BLANK_N,
	output VGA_SYNC_N,
	output [9:0] VGA_R,
	output [9:0] VGA_G,
	output [9:0] VGA_B,
	output [6: 0] HEX0,
	output [6: 0] HEX1,
	output [6: 0] HEX2,
	output [6: 0] HEX3,
	output [6: 0] HEX4,
	output [6: 0] HEX5
);




	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	wire ifInGame, ifGameOver, ifWin;

	wire [5: 0] second;
	wire [3: 0] minute;
	wire [11: 0] count;
	wire resetn;
	assign resetn = SW[9];
	
	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(SW[8]),

			.VGA_R(VGA_R),
			.VGA_G(VGA_G),
			.VGA_B(VGA_B),
			.VGA_HS(VGA_HS),
			.VGA_VS(VGA_VS),
			.VGA_BLANK(VGA_BLANK_N),
			.VGA_SYNC(VGA_SYNC_N),
			.VGA_CLK(VGA_CLK));
		defparam VGA.RESOLUTION = "160x120";
		defparam VGA.MONOCHROME = "FALSE";
		defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
		defparam VGA.BACKGROUND_IMAGE = "black.mif";
	
	reg [2: 0] go;
	
	
	always @(posedge CLOCK_50) 
	begin
		if (KEY[3] == 1'b0)
			go <= 3'b001;
		else if (KEY[2] == 1'b0)
			go <= 3'b010;
		else if (KEY[1] == 1'b0)
			go <= 3'b011;
		else if (KEY[0] == 1'b0)
			go <= 3'b100;
		else
			go <= 3'b000;
	end
	
	game g0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.go(go),
		.xOut(x),
		.yOut(y),
		.colourOut(color),
		.minuteOut(minute),
		.secondOut(second),
		.countOut(count),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin)
	);
	
	hex_decoder h0(
		.hex_digit(second % 10),
		.segments(HEX0),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b000)
	);
	
	hex_decoder h1(
		.hex_digit(second / 10),
		.segments(HEX1),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b001)
	);
	
	hex_decoder h2(
		.hex_digit(minute),
		.segments(HEX2),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(1'b010)
	);
	
	hex_decoder h3(
		.hex_digit(count % 10),
		.segments(HEX3),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b011)
	);
	
	hex_decoder h4(
		.hex_digit((count / 10) % 10),
		.segments(HEX4),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b100)
	);
	
	hex_decoder h5(
		.hex_digit(count / 100),
		.segments(HEX5),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b101)
	);
	
	

endmodule
module test(
	input [9: 0] SW,
	input [3: 0] KEY,
	input CLOCK_50,

	output VGA_CLK,
	output VGA_HS,
	output VGA_VS,
	output VGA_BLANK_N,
	output VGA_SYNC_N,
	output [9:0] VGA_R,
	output [9:0] VGA_G,
	output [9:0] VGA_B,
	output [6: 0] HEX0,
	output [6: 0] HEX1,
	output [6: 0] HEX2,
	output [6: 0] HEX3,
	output [6: 0] HEX4,
	output [6: 0] HEX5
);





	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	wire ifInGame, ifGameOver, ifWin;

	wire [5: 0] second;
	wire [3: 0] minute;
	wire [11: 0] count;
	wire resetn;
	assign resetn = SW[9];
	
	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(SW[8]),

			.VGA_R(VGA_R),
			.VGA_G(VGA_G),
			.VGA_B(VGA_B),
			.VGA_HS(VGA_HS),
			.VGA_VS(VGA_VS),
			.VGA_BLANK(VGA_BLANK_N),
			.VGA_SYNC(VGA_SYNC_N),
			.VGA_CLK(VGA_CLK));
		defparam VGA.RESOLUTION = "160x120";
		defparam VGA.MONOCHROME = "FALSE";
		defparam VGA.BITS_PER_COLOUR_CHANNEL = 1;
		defparam VGA.BACKGROUND_IMAGE = "black.mif";
	
	reg [2: 0] go;
	
	
	always @(posedge CLOCK_50) 
	begin
		if (KEY[3] == 1'b0)
			go <= 3'b001;
		else if (KEY[2] == 1'b0)
			go <= 3'b010;
		else if (KEY[1] == 1'b0)
			go <= 3'b011;
		else if (KEY[0] == 1'b0)
			go <= 3'b100;
		else
			go <= 3'b000;
	end
	
	game g0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.go(go),
		.xOut(x),
		.yOut(y),
		.colourOut(color),
		.minuteOut(minute),
		.secondOut(second),
		.countOut(count),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin)
	);
	
	hex_decoder h0(
		.hex_digit(second % 10),
		.segments(HEX0),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b000)
	);
	
	hex_decoder h1(
		.hex_digit(second / 10),
		.segments(HEX1),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b001)
	);
	
	hex_decoder h2(
		.hex_digit(minute),
		.segments(HEX2),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(1'b010)
	);
	
	hex_decoder h3(
		.hex_digit(count % 10),
		.segments(HEX3),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b011)
	);
	
	hex_decoder h4(
		.hex_digit((count / 10) % 10),
		.segments(HEX4),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b100)
	);
	
	hex_decoder h5(
		.hex_digit(count / 100),
		.segments(HEX5),
		.ifInGame(ifInGame),
		.ifGameOver(ifGameOver),
		.ifWin(ifWin),
		.hexID(3'b101)
	);
	
	

endmodule