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 carryLookAhead #(parameter N=16) (
    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 [N/4+1:0] carries;
	assign carries[0] = Cin;
	assign Cout = carries[N/4];

	genvar i;
	generate 
	for (i=1;i<=N/4; i=i+1) begin: cla 
		cla_unit #(.N(4)) u_CLA(
			.Cin(carries[i-1]),
			.A(A[4*i-1:4*i-4]),
			.B(B[4*i-1:4*i-4]),
			.Cout(carries[i]),
			.Sout(Sout[4*i-1:4*i-4])
			);
	end
	endgenerate
endmodule
module carryLookAhead #(parameter N=16) (
    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 [N/4+1:0] carries;
	assign carries[0] = Cin;
	assign Cout = carries[N/4];

	genvar i;
	generate 
	for (i=1;i<=N/4; i=i+1) begin: cla 
		cla_unit #(.N(4)) u_CLA(
			.Cin(carries[i-1]),
			.A(A[4*i-1:4*i-4]),
			.B(B[4*i-1:4*i-4]),
			.Cout(carries[i]),
			.Sout(Sout[4*i-1:4*i-4])
			);
	end
	endgenerate
endmodule