data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v
1: b'%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:1: Cannot find include file: ./gameBoardDatapath/gameBoardDatapath.v\n`include "./gameBoardDatapath/gameBoardDatapath.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2,data/full_repos/permissive/515245706/./gameBoardDatapath/gameBoardDatapath.v\n             data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2,data/full_repos/permissive/515245706/./gameBoardDatapath/gameBoardDatapath.v.v\n             data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2,data/full_repos/permissive/515245706/./gameBoardDatapath/gameBoardDatapath.v.sv\n             ./gameBoardDatapath/gameBoardDatapath.v\n             ./gameBoardDatapath/gameBoardDatapath.v.v\n             ./gameBoardDatapath/gameBoardDatapath.v.sv\n             obj_dir/./gameBoardDatapath/gameBoardDatapath.v\n             obj_dir/./gameBoardDatapath/gameBoardDatapath.v.v\n             obj_dir/./gameBoardDatapath/gameBoardDatapath.v.sv\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:2: Cannot find include file: ./gameBoardFSM/gameBoardFSM.v\n`include "./gameBoardFSM/gameBoardFSM.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:3: Cannot find include file: ./vga_adapter/vga_adapter.v\n`include "./vga_adapter/vga_adapter.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:4: Cannot find include file: ./vga_adapter/vga_controller.v\n`include "./vga_adapter/vga_controller.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:5: 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/milestone2/gameBoard/gameBoardPart2/gameBoardPart2.v:6: Cannot find include file: ./vga_adapter/vga_pll.v\n`include "./vga_adapter/vga_pll.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n'
module tester
	(
		LEDR,
		CLOCK_50,

        KEY,
        SW,

		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK_N,
		VGA_SYNC_N,
		VGA_R,
		VGA_G,
		VGA_B
	);

	input			CLOCK_50;
	input   [9:0]   SW;
	input   [3:0]   KEY;
	output [9: 0] LEDR;


	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	

	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;
	
	wire resetn;
	assign resetn = SW[8];
	


	reg plot;

	



	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(plot),

			.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 @(*) 
	begin
		if (KEY[3] == 1'b0)
			begin
			go <= 3'b001;
			plot <= 1'b0;
			end
		else if (KEY[2] == 1'b0)
			begin
			go <= 3'b010;
			plot <= 1'b0;
			end
		else if (KEY[1] == 1'b0)
			begin
			go <= 3'b011;
			plot <= 1'b0;
			end
		else if (KEY[0] == 1'b0)
			begin
			go <= 3'b100;
			plot <= 1'b0;
			end
		else
			begin
			go <= 3'b000;
			plot <= 1'b1;
			end
	end
	wire ifWin;
	gameBoardPart2 g0(
		.clk(CLOCK_50),
		.resetn(resetn),

		.initialGameBoard(64'b0000_1111_1110_1101_1100_1011_1010_1001_1000_0111_0110_0101_0100_0011_0010_0001),
		.go(go),

		.initialState(6'b010000),
		.ifWin(ifWin),
		.xOut(x),
		.yOut(y),
		.colourOut(color),
		.to(LEDR[4: 0]),
		.from(LEDR[9: 5])
		
	);
endmodule
module tester
	(
		LEDR,
		CLOCK_50,

        KEY,
        SW,

		VGA_CLK,
		VGA_HS,
		VGA_VS,
		VGA_BLANK_N,
		VGA_SYNC_N,
		VGA_R,
		VGA_G,
		VGA_B
	);


	input			CLOCK_50;
	input   [9:0]   SW;
	input   [3:0]   KEY;
	output [9: 0] LEDR;


	wire [7:0] x;
	wire [6:0] y;
	wire [2:0] color;
	

	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;
	
	wire resetn;
	assign resetn = SW[8];
	


	reg plot;

	



	vga_adapter VGA(
			.resetn(resetn),
			.clock(CLOCK_50),
			.colour(color),
			.x(x),
			.y(y),
			.plot(plot),

			.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 @(*) 
	begin
		if (KEY[3] == 1'b0)
			begin
			go <= 3'b001;
			plot <= 1'b0;
			end
		else if (KEY[2] == 1'b0)
			begin
			go <= 3'b010;
			plot <= 1'b0;
			end
		else if (KEY[1] == 1'b0)
			begin
			go <= 3'b011;
			plot <= 1'b0;
			end
		else if (KEY[0] == 1'b0)
			begin
			go <= 3'b100;
			plot <= 1'b0;
			end
		else
			begin
			go <= 3'b000;
			plot <= 1'b1;
			end
	end
	wire ifWin;
	gameBoardPart2 g0(
		.clk(CLOCK_50),
		.resetn(resetn),

		.initialGameBoard(64'b0000_1111_1110_1101_1100_1011_1010_1001_1000_0111_0110_0101_0100_0011_0010_0001),
		.go(go),

		.initialState(6'b010000),
		.ifWin(ifWin),
		.xOut(x),
		.yOut(y),
		.colourOut(color),
		.to(LEDR[4: 0]),
		.from(LEDR[9: 5])
		
	);
endmodule