DeMorgan’s Theorem DeMorgan’s 2nd Theorem

Slides:



Advertisements
Similar presentations
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Advertisements

Boolean Algebra and Reduction Techniques
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Digital Fundamentals Floyd Chapter 4 Tenth Edition
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Digital Fundamentals with PLD Programming Floyd Chapter 4
Digital Logic Design ESGD2201
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Boolean Algebra and Logic Simplification
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
Department of Computer Engineering
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. K-Map (1)  Karnaugh Mapping is used to minimize the number of logic gates that are required in a digital circuit.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Figure 4–1 Application of commutative law of addition. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
CH41 Chapter 4 Boolean Algebra and Logic Simplification By Taweesak Reungpeerakul.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
Boolean Algebra and Reduction Techniques
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 4 © 2008 Pearson Education.
Chapter 2 Boolean Algebra and Minimization Techniques.
Sum-of-Products (SOP)
DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan mohd nor
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
Digital Logic Design Dr. Oliver Faust Chapter 4
THE K-MAP.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
Logic Simplification-Using K-Maps
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Introduction to Digital Electronics Lecture 5: Function Minimisation.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
In some Boolean functions there are some input terms that will never occur, for example in BCD code there are sex invalid combinations 1010,1011,1100,
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
DeMorgan’s Theorem DeMorgan’s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Introduction to Digital Electronics Lecture.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC:K-Map. K-Map (1)  Karnaugh Map provides a systematic method for simplifying Boolean expressions and may produce.
Boolean Operations and Expressions Addition = = = = 1 Multiplication 0 * 0 = 0 0 * 1 = 0 1 * 0 = 0 1 * 1 = 1.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Combinational Circuits Part 1
De Morgan’s Theorem,.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Boolean Algebra & De Morgan's Theorems
CHAPTER 1 : INTRODUCTION
Boolean Algebra.
Digital Logic and Design
Digital Fundamentals Floyd Chapter 5 Tenth Edition
BASIC & COMBINATIONAL LOGIC CIRCUIT
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
Optimization Algorithm
Boolean Algebra.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 4 Tenth Edition
Overview Part 2 – Circuit Optimization
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Karnaugh Maps (K maps).
Chapter 5 Combinational Logic Analysis
Analysis of Logic Circuits Example 1
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Laws & Rules of Boolean Algebra
Presentation transcript:

DeMorgan’s Theorem DeMorgan’s 2nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A . B Applying DeMorgan’s second theorem to gates:

Example Solution = DeMorgan’s Theorem Apply DeMorgan’s theorem to remove the overbar covering both terms from the expression X = C + D. Solution To apply DeMorgan’s theorem to the expression, you can break the overbar covering both terms and change the sign between the terms. This results in X = C . D. Deleting the double bar gives X = C . D. =

Example Solution DeMorgan’s Theorem Find the complement of the following function Solution

Example Solution Boolean Analysis of Logic Circuits Combinational logic circuits can be analyzed by writing the expression for each gate and combining the expressions according to the rules for Boolean algebra. Example Apply Boolean algebra to derive the expression for X. Solution Write the expression for each gate: (A + B ) C (A + B ) = C (A + B )+ D X Applying DeMorgan’s theorem and the distribution law: X = C (A B) + D = A B C + D

SOP and POS forms Boolean expressions can be written in the sum-of-products form (SOP) or in the product-of-sums form (POS). These forms can simplify the implementation of combinational logic, particularly with PLDs. In both forms, an overbar cannot extend over more than one variable. An expression is in SOP form when two or more product terms are summed as in the following examples: A B C + A B A B C + C D C D + E An expression is in POS form when two or more sum terms are multiplied as in the following examples: (A + B)(A + C) (A + B + C)(B + D) (A + B)C

Example Solution SOP Standard form In SOP standard form, every variable in the domain must appear in each term. This form is useful for constructing truth tables or for implementing logic in PLDs. You can expand a nonstandard term to standard form by multiplying the term by a term consisting of the sum of the missing variable and its complement. Example Convert X = A B + A B C to standard form. Solution The first term does not include the variable C. Therefore, multiply it by the (C + C), which = 1: X = A B (C + C) + A B C = A B C + A B C + A B C

Example Solution POS Standard form In POS standard form, every variable in the domain must appear in each sum term of the expression. You can expand a nonstandard POS expression to standard form by adding the product of the missing variable and its complement and applying rule 12, which states that (A + B)(A + C) = A + BC. Example Convert X = (A + B)(A + B + C) to standard form. Solution The first sum term does not include the variable C. Therefore, add C C and expand the result by rule 12. X = (A + B + C C)(A + B + C) = (A +B + C )(A + B + C)(A + B + C)

Karnaugh maps The Karnaugh map (K-map) is a tool for simplifying combinational logic with 3 or 4 variables. For 3 variables, 8 cells are required (23). The map shown is for three variables labeled A, B, and C. Each cell represents one possible product term. Each cell differs from an adjacent cell by only one variable.

Karnaugh maps Cells are usually labeled using 0’s and 1’s to represent the variable and its complement. The numbers are entered in gray code, to force adjacent cells to be different by only one variable. Gray code Ones are read as the true variable and zeros are read as the complemented variable.

Example Solution Karnaugh maps Alternatively, cells can be labeled with the variable letters. This makes it simple to read, but it takes more time preparing the map. C C Example Read the terms for the yellow cells. AB Solution The cells are ABC and ABC.

Example Solution Karnaugh maps K-maps can simplify combinational logic by grouping cells and eliminating variables that change. Example Group the 1’s on the map and read the minimum logic. Solution C changes across this boundary 1. Group the 1’s into two overlapping groups as indicated. Read each group by eliminating any variable that changes across a boundary. B changes across this boundary The vertical group is read AC. The horizontal group is read AB. X = AC +AB

Karnaugh maps A 4-variable map has an adjacent cell on each of its four boundaries as shown. Each cell is different only by one variable from an adjacent cell. Grouping follows the rules given in the text. The following slide shows an example of reading a four variable map using binary numbers for the variables…

Example Solution Karnaugh maps X X = AD +AD Group the 1’s on the map and read the minimum logic. B changes C changes across outer boundary Solution 1. Group the 1’s into two separate groups as indicated. Read each group by eliminating any variable that changes across a boundary. B changes C changes The upper (yellow) group is read as AD. The lower (green) group is read as AD. X X = AD +AD

Five-Variable Karnaugh maps Boolean functions with five variables can be simplified using 32-cell Karnaugh map. Two 4-variable maps are used to construct a 5-varibal map. All we need is the cell adjacencies between the two 4-variable map and how to group those adjacent 1’s. Each map contains 16 cells for all combinations of variables ( e.g. B, C, D, E). One map for the remaining variable (e.g. A=0) and the other one for A=1.

Five-Variable Karnaugh maps Example: Minimize the following SOP 5-variable expression: Solution : combining the terms yields to: 00 01 11 10 1   A=0 00 01 11 10 1   A=1

In some Boolean functions there are some input terms that will never occur, for example in BCD code there are sex invalid combinations 1010,1011,1100, 1110, 1111. Since these combinations will never occur, they can be treated ads don’t-care condition and can be used to simplify the Boolean function. For example the following table describes a logic function that has an output 1 only when its input is 7,8,9. The Don’t-care condition

Inputs Output A B C D F 1 X The don’t-care conditions ( denoted by X in the table are combined with the 1’s to simplify the given function AB 00 01 11 10 CD 00 01 11 10 1 X

Questions 1. The associative law for addition is normally written as a. A + B = B + A b. (A + B) + C = A + (B + C) c. AB = BA d. A + AB = A Ans. b © 2008 Pearson Education

2. The Boolean equation AB + AC = A(B+ C) illustrates a. the distribution law b. the commutative law c. the associative law d. DeMorgan’s theorem Ans. c © 2008 Pearson Education

3. The Boolean expression A . 1 is equal to a. A b. B c. 0 d. 1 Ans. a © 2008 Pearson Education

4. The Boolean expression A + 1 is equal to a. A b. B c. 0 d. 1 Ans. d © 2008 Pearson Education

5. The Boolean equation AB + AC = A(B+ C) illustrates a. the distribution law b. the commutative law c. the associative law d. DeMorgan’s theorem Ans. a © 2008 Pearson Education

6. A Boolean expression that is in standard SOP form is a. the minimum logic expression b. contains only one product term c. has every variable in the domain in every term d. none of the above Ans. c © 2008 Pearson Education

7. Adjacent cells on a Karnaugh map differ from each other by a. one variable b. two variables c. three variables d. answer depends on the size of the map Ans. a © 2008 Pearson Education

8. The minimum expression that can be read from the Karnaugh map shown is a. X = A b. X = A c. X = B d. X = B Ans. a © 2008 Pearson Education

9. The minimum expression that can be read from the Karnaugh map shown is a. X = A b. X = A c. X = B d. X = B Ans. d © 2008 Pearson Education