data/full_repos/permissive/167489907/ALU/CLA Stuff/CLA_adder4bit.v
1: b'%Error: Cannot find file containing module: Stuff,data/full_repos/permissive/167489907\n        ... Looked in:\n             data/full_repos/permissive/167489907/ALU/CLA/Stuff,data/full_repos/permissive/167489907\n             data/full_repos/permissive/167489907/ALU/CLA/Stuff,data/full_repos/permissive/167489907.v\n             data/full_repos/permissive/167489907/ALU/CLA/Stuff,data/full_repos/permissive/167489907.sv\n             Stuff,data/full_repos/permissive/167489907\n             Stuff,data/full_repos/permissive/167489907.v\n             Stuff,data/full_repos/permissive/167489907.sv\n             obj_dir/Stuff,data/full_repos/permissive/167489907\n             obj_dir/Stuff,data/full_repos/permissive/167489907.v\n             obj_dir/Stuff,data/full_repos/permissive/167489907.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/167489907/ALU/CLA\n%Error: Cannot find file containing module: Stuff/CLA_adder4bit.v\n%Error: Exiting due to 3 error(s)\n'
module CLA_adder4bit(
	input Cin, 
	input [3:0] A,
	input [3:0] B,
	output [3:0] S,
	output  Cout);


wire [3:0] G, P, C;

	assign G = A & B;
	assign P = A ^ B;
	
	assign C[0] = G[0] | (P[0]&Cin);
	assign C[1] = G[1] | (P[1]&G[0]) | (P[1]&P[0]&Cin);
	assign C[2] = G[2] | (P[2]&G[1]) | (P[2]&P[1]&G[0]) | (P[2]&P[1]&P[0]&Cin);
	assign C[3] = G[3] | (P[3]&G[2]) | (P[3]&P[2]&G[1]) | (P[3]&P[2]&P[1]&G[0]) | (P[3]&P[2]&P[1]&P[0]&Cin);
	
	assign S[0] = P[0] ^ Cin;
	assign S[3:1] = P[3:1] ^ C[2:0];
	assign Cout = C[3];



endmodule
module CLA_adder4bit(
	input Cin, 
	input [3:0] A,
	input [3:0] B,
	output [3:0] S,
	output  Cout);



wire [3:0] G, P, C;

	assign G = A & B;
	assign P = A ^ B;
	
	assign C[0] = G[0] | (P[0]&Cin);
	assign C[1] = G[1] | (P[1]&G[0]) | (P[1]&P[0]&Cin);
	assign C[2] = G[2] | (P[2]&G[1]) | (P[2]&P[1]&G[0]) | (P[2]&P[1]&P[0]&Cin);
	assign C[3] = G[3] | (P[3]&G[2]) | (P[3]&P[2]&G[1]) | (P[3]&P[2]&P[1]&G[0]) | (P[3]&P[2]&P[1]&P[0]&Cin);
	
	assign S[0] = P[0] ^ Cin;
	assign S[3:1] = P[3:1] ^ C[2:0];
	assign Cout = C[3];



endmodule