data/full_repos/permissive/515245706/test/gameStateTester/DatapathTester.v
1: b"%Error: data/full_repos/permissive/515245706/test/gameStateTester/DatapathTester.v:51: Cannot find file containing module: 'vga_adapter'\n vga_adapter VGA(\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/515245706/test/gameStateTester,data/full_repos/permissive/515245706/vga_adapter\n             data/full_repos/permissive/515245706/test/gameStateTester,data/full_repos/permissive/515245706/vga_adapter.v\n             data/full_repos/permissive/515245706/test/gameStateTester,data/full_repos/permissive/515245706/vga_adapter.sv\n             vga_adapter\n             vga_adapter.v\n             vga_adapter.sv\n             obj_dir/vga_adapter\n             obj_dir/vga_adapter.v\n             obj_dir/vga_adapter.sv\n%Error: data/full_repos/permissive/515245706/test/gameStateTester/DatapathTester.v:75: Cannot find file containing module: 'gameStateFSM'\n gameStateFSM gsfsm0(\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/515245706/test/gameStateTester/DatapathTester.v:88: Cannot find file containing module: 'gameStateDatapath'\n gameStateDatapath gsdp0(\n ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module DatapathTester
(
		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			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 = KEY[0];
	wire gameOver;
	assign gameOver = SW[3];
	wire [2:0]go;
	assign go = ~KEY[3:1];
	wire plot;
	assign plot = SW[9];
	

	wire [2:0] color;
	wire [7:0] x;
	wire [6:0] y;
	
	wire grid, ez, normal, hard, inGame, clear;




	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";
			


	 
	gameStateFSM gsfsm0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.go(go),
		.gameOver(gameOver),
		.drawGrid(grid),
		.drawEZ(ez),
		.drawNORMAL(normal),
		.drawHARD(hard),
		.inGame(inGame),
		.clear(clear)
	);
	
	gameStateDatapath gsdp0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.drawGrid(grid),
		.drawEZ(ez),
		.drawNORMAL(normal),
		.drawHARD(hard),
		.clear(clear),
		.colorOut(color),
		.xOut(x),
		.yOut(y)
	);
	
endmodule
module DatapathTester
(
		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			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 = KEY[0];
	wire gameOver;
	assign gameOver = SW[3];
	wire [2:0]go;
	assign go = ~KEY[3:1];
	wire plot;
	assign plot = SW[9];
	

	wire [2:0] color;
	wire [7:0] x;
	wire [6:0] y;
	
	wire grid, ez, normal, hard, inGame, clear;




	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";
			


	 
	gameStateFSM gsfsm0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.go(go),
		.gameOver(gameOver),
		.drawGrid(grid),
		.drawEZ(ez),
		.drawNORMAL(normal),
		.drawHARD(hard),
		.inGame(inGame),
		.clear(clear)
	);
	
	gameStateDatapath gsdp0(
		.clk(CLOCK_50),
		.resetn(resetn),
		.drawGrid(grid),
		.drawEZ(ez),
		.drawNORMAL(normal),
		.drawHARD(hard),
		.clear(clear),
		.colorOut(color),
		.xOut(x),
		.yOut(y)
	);
	
endmodule