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 combine(CLOCK_50, reset_n, level, up, down, left, right, x_out, y_out, colour_out, plot, score);
	input CLOCK_50;
	input reset_n; 
	input up; 
	input down; 
	input left; 
	input right;
	input [1:0]level;
	output [7:0]x_out;
	output [6:0]y_out;
	output [2:0]colour_out;
	output plot;
	output [7:0]score;
	
	wire [7:0] x_in;
	wire [6:0] y_in;
	wire [2:0] colour_in;
	wire load_x, load_y, draw, erase;
	wire [7:0] data_x;
	wire [6:0] data_y;
	wire [2:0] data_colour;
	wire [7:0] restart_x;
	wire [6:0] restart_y;
	wire [2:0] restart_colour;
	wire restart;
	reg [23:0] rate;

	always@(*)
	begin
		case(level)
			2'b00: rate <= 24'd12_500_000;
			2'b01: rate <= 24'd10_000_000;
			2'b10: rate <= 24'd7_500_000;
			2'b11: rate <= 24'd5_000_000;
		endcase
	end				

	control_module u0(
		.CLOCK_50(CLOCK_50), 
		.reset_n(reset_n), 
		.up(up), 
		.down(down), 
		.left(left), 
		.right(right), 
		.x_count(x_in), 
		.y_count(y_in), 
		.colour(colour_in), 
		.load_x(load_x), 
		.load_y(load_y), 
		.draw(draw), 
		.erase(erase), 
		.plot(plot),
		.restart_game(restart),
		.rate(rate),
		.score(score)
	);
	
				 
	datapath u1(
		.x_in(x_in), 
		.y_in(y_in), 
		.colour_in(colour_in), 
		.clock(CLOCK_50), 
		.reset_n(reset_n), 
		.load_x(load_x), 
		.load_y(load_y), 
		.draw(draw), 
		.erase(erase), 
		.x_out(data_x), 
		.y_out(data_y), 
		.colour_out(data_colour)
	);
					
	clear_screen u2(
		.reset_n(reset_n), 
		.clock(CLOCK_50), 
		.x_out(restart_x), 
		.y_out(restart_y), 
		.colour_out(restart_colour)
	);
	
	assign colour_out = (restart) ? 3'b000: data_colour;
	assign x_out = (restart) ? restart_x : data_x;
	assign y_out = (restart) ? restart_y : data_y;
endmodule
module combine(CLOCK_50, reset_n, level, up, down, left, right, x_out, y_out, colour_out, plot, score);

	input CLOCK_50;
	input reset_n; 
	input up; 
	input down; 
	input left; 
	input right;
	input [1:0]level;
	output [7:0]x_out;
	output [6:0]y_out;
	output [2:0]colour_out;
	output plot;
	output [7:0]score;
	
	wire [7:0] x_in;
	wire [6:0] y_in;
	wire [2:0] colour_in;
	wire load_x, load_y, draw, erase;
	wire [7:0] data_x;
	wire [6:0] data_y;
	wire [2:0] data_colour;
	wire [7:0] restart_x;
	wire [6:0] restart_y;
	wire [2:0] restart_colour;
	wire restart;
	reg [23:0] rate;

	always@(*)
	begin
		case(level)
			2'b00: rate <= 24'd12_500_000;
			2'b01: rate <= 24'd10_000_000;
			2'b10: rate <= 24'd7_500_000;
			2'b11: rate <= 24'd5_000_000;
		endcase
	end				

	control_module u0(
		.CLOCK_50(CLOCK_50), 
		.reset_n(reset_n), 
		.up(up), 
		.down(down), 
		.left(left), 
		.right(right), 
		.x_count(x_in), 
		.y_count(y_in), 
		.colour(colour_in), 
		.load_x(load_x), 
		.load_y(load_y), 
		.draw(draw), 
		.erase(erase), 
		.plot(plot),
		.restart_game(restart),
		.rate(rate),
		.score(score)
	);
	
				 
	datapath u1(
		.x_in(x_in), 
		.y_in(y_in), 
		.colour_in(colour_in), 
		.clock(CLOCK_50), 
		.reset_n(reset_n), 
		.load_x(load_x), 
		.load_y(load_y), 
		.draw(draw), 
		.erase(erase), 
		.x_out(data_x), 
		.y_out(data_y), 
		.colour_out(data_colour)
	);
					
	clear_screen u2(
		.reset_n(reset_n), 
		.clock(CLOCK_50), 
		.x_out(restart_x), 
		.y_out(restart_y), 
		.colour_out(restart_colour)
	);
	
	assign colour_out = (restart) ? 3'b000: data_colour;
	assign x_out = (restart) ? restart_x : data_x;
	assign y_out = (restart) ? restart_y : data_y;
endmodule