Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.

Slides:



Advertisements
Similar presentations
Morgan Kaufmann Publishers
Advertisements

Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 Part 3.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Overview Part 1 – Gate Circuits and Boolean Equations
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Boolean Function Boolean function is an expression form containing binary variable, two-operator binary which.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
Boolean Algebra and Logic Gates
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Edited by Dr. Muhamed Mudawar for COE 202 & EE 200 at KFUPM) Boolean Algebra and Logic Gates.
28/06/041 CSE-221 Digital Logic Design (DLD) Lecture-5: Canonical and Standard forms and Integrated Circuites.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Combinational Digital Circuits. Measurement Our world is an analog world. Measurements that we make of the physical objects around us are never in discrete.
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
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.
 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.
Department of Computer Engineering
Combinational Logic 1.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
Overview Part 1 – Gate Circuits and Boolean Equations
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
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.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Module –I Switching Function
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
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,
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 2 Part 3 Tom Kaminski & Charles.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Standard & Canonical Forms COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
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.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
De Morgan’s Theorem,.
Prof. Hsien-Hsin Sean Lee
DeMorgan’s Theorem DeMorgan’s 2nd Theorem
Overview Part 1 – Gate Circuits and Boolean Equations
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Complement of a Function
Gate & Circuit Design.
Princess Sumaya University
Circuit analysis summary
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra.
Boolean Algebra.
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.
MINTERMS and MAXTERMS Week 3
SYEN 3330 Digital Systems Chapter 2 Part 3 SYEN 3330 Digital Systems.
From now on: Combinatorial Circuits:
Analysis of Logic Circuits Example 1
Introductory Concepts
Analysis of Logic Circuits Example 1
Presentation transcript:

Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering

Canonical Forms  It is useful to specify Boolean functions in a form that:  Allows comparison for equality.  Has a correspondence to the truth tables  Canonical Forms in common usage:  Sum of Minterms (SOM)  Product of Maxterms (POM)

Minterms  Minterms are AND terms with every variable present in either true or complemented form.  Given that each binary variable may appear normal (e.g., x) or complemented (e.g.,x ), there are 2 n minterms for n variables.  Example: Two variables (X and Y) produce 2 x 2 = 4 combinations: (both normal) (X normal, Y complemented) (X complemented, Y normal) (both complemented)  Thus there are four minterms of two variables. YX XY YX YX

Maxterms  Maxterms are OR terms with every variable in true or complemented form.  Given that each binary variable may appear normal (e.g., x) or complemented (e.g., x), there are 2 n maxterms for n variables.  Example: Two variables (X and Y) produce 2 x 2 = 4 combinations: (both normal) (x normal, y complemented) (x complemented, y normal) (both complemented) YX + YX + YX + YX +

 Examples: Two variable minterms and maxterms.  The index above is important for describing which variables in the terms are true and which are complemented. Maxterms and Minterms IndexMintermMaxterm 0x yx + y 1x yx + y 2x yx + y 3x yx + y

Purpose of the Index  The index for the minterm or maxterm, expressed as a binary number, is used to determine whether the variable is shown in the true form or complemented form.  For Minterms:  “1” means the variable is “Not Complemented” and  “0” means the variable is “Complemented”.  For Maxterms:  “0” means the variable is “Not Complemented” and  “1” means the variable is “Complemented”.

Index Example in Three Variables  Example: (for three variables)  Assume the variables are called X, Y, and Z.  The standard order is X, then Y, then Z.  The Index 0 (base 10) = 000 (base 2) for three variables). All three variables are complemented for minterm 0 ( ) and no variables are complemented for Maxterm 0 ( X,Y,Z ).  Minterm 0, called m 0 is.  Maxterm 0, called M 0 is (X + Y + Z).  Minterm 6 ?  Maxterm 6 ? Z,Y,X ZYX

Index Examples – Four Variables i Pattern m i M i dcba dcba dcba  dcba dcba  dcba  d cba dcba  dba dcba  ? ? ? ? c

 Review: DeMorgan's Theorem  Two-variable example: Thus M i is the complement of m i. Minterm and Maxterm Relationship yx y· x += yxyx.=+ y x M 2 += yx· m 2 = i mM = i i i Mm =

Function Tables for Both  Minterms of Maxterms of 2 variables 2 variables  Each column in the maxterm function table is the complement of the column in the minterm function table since M i is the complement of m i.

Canonical Sum of Minterms  Any Boolean function can be expressed as a Sum of Minterms.  For the function table, the minterms used are the terms corresponding to the 1's  For expressions, expand all terms first to explicitly list all minterms. Do this by “ANDing” any term missing a variable v with a term ( ).  Example: Implement as a sum of minterms. First expand terms: Then distribute terms: Express as sum of minterms: f = m 3 + m 2 + m 0 yxxf += yx)yy(xf ++= yxyxxyf ++= vv +

Another SOM Example  Example:  There are three variables, A, B, and C which we take to be the standard order.  Expanding the terms with missing variables:  Collect terms (removing all but one of duplicate terms):  Express as SOM: C B A F +=

Shorthand SOM Form  From the previous example, we started with:  We ended up with: F = m 1 +m 4 +m 5 +m 6 +m 7  This can be denoted in the formal shorthand: C B A F +=

Canonical Product of Maxterms  Any Boolean Function can be expressed as a Product of Maxterms (POM).  For the function table, the maxterms used are the terms corresponding to the 0's.  For an expression, expand all terms first to explicitly list all maxterms. Do this by first applying the second distributive law, “ORing” terms missing variable v with a term equal to v.v and then applying the distributive law again.  Example: Convert to product of maxterms: A pply the distributive law: Add missing variable z: Express as POM: f = M 2 · M 3 yxx)z,y,x(f += yx )y(x 1.1. )y)(xx(x y xx +=+=++=+ ( ) zyx)zyx(zzyx ++++=. ++

 Convert to Product of Maxterms: Another POM Example BA CB CA C)B,f(A, ++=

Function Complements  The complement of a function expressed as a sum of minterms is constructed by selecting the minterms missing in the sum-of-minterms canonical forms.  Alternatively, the complement of a function expressed by a Sum of Minterms form is simply the Product of Maxterms with the same indices.  Example: Given )7,5,3,1( )z,y,x(F m  )6,4,2,0()z,y,x( F m  )7,5,3,1()z,y,x(F M 

Conversion Between Forms  To convert between sum-of-minterms and product-of-maxterms form (or vice-versa) we follow these steps:  Find the function complement by swapping terms in the list with terms not in the list.  Change from products to sums, or vice versa.  Example:Given F as before:  Form the Complement:  Then use the other form with the same indices – this forms the complement again, giving the other form of the original function : )6,4,2,0( )z,y,x(F m 