data/full_repos/permissive/15946916/Lab6/lab6_3.v
data/verilator_xmls/e0d71cbf-faf2-4433-891d-c0da92257dd4.xml
module full_adder(S, Cout,A,B,Cin);

    input    A, B, Cin;
    output   S, Cout;
    wire     xor11, xor12,xor13, xor14;
	wire     xor21, xor22,xor23;
	
    nand	nand1(xor11, A, B);
	nand	nand2(xor12, xor11, B);
	nand	nand3(xor13, xor11, A);
	nand	nand4(xor14, xor12, xor13);
	
	nand	nand5(xor21, xor14, Cin);
	nand	nand6(xor22, xor21, Cin);
	nand	nand7(xor23, xor14, xor21);
	nand	nand8(S, xor22, xor23);
	
	nand	nand9(Cout, xor21, xor11);
	
   
endmodule
module full_adder(S, Cout,A,B,Cin);


    input    A, B, Cin;
    output   S, Cout;
    wire     xor11, xor12,xor13, xor14;
	wire     xor21, xor22,xor23;
	
    nand	nand1(xor11, A, B);
	nand	nand2(xor12, xor11, B);
	nand	nand3(xor13, xor11, A);
	nand	nand4(xor14, xor12, xor13);
	
	nand	nand5(xor21, xor14, Cin);
	nand	nand6(xor22, xor21, Cin);
	nand	nand7(xor23, xor14, xor21);
	nand	nand8(S, xor22, xor23);
	
	nand	nand9(Cout, xor21, xor11);
	
   
endmodule