data/full_repos/permissive/180624253/snake.v
 line:52: before: "."
1: b"%Error: data/full_repos/permissive/180624253/snake.v:122: Cannot find file containing module: 'control_module'\n control_module u0(\n ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/180624253,data/full_repos/permissive/180624253/control_module\n             data/full_repos/permissive/180624253,data/full_repos/permissive/180624253/control_module.v\n             data/full_repos/permissive/180624253,data/full_repos/permissive/180624253/control_module.sv\n             control_module\n             control_module.v\n             control_module.sv\n             obj_dir/control_module\n             obj_dir/control_module.v\n             obj_dir/control_module.sv\n%Error: data/full_repos/permissive/180624253/snake.v:143: Cannot find file containing module: 'datapath'\n datapath u1(\n ^~~~~~~~\n%Error: data/full_repos/permissive/180624253/snake.v:158: Cannot find file containing module: 'clear_screen'\n clear_screen u2(\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/180624253/snake.v:37: Cannot find file containing module: 'vga_adapter'\n vga_adapter VGA(\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/180624253/snake.v:72: Cannot find file containing module: 'hex_decoder'\n hex_decoder H0(\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/180624253/snake.v:77: Cannot find file containing module: 'hex_decoder'\n hex_decoder H1(\n ^~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module snake
	(CLOCK_50,
	 SW,
	 KEY,
	 VGA_CLK,
	 VGA_HS,
	 VGA_VS,
	 VGA_BLANK_N,
	 VGA_SYNC_N,
	 VGA_R,
	 VGA_G,
	 VGA_B,
	 HEX0, 
	 HEX1
	 );

	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;
	output [6:0] HEX0;
	output [6:0] HEX1;
	
	wire [2:0] colour;
	wire [7:0] x;
	wire [6:0] y;
	wire [7:0] score;
	wire writeEn;

	vga_adapter VGA(
		.resetn(~SW[0]),
		.clock(CLOCK_50),
		.colour(colour),
		.x(x),
		.y(y),
		.plot(writeEn),
		.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";

	combine u0(
		.CLOCK_50(CLOCK_50),
		.reset_n(~SW[0]),
		.level(SW[9:8]),
		.up(~KEY[3]),
		.down(~KEY[2]),
		.left(~KEY[1]),
		.right(~KEY[0]),
		.x_out(x),
		.y_out(y),
		.colour_out(colour),
		.plot(writeEn),
		.score(score)
		);
	
	hex_decoder H0(
		.hex_digit(score[3:0]), 
		.segments(HEX0)
	);
 
	hex_decoder H1(
		.hex_digit(score[7:4]), 
		.segments(HEX1)
	);

endmodule
module snake
	(CLOCK_50,
	 SW,
	 KEY,
	 VGA_CLK,
	 VGA_HS,
	 VGA_VS,
	 VGA_BLANK_N,
	 VGA_SYNC_N,
	 VGA_R,
	 VGA_G,
	 VGA_B,
	 HEX0, 
	 HEX1
	 );


	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;
	output [6:0] HEX0;
	output [6:0] HEX1;
	
	wire [2:0] colour;
	wire [7:0] x;
	wire [6:0] y;
	wire [7:0] score;
	wire writeEn;

	vga_adapter VGA(
		.resetn(~SW[0]),
		.clock(CLOCK_50),
		.colour(colour),
		.x(x),
		.y(y),
		.plot(writeEn),
		.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";

	combine u0(
		.CLOCK_50(CLOCK_50),
		.reset_n(~SW[0]),
		.level(SW[9:8]),
		.up(~KEY[3]),
		.down(~KEY[2]),
		.left(~KEY[1]),
		.right(~KEY[0]),
		.x_out(x),
		.y_out(y),
		.colour_out(colour),
		.plot(writeEn),
		.score(score)
		);
	
	hex_decoder H0(
		.hex_digit(score[3:0]), 
		.segments(HEX0)
	);
 
	hex_decoder H1(
		.hex_digit(score[7:4]), 
		.segments(HEX1)
	);

endmodule