![]() |
VOOZH | about |
Adders and subtractors are digital circuits used to perform arithmetic operations on binary numbers. An adder adds two binary values to produce a sum and often including a carry bit for values that exceed a single digit. A subtractor calculates the difference between two binary numbers, sometimes using methods like two’s complement to handle negative results. These circuits form the core of arithmetic logic units (ALUs) in processors and enable efficient calculation and data processing.
Let us observe the addition of single bits,
0+0=0
0+1=1
1+0=1
1+1=10
Since 1+1=10, the result must be two bit output. So, Above can be rewritten as,
0+0=00
0+1=01
1+0=01
1+1=10
The result of 1+1 is 10, where '1' is carry-output (Cout) and '0' is Sum-output (Normal Output).
Truth Table of Half Adder:
Next Step is to draw the Logic Diagram. To draw Logic Diagram, We need Boolean Expression, which can be obtained using K-map (karnaugh map). Since there are two output variables 'S' and 'C', we need to define K-map for each output variable.
K-map for output variable Sum 'S':
K-map is of Sum of products form. The equation obtained is
S = AB' + A'B
which can be logically written as,
S = A ⊕ B
K-map for output variable Carry 'C':
The equation obtained from K-map is,
C = AB
Using the Boolean Expression, we can draw logic diagram as follows..
Limitations: Adding of Carry is not possible in Half adder.
Read more about Half Adder.
Truth table of Full Adder:
K-map Simplification for output variable Sum 'S' :
The equation obtained is,
S = A'B'Cin + AB'Cin' + ABC + A'BCin'
The equation can be simplified as,
S = B'(A'Cin+ACin') + B(AC + A'Cin')
S = B'(A xor Cin) + B (A xor Cin)'
S = A xor B xor Cin
K-map Simplification for output variable 'Cout'
The equation obtained is,
Cout = BCin + AB + ACin
Logic Diagram of Full Adder:👁 Image
Read more about Full Adder.
Truth Table of Half Subtractor:
K-map Simplification for output variable 'D':
The equation obtained is,
D = A'B + AB'
which can be logically written as,
D = A xor B
K-map Simplification for output variable 'Bout' :
The equation obtained from above K-map is,
Bout = A'B
Logic Diagram of Half Subtractor:
Read more about Half Subtractor.
Truth Table of Full Subtractor:
K-map Simplification for output variable 'D' :👁 Image
The equation obtained from above K-map is,
D = A'B'Bin + AB'Bin' + ABBin + A'BBin'
which can be simplified as,
D = B'(A'Bin + ABin') + B(ABin + A'Bin')
D = B'(A xor Bin) + B(A xor Bin)'
D = A xor B xor Bin
K-map Simplification for output variable 'Bout' :👁 Image
The equation obtained is,
Bout = BBin + A'B + A'Bin
Logic Diagram of Full Subtractor:👁 Image
Applications:
Read more about Full Subtractor.