data/full_repos/permissive/117439233/hdl/src/CLA_16bit.v
1: b"%Error: data/full_repos/permissive/117439233/hdl/src/CLA_16bit.v:31: Cannot find file containing module: 'CLA_4bit'\n CLA_4bit FIRST (.A(A[ 3: 0]), .B(B[ 3: 0]), .Cin(Cout[0]), .S(S[ 3: 0]), .PG(P[0]), .GG(G[0]), .Cout(Cout[1]));\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/117439233/hdl/src,data/full_repos/permissive/117439233/CLA_4bit\n             data/full_repos/permissive/117439233/hdl/src,data/full_repos/permissive/117439233/CLA_4bit.v\n             data/full_repos/permissive/117439233/hdl/src,data/full_repos/permissive/117439233/CLA_4bit.sv\n             CLA_4bit\n             CLA_4bit.v\n             CLA_4bit.sv\n             obj_dir/CLA_4bit\n             obj_dir/CLA_4bit.v\n             obj_dir/CLA_4bit.sv\n%Error: data/full_repos/permissive/117439233/hdl/src/CLA_16bit.v:32: Cannot find file containing module: 'CLA_4bit'\n CLA_4bit SECOND(.A(A[ 7: 4]), .B(B[ 7: 4]), .Cin(Cout[1]), .S(S[ 7: 4]), .PG(P[1]), .GG(G[1]), .Cout(Cout[2]));\n ^~~~~~~~\n%Error: data/full_repos/permissive/117439233/hdl/src/CLA_16bit.v:33: Cannot find file containing module: 'CLA_4bit'\n CLA_4bit THIRD (.A(A[11: 8]), .B(B[11: 8]), .Cin(Cout[2]), .S(S[11: 8]), .PG(P[2]), .GG(G[2]), .Cout(Cout[3]));\n ^~~~~~~~\n%Error: data/full_repos/permissive/117439233/hdl/src/CLA_16bit.v:34: Cannot find file containing module: 'CLA_4bit'\n CLA_4bit FOURTH(.A(A[15:12]), .B(B[15:12]), .Cin(Cout[3]), .S(S[15:12]), .PG(P[3]), .GG(G[3]), .Cout(Cout[4]));    \n ^~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module CLA_16bit(
    input  Cin,
    input  [15:0] A,
    input  [15:0] B,
    output [15:0]S,
    output PG,
    output GG,
    output C16
    );

	wire [3:0] P;
	wire [3:0] G;
	wire [4:0] Cout;
	assign Cout[0] = Cin;
	assign C16 = Cout[4];
	assign PG = P[0] & P[1] & P[2] & P[3];
	assign GG = G[3] | ( G[2] & P[3] ) | ( G[1] & P[2] & P[3] ) | ( G[0] & P[1] & P[2] & P[3] );

	CLA_4bit FIRST (.A(A[ 3: 0]), .B(B[ 3: 0]), .Cin(Cout[0]), .S(S[ 3: 0]), .PG(P[0]), .GG(G[0]), .Cout(Cout[1]));
	CLA_4bit SECOND(.A(A[ 7: 4]), .B(B[ 7: 4]),	.Cin(Cout[1]), .S(S[ 7: 4]), .PG(P[1]), .GG(G[1]), .Cout(Cout[2]));
	CLA_4bit THIRD (.A(A[11: 8]), .B(B[11: 8]), .Cin(Cout[2]), .S(S[11: 8]), .PG(P[2]), .GG(G[2]), .Cout(Cout[3]));
	CLA_4bit FOURTH(.A(A[15:12]), .B(B[15:12]), .Cin(Cout[3]), .S(S[15:12]), .PG(P[3]), .GG(G[3]), .Cout(Cout[4]));	 	 
endmodule
module CLA_16bit(
    input  Cin,
    input  [15:0] A,
    input  [15:0] B,
    output [15:0]S,
    output PG,
    output GG,
    output C16
    );


	wire [3:0] P;
	wire [3:0] G;
	wire [4:0] Cout;
	assign Cout[0] = Cin;
	assign C16 = Cout[4];
	assign PG = P[0] & P[1] & P[2] & P[3];
	assign GG = G[3] | ( G[2] & P[3] ) | ( G[1] & P[2] & P[3] ) | ( G[0] & P[1] & P[2] & P[3] );

	CLA_4bit FIRST (.A(A[ 3: 0]), .B(B[ 3: 0]), .Cin(Cout[0]), .S(S[ 3: 0]), .PG(P[0]), .GG(G[0]), .Cout(Cout[1]));
	CLA_4bit SECOND(.A(A[ 7: 4]), .B(B[ 7: 4]),	.Cin(Cout[1]), .S(S[ 7: 4]), .PG(P[1]), .GG(G[1]), .Cout(Cout[2]));
	CLA_4bit THIRD (.A(A[11: 8]), .B(B[11: 8]), .Cin(Cout[2]), .S(S[11: 8]), .PG(P[2]), .GG(G[2]), .Cout(Cout[3]));
	CLA_4bit FOURTH(.A(A[15:12]), .B(B[15:12]), .Cin(Cout[3]), .S(S[15:12]), .PG(P[3]), .GG(G[3]), .Cout(Cout[4]));	 	 
endmodule