Complement of a Function

Slides:



Advertisements
Similar presentations
Logical Systems Synthesis.
Advertisements

Morgan Kaufmann Publishers
Digital Logic (Review)
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
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.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
28/06/041 CSE-221 Digital Logic Design (DLD) Lecture-5: Canonical and Standard forms and Integrated Circuites.
Chapter 2: Boolean Algebra and Logic Functions
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
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.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Combinational Logic 1.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
1 Minterm and Maxterm Expressions Definition: a minterm of n variables is a product of the variables in which each appears exactly once in true or complemented.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
05 BA2 Page 1 ECEn/CS 224 Boolean Algebra – Part 2.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
Module –I Switching Function
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
ECE2030 Introduction to Computer Engineering Lecture 6: Canonical (Standard) Forms Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
BR 2/1/991 Truth Tables (again) Recall that a boolean equation can be represented by a Truth Table A B C F
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 3 Combinational.
ECE 301 – Digital Electronics Minimizing Boolean Expressions using K-maps, The Minimal Cover, and Incompletely Specified Boolean Functions (Lecture #6)
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
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.
CHAPTER 2 Boolean algebra and Logic gates
Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
De Morgan’s Theorem,.
Prof. Hsien-Hsin Sean Lee
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Princess Sumaya University
Boolean Expressions Lecture No. 10.
Circuit analysis summary
September 7 Notes Boolean Algebra.
Karnaugh Maps.
ECE 331 – Digital System Design
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
ECE 331 – Digital System Design
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
MINTERMS and MAXTERMS Week 3
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
SYEN 3330 Digital Systems Chapter 2 Part 3 SYEN 3330 Digital Systems.
Boolean Algebra Boolean Algebra
Lecture 4 Minterm and Maxterm
From now on: Combinatorial Circuits:
Analysis of Logic Circuits Example 1
ECE 331 – Digital System Design
Presentation transcript:

Complement of a Function 2018/7/2 Complement of a Function The complement of a function is derived by interchanging (• and +), and (1 and 0), and complementing each variable. Otherwise, interchange 1s to 0s in the truth table column showing F. The complement of a function IS NOT THE SAME as the dual of a function. 2018/7/2 Boolean Algebra Boolean Algebra

Complementation: Example 2018/7/2 Complementation: Example Find G(x,y,z), the complement of F(x,y,z) = xy’z’ + x’yz G = F’ = (xy’z’ + x’yz)’ = (xy’z’)’ • (x’yz)’ DeMorgan = (x’+y+z) • (x+y’+z’) DeMorgan again Note: The complement of a function can also be derived by finding the function’s dual, and then complementing all of the literals 2018/7/2 Boolean Algebra Boolean Algebra

Canonical and Standard Forms 2018/7/2 Canonical and Standard Forms We need to consider formal techniques for the simplification of Boolean functions. Identical functions will have exactly the same canonical form. Minterms and Maxterms Sum-of-Minterms and Product-of- Maxterms Product and Sum terms Sum-of-Products (SOP) and Product-of-Sums (POS) 2018/7/2 Boolean Algebra Boolean Algebra

Definitions Literal: A variable or its complement 2018/7/2 Definitions Literal: A variable or its complement Product term: literals connected by • Sum term: literals connected by + Minterm: a product term in which all the variables appear exactly once, either complemented or uncomplemented Maxterm: a sum term in which all the variables appear exactly once, either complemented or uncomplemented 2018/7/2 Boolean Algebra Boolean Algebra

Minterm Represents exactly one combination in the truth table. 2018/7/2 Minterm Represents exactly one combination in the truth table. Denoted by mj, where j is the decimal equivalent of the minterm’s corresponding binary combination (bj). A variable in mj is complemented if its value in bj is 0, otherwise is uncomplemented. Example: Assume 3 variables (A,B,C), and j=3. Then, bj = 011 and its corresponding minterm is denoted by mj = A’BC 2018/7/2 Boolean Algebra Boolean Algebra

Maxterm Represents exactly one combination in the truth table. 2018/7/2 Maxterm Represents exactly one combination in the truth table. Denoted by Mj, where j is the decimal equivalent of the maxterm’s corresponding binary combination (bj). A variable in Mj is complemented if its value in bj is 1, otherwise is uncomplemented. Example: Assume 3 variables (A,B,C), and j=3. Then, bj = 011 and its corresponding maxterm is denoted by Mj = A+B’+C’ 2018/7/2 Boolean Algebra Boolean Algebra

Truth Table notation for Minterms and Maxterms 2018/7/2 Truth Table notation for Minterms and Maxterms Minterms and Maxterms are easy to denote using a truth table. Example: Assume 3 variables x,y,z (order is fixed) x y z Minterm Maxterm x’y’z’ = m0 x+y+z = M0 1 x’y’z = m1 x+y+z’ = M1 x’yz’ = m2 x+y’+z = M2 x’yz = m3 x+y’+z’= M3 xy’z’ = m4 x’+y+z = M4 xy’z = m5 x’+y+z’ = M5 xyz’ = m6 x’+y’+z = M6 xyz = m7 x’+y’+z’ = M7 2018/7/2 Boolean Algebra Boolean Algebra

Canonical Forms (Unique) 2018/7/2 Canonical Forms (Unique) Any Boolean function F( ) can be expressed as a unique sum of minterms and a unique product of maxterms (under a fixed variable ordering). In other words, every function F() has two canonical forms: Canonical Sum-Of-Products (sum of minterms) Canonical Product-Of-Sums (product of maxterms) 2018/7/2 Boolean Algebra Boolean Algebra

Canonical Forms (cont.) 2018/7/2 Canonical Forms (cont.) Canonical Sum-Of-Products: The minterms included are those mj such that F( ) = 1 in row j of the truth table for F( ). Canonical Product-Of-Sums: The maxterms included are those Mj such that F( ) = 0 in row j of the truth table for F( ). 2018/7/2 Boolean Algebra Boolean Algebra

Example a b c f1 1 Truth table for f1(a,b,c) at right 2018/7/2 Example Truth table for f1(a,b,c) at right The canonical sum-of-products form for f1 is f1(a,b,c) = m1 + m2 + m4 + m6 = a’b’c + a’bc’ + ab’c’ + abc’ The canonical product-of-sums form for f1 is f1(a,b,c) = M0 • M3 • M5 • M7 = (a+b+c)•(a+b’+c’)• (a’+b+c’)•(a’+b’+c’). Observe that: mj = Mj’ a b c f1 1 2018/7/2 Boolean Algebra Boolean Algebra

2018/7/2 Shorthand: ∑ and ∏ f1(a,b,c) = ∑ m(1,2,4,6), where ∑ indicates that this is a sum-of-products form, and m(1,2,4,6) indicates that the minterms to be included are m1, m2, m4, and m6. f1(a,b,c) = ∏ M(0,3,5,7), where ∏ indicates that this is a product-of-sums form, and M(0,3,5,7) indicates that the maxterms to be included are M0, M3, M5, and M7. Since mj = Mj’ for any j, ∑ m(1,2,4,6) = ∏ M(0,3,5,7) = f1(a,b,c) 2018/7/2 Boolean Algebra Boolean Algebra

Conversion Between Canonical Forms 2018/7/2 Conversion Between Canonical Forms Replace ∑ with ∏ (or vice versa) and replace those j’s that appeared in the original form with those that do not. Example: f1(a,b,c) = a’b’c + a’bc’ + ab’c’ + abc’ = m1 + m2 + m4 + m6 = ∑(1,2,4,6) = ∏(0,3,5,7) = (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’) 2018/7/2 Boolean Algebra Boolean Algebra

Standard Forms (NOT Unique) 2018/7/2 Standard Forms (NOT Unique) Standard forms are “like” canonical forms, except that not all variables need appear in the individual product (SOP) or sum (POS) terms. Example: f1(a,b,c) = a’b’c + bc’ + ac’ is a standard sum-of-products form f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’) is a standard product-of-sums form. 2018/7/2 Boolean Algebra Boolean Algebra

Conversion of SOP from standard to canonical form 2018/7/2 Conversion of SOP from standard to canonical form Expand non-canonical terms by inserting equivalent of 1 in each missing variable x: (x + x’) = 1 Remove duplicate minterms f1(a,b,c) = a’b’c + bc’ + ac’ = a’b’c + (a+a’)bc’ + a(b+b’)c’ = a’b’c + abc’ + a’bc’ + abc’ + ab’c’ = a’b’c + abc’ + a’bc + ab’c’ 2018/7/2 Boolean Algebra Boolean Algebra

Conversion of POS from standard to canonical form 2018/7/2 Conversion of POS from standard to canonical form Expand noncanonical terms by adding 0 in terms of missing variables (e.g., xx’ = 0) and using the distributive law Remove duplicate maxterms f1(a,b,c) = (a+b+c)•(b’+c’)•(a’+c’) = (a+b+c)•(aa’+b’+c’)•(a’+bb’+c’) = (a+b+c)•(a+b’+c’)•(a’+b’+c’)• (a’+b+c’)•(a’+b’+c’) = (a+b+c)•(a+b’+c’)•(a’+b’+c’)•(a’+b+c’) 2018/7/2 Boolean Algebra Boolean Algebra