Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Similar documents
Chapter 2: Switching Algebra and Logic Circuits

Chapter 2: Boolean Algebra and Logic Gates

Chapter 2. Boolean Algebra and Logic Gates

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

Chapter 2 Combinational Logic Circuits

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Logic Design. Chapter 2: Introduction to Logic Circuits

Digital Circuit And Logic Design I. Lecture 3

CHAPTER III BOOLEAN ALGEBRA

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra and Logic Gates

CHAPTER III BOOLEAN ALGEBRA

Combinational Logic Design Principles

CHAPTER 2 BOOLEAN ALGEBRA

Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra & Logic Gates. By : Ali Mustafa

Chapter 2 : Boolean Algebra and Logic Gates

Chapter 2 Boolean Algebra and Logic Gates

MC9211 Computer Organization

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

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

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

Unit 2 Boolean Algebra

Digital Logic Design. Malik Najmus Siraj

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

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Logic Gate Level. Part 2

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

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

Digital Logic Design. Combinational Logic

Contents. Chapter 2 Digital Circuits Page 1 of 30

EC-121 Digital Logic Design

BOOLEAN ALGEBRA TRUTH TABLE

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

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

WEEK 2.1 BOOLEAN ALGEBRA

Standard Expression Forms

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Chapter-2 BOOLEAN ALGEBRA

Binary Logic and Gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Unit 2 Boolean Algebra

Week-I. Combinational Logic & Circuits

Chapter 2 Combinational Logic Circuits

Combinational Logic Fundamentals

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

CS 226: Digital Logic Design

EECS Variable Logic Functions

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

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

control in out in out Figure 1. Binary switch: (a) opened or off; (b) closed or on.

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

Combinational Logic. Review of Combinational Logic 1

This form sometimes used in logic circuit, example:

Combinatorial Logic Design Principles

Chap 2. Combinational Logic Circuits

Signals and Systems Digital Logic System

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Midterm1 Review. Jan 24 Armita

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

Number System conversions

COE 202: Digital Logic Design Combinational Logic Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Standard & Canonical Forms

Binary logic consists of binary variables and logical operations. The variables are

ENG2410 Digital Design Combinational Logic Circuits

211: Computer Architecture Summer 2016

ECE 238L Boolean Algebra - Part I

Boolean Algebra CHAPTER 15

CS61c: Representations of Combinational Logic Circuits

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

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

Lecture 2 Review on Digital Logic (Part 1)

Computer Organization I

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

ELCT201: DIGITAL LOGIC DESIGN

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Boolean Algebra, Gates and Circuits

Systems I: Computer Organization and Architecture

SAMPLE ANSWERS MARKER COPY

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

EEE130 Digital Electronics I Lecture #4

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

CprE 281: Digital Logic

Review for Test 1 : Ch1 5

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Gate-Level Minimization

Fundamentals of Computer Systems

Administrative Notes. Chapter 2 <9>

Review: Additional Boolean operations

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

BOOLEAN LOGIC. By- Neha Tyagi PGT CS KV 5 Jaipur II Shift, Jaipur Region. Based on CBSE curriculum Class 11. Neha Tyagi, KV 5 Jaipur II Shift

ECE380 Digital Logic. Axioms of Boolean algebra

Chapter 2 Boolean Algebra and Logic Gates

Unit 2 Session - 6 Combinational Logic Circuits

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

University of Technology

CPE100: Digital Logic Design I

Transcription:

Boolean Algebra and Logic Gates Chapter 2 EECE 256 Dr. Sidney Fels Steven Oldridge Topics DefiniGons of Boolean Algebra Axioms and Theorems of Boolean Algebra two valued Boolean Algebra Boolean FuncGons simplificagon Canonical forms minterm and maxterms Other logic gates 9/18/10 (c) S. Fels, since 2010 2 Boolean Algebra Allows us to define and simplify funcgons of binary variables Important for designers to create complex circuits funcgons of computer ASIC devices programmable logic determine machine state transigons 9/18/10 (c) S. Fels, since 2010 3 1

Boolean Algebra Adheres to the laws of an algebra closure associagve commutagve idengty inverse distribugve + for addigon (0 is idengty) for mulgplicagon (1 is idengty) 9/18/10 (c) S. Fels, since 2010 4 Axioms of Boolean Algebra closure for + and IdenGty: x + 0 = x 1 = commutagve x + y = x y = y x distribugve x (y + z) = x + (y z) = 9/18/10 (c) S. Fels, since 2010 5 Axioms of Boolean Algebra Complement x + x = 1 x x = 0 two elements for Two Valued Boolean Algebra 0 and 1; 0!= 1 AND =, OR = +, NOT = inverse check with Truth tables and you ll see it meets all the axioms switching algebra (Shannon, 1928) basis of all digital computers Precedence: parentheses, NOT, AND, OR 9/18/10 (c) S. Fels, since 2010 6 2

Theorems and ProperGes of Boolean Algebra idengty complement idempotent 0 and 1 ops 9/18/10 (c) S. Fels, since 2010 7 Theorems and ProperGes of Boolean Algebra idengty complement idempotent 0 and 1 ops Duality: interchange 0 for 1 and AND and OR 9/18/10 (c) S. Fels, since 2010 8 Theorems and ProperGes of Boolean Algebra idengty complement idempotent 0 and 1 ops Duality: interchange 0 for 1 and AND and OR Theorems used to simplify complex funcgons of binary variables 9/18/10 (c) S. Fels, since 2010 9 3

Useful Theorems SimplificaGon Theorems: X Y + X Y = X + X Y = (X + Y ) Y = DeMorgan s Law: (X + Y) = Theorems for MulGplying and Factoring: (X + Y) (X + Z) = X Z + X Y Proofs by algebra complicated use truth tables instead 9/18/10 (c) S. Fels, since 2010 10 Some algebraic proofs Proving Theorems via axioms of Boolean Algebra: e.g., Prove: X Y + X Y = X e.g., Prove: X + X Y = X e.g., Prove: (X + Y) (X + Z) = X Z + X Y 9/18/10 (c) S. Fels, since 2010 11 Some algebraic proofs Proving Theorems via axioms of Boolean Algebra: e.g., Prove: X Y + X Y = X LHS = X (Y + Y ) distribugve = X(1) complement = X = RHS idengty e.g., Prove: X + X Y = X LHS = X (1+Y) distribugve = X(1) idengty = X = RHS 9/18/10 (c) S. Fels, since 2010 12 4

Some algebraic proofs e.g., Prove: (X + Y) (X + Z) = X Z + X Y LHS = (X+Y)X + (X+Y)Z distribugve = XX + YX + XZ + YZ distribugve = 0 + X Y + XZ + YZ complement, associagve, distribugve = X Y(Z + Z ) + XZ (Y + Y ) + YZ (X + X ) idengty/complement = X YZ + X YZ + XYZ + XY Z + XYZ + X YZ distribugve, associagve = XZ(Y+Y ) + X Y(Z+Z ) idempotent, associagve, distribugve = XZ + X Y = RHS complement 9/18/10 (c) S. Fels, since 2010 13 Some proofs using truth tables DeMorgan s Law (X +Y) = X Y X Y X Y (X+Y) (X+Y) X *Y 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0 (X Y) = X + Y X Y X Y (X * Y) (X*Y) X +Y 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 0 9/18/10 (c) S. Fels, since 2010 14 Some proofs using truth tables DeMorgan s Law (X +Y) = X Y X Y X Y (X+Y) (X+Y) X *Y 0 0 1 1 0 1 1 0 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0 0 (X Y) = X + Y X Y X Y (X * Y) (X*Y) X +Y 0 0 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 0 1 1 1 1 0 0 1 0 0 9/18/10 (c) S. Fels, since 2010 15 5

DeMorgan s Thereom Example: Z = A B C + A BC + AB C + ABC Z = (A+B+C ) (A+B +C ) (A.. 9/18/10 (c) S. Fels, since 2010 16 Boolean FuncGons Now, we have everything to make Boolean FuncGons F = f(x,y,z ) where x, y, z etc. are binary values (0,1) with Boolean operators circuits can implement the funcgon algebra used to simplify the funcgon to make it easier to implement 9/18/10 (c) S. Fels, since 2010 17 F 1 = x + y z Example x y z y z x+y z 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 9/18/10 (c) S. Fels, since 2010 18 6

F 1 = x + y z Example x y z y z x+y z 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 1 1 1 1 1 0 0 1 1 1 1 0 1 9/18/10 (c) S. Fels, since 2010 19 SimplificaGon allows for different implementagons F = AB + C(D + E) = requires 3 levels of gates 9/18/10 (c) S. Fels, since 2010 20 2 level implementagon F = AB + C(D + E) = AB + CD + CE 9/18/10 (c) S. Fels, since 2010 21 7

Canonical Forms Express all Boolean funcgons as one of two canonical forms enumerates all combinagons of variables as either Sum of Products, i.e., m1 + m2 + m3 etc Product of Sums, i.e., M1 M2 M3 etc each variable appears in normal form (x) or its complement (x ) if it is a product it is called a MINTERM if is is a sum it is called a MAXTERM n variables > 2 n MINTERMS or MAXTERMS 9/18/10 (c) S. Fels, since 2010 22 Canonical Forms 9/18/10 (c) S. Fels, since 2010 23 Canonical Form Example 9/18/10 (c) S. Fels, since 2010 24 8

Canonical Form Example m1 m4 m7 m3 m5 m6 m7 9/18/10 (c) S. Fels, since 2010 25 Canonical Form Example: Sum of Products (Minterms) So we can read off of TT directly Sum of products is sum of Minterms m i F1 = m1 + m4 + m7 = x y z + xy z + xyz F2 = m3 + m5 + m6 + m7 = x yz + xy z + xyz + xyz 9/18/10 (c) S. Fels, since 2010 26 Canonical Form Example M0 M2 M3 M5 M6 M0 M1 M2 M4 9/18/10 (c) S. Fels, since 2010 27 9

Canonical Form Example: Product of Sums (Maxterms) So we can read off of TT directly Product of sums is product of Maxterms M i F1 = M0 M2 M3 M5 M6 = (x + y + z)(x + y + z)(x + y + z )(x + y + z )(x +y +z) F2 = M0 M1 M2 M4 = (x+y+z)(x+y+z )(x+y +z)(x +y+z) 9/18/10 (c) S. Fels, since 2010 28 ConverGng between them You can use complement and demorgan s theorem if F=m1 + m3 + m5 i.e. Σ(1, 3, 5) then F = m0 + m2 + m4 + m6 +m7 F = (m0 + m2 + m4 + m6 +m7) use DeMorgan s now to get Product of Sum F = Π(0,2,4,6,7) Remember to include all Minterms/Maxterms n variables, 2 n terms 9/18/10 (c) S. Fels, since 2010 29 Standard form Sum of Products with one, two, three or more variables in product form F1 = y + xy + x yz Product of Sum with one, two, three or more variables in sum form F2 = x (y +z) (x +y+z ) NoGce: canonical and standard form are 2 level implementagons but may have many inputs for gate called fan in; limited by pins on IC and manufacturing 9/18/10 (c) S. Fels, since 2010 30 10

Other logical operagons for 2 input gates, you can have 16 different logic operagons 2 2 n where n = 2 9/20/10 (c) S. Fels, since 2010 31 Other logical operagons 9/20/10 (c) S. Fels, since 2010 32 Digital Logic Gates 9/20/10 (c) S. Fels, since 2010 33 11

Extending to mulgple inputs works fine for AND, OR; no problem commute and associate NAND, NOR commute but don t associate so, be careful when using them cascaded instead: define mulg input NAND as mulg input AND that is inverted at the end» x NAND y NAND z = (xyz) define mulg input NOR as mulg input OR that is inverted at the end» x NOR y NOR Z = (x+y+z) 9/20/10 (c) S. Fels, since 2010 34 Extending to mulgple inputs 9/20/10 (c) S. Fels, since 2010 35 Extending to mulgple inputs 9/21/10 (c) S. Fels, since 2010 36 12

Summary two valued Boolean algebra supports switching logic simplificagon postulates and theorems digital logic gates Truth tables can be used to define funcgon Canonical and standard forms make it easy to create funcgons that can be implemented finite number of 2 input gates easy to implement larger complex funcgons 2 input gates can be extended to mulgple inputs 9/21/10 (c) S. Fels, since 2010 37 9/21/10 (c) S. Fels, since 2010 38 13