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 pg_box #(parameter N=4) (
    input wire Cin,
    input wire [N-1:0] A,
    input wire [N-1:0] B,
    output wire [N-1:0] G_n2j,
		output wire [N-1:0] P_n,
		output wire [N-1:0] G_n,
    output wire P_i2j 
    );
	assign G_n2j[0]=G_n[0];
	sky130_fd_sc_hd__and4_1 u_AND4(
		.A(P_n[0]),
		.B(P_n[1]),
		.C(P_n[2]),
		.D(P_n[3]),
		.X(P_i2j)
	);
	genvar i;
	generate 
	for (i=0;i<N; i=i+1) begin: pg
		sky130_fd_sc_hd__and2_0 uG_n(
			.A(A[i]),
			.B(B[i]),
			.X(G_n[i])
		);
		sky130_fd_sc_hd__xor2_1 uP_n(
			.A(A[i]),
			.B(B[i]),
			.X(P_n[i])
		);
		if(i!=0) begin:gray
		grayCell g0(
			.Gin_i2k(G_n[i]),
			.Pin_i2k(P_n[i]),
			.Gin_kd2j(G_n2j[i-1]),
			.Gout_i2j(G_n2j[i])
		);
		end
	end
	endgenerate
endmodule
module pg_box #(parameter N=4) (
    input wire Cin,
    input wire [N-1:0] A,
    input wire [N-1:0] B,
    output wire [N-1:0] G_n2j,
		output wire [N-1:0] P_n,
		output wire [N-1:0] G_n,
    output wire P_i2j 
    );

	assign G_n2j[0]=G_n[0];
	sky130_fd_sc_hd__and4_1 u_AND4(
		.A(P_n[0]),
		.B(P_n[1]),
		.C(P_n[2]),
		.D(P_n[3]),
		.X(P_i2j)
	);
	genvar i;
	generate 
	for (i=0;i<N; i=i+1) begin: pg
		sky130_fd_sc_hd__and2_0 uG_n(
			.A(A[i]),
			.B(B[i]),
			.X(G_n[i])
		);
		sky130_fd_sc_hd__xor2_1 uP_n(
			.A(A[i]),
			.B(B[i]),
			.X(P_n[i])
		);
		if(i!=0) begin:gray
		grayCell g0(
			.Gin_i2k(G_n[i]),
			.Pin_i2k(P_n[i]),
			.Gin_kd2j(G_n2j[i-1]),
			.Gout_i2j(G_n2j[i])
		);
		end
	end
	endgenerate
endmodule