CHAPTER 3 BOOLEAN ALGEBRA

Similar documents
UNIT 3 BOOLEAN ALGEBRA (CONT D)

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

CHAPTER 2 BOOLEAN ALGEBRA

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

Unit 2 Boolean Algebra

Chapter 2 Combinational Logic Circuits

Unit 2 Boolean Algebra

CHAPTER 5 KARNAUGH MAPS

ECE 238L Boolean Algebra - Part I

APPLİCATION OF BOOLEAN ALGEABRA

Chapter 3. Boolean Algebra. (continued)

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

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

CHAPTER III BOOLEAN ALGEBRA

Chap 2. Combinational Logic Circuits

Signals and Systems Digital Logic System

MC9211 Computer Organization

UNIT 5 KARNAUGH MAPS Spring 2011

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra & Logic Gates. By : Ali Mustafa

Lecture 7: Karnaugh Map, Don t Cares

Number System conversions

Binary Logic and Gates

EEE130 Digital Electronics I Lecture #4

Chapter 2 Boolean Algebra and Logic Gates

Karnaugh Maps Objectives

ELC224C. Karnaugh Maps

ENG2410 Digital Design Combinational Logic Circuits

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

Chapter 2 Combinational Logic Circuits

DIGITAL ELECTRONICS & it0203 Semester 3

Basic Algebra. CAPS Mathematics

Midterm1 Review. Jan 24 Armita

Chapter-2 BOOLEAN ALGEBRA

Gate-Level Minimization

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

Chapter 2: Boolean Algebra and Logic Gates

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

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

Chapter 2. Boolean Algebra and Logic Gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

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

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

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

Digital Logic Design. Combinational Logic

Logic Gate Level. Part 2

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

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

Chapter 2. Digital Logic Basics

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

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Algebraic Expressions

Digital Circuit And Logic Design I. Lecture 3

Chapter. Algebra techniques. Syllabus Content A Basic Mathematics 10% Basic algebraic techniques and the solution of equations.

Logic Design. Chapter 2: Introduction to Logic Circuits

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

Logic Design I (17.341) Fall Lecture Outline

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: Switching Algebra and Logic Circuits

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

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

EC-121 Digital Logic Design

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

Boolean Algebra and Logic Gates

BOOLEAN ALGEBRA TRUTH TABLE


JUST THE MATHS UNIT NUMBER 1.5. ALGEBRA 5 (Manipulation of algebraic expressions) A.J.Hobson

Boolean Algebra, Gates and Circuits

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations

GCSE style questions arranged by topic

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

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Geometry Problem Solving Drill 08: Congruent Triangles

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

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

LESSON 6.2 POLYNOMIAL OPERATIONS I

Chapter 2 Combinational Logic Circuits

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

Review for Test 1 : Ch1 5

CS/EE 181a 2010/11 Lecture 4

SAMPLE ANSWERS MARKER COPY

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

Solutions to Assignment No 5 Digital Techniques Fall 2007

All work must be shown or no credit will be awarded. Box all answers!! Order of Operations

ELCT201: DIGITAL LOGIC DESIGN

CHAPTER 7. Exercises 17/ / /2 2 0

Circuits & Boolean algebra.

review To find the coefficient of all the terms in 15ab + 60bc 17ca: Coefficient of ab = 15 Coefficient of bc = 60 Coefficient of ca = -17

Optimizations and Tradeoffs. Combinational Logic Optimization

Introduction to Algebra

Week-I. Combinational Logic & Circuits

Lecture 2 Review on Digital Logic (Part 1)

Homework 1/Solutions. Graded Exercises

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

Chapter 2 Combinational Logic Circuits

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

Chapter 7: Exponents

Systems I: Computer Organization and Architecture

Unit 3 Factors & Products

Part 5: Digital Circuits

Transcription:

CHAPTER 3 BOOLEAN ALGEBRA (continued) This chapter in the book includes: Objectives Study Guide 3.1 Multiplying Out and Factoring Expressions 3.2 Exclusive-OR and Equivalence Operations 3.3 The Consensus Theorem 3.4 Algebraic Simplification of Switching Expressions 3.5 Proving the Validity of an Equation Programmed Exercises Problems

Distributive Laws Given an expression in product-of-sums form, the corresponding sum-of-products expression can be obtained by multiplying out, using the two distributive laws: X(Y + Z) = XY + XZ (3-1) (X + Y)(X + Z) = X + YZ (3-2) In addition, the following theorem is very useful for factoring and multiplying out: (X + Y)(X + Z) = XZ + X Y (3-3)

In the following example, if we were to multiply out by brute force, we would generate 162 terms, and 158 of these terms would then have to be eliminated to simplify the expression. Instead, we will use the distributive laws to simplify the process. Example (3-4), p. 63

The same theorems that are useful for multiplying out expressions are useful for factoring. By repeatedly applying (3-1), (3-2), and (3-3), any expression can be converted to a product-of-sums form.

Exclusive-OR and Equivalence Operations The exclusive-or operation ( ) is defined as follows: The equivalence operation ( ) is defined by:

We will use the following symbol for an exclusive-or gate: Section 3.2, p. 64

The following theorems apply to exclusive OR:

We will use the following symbol for an equivalence gate: Section 3.2, p. 65

Because equivalence is the complement of exclusive-or, an alternate symbol of the equivalence gate is an exclusive-or gate with a complemented output: The equivalence gate is also called an exclusive-nor gate. Section 3.2, p. 66

Example 1: By (3-6) and (3-17), F = [(A B)C + (A B) C ] + [B (AC ) + B(AC ) ] = A BC + (A + B )C + AB C + B(A + C) = B(A C + A + C) + C (A + B + AB ) = B(A + C) + C (A + B ) Example 2: = (A B + AB)C + (A B + AB) C (by (3-6)) = (A B + AB)C + (A B + AB )C (by (3-19)) = A B C + ABC + A BC + AB C Section 3.2 (p. 66)

The Consensus Theorem The consensus theorem can be stated as follows: XY + X'Z + YZ = XY + X'Z (3-20) Dual Form: (X + Y)(X + Z)(Y + Z) = (X + Y)(X + Z) (3-21) Section 3.2 (p. 66-67)

Consensus Theorem 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 Section 3.3 (p. 67)

Basic methods for simplifying functions 1. Combining terms. Use the theorem XY + XY = X to combine two terms. For example, abc d + abcd = abd [X = abd, Y = c] (3-24) 2. Eliminating terms. Use the theorem X + XY = X to eliminate redundant terms if possible; then try to apply the consensus theorem (XY + X Z + YZ = XY + X Z) to eliminate any consensus terms. For example, a b + a bc = a b [X = a b] a bc + bcd + a bd = a bc + bcd [X = c, Y = bd, Z = a b] (3-24) Section 3.4 (p. 68-69)

3. Eliminating literals. Use the theorem X + X Y = X + Y to eliminate redundant literals. Simple factoring may be necessary before the theorem is applied. A B + A B C D + ABCD = A (B + B C D ) + ABCD = A (B + C D ) + ABCD = B(A + ACD ) + A C D = B(A + CD ) + A C D = A B + BCD + A C D (3-26)

4. Adding redundant terms. Redundant terms can be introduced in several ways such as adding xx, multiplying by (x + x ), adding yz to xy + x z, or adding xy to x. When possible, the added terms should be chosen so that they will combine with or eliminate other terms. WX + XY + X Z + WY Z (add WZ by consensus theorem) = WX + XY + X Z + WY Z + WZ (eliminate WY Z ) = WX + XY + X Z + WZ (eliminate WZ ) = WX + XY + X Z (3-27)

The following comprehensive example illustrates use of all four methods: Example (3-28), p 69-70

Proving Validity of an Equation Often we will need to determine if an equation is valid for all combinations of values of the variables. Several methods can be used to determine if an equation is valid: 1. Construct a truth table and evaluate both sides of the equation for all combinations of values of the variables. (This method is rather tedious if the number of variables is large, and it certainly is not very elegant.) 2. Manipulate one side of the equation by applying various theorems until it is identical with the other side. 3. Reduce both sides of the equation independently to the same expression. Section 3.5 (p 70)

4. It is permissible to perform the same operation on both sides of the equation provided that the operation is reversible. For example, it is all right to complement both sides of the equation, but it is not permissible to multiply both sides of the equation by the same expression. (Multiplication is not reversible because division is not defined for Boolean algebra.) Similarly, it is not permissible to add the same term to both sides of the equation because subtraction is not defined for Boolean algebra.

To prove that an equation is not valid, it is sufficient to show one combination of values of the variables for which the two sides of the equation have different values. When using method 2 or 3 above to prove that an equation is valid, a useful strategy is to 1. First reduce both sides to a sum of products (or a product of sums). 2. Compare the two sides of the equation to see how they differ. 3. Then try to add terms to one side of the equation that are present on the other side. 4. Finally try to eliminate terms from one side that are not present on the other. Whatever method is used, frequently compare both sides of the equation and let the different between them serve as a guide for what steps to take next.

Example: Show that A'BD' + BCD + ABC' + AB'D = BC'D' + AD + A'BC Solution: Starting with the left side, Example 1 (p. 71)

Differences between Boolean algebra and ordinary algebra As we have previously observed, some of the theorems of Boolean algebra are not true for ordinary algebra. Similarly, some of the theorems of ordinary algebra are not true for Boolean algebra. Consider, for example, the cancellation law for ordinary algebra: If x + y = x + z, then y = z (3-31) The cancellation law is not true for Boolean algebra. We will demonstrate this by constructing a counterexample in which x + y = x + z but y z. Let x = 1, y = 0, z = 1. Then, 1 + 0 = 1 + 1 but 0 1 Section 3.5 (p 72)

In ordinary algebra, the cancellation law for multiplication is If xy = xz, then y = z (3-32) This law is valid provided x 0. In Boolean algebra, the cancellation law for multiplication is also not valid when x = 0. (Let x = 0, y = 0, z = 1; then 0 0 = 0 1, but 0 1). Because x = 0 about half the time in switching algebra, the cancellation law for multiplication cannot be used.

Similarities between Boolean algebra and ordinary algebra Even though the statements in the previous 2 slides (3-31 and 3-32) are generally false for Boolean algebra, the converses are true: If y = z, then x + y = x + z (3-33) If y = z, then xy = xz (3-34) Section 3.5 (p 72)