From Truth table, we can directly write the Boolean functions for each output as
We can implement the above functions with 2-input Ex-OR gate & 2-input AND gate. The circuit diagram of Half adder is shown in the following figure.
In the above circuit, a two input Ex-OR gate & two input AND gate produces sum, S & carry, C respectively. Therefore, Half-adder performs the addition of two bits.
We will get the following Boolean functions for each output after simplification.
The sum, S is equal to one, when odd number of ones present at the inputs. We know that Ex-OR gate produces an output, which is an odd function. So, we can use either two 2input Ex-OR gates or one 3-input Ex-OR gate in order to produce sum, S. We can implement carry, Cout using two 2-input AND gates & one OR gate. The circuit diagram of Full adder is shown in the following figure.
4-bit Binary Adder
The 4-bit binary adder performs the addition of two 4-bit numbers. Let the 4-bit binary numbers, A = A3A2A1A0 and B = B3B2B1B0. We can implement 4-bit binary adder in one of the two following ways.
For the time being, we considered second approach. The block diagram of 4-bit binary adder is shown in the following figure.
We know that the subtraction of two binary numbers A & B can be written as,
4-bit Binary Subtractor
4-bit Binary Adder / Subtractor
32 docs|15 tests
|
|
Explore Courses for Computer Science Engineering (CSE) exam
|