data/full_repos/permissive/188039952/Spartan 6/asyncCounter.v
1: b'%Error: Cannot find file containing module: 6,data/full_repos/permissive/188039952\n        ... Looked in:\n             data/full_repos/permissive/188039952/Spartan/6,data/full_repos/permissive/188039952\n             data/full_repos/permissive/188039952/Spartan/6,data/full_repos/permissive/188039952.v\n             data/full_repos/permissive/188039952/Spartan/6,data/full_repos/permissive/188039952.sv\n             6,data/full_repos/permissive/188039952\n             6,data/full_repos/permissive/188039952.v\n             6,data/full_repos/permissive/188039952.sv\n             obj_dir/6,data/full_repos/permissive/188039952\n             obj_dir/6,data/full_repos/permissive/188039952.v\n             obj_dir/6,data/full_repos/permissive/188039952.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/188039952/Spartan\n%Error: Cannot find file containing module: 6/asyncCounter.v\n%Error: Exiting due to 3 error(s)\n'
module asyncCounter #(
		parameter 				width = 16
	)(
		input 					clk,
		input 					clr,
		input 					clkEn,
		output [width-1:0] 	cnt
	);
	

	wire [width-1:0] outN;
	

	genvar i;

	generate
		for (i = 0; i < width; i = i + 1) begin : counter
			if (i == 0) begin
				TFF tff (.clk(clk), .clr(clr), .outP(cnt[i]), .outN(outN[i]), .clkEn(clkEn));
			end
			else begin
				TFF tff (.clk(outN[i-1]), .clr(clr), .outP(cnt[i]), .outN(outN[i]), .clkEn(clkEn));
			end
		end
	endgenerate

endmodule
module asyncCounter #(
		parameter 				width = 16
	)(
		input 					clk,
		input 					clr,
		input 					clkEn,
		output [width-1:0] 	cnt
	);

	

	wire [width-1:0] outN;
	

	genvar i;

	generate
		for (i = 0; i < width; i = i + 1) begin : counter
			if (i == 0) begin
				TFF tff (.clk(clk), .clr(clr), .outP(cnt[i]), .outN(outN[i]), .clkEn(clkEn));
			end
			else begin
				TFF tff (.clk(outN[i-1]), .clr(clr), .outP(cnt[i]), .outN(outN[i]), .clkEn(clkEn));
			end
		end
	endgenerate

endmodule