Unformatted text preview:

University of Illinois at Urbana Champaign Dept of Electrical and Computer Engineering ECE 120 Introduction to Computing Boolean Expression Terminology Let s Review and Define Some New Terms literal a variable or its complement examples A A B B C C sum several terms ORed together examples A B AB B C D A C A B D A B C A product several terms ANDed together examples AB A B B CD A C A B D A B CA ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 1 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 2 Minterms Were Useful for Proving Logical Completeness A Maxterm Produces a Function with One Zero Row minterm on N inputs a product in which each variable or its complement appears exactly once no other factors examples AB A B AB on inputs A B AB C AB C A BC on inputs A B C maxterm on N inputs a sum in which each variable or its complement appears exactly once no other terms examples A B A B A B on inputs A B A B C A B C A B C on inputs A B C ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 3 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 4 1 27 2018 1 Sum of Products SOP Form is Quite Common Product of Sums POS Form is Also Common sum of products SOP a sum OR of products AND of literals examples AB BC AB C A C D but NOT A B C D product of sums POS a product AND of sums OR of literals examples A B B C A B C A C D but NOT A BC D ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 5 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 6 Canonical Forms Allow Easy Comparison But Are Too Big Do You Know Mathematical Implication canonical SOP a sum of minterms the expression produced by the logical completeness construction canonical POS a sum of maxterms What does canonical mean Unique if we assume an ordering on variables Too many terms to be of practical value What does A B mean A implies B In other words if A is true B is also true What if A is false In that case is A B true or false If A is false A B is true ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 7 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 8 1 27 2018 2 So the Following Odd Statements are True One Function Can Imply Another All purple elephants can fly X is a purple elephant X can fly Students who score above 125 in ECE120 fail the class X scored above 125 X fails In both the premise is false for any X so the implications are true A function G is an implicant of a second function F iff G operates on the same variables as F and G F In other words every row with an output of 1 in G s truth table also has an output of 1 in F s truth table 0 rows in G s truth table do not matter ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 9 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 10 For Our Purposes Implicants are Products of Literals We Can Use Implicants to Simplify Functions In digital design we only refer to products of literals as implicants So we will assume that an implicant can be written as a product of literals As a first step towards simplifying a function F we can ask Given an implicant G of F can we remove any of its literals and obtain another implicant of F For example take F AB C ABC ABC The first term AB C is an implicant Can we remove any literals ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 11 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 12 1 27 2018 3 Try to Remove Each Literal to Find Only AC Implies F We Remove as Many Literals as We Can Start from AB C and try to remove each literal B C is not an implicant AC is an implicant AB is not an implicant A B C F B C AC AB 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0 So we can simplify F by replacing AB C with AC F AC ABC ABC Checking the second term ABC we find that we can eliminate C to obtain F AC AB ABC In the third term ABC we can eliminate B or C but not both Let s pick B F AC AB AC ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 13 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 14 Prime Implicants Have a Minimal Number of Literals To Simplify Write Function as a Sum of Prime Implicants F AC AB AC But now we have a duplicate term which we can eliminate to arrive at a simple form for F F AC AB We can remove no more literals One more definition An implicant G of F is a prime implicant of F iff none of the literals in G can be removed to produce other implicants of F AB and AC are prime implicants of F The conclusion is obvious To simplify a function F write it as a sum of prime implicants Enjoy the algebra Good luck Next time we ll develop a graphical tool that lets us skip the algebra ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 15 ECE 120 Introduction to Computing 2016 Steven S Lumetta All rights reserved slide 16 1 27 2018 4


View Full Document

UIUC ECE 120 - Boolean Expression Terminology

Download Boolean Expression Terminology
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Boolean Expression Terminology and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Boolean Expression Terminology and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?