The Half Adder - Full Adder
The Half Adder - Full Adder
The half-adder accepts two binary digits on its inputs and produces two
binary digits on its outputs—a sum bit and a carry bit.
Half-Adder Logic
From the truth table of half adder, expressions can be derived for the sum and
the output carry as functions of the inputs
The output carry (Cout) is a 1 only when both A and B are 1s; therefore, Cout
can be expressed as the AND of the input variables
Cout = AB
The sum output ( ) is a 1 only if the input variables, A and B, are not equal.
The sum can therefore be expressed as the exclusive-OR of the input
variables
The output carry is produced with an AND gate with A and B on the inputs,
and the sum output is generated with an exclusive-OR gate, as shown in
Figure. The exclusive-OR can be implemented with AND gates, an OR gate,
and inverters.
The Full-Adder
The full-adder accepts two input bits and an input carry and
generates a sum output and an output carry.
This above logic expression shows that to implement the full-adder sum function,
two 2-input exclusive-OR gates can be used. The first must XOR generate the term
, and the second has as its inputs the output of the first XOR gate and the
input carry, as illustrated in Figure given below.
Fig: Block diagram of a basic 2-bit parallel adder using two full-adders
In above Figure the least significant bits (LSB) of the two numbers are
represented by A1 and B1. The next higher-order bits are represented by
A2 and B2. The three sum bits are . The output carry
from the left-most full-adder becomes the most significant bit (MSB) in
the sum, .
Logic Symbol
Example: Use the 4-bit parallel adder truth table (Table 6–3) to find the
sum and output carry for the addition of the following two 4-bit numbers
if the input carry (Cn-1) is 0: