Half adder circuit

Fixed-width addition: adding one bit at time, using the usual column-by-column and carry arithmetic, and dropping the carry from the leftmost column so the result is the same width as the summands. In many cases, this gives representation of the correct value for the sum when we interpret the summands in fixed-width binary or in 2s complement.

For single column:

2

Input Output
\(x_0\) \(y_0\) \(c_0\) \(s_0\)
\(1\) \(1\)
\(1\) \(0\)
\(0\) \(1\)
\(0\) \(0\)

image

Two bit adder circuit

Draw a logic circuit that implements binary addition of two numbers that are each represented in fixed-width binary:

First approach: half-adder for each column, then combine carry from right column with sum of left column

Write expressions for the circuit output values in terms of input values:

\(z_0 = \underline{\phantom{x_0 \oplus y_0\hspace{3in}}}\)

\(z_1 = \underline{\phantom{(x_1 \oplus y_1) \oplus c_0}\hspace{2.5in}}\)

\(z_2 = \underline{\phantom{(c_0 \land (x_1 \oplus y_1)) \oplus c_1}\hspace{2in}}\)
image

There are other approaches, for example: for middle column, first add carry from right column to \(x_1\), then add result to \(y_1\)