UNIT 3 BOOLEAN ALGEBRA (CONT D)

Similar documents
CHAPTER 3 BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

CHAPTER 2 BOOLEAN ALGEBRA

APPLİCATION OF BOOLEAN ALGEABRA

Chapter 3. Boolean Algebra. (continued)

CHAPTER III BOOLEAN ALGEBRA

ECE 238L Boolean Algebra - Part I

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

CHAPTER III BOOLEAN ALGEBRA

UNIT 5 KARNAUGH MAPS Spring 2011

Unit 2 Boolean Algebra

MC9211 Computer Organization

Chap 2. Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

CHAPTER 5 KARNAUGH MAPS

Lecture 7: Karnaugh Map, Don t Cares

EEE130 Digital Electronics I Lecture #4

Gate-Level Minimization

T9: Covering. Prove true by: Method 1: Perfect induction Method 2: Using other theorems and axioms. Number Theorem. T9 B (B+C) = B Covering

Number System conversions

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

ENG2410 Digital Design Combinational Logic Circuits

Boolean Algebra & Logic Gates. By : Ali Mustafa

Chapter 2 Combinational Logic Circuits

DIGITAL ELECTRONICS & it0203 Semester 3

EC-121 Digital Logic Design

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

Chapter 2 Boolean Algebra and Logic Gates

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

BOOLEAN ALGEBRA TRUTH TABLE

Karnaugh Maps Objectives

Binary Logic and Gates

Chapter 2 Boolean Algebra and Logic Gates

Logic Design. Chapter 2: Introduction to Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Chapter 2: Boolean Algebra and Logic Gates

Midterm1 Review. Jan 24 Armita

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Signals and Systems Digital Logic System

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

Digital Logic Design. Combinational Logic

ELC224C. Karnaugh Maps

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Homework Solution #1. Chapter 2 2.6, 2.17, 2.24, 2.30, 2.39, 2.42, Grading policy is as follows: - Total 100

Chapter-2 BOOLEAN ALGEBRA

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

E&CE 223 Digital Circuits & Systems. Lecture Transparencies (Boolean Algebra & Logic Gates) M. Sachdev. Section 2: Boolean Algebra & Logic Gates

12/31/2010. Overview. 04-Boolean Algebra Part 2 Text: Unit 2. Basic Theorems. Basic Theorems. Basic Theorems. Examples

This form sometimes used in logic circuit, example:

Chapter 2 : Boolean Algebra and Logic Gates

Circuits & Boolean algebra.

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

12/31/2010. Overview. 05-Boolean Algebra Part 3 Text: Unit 3, 7. DeMorgan s Law. Example. Example. DeMorgan s Law

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Chapter 2. Boolean Algebra and Logic Gates


Chapter 2 Combinational Logic Circuits

Lecture 2 Review on Digital Logic (Part 1)

Chapter 2. Digital Logic Basics

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 2 Combinational Logic Circuits

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

CHAPTER 7. Exercises 17/ / /2 2 0

CHAPTER1: Digital Logic Circuits Combination Circuits

SAMPLE ANSWERS MARKER COPY

Fundamentals of Boolean Algebra

Boolean Algebra and Logic Gates

GCSE style questions arranged by topic

Week-I. Combinational Logic & Circuits

ELCT201: DIGITAL LOGIC DESIGN

Logic Gate Level. Part 2

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Solutions to Assignment No 5 Digital Techniques Fall 2007

Chapter 2 Combinational

1. Expand each of the following functions into a canonical sum-of-products expression.

Logic Design I (17.341) Fall Lecture Outline

INTRO TO I & CT. (Boolean Algebra and Logic Simplification.) Lecture # By: Department of CS & IT.

Chapter 2 Boolean Algebra and Logic Gates

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Digital Logic Design. Malik Najmus Siraj

Boolean Algebra. Sungho Kang. Yonsei University

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Hardware Design I Chap. 2 Basis of logical circuit, logical expression, and logical function

Digital Circuit And Logic Design I. Lecture 3

COM111 Introduction to Computer Engineering (Fall ) NOTES 6 -- page 1 of 12

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CPE100: Digital Logic Design I

Combinational Logic. Fan-in/ Fan-out Timing. Copyright (c) 2012 Sean Key

Boolean Algebra, Gates and Circuits

Transcription:

UNIT 3 BOOLEAN ALGEBRA (CONT D) Spring 2011

Boolean Algebra (cont d) 2 Contents Multiplying out and factoring expressions Exclusive-OR and Exclusive-NOR operations The consensus theorem Summary of algebraic simplification Proving validity of an equation Reading Unit 3

Objectives 3 In this unit, you will Continue to learn Boolean algebra Simplify, complement, multiply out and factor an expression Prove any theorem in an algebraic way or using a truth table Learn XOR

Guidelines for Multiplying Out and Factoring 4 Use 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y For multiplying out, apply 2. and 3. before 1. to avoid unnecessary terms For factoring, apply 1., 2., 3. from right terms to left terms

Proof? 5 1. (X + Y)(X + Z) = X + YZ (X + Y)(X + Z) = XX + XZ + YX + YZ = X + XZ + XY + YZ = X + XY + YZ = X + YZ Or, X = 0, (0 + Y)(0 + Z) = YZ 0 + YZ = YZ X = 1, (1 + Y)(1 + Z) = 1 1 = 1 1 + YZ = 1 2. (X + Y)(X' + Z) = XZ + X'Y (X + Y)(X' + Z) = XX' + XZ + YX' + YZ = 0 + XZ + X'Y + YZ = XZ + X'Y + (X' + X)YZ = XZ + X'Y + X'YZ + XYZ expand & simplify = XZ(1 + Y) + X'Y(1 + Z) = XZ + X'Y

6 Multiplying Out Multiplying out: POS SOP Example: (A + B + C')(A + B + D)(A + B + E)(A + D' + E)(A' + C) = (A + B + C'D)(A + B + E)[AC + A'(D' + E)] 2. = (A + B + C'DE)(AC + A'D' + A'E) = AC + ABC + A'BD' + A'BE + A'C'DE = AC + A'BD' + A'BE + A'C'DE 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y 2. 3. By brute force 162 terms!

7 Factoring Factoring: SOP POS Example: AC + A'BD' + A'BE + A'C'DE = A C + A'(BD' + BE + C'DE) 3. = X Z + X' Y = (X + Y)(X' + Z) = (A + BD' + BE + C'DE)(A' + C) = [A + C'DE + B(D' + E)](A' + C) 2. = [ X + Y Z ](A' + C) = (X + Y)(X + Z)(A' + C) = (A + C'DE + B)(A + C'DE + D' + E)(A' + C) 2. 1. X(Y + Z) = XY + XZ 2. (X + Y)(X + Z) = X + YZ 3. (X + Y)(X' + Z) = XZ + X'Y = (A + B + C')(A + B + D)(A + B + E)(A + D' + E)(A' + C)

8 XOR and XNOR Difference and equivalence

9 Operation Exclusive-OR Exclusive-OR (XOR) ( ) 0 0 = 0, 0 1 = 1, 1 0 = 1, 1 1 = 0 Symbol X Y X Y Truth table X Y X Y 0 0 0 1 1 0 1 1 0 1 1 0 check difference of inputs Boolean expression: X Y = X'Y + XY' show the condition to make output ==1

Exclusive-OR Operations 10 X Y = X'Y + XY' Useful theorems: X 0 = X X 1 = X' X X = 0 X Y = Y X (commutative) (X Y) Z = X (Y Z) = X Y Z (associative) X(Y Z) = XY XZ (distributive) X X' = 1 (X Y)' = X Y' = X' Y = X'Y' + XY Prove distributive law? XY XZ = XY(XZ)' + (XY)'XZ (by definition) = XY(X' + Z') + (X' + Y')XZ (DeMorgan) = XYZ' + XY'Z = X(YZ' + Y'Z) = X(Y Z) (difference)' == equivalence

Operation Exclusive-NOR 11 Boolean expression: X Y = X'Y' + XY Exclusive-NOR (XNOR) ( ) check 0 0 = 1, 0 1 = 0, 1 0 = 0, 1 1 = 1 equivalence Symbol Truth table of inputs X X Y X Y (X Y) X Y 0 0 1 1 Y 0 1 0 0 1 0 0 0 X 1 1 1 1 (X Y)' = (X Y) (difference)' == Y equivalence show the condition to make output ==1

12 Simplification of XOR and XNOR X Y = X'Y + XY' X Y = X'Y' + XY (X'Y + XY')' = X'Y' + XY e.g., F = (A'B C) + (B AC') = [A'BC + (A'B)'C'] +[B'AC' + B(AC')'] = A'BC + (A + B')C' + B'AC' + B(A' + C) = B(A'C + A' + C) + C'(A + B' + AB') = B(A' + C) + C'(A + B') (can be further simplified!) e.g., F = A' B C = (A'B' + AB) C = (A'B' + AB)C' + (A'B' + AB)'C = A'B'C' + ABC' + A'BC + AB'C

13 The Consensus Theorem Redundancy removal

The Consensus Theorem 14 XY + X'Z + YZ = XY + X'Z (YZ is redundant) Proof: XY + X'Z + YZ = XY + X'Z + (X + X')YZ = (XY + XYZ) + (X'Z + X'YZ) = XY(1 + Z) + X'Z(1 + Y) = XY + X'Z How to find consensus terms? 1. Find a pair of terms, one of which contains a variable and the other contains its complement A'C'D + A'BD + BCD + ABC + ACD' (A A') 2. Ignore the variable and its complement; the left variables composite the consensus term (A'BD ) + (ABC) BD BC = BCD (redundant term) e.g., a'b'+ ac + bc' + b'c + ab = a'b'+ ac + bc'

Ordering Does Matter! 15 e.g., A'C'D + A'BD + BCD + ABC + ACD' A'C'D + A'BD + BCD + ABC + ACD' = A'C'D + A'BD + ABC + ACD' 4 terms A'C'D + A'BD + BCD + ABC + ACD' = A'C'D + BCD + ACD' Only 3 terms!

Dual Form of the Consensus Theorem 16 XY + X'Z + YZ = XY + X'Z YZ is redundant dual (X + Y)(X' + Z)(Y + Z) = (X + Y)(X' + Z) (Y + Z) is redundant e.g., (a + b + c')(a + b + d')(b + c + d') = (a + b + c')(b + c + d') (a + b + c') + (b + c + d') a + b + b + d' = a + b + d'

Redundancy Injection 17 e.g., ABCD + B'CDE + A'B' + BCE' Find consensus terms ABCD + B'CDE ACDE ABCD + A'B' BCD(B') + (ACD)A' B'CDE + BCE' CDE(CE') + B'CD(BC) A'B' + BCE' A'CE' Add consensus term ACDE ABCD + B'CDE + A'B' + BCE' + ACDE = A'B' + BCE' + ACDE

18 Summary of Algebraic Simplification Simplification can reduce cost

Rule A -- Combining Terms 19 XY + XY' = X(Y + Y') = X e.g., abc'd' + abcd' = abd' (X = abd', Y = c) ab'c + abc + a'bc = ab'c + abc + abc + a'bc (repeat term) = ac + bc (a + bc)(d + e') + a'(b' + c')(d + e') = d + e' (why?? DeMorgan)

20 Rule B -- Eliminating Terms 1. X + XY = X (keep the boss) 2. XY + X'Z + YZ = XY + X'Z (consensus) e.g., a'b+ a'bc = a'b (X = a'b) a'bc' + bcd + a'bd = a'bc'+ bcd (X = c, Y = bd, Z = a'b)

Rule C -- Eliminating Literals 21 X + X'Y = (X + X')(X + Y) = X + Y e.g., A'B + A'B'C'D' + ABCD' = A'(B + B'C'D') + ABCD' (common term: A') = A'(B + C'D') + ABCD' (Rule C) = A'B + A'C'D' + ABCD' = B(A' + ACD') + A'C'D' (common term: B) = B(A' + CD') + A'C'D' (Rule C) = A'B + BCD' + A'C'D' (final terms)

Rule D -- Adding Redundant Terms 22 1. Y = Y + XX' 2. Y = Y(X + X') 3. XY + X'Z = XY + X'Z + YZ 4. X = X + XY e.g., Add redundancy to eliminate other terms WX + XY + X'Z' + WY'Z' = WX + XY + X'Z' + WY'Z' + WZ' (add WZ' by consensus thm) = WX + XY + X'Z' + WZ' (eliminate WY'Z' by WZ') = WX + XY + X'Z' (consensus again)

Another Example 23 A'B'C'D' + A'BC'D' + A'BD + A'BC'D + ABCD + ACD' + B'CD' = (Apply rules A, B, C, D) = A'C'D' + A'BD + B'CD' + ABC No easy way to determine when a Boolean expression has a minimum # of terms or literals Systematic way will be discussed in Unit 5 & Unit 6

24 Proving Validity of an Equation

How to Determine if an Equation Valid? 25 1. Construct a truth table (proof by cases) 2. Manipulate one side until it is identical to the other side 3. Reduce both sides independently to the same expression 4. Perform the same operation on both sides if the operation is reversible (Boolean algebra ordinary algebra) Complement is reversible Multiplication/division and addition/subtraction are not reversible x+y = x+z does not imply y=z (e.g., x=1, y=0, z=1) xy = xz does not imply y=z (e.g., x=0, y=0, z=1) Using 2. and 3., usually 1. Reduce both sides to (minimum) SOP or POS 2. Compare both sides 3. Try to add or delete terms by using theorems

Example 26 Show that A'BD' + BCD + ABC' + AB'D = BC'D' + AD + A'BC By the consensus theorem, A'BD' + BCD + ABC' + AB'D = A'BD' + BCD + ABC' + AB'D + A'BC + BC'D' + ABD = AD + A'BD' + BCD + ABC' + A'BC + BC'D' = AD + A'BC + BC'D'

One More Example 27 Show that A'BC'D + (A' + BC)(A + C'D') + BC'D + A'BC' = ABCD + A'C'D' + ABD + ABCD' + BC'D 1. Reduce the left side: A'BC'D + (A' + BC)(A + C'D') + BC'D + A'BC' = (A' + BC)(A + C'D') + BC'D + A'BC' = A'C'D' + ABC + BC'D + A'BC' (multiplying out) = A'C'D' + ABC + BC'D (consensus) 2. Reduce the right side: ABCD + A'C'D' + ABD + ABCD' + BC'D = ABC + A'C'D' + ABD + BC'D = ABC + A'C'D' + BC'D (consensus) 3. Because both sides were independently reduced to the same expression, the original equation is valid.