A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 331 – Digital System Design
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.
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
28/06/041 CSE-221 Digital Logic Design (DLD) Lecture-5: Canonical and Standard forms and Integrated Circuites.
CSCE 211: Digital Logic Design
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
CHAPTER 2 Boolean Algebra
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
Boolean Algebra and Digital Circuits
©2004 Brooks/Cole FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter in.
Chapter 2. Outlines 2.1 Introduction 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra 2.4 Basic thermos and proprieties of Boolean Algebra.
1 Binary Codes Digital systems use 2-state devices that understand only 2 binary values (0 and 1). But we communicate using various symbols and methods.
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
Boolean Logic and Circuits ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Boolean Algebra and Logic Gates
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.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
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.
Boolean Algebra – II. Outline  Basic Theorems of Boolean Algebra  Boolean Functions  Complement of Functions  Standard Forms.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
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,
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
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.
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CSE 260 BRAC University.
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.
CS2100 Computer Organisation
Chapter 2: Boolean Algebra and Logic Functions
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Complement of a Function
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
SLIDES FOR CHAPTER 2 BOOLEAN ALGEBRA
FIGURES FOR CHAPTER 2 BOOLEAN ALGEBRA
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Lecture 3: Boolean Algebra
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
2. Boolean Algebra and Logic Gates
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
MINTERMS and MAXTERMS Week 3
Presentation transcript:

A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification Canonical and Standard Forms Minterms and Maxterms Building Boolean Function from the Truth Table Conversion between Canonical Forms Digital Logic Gates

A. Abhari CPS2132 Boolean Algebra Purpose of BA is to facilitates design and analysis of digital circuits. For example the value of boolean function F=A + BC’ with the following gate implementation can be shown by this truth table: A B C A+BCA+BC ABC BCBCA+B  C

A. Abhari CPS2133 Boolean Algebra Basic identities of boolean algebra 1. X  0  X 3.X  1  1 5.X  X  X 7.X  X ’  1 excluded middle 9.(X ’)’  X involution 10.X  Y  Y  X 12.X  Y  Z )  (X  Y )  Z 14.X  Y  Z )  X  Y  X  Z 16.  X  Y )  X  Y 18. X + XY = X 2.X  1  X identity 4.X  0  0 base 6.X  X  X idempotence 8.X  X’  0 non contradiction 11.X  Y  Y  X commutative 13.X  Y  Z )  (X  Y )  Z associative 15.X  Y  Z )   X  Y )  X  Z ) distributive 17.  X  Y)’ = X  Y demorgan 19. X.(X+Y) = x absorbtion

A. Abhari CPS2134 Basic identities of B.A. can be proven by truth table: X  Y  Z )   X  Y )  X  Z ) YZYZ XYZ X  Y  Z ) XYXY XZXZ  X  Y )  X  Z )  X  Y )  X  Y XY X Y X Y  X  Y ) demorgan distributive

A. Abhari CPS2135 Boolean Algebra For each algebraic expression the dual of of algebraic expression achieved by interchanging AND and OR operators and replacing 0’s and 1’s. Parallel columns illustrate duality principle. The duality principle states that if E 1 and E 2 are Boolean expressions then E 1 = E 2  dual (E 1 )=dual (E 2 ) where dual(E) is the dual of E Note: have no counterpart in ordinary algebra. Other handy identity. X+X’Y=X+Y (15, 7 and 2)

A. Abhari CPS2136 Boolean Algebra By using boolean algebra rules, a simpler expression may be obtained Operator Precedence: when evaluating boolean expression, order of precedence is: 1- Parentheses 2-NOT 3-AND 4-OR For example :Look at DeMorgan truth table first (X+Y) is computed then complement of (X+Y). But for X’.Y’ first the complement of X and complement of Y is computed and then the result is ANDed

A. Abhari CPS2137 Boolean Function Simplification

A. Abhari CPS2138 Boolean function simplification It means by manipulation of B.A. reducing the number of terms and literals in the function. For example: f= x’y’z + x’yz + xy’ = x’(y’z + yz) + xy’ = x’ (z(y’+y)) + xy’ = x’(z.1) +xy’ = x’z + xy’

A. Abhari CPS2139 The Consensus Theorem Theorem. XY +YZ + X Z = XY + X Z Proof.XY +YZ + X Z = XY + (X + X )YZ + X Z 2,7 = XY + XYZ + X YZ + X Z 14 = XY(1 + Z ) + X Z(Y + 1) 2,11,14 = XY + X Z 3,2 Dual.  X + Y )  Y + Z )  X + Z ) =  X + Y )  X + Z )

A. Abhari CPS21310 Complement of a Function There are two ways for doing that: 1)Using DeMorgan’s theorem 2)Taking the dual of the function and complement each literal For example complements of x’yz’ + x’y’z = (x+y’+ z)(x+ y+z’) x(y’z’ + yz) = x’ + (y+z)(y’ + z’)

A. Abhari CPS21311 Canonical and standard Forms The sum of products is one of two standard forms for Boolean expressions.  sum-of-products-expression  =  p-term  +  p-term ... +  p-term   p-term  =  literal    literal     literal  –example. X Y Z + X Z + XY + XYZ A minterm is a product term that contains every variable, in either complemented or un-complemented form. –example. in expression above, X Y Z is minterm, but X Z is not A sum of minterms expression is a sum of products expression in which every term is a minterm. –example: X Y Z + X YZ + XYZ + XYZ is sum of minterms expression that is equivalent to expression above. –shorthand : list minterms numerically, so X Y Z + X YZ + XYZ + XYZ becomes or  m (1,3,6,7)

A. Abhari CPS21312 Canonical and standard Forms The product of sums is the second standard form for Boolean expressions.  product-of-sums-expression  =  s-term    s-term ...   s-term   s-term  =  literal    literal     literal  –example. (X +Y +Z )(X +Z )(X +Y )(X +Y +Z ) A maxterm is a sum term that contains every variable, in complemented or uncomplemented form. –example. in exp. above, X +Y +Z is a maxterm, but X +Z is not A product of maxterms expression is a product of sums expression in which every term is a maxterm. –example. (X +Y +Z )(X +Y+Z )(X+Y+Z )(X+Y+Z ) is product of maxterms expression that is equivalent to expression above. –shorthand : list maxterms numerically: so, (X +Y +Z )(X +Y+Z) (X+Y+Z )(X+Y+Z ) becomes or –  M(6,4,1,0)

A. Abhari CPS21313 How to build the boolean function from truth table One way is to find a minterms or standard products by ANDing the terms of the n variable, each being primed if it is 0 and unprimed if it is 1. A boolean function can be formed by forming a minterm for each combination of variables that produce 1 in the function and then taking OR of all those forms. Another way is by finding maxterms or standard sums by OR term of the n variables, with each variable being unprimed if corresponding bit is 0 and primed if it is 1. A boolean function can be formed as a product of maxterms for each combination of variables that produce 0 in the function and then form And of all those forms

A. Abhari CPS21314 For example: x y z function f1 function f2 minterms maxterms m0 M m1 M m2 M m3 M m4 M m5 M m6 M m7 M7 Sum of minterms f1 = x’y’z + xy’z’ + xyz = m1 + m4 + m7 f2= x’yz + xy’z + xyz’ + xyx = m3 + m5 + m6 + m7 Product of maxterms f1= (x+y+ z)(x+y’+z)(x+y’+z’)(x’+ y + z’)(x’ + y + z) = M0M2M3M5M6 f2= (x+y+z)(x+y+z’)(x+y’+z)(x’+y+z) = M0M1M2M4

A. Abhari CPS21315 Conversion between Canonical Forms To convert it to the product of maxterms F= xy + x’z = (xy + x’)(xy +z) = (x’ + x) (x’+ y)(x+z)(y+z) = (x’+y)(x+z)(y+z) it is in the form of products of sums (P.O.S) but we want the product of maxterms. So = (x’+y+(z.z’)) (x + z + (y.y’))(y +z + (x.x’)) = (x’ + y + z)(x + z + y)(x+ z + y’)(x’ + y +z’) = M0M2M4M5=∏(0,2,4,5) Easier than this is by using the truth table

A. Abhari CPS21316 Conversion between Canonical Forms By reading from a truth table the two canonical forms ( sum of minterms and product of maxterms) can be easily obtained. A boolean function can be converted to the canonical form. For example: F= xy + x’z (is in form of the sum of the products S.O.P) by doing = (z+ z’)xy + x’z(y+y) = xyz + xyz’ + x’zy + x’zy’ it can be converted to sum of minterms. Using the truth table the sum of minterms can be shown by m1+m3+m6+m7 or ∑(1,3,6,7)

A. Abhari CPS21317 Conversion between Canonical Forms In general to convert from one canonical form to another, interchange the symbol ∑ and ∏ and list those numbers missing from the total number of minterms or maxterms which is 2 n,where n is number of variables. To prove the correctness of the above conversion method lets consider the following example: F(x,y,z) = m1+m3+m6+m7= ∑(1,3,6,7) We know the complement of F (presented in the form of sum of the minterms) is the minterms that makes F to be zero, Thus F’(x,y,z) = (∑(1,3,6,7))’= (m0 + m2 + m4 + m5) F = (F’(x,y,z))’ = (m0 + m2 + m4 + m5)’ Using Demorgan’s =m0’m2’m4’m5’= since each m’j = Mj thus M0M2M4M5 = ∏(0,2,4,5)

A. Abhari CPS21318 Standard forms Sometimes boolean functions are shown as standard forms. For example: F1 =y’ + xy + x’y’z’ ( sum of products) F2 = x(y’ + z) (x’ + y + z’) (product of sums) the product and sum can be used to make the gate structure consist of AND and OR gates Sometimes boolean function can be shown in non standard forms: F3= AB + C(D + E) can be changed to AB + CD + CE Different forms results different level of implementation of logical gates (see the next slide)

A. Abhari CPS21319

20

A. Abhari CPS21321

A. Abhari CPS21322

A. Abhari CPS21323

A. Abhari CPS21324

A. Abhari CPS21325

A. Abhari CPS21326