data/full_repos/permissive/114380772/Snake/Greedy_snake.v
1: b"%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:18: Cannot find file containing module: 'altpll0'\n altpll0 altpll0_inst (\n ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/114380772/Snake,data/full_repos/permissive/114380772/altpll0\n             data/full_repos/permissive/114380772/Snake,data/full_repos/permissive/114380772/altpll0.v\n             data/full_repos/permissive/114380772/Snake,data/full_repos/permissive/114380772/altpll0.sv\n             altpll0\n             altpll0.v\n             altpll0.sv\n             obj_dir/altpll0\n             obj_dir/altpll0.v\n             obj_dir/altpll0.sv\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:34: Cannot find file containing module: 'Game_ctrl_module'\n Game_ctrl_module U2( \n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:55: Cannot find file containing module: 'Apple_generate_module'\n Apple_generate_module U3( \n ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:85: Cannot find file containing module: 'Snake_ctrl_module'\n Snake_ctrl_module U4( \n ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:118: Cannot find file containing module: 'Key_check_module'\n Key_check_module U6( \n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:132: Cannot find file containing module: 'Smg_display_module'\n Smg_display_module U7( \n ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/114380772/Snake/Greedy_snake.v:141: Cannot find file containing module: 'Array_decoder'\n Array_decoder U8(\n ^~~~~~~~~~~~~\n%Error: Exiting due to 7 error(s)\n"
module Greedy_snake
(
	input Clk,
	input Rst_n,
	input Left,
	input Right,
	input Up,
	input Down,
	output [7:0] Smg_duan,
	output [3:0] Smg_we,
	output [15:0] Array_row,
	output [15:0] Array_col
);

	wire Clk_24mhz;
	wire Clk_10khz;	
	
	altpll0	altpll0_inst (
	.inclk0(Clk),
	.c0(Clk_24mhz),
	.c1(Clk_10khz)
	);	

	wire Key_left;
	wire Key_right;
	wire Key_up;
	wire Key_down;
	wire [2:0] Game_status;
	wire Hit_wall_sig;
	wire Hit_body_sig;
	wire Flash_sig;
	wire Restart_sig;
	
	Game_ctrl_module U2(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down),
		.Game_status(Game_status),
		.Hit_wall_sig(Hit_wall_sig),
		.Hit_body_sig(Hit_body_sig),
		.Flash_sig(Flash_sig)
	);
		

	
	wire [7:0] Apple_1;
	wire [7:0] Apple_2;
	wire [7:0] Apple_3;
	wire [7:0] Head;
	wire Body_add_sig;

	Apple_generate_module U3(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Apple_1(Apple_1),
		.Apple_2(Apple_2),
		.Apple_3(Apple_3),
		.Head(Head),
		.Body_add_sig(Body_add_sig)
	);
	

	wire [6:0] Body_num;
	wire [7:0] BodyA;
	wire [7:0] BodyB;
	wire [7:0] BodyC;
	wire [7:0] BodyD;
	wire [7:0] BodyE;
	wire [7:0] BodyF;
	wire [7:0] BodyG;
	wire [7:0] BodyH;
	wire [7:0] BodyI;
	wire [7:0] BodyJ;
	wire [7:0] BodyK;
	wire [7:0] BodyL;
	wire [7:0] BodyM;
	wire [7:0] BodyN;
	wire [7:0] BodyO;
	wire [7:0] BodyP;
	wire [7:0] Snake_length;

	Snake_ctrl_module U4(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down),
		.Head(Head),
		.Body_add_sig(Body_add_sig),
		.Game_status(Game_status),
		.Hit_body_sig(Hit_body_sig),
		.Hit_wall_sig(Hit_wall_sig),
		.Flash_sig(Flash_sig),
		.BodyA(BodyA),
		.BodyB(BodyB),
		.BodyC(BodyC),
		.BodyD(BodyD),
		.BodyE(BodyE),
		.BodyF(BodyF),
		.BodyG(BodyG),
		.BodyH(BodyH),
		.BodyI(BodyI),
		.BodyJ(BodyJ),
		.BodyK(BodyK),
		.BodyL(BodyL),
		.BodyM(BodyM),
		.BodyN(BodyN),
		.BodyO(BodyO),
		.BodyP(BodyP),
		.Snake_length(Snake_length)
	);	
	

	Key_check_module U6(
		.Clk_10khz(Clk_10khz),
		.Rst_n(Rst_n),
		.Left(~Left),
		.Right(~Right),
		.Up(~Up),
		.Down(~Down),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down)		
	);
	

	Smg_display_module U7(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),	
		.Body_add_sig(Body_add_sig),
		.Game_status(Game_status),
		.Smg_duan(Smg_duan),
		.Smg_we(Smg_we)
	);

	Array_decoder U8(
		.Clk(Clk_10khz),
		.rst(Rst_n),
		.BodyA(BodyA),
		.BodyB(BodyB),
		.BodyC(BodyC),
		.BodyD(BodyD),
		.BodyE(BodyE),
		.BodyF(BodyF),
		.BodyG(BodyG),
		.BodyH(BodyH),
		.BodyI(BodyI),
		.BodyJ(BodyJ),
		.BodyK(BodyK),
		.BodyL(BodyL),
		.BodyM(BodyM),
		.BodyN(BodyN),
		.BodyO(BodyO),
		.BodyP(BodyP),
		.Snake_length(Snake_length),
		.Apple_1(Apple_1),
		.Apple_2(Apple_2),
		.Apple_3(Apple_3),
		.Game_status(Game_status),
		.row(Array_row),
		.col(Array_col)
		);
	
endmodule
module Greedy_snake
(
	input Clk,
	input Rst_n,
	input Left,
	input Right,
	input Up,
	input Down,
	output [7:0] Smg_duan,
	output [3:0] Smg_we,
	output [15:0] Array_row,
	output [15:0] Array_col
);


	wire Clk_24mhz;
	wire Clk_10khz;	
	
	altpll0	altpll0_inst (
	.inclk0(Clk),
	.c0(Clk_24mhz),
	.c1(Clk_10khz)
	);	

	wire Key_left;
	wire Key_right;
	wire Key_up;
	wire Key_down;
	wire [2:0] Game_status;
	wire Hit_wall_sig;
	wire Hit_body_sig;
	wire Flash_sig;
	wire Restart_sig;
	
	Game_ctrl_module U2(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down),
		.Game_status(Game_status),
		.Hit_wall_sig(Hit_wall_sig),
		.Hit_body_sig(Hit_body_sig),
		.Flash_sig(Flash_sig)
	);
		

	
	wire [7:0] Apple_1;
	wire [7:0] Apple_2;
	wire [7:0] Apple_3;
	wire [7:0] Head;
	wire Body_add_sig;

	Apple_generate_module U3(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Apple_1(Apple_1),
		.Apple_2(Apple_2),
		.Apple_3(Apple_3),
		.Head(Head),
		.Body_add_sig(Body_add_sig)
	);
	

	wire [6:0] Body_num;
	wire [7:0] BodyA;
	wire [7:0] BodyB;
	wire [7:0] BodyC;
	wire [7:0] BodyD;
	wire [7:0] BodyE;
	wire [7:0] BodyF;
	wire [7:0] BodyG;
	wire [7:0] BodyH;
	wire [7:0] BodyI;
	wire [7:0] BodyJ;
	wire [7:0] BodyK;
	wire [7:0] BodyL;
	wire [7:0] BodyM;
	wire [7:0] BodyN;
	wire [7:0] BodyO;
	wire [7:0] BodyP;
	wire [7:0] Snake_length;

	Snake_ctrl_module U4(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down),
		.Head(Head),
		.Body_add_sig(Body_add_sig),
		.Game_status(Game_status),
		.Hit_body_sig(Hit_body_sig),
		.Hit_wall_sig(Hit_wall_sig),
		.Flash_sig(Flash_sig),
		.BodyA(BodyA),
		.BodyB(BodyB),
		.BodyC(BodyC),
		.BodyD(BodyD),
		.BodyE(BodyE),
		.BodyF(BodyF),
		.BodyG(BodyG),
		.BodyH(BodyH),
		.BodyI(BodyI),
		.BodyJ(BodyJ),
		.BodyK(BodyK),
		.BodyL(BodyL),
		.BodyM(BodyM),
		.BodyN(BodyN),
		.BodyO(BodyO),
		.BodyP(BodyP),
		.Snake_length(Snake_length)
	);	
	

	Key_check_module U6(
		.Clk_10khz(Clk_10khz),
		.Rst_n(Rst_n),
		.Left(~Left),
		.Right(~Right),
		.Up(~Up),
		.Down(~Down),
		.Key_left(Key_left),
		.Key_right(Key_right),
		.Key_up(Key_up),
		.Key_down(Key_down)		
	);
	

	Smg_display_module U7(
		.Clk_24mhz(Clk_24mhz),
		.Rst_n(Rst_n),	
		.Body_add_sig(Body_add_sig),
		.Game_status(Game_status),
		.Smg_duan(Smg_duan),
		.Smg_we(Smg_we)
	);

	Array_decoder U8(
		.Clk(Clk_10khz),
		.rst(Rst_n),
		.BodyA(BodyA),
		.BodyB(BodyB),
		.BodyC(BodyC),
		.BodyD(BodyD),
		.BodyE(BodyE),
		.BodyF(BodyF),
		.BodyG(BodyG),
		.BodyH(BodyH),
		.BodyI(BodyI),
		.BodyJ(BodyJ),
		.BodyK(BodyK),
		.BodyL(BodyL),
		.BodyM(BodyM),
		.BodyN(BodyN),
		.BodyO(BodyO),
		.BodyP(BodyP),
		.Snake_length(Snake_length),
		.Apple_1(Apple_1),
		.Apple_2(Apple_2),
		.Apple_3(Apple_3),
		.Game_status(Game_status),
		.row(Array_row),
		.col(Array_col)
		);
	
endmodule