data/full_repos/permissive/450205124/Assignment4/Q2-Eight-Bit-Adder-Subtractor/A4Q2_one_bit_full_adder.v
data/verilator_xmls/3ced51a2-2da1-4c64-99a3-a2a50660219b.xml
module one_bit_full_adder (
    sum, 
    cout, 
    a, 
    b,
    opcode, 
    cin
    );
	input a, b, opcode, cin;
	output sum, cout;
	assign sum = a ^ (opcode ^ b) ^ cin;
	assign cout = (a & (opcode ^ b)) | (a & cin) | ((opcode ^ b) & cin);	
endmodule
module one_bit_full_adder (
    sum, 
    cout, 
    a, 
    b,
    opcode, 
    cin
    );

	input a, b, opcode, cin;
	output sum, cout;
	assign sum = a ^ (opcode ^ b) ^ cin;
	assign cout = (a & (opcode ^ b)) | (a & cin) | ((opcode ^ b) & cin);	
endmodule