Implement a full-adder using Karnaugh maps.
Figure 10.17 shows an arrangement for adding two 4bit binary numbers A3A2A1A0 and B3B2B1B0 to give a 5-bit result X4X3X2X1X0, where A3,B3, and X4 represent the most significant bits, and A0,B0, and X0 represent the least significant bits. It is common practice to number the bits of binary numbers from the right and to start from 0. Thus an n-bit number has digits from 0 to n−1.
It can be seen that each full-adder has three inputs ( A,B, and the carry input Ci ) and two outputs (the sum S, and the carry output Co ). The function of the full-adder is described by the truth table of Fig. 10.18.
Boolean expressions can be obtained directly from this truth table and simplified using algebraic manipulation. Alternatively, the data can be represented using Karnaugh maps, as shown in Fig. 10.19.
From either method of simplification we find that
Co=AB+ACi+BCi10.3 and S=AˉBˉCi+AˉBCˉi+ABCi+ABˉCˉi10.4
These functions can be implemented directly, as shown in Fig. 10.20.