data/full_repos/permissive/163484550/maze.v
 line:609: before: "["
1: b"%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                ^~~\n        data/full_repos/permissive/163484550/maze.v:615: ... Location of original declaration\n        input  [N-1:0]   key;                  \n                         ^~~\n%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                       ^~~\n        data/full_repos/permissive/163484550/maze.v:615: ... Location of original declaration\n        input  [N-1:0]   key;                  \n                         ^~~\n%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                              ^~~\n        data/full_repos/permissive/163484550/maze.v:615: ... Location of original declaration\n        input  [N-1:0]   key;                  \n                         ^~~\n%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key_pulse'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                                                  ^~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:616: ... Location of original declaration\n output  [N-1:0]   key_pulse;                   \n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key_pulse'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                                                               ^~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:616: ... Location of original declaration\n output  [N-1:0]   key_pulse;                   \n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:609: Duplicate declaration of port: 'key_pulse'\nmodule debounce (clk,rst,key[0],key[1],key[2],key[3],key_pulse[0],key_pulse[1],key_pulse[2],key_pulse[3]);\n                                                                                            ^~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:616: ... Location of original declaration\n output  [N-1:0]   key_pulse;                   \n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber4'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                 ^~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber5'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                            ^~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber6'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                       ^~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber8'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                                  ^~~~~~~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber9'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                                                  ^~~~~~~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/163484550/maze.v:153: Duplicate pin connection: '__pinNumber10'\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                                                                  ^~~~~~~~~~~~~~~\n        data/full_repos/permissive/163484550/maze.v:153: ... Location of original pin connection\n debounce c1(clk,~rst,direction1,direction2,direction3,direction4,direction_lock1,direction_lock2,direction_lock3,direction_lock4);\n                                                                  ^~~~~~~~~~~~~~~\n%Error: Exiting due to 12 error(s)\n"
module countdown(clk,but,one,ten,time1,suc);		
		input but;
		input clk;
		input suc;
		output [3:0] ten;
		output [3:0] one;
		output reg[4:0] time1=5'd30;
		reg [31:0] time_count=32'd0;
		
		always @(posedge div_clk or posedge but) begin
			if(but==1) time1<=5'd30;
			else time1<=time1-1;
		end
		 reg div_clk;
		always @(posedge clk)
			begin
			if(time1!=0&&suc==0) begin
			if(time_count==25000000)
			begin
				time_count<=32'd0;
				div_clk<=~div_clk;
			end
			else begin
			time_count<=time_count+1;
			end
			end
			end
		
	two_ten t1(.clk(clk),.num(time1),.ten(ten),.one(one));

endmodule
module countdown(clk,but,one,ten,time1,suc);
		
		input but;
		input clk;
		input suc;
		output [3:0] ten;
		output [3:0] one;
		output reg[4:0] time1=5'd30;
		reg [31:0] time_count=32'd0;
		
		always @(posedge div_clk or posedge but) begin
			if(but==1) time1<=5'd30;
			else time1<=time1-1;
		end
		 reg div_clk;
		always @(posedge clk)
			begin
			if(time1!=0&&suc==0) begin
			if(time_count==25000000)
			begin
				time_count<=32'd0;
				div_clk<=~div_clk;
			end
			else begin
			time_count<=time_count+1;
			end
			end
			end
		
	two_ten t1(.clk(clk),.num(time1),.ten(ten),.one(one));

endmodule