Representing Boolean functions

Slides:



Advertisements
Similar presentations
Morgan Kaufmann Publishers
Advertisements

Gate-Level Minimization
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Boolean Algebra and Logic Gates
Logic Functions and their Representation. Slide 2 Combinational Networks x1x1 x2x2 xnxn f.
Lecture 3. Boolean Algebra, Logic Gates
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Chapter 2: Boolean Algebra and Logic Functions
11.1 Boolean Functions. Boolean Algebra An algebra is a set with one or more operations defined on it. A boolean algebra has three main operations, and,
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
Chapter 10.1 and 10.2: Boolean Algebra Based on Slides from Discrete Mathematical Structures: Theory and Applications.
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
Combinational Logic 1.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Chapter 3 Gate-Level Minimization
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
LOGIC GATES & BOOLEAN ALGEBRA
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Boolean Algebra.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
CHAPTER 3 Simplification of Boolean Functions
Chapter 11 (Part 1): Boolean Algebra
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
Unit 2 Boolean Algebra.
CS 105 Digital Logic Design
Complement of a Function
… and now for the Final Topic:
September 7 Notes Boolean Algebra.
ECE 331 – Digital System Design
EEL 3705 / 3705L Digital Logic Design
Boolean Algebra.
Lecture 3 Boolean algebra
EEL 3705 / 3705L Digital Logic Design
Elementary Metamathematics
Discrete Mathematics CS 2610
Boolean Algebra.
CMSC Discrete Structures
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Chapter 10.1 and 10.2: Boolean Algebra
Chapter 10.1 and 10.2: Boolean Algebra
Digital Systems Design
Chapter 10.1 and 10.2: Boolean Algebra
Applied Discrete Mathematics Week 4: Functions
Representing Boolean Functions
MINTERMS and MAXTERMS Week 3
Disjunctive Normal Form
Digital Logic Chapter-2
Representing Boolean Functions
Digital Logic Chapter-2
Analysis of Logic Circuits Example 1
Representing Boolean Functions
Chapter 10.1 and 10.2: Boolean Algebra
CMSC Discrete Structures
Boolean Algebra.
Presentation transcript:

Representing Boolean functions Section 10.2 Representing Boolean functions

Boolean function representation: 2 important concepts Any Boolean function may be represented by a Boolean sum of Boolean products of the variables and their complements All Boolean functions can be represented using only 1 operator This section concerns itself with illustrating these concepts

Example 1 Construct Boolean expressions representing functions with the given values: x y z F G 1 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 F has value 1 only when x=1, y=1, and z=0; one such expression is the Boolean product xyz G has value 1 when either x and z are 1, y is 0 or when x and z are 0, y is 1 The first condition is met by xyz The second is met by xyz So G can be represented by the Boolean sum of the 2 products: x y z + x y z

Literals & minterms Literal: Boolean variable or its complement For Boolean variables x1, x2, … xn the minterm is a Boolean product y1y2…yn where yi = xi or yi = xi A minterm is a product of literals, with one literal for each variable

Minterms A minterm has value 1 for exactly one combination of values of its variables: Minterm y1y2…yn is 1 if and only if each yi=1 and this occurs if and only if xi = 1 when yi = xi and xi = 0 when yi = xi Example: find a minterm that equals 1 when x1 and x3 are 0 and x2, x4 and x5 are 1, and 0 otherwise Solution: x1x2x3x4x5

Sum of products expansion By taking Boolean sums of distinct minterms, we can build a Boolean expression with a specified set of values Boolean sum of minterms has value 1 when exactly one of the minterms in the sum has value 1, and 0 for all other combinations of values of the variables Given a Boolean function, a Boolean sum of minterms can be found with value 1 when the function is 1 and 0 when the function is 0; this is called the sum-of-products expansion or disjunctive normal form of the Boolean function

Example 2 Find the sum-of-products expansion for F(x,y,z) = (x+y)z is the Boolean sum of 3 minterms corresponding to the rows that show 1 for the values of F: xyz + xyz + xyz x y z x+y z (x+y)z 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 0 1 1 1 0 0 0 1 0 1 1 1 0 0 1 0 0 0 0 0 0 0 1 0

Conjunctive normal form Can find a Boolean expression that represents a Boolean function by taking a Boolean product of Boolean sums - this is the conjunctive normal form or product-of-sums expansion We can find the product-of-sums from sum-of-products by taking duals; for function on previous slide, product-of-sums is: (x + y + z)(x + y + z)(x + y + z)

Functional completeness Every Boolean function can be expressed as a Boolean sum of minterms Each minterm is the Boolean product of Boolean variables or their complements So every Boolean function can be represented using Boolean operators ., +, and _ We say that the set {., +, _} is functionally complete

Functional Completeness If one of the operators from the set {., +, _} can be expressed in terms of the other two, we can find a smaller set of functionally complete operators We can do this using DeMorgan’s law: x + y = x y (We obtain this by taking complements of both sides of DeMorgan’s second law, then applying double complementation)

Functional completeness Using DeMorgan’s law, as stated on the previous slide, we can eliminate sums; this means the set { ., _ } is functionally complete Using DeMorgan’s first law we can similarly show that the set { +, _ } is functionally complete

Functionally complete sets containing one operator 12/8/2018 Functionally complete sets containing one operator NAND: {|} (not and) 1|1 = 0, 1|0 = 1, 0|1 = 1, 0|0 = 1 NOR: {} (not or) 11 = 0, 10 = 0, 01 = 0, 00 = 1 NAND is functionally complete, since: { ., _ } is functionally complete and x = x|x and xy = (x|y)|(x|y) We can similarly show that NOR is functionally complete ch10.2