Вы находитесь на странице: 1из 20

BOOLEAN EXPRESSION SIMPLIFICATION

NEED FOR SIMPLIFICATION SIMPLIFICATION METHODS 1.USING BOOLEAN THEOREMS 2. KARNAUGH MAP METHOD 3.QUINE Mc CLUSKY METHOD

NEED FOR SIMPLIFICATION


F = xyz +xyz +xy ------- Eqn 1 = xz (y + y) + xy = xz +xy ------- Eqn 2
Compare Eqn 1 and Eqn 2 Eqn 1 requires two 3 input AND gates, one 2 input AND gate and an OR gate with 3 inputs Eqn 2 requires two 2 input AND gates and an OR gate with 2 inputs Simplified expression requires lesser number of gates and lesser number of inputs. It is preferable since it requires less wires and less components

SIMPLIFICATION USING BOOLEAN THEOREMS


DISADVANTAGES 1.Time consuming process 2.Need better understanding of laws and theorems 3.Lack of specific rules to predict each succeeding step in reduction process.

KARNAUGH MAP METHOD


Karnaugh Map, invented by Maurice Karnaugh of Bell Labs in 1953, also known as K-map, is a diagrammatic method for logic minimization Pictorial form of truth table showing the relationship between inputs & outputs More efficient than Boolean algebra K-map is a diagram made up of squares. Each square represents a minterm or maxterm of the logic function K-map identifies the group of minterms which contains redundant variables of the form x + x = 1 and then it can be eliminated.
4

TWO - VARIABLE K-MAP


For a 2-variable function, there are 4 minterms. Therefore, the K-map for a 2- variable function has 4 squares:

In each square, the minterm is either 0 or 1 depending on the value of the function at that square
5

Construction of 2-variable K-map


To construct a K-map for a 2-variable function, a logic 1 is entered into the square where the corresponding minterm exists. A logic 0 is entered otherwise (or the square is left blank)

(ex) f = AB + AB
f is true when AB = 01 or 10 f = (1, 2)

Construction of K-map from Truth Table


A K-map can be created directly from a truth table Each square of the K-map corresponds to one row of the truth table A logic 1 is entered when the function is 1 A logic 0 is entered when the function is 0 For example

3-variable K-map
A 3-variable logic function has 8 minterms and its truth table has 8 rows Hence, a 3-variable K-map has 8 squares

Logic Minimization with K-Map


Consider a logic function with m2 and m6 i.e. f = (2, 6) m2 is abc and m6 is abc f = m2 + m6 = abc + abc = bc(a + a) = bc The 2 minterms have a common factor bc In the K-map, if we group these 2 adjacent minterms, we can reduce 1 variable

TRUTH TABLE TO MAP

10

Example of looping pairs of adjacent 1s PAIRS

11

Example of looping pairs of adjacent 1s QUADS

12

Example of looping pairs of adjacent 1s OCTETS

13

PROCEDURE
Construct the K map, place 1s as indicated in the truth table. Check for octets (group of eight 1s) If octets not available check for quads (four adjacent 1s) Loop 1s that are adjacent to only one other 1 and encircle such pairs. Loop 1s that are not adjacent to any other 1s. 1s which are already present in a group can be included in new group to group the other 1s. Form the sum of all product terms generated by each loop.
14

Examples

15

K-map for Product of Sums


Covering logic-1 squares in K-map gives logic functions in sum of products form Covering logic-0 squares, will give logic functions in product of sums form, e.g. F = BC + AC F = (BC + AC) = (BC) (AC) = (B+C) (A+C)

16

K-map for Product of Sums Example

17

DONT-CARE Conditions
In logic function, sometimes we do not have the specification for all the combinations We might define a logic function to be 1 for some combinations and 0 for some others but the rest is not define We do not care about the logic value of the function for these undefined combinations called as DONT-CARE conditions DONT-CARE conditions are usually denoted by x, or X or d
18

Truth Table with DONT-CARE Conditions

f has unknown (or dont care) values for combinations abc = 100 or 110 Usually expressed as: f(a,b,c) = (1, 2, 5) + d(4, 6)
19

K-map with DONT-CARE Conditions


When constructing a K-map for a logic function with dont-care conditions, we enter x into the squares where the function is undefined When a K-map contains dont-care conditions, we can treat the dont-cares as either 1 or 0 We make use of x=1for grouping them with adjacent 1s to make the groups larger We dont group x when it is treated as 0

20

Вам также может понравиться