Subtraction of two binary numbers can be accomplished by adding 2’s complement of the subtrahend to the minuend and disregarding the final carry if any. If the MSB bit in the result of addition is a ‘0’. then the result of addition is the correct answer. If the MSB bit is a ‘1’. , this implies that the answer has a negative sign. The true magnitude, in this case, is given by 2’s complement of the result of the addition.
Block Diagram of Combinational Logic Circuit:
OUTPUT=f(INPUT)
Inputs are called Excitation from circuits and outputs are called Responses of combinational logic circuits.
1. Arithmetic:
2. Data Handling:
3. Code Converters:
1. Half Adder:
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).
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 is of Sum of products form. The equation obtained is
which can be logically written as,
The equation obtained from K-map is,
Using the Boolean Expression, we can draw logic diagram as follows..
Limitations: Adding of Carry is not possible in Half adder.
2. Full Adder:
Truth table of Full Adder:
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:
3. Half Subtractor:
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:
4. Full Subtractor:
Truth Table of Full Subtractor:
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‘ :
The equation obtained is,
Bout = BBin + A'B + A'Bin
Logic Diagram of Full Subtractor:
Applications:
137 videos|143 docs|71 tests
|
|
Explore Courses for Electrical Engineering (EE) exam
|