Building a Circuit From a Truth Table
Design a logic circuit to implement a two bit adder. This circuit
has three inputs (A, B, Cin), and two outputs (S, Cout). The
output S is one if the sum is one, i.e., the number of inputs
equal one is odd. The carry out output is one if the sum produces
a carry, i.e., two or more of the inputs are one.