Unit - 1 Part 2
Unit - 1 Part 2
The Karnaugh map method is a graphical technique for simplifying Boolean functions.
It is a two-dimensional of a Truth Table. It provides a simpler method for minimizing logic expressions.
The map method is ideally suited for four or less variables.
A Karnaugh map for n variables is made up of 2n squares.
Each square designates a product term of a Boolean expression.
For product terms which are present in the expression, 1s are written in the corresponding squares; 0s
are written in those squares which correspond to product terms not present in the expression.
A A A 0 1
B
B A B AB 0 A B AB
B A B AB 1 A B AB
0 1
1
0
1 1
Example : simplify Y= A B +A B
0 1
0 1 1 B
Two adjacent squares containing 1 have been grouped together. To show the
grouping, they have been encircled. For simplification we have to see that which variable isBcommon to both squares. In
st
this case Bis common to both as the 1 row is for .
So their simplification will result Y = B
This can be verified also algebraically as follows:
Y= A B +A B
= B (A + A)
=
B
So the variable which is common to adjacent squares is selected, and the variable which is not common is discarded.
Example : simplify Y= A B + AB +B
A
0 1
Digital Logic Page 1
0 1 1 A
1 B
1 1
Simplification result Y= A B + AB +B
A =B+A
The result obtained by map method can also be verified algebraically as follows:
Y= A B + AB +B
A
= A B + AB + AB +A B
= B (A + A) + A ( B + B )
= B+A
A B A B A B A B
C
A B C A B C A B C AB C
C
A B C A B C ABC A BC
0 A B C A B C A B C AB C
1
A B C A B C ABC A BC
AB
C 00 01 11 10
0 1 AB
1
1
AB
C 00 01 11 10
0 1 1 AC
1 A B
1
Arithmetic Circuits
Arithmetic operations, such as addition, subtraction, multiplication, division etc., are performed by a digital computer,
calculator or other digital system. Logic circuits for some important arithmetic operations are half-adder and full adder.
Digital Logic Page 3
HALF ADDER:
A logic circuit which performs addition of two binary bits is called a half-adder.
Truth table for the addition of two binary bits.
Inputs Outputs
A B Sum S Carry C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
It is concluded that the sum is equal to A XOR B. It means that the outputs of an EXCLUSIVE-OR gate will give the sum.
The carry is equal to A AND B. The output of an AND gate will give the carry.
S= A B + A B
A Sum
=A B
Sum
S S
S HALF
C=AB B A
ADDER
Carry
B
C
Carry
C
Full Adder
A logic circuit which performs addition of three binary bits is called a Full-adder.
A full adder can be built using two half adders and an OR gate.
Inputs Outputs
A B C Sum S Carry C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
A Carry
HALF
ADDER Carry
B Sum A
Y
HALF Carry
ADDER
Sum
--Full Adder—
Dynamic properties:
* Condition Expression-
(op=12) -> R[ra] <- R[rb] + R[rc]
It says when the OP field of IR =12, will store in the register specified by the ra field, which has addition of rb and rc.
Physical consideration:
FAN-IN
*Fan-in is the number of input a gate can handle.
*Physical logic gates with a large fan-in tend to be slower than those with a smaller fan-in.
*This is because the complexity of the input circuitry increases the input capacitance of the device.
*Using logic gate with higher fan-in will help reducing the depth of the logic circuit.
*For instance the Fan-in for the AND gate:
Fan-out:
Fan out of the logic gate output is the number of gate inputs it can feed or connect to.