data/full_repos/permissive/207835546/FA/fa/Full Adder (Struct)/fa_ha.v
1: b'%Error: Cannot find file containing module: Adder\n        ... Looked in:\n             data/full_repos/permissive/207835546/FA/fa/Full/Adder\n             data/full_repos/permissive/207835546/FA/fa/Full/Adder.v\n             data/full_repos/permissive/207835546/FA/fa/Full/Adder.sv\n             Adder\n             Adder.v\n             Adder.sv\n             obj_dir/Adder\n             obj_dir/Adder.v\n             obj_dir/Adder.sv\n%Error: Cannot find file containing module: (Struct),data/full_repos/permissive/207835546\n%Error: Cannot find file containing module: data/full_repos/permissive/207835546/FA/fa/Full\n%Error: Cannot find file containing module: (Struct)/fa_ha.v\n%Error: Exiting due to 4 error(s)\n'
module fa_ha(a,b,cin,s,co);

	input a,b,cin;
	output s,co;
	
	wire ha1_sum,ha2_sum,ha1_carry,ha2_carry,Sum,Carry;
	

	
	half_adder ha1(.A(a),.B(b),.Sum(ha1_sum),.Carry(ha1_carry));
	half_adder ha2(.A(ha1_sum),.B(cin),.Sum(s),.Carry(ha2_carry));
	
	assign s=ha2_sum;
	assign co=ha1_carry|ha2_carry;
	
endmodule
module fa_ha(a,b,cin,s,co);


	input a,b,cin;
	output s,co;
	
	wire ha1_sum,ha2_sum,ha1_carry,ha2_carry,Sum,Carry;
	

	
	half_adder ha1(.A(a),.B(b),.Sum(ha1_sum),.Carry(ha1_carry));
	half_adder ha2(.A(ha1_sum),.B(cin),.Sum(s),.Carry(ha2_carry));
	
	assign s=ha2_sum;
	assign co=ha1_carry|ha2_carry;
	
endmodule