data/full_repos/permissive/453307447/rtl/carryLookAhead.v
1: b"%Error: data/full_repos/permissive/453307447/rtl/carryLookAhead.v:22: Can't resolve module reference: 'sky130_fd_sc_hd__a21o_1'\n sky130_fd_sc_hd__a21o_1 uGray(\n                         ^~~~~\n%Error: Exiting due to 1 error(s)\n"
module cla_unit #(parameter N=4) (
    input wire Cin,
    input wire [N-1:0] A,
    input wire [N-1:0] B,
    output wire [N-1:0] Sout,
    output wire Cout
    );
	wire P_i2j;
	wire G_3to0;
    wire [N-1:0] G_n2j;
    wire [N-1:0] P_n;
    wire [N-1:0] G_n;

	sky130_fd_sc_hd__a21o_1 uA21O(
		.A1(P_i2j),
		.A2(Cin),
		.B1(G_n2j[N-1]),
		.X(Cout)
	);

	pg_box #(.N(4)) uPG (
    	.Cin(Cin),
    	.A(A),
    	.B(B),
    	.P_n(P_n),
    	.G_n(G_n),
    	.G_n2j(G_n2j),
   		.P_i2j(P_i2j) 
    );


	wire [N-1:0] G3to0;
  assign G3to0[0]	= Cin;
	wire [N-1:0] P3to1;
	assign P3to1[0] = P_n[0];

	genvar i;
	generate 
	for (i=0;i<N; i=i+1) begin: sum 
		if (i!=0) begin
			sky130_fd_sc_hd__and2_0 uP_3to1(
			.A(P_n[i]),
			.B(P3to1[i-1]),
			.X(P3to1[i])
			);
			sky130_fd_sc_hd__a21o_1 uG_3to0(
			.A1(P3to1[i-1]),
			.A2(Cin),
			.B1(G_n2j[i-1]),
			.X(G3to0[i])
			);
		end
		sky130_fd_sc_hd__xor2_1 uS_n(
			.A(P_n[i]),
			.B(G3to0[i]),
			.X(Sout[i])
		);
	end
	endgenerate
endmodule
module cla_unit #(parameter N=4) (
    input wire Cin,
    input wire [N-1:0] A,
    input wire [N-1:0] B,
    output wire [N-1:0] Sout,
    output wire Cout
    );

	wire P_i2j;
	wire G_3to0;
    wire [N-1:0] G_n2j;
    wire [N-1:0] P_n;
    wire [N-1:0] G_n;

	sky130_fd_sc_hd__a21o_1 uA21O(
		.A1(P_i2j),
		.A2(Cin),
		.B1(G_n2j[N-1]),
		.X(Cout)
	);

	pg_box #(.N(4)) uPG (
    	.Cin(Cin),
    	.A(A),
    	.B(B),
    	.P_n(P_n),
    	.G_n(G_n),
    	.G_n2j(G_n2j),
   		.P_i2j(P_i2j) 
    );


	wire [N-1:0] G3to0;
  assign G3to0[0]	= Cin;
	wire [N-1:0] P3to1;
	assign P3to1[0] = P_n[0];

	genvar i;
	generate 
	for (i=0;i<N; i=i+1) begin: sum 
		if (i!=0) begin
			sky130_fd_sc_hd__and2_0 uP_3to1(
			.A(P_n[i]),
			.B(P3to1[i-1]),
			.X(P3to1[i])
			);
			sky130_fd_sc_hd__a21o_1 uG_3to0(
			.A1(P3to1[i-1]),
			.A2(Cin),
			.B1(G_n2j[i-1]),
			.X(G3to0[i])
			);
		end
		sky130_fd_sc_hd__xor2_1 uS_n(
			.A(P_n[i]),
			.B(G3to0[i]),
			.X(Sout[i])
		);
	end
	endgenerate
endmodule