EEE130 Digital Electronics I Lecture #4

Similar documents
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

Chapter 2: Switching Algebra and Logic Circuits

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

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

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

Unit 2 Boolean Algebra

This form sometimes used in logic circuit, example:

MC9211 Computer Organization

Digital Circuit And Logic Design I. Lecture 3

CHAPTER III BOOLEAN ALGEBRA

CS 226: Digital Logic Design

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

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

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra and Logic Simplification

Boolean Algebra & Logic Gates. By : Ali Mustafa

1 Boolean Algebra Simplification

Number System conversions

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

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

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

ELCT201: DIGITAL LOGIC DESIGN

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

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

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

2. Associative Law: A binary operator * on a set S is said to be associated whenever (A*B)*C = A*(B*C) for all A,B,C S.

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

Gate-Level Minimization

Chapter 2 Boolean Algebra and Logic Gates

Logic Gate Level. Part 2

Lecture 2 Review on Digital Logic (Part 1)

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

CS61c: Representations of Combinational Logic Circuits

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

CHAPTER 2 BOOLEAN ALGEBRA

Logic Design. Chapter 2: Introduction to Logic Circuits

WEEK 2.1 BOOLEAN ALGEBRA

Digital Logic Design. Combinational Logic

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

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

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Chapter 2 Combinational Logic Circuits

Lecture 3: Boolean Algebra

Combinational Logic Fundamentals

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

Unit 2 Boolean Algebra

Chapter 2. Boolean Algebra and Logic Gates

Chapter 2 Combinational Logic Circuits

Switches: basic element of physical implementations

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

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

Combinational Logic. Review of Combinational Logic 1

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

CHAPTER 3 BOOLEAN ALGEBRA

UNIT 3 BOOLEAN ALGEBRA (CONT D)

211: Computer Architecture Summer 2016

COS 140: Foundations of Computer Science

Digital Logic (2) Boolean Algebra

ENG2410 Digital Design Combinational Logic Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

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

Week-I. Combinational Logic & Circuits

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

Chapter 2 Combinational Logic Circuits

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

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

Chapter 2: Boolean Algebra and Logic Gates

Cs302 Quiz for MID TERM Exam Solved

University of Technology

Chapter 3. Boolean Algebra. (continued)

Unit 2 Session - 6 Combinational Logic Circuits

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Chapter-2 BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

SAMPLE ANSWERS MARKER COPY

Boolean Algebra and Logic Gates

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY LECTURE 8 : WEEK 8 CSC-110-T

Chapter 2 Boolean Algebra and Logic Gates

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

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

CprE 281: Digital Logic

Simplification of Boolean Functions. Dept. of CSE, IEM, Kolkata

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

Combinational Logic. By : Ali Mustafa

BOOLEAN ALGEBRA TRUTH TABLE

BOOLEAN ALGEBRA CLASS XII. Presented By : Dinesh Patel PGT CS KV IIT Powai

Digital Logic Design. Malik Najmus Siraj

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

CS/COE0447: Computer Organization and Assembly Language

Chap 2. Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

CPE100: Digital Logic Design I

Computer Organization: Boolean Logic

Computer Organization I

Transcription:

EEE130 Digital Electronics I Lecture #4 - Boolean Algebra and Logic Simplification - By Dr. Shahrel A. Suandi

Topics to be discussed 4-1 Boolean Operations and Expressions 4-2 Laws and Rules of Boolean Algebra 4-3 DeMorgan s Theorems 4-4 Boolean Analysis of Logic Circuits 4-5 Simplification Using Boolean Algebra 4-6 Standard Forms of Boolean Expressions 4-7 Boolean Expression and Truth Tables 4-8 Karnaugh Map 4-9 Karnaugh Map SOP Minimization 4-10 Karnaugh Map POS Minimization 4-11 Five-Variable Karnaugh Maps

Introduction 1854 George Boole published a work titled An Investigation of the Laws of Though, on Which Are Founded the Mathematical Theories of Logic and Probabilities Logical algebra = Boolean algebra 1938 an MIT scholar, Claude Shannon applied Boole s work to the analysis and design of logic circuits Published a paper titled A Symbolic Analysis of Relay and Switching Circuits

4-1 Boolean Operations and Expressions Important terms: Variable: a symbol (written in italic uppercase letter) used to represent a logical quantity Complement: is the inverse of a variable and is indicated by a bar Literal: is a variable or the complement of a variable Boolean Addition In Boolean algebra, a sum term is a sum of literals Equivalent to the OR operation Boolean Multiplication In Boolean algebra, a product term is the product of literals Equivalent to the AND operation

4-2 Laws and Rules of Boolean Algebra Laws of Boolean Algebra: Basic laws: Commutative laws this law states that the order in which the variables are ORed or ANDed makes no difference to the output Associative laws this law states that when ORing or ANDing more than two variables, the result is the same regardless of the grouping of the variables Distributive law this law states that ORing two or more variables and then ANDing the result with a single variable is equivalent to ANDing the single variable with each of the two or more variables and then ORing the products. This law expresses the process of factoring in which the common variable A is factored out of the product terms

4-2 (2) Cont d Basic Laws and Boolean expressions Commutative law A +B = B +A Associative law A + (B + C) = (A + B) + C Distributive law AB = BA A(BC) = (AB)C A(B + C) = AB + AC

Rules of Boolean Algebra There are 12 rules for Boolean expressions. These rules are used to manipulate and simplify Boolean expressions What are the rules?? Refer to the table on the right for list below for details (or Table 4-1 in your text book) 1. A + 0 = A 2. A + 1 = 1 3. A 0 = 0 4. A 1 = A 5. A + A = A 6. A + ¹A = 1 7. A A = A 8. A ¹A = 0 9. ¹A = A 10. A + AB = A 11. A + ¹AB = A + B 12. (A + B)(A + C) = A + BC

Rules Explanation(1) 1. A + 0 = A 2. A + 1 = 1 3. A 0 = 0 4. A 1 = A 5. A + A = A 6. A + ¹A = 1 7. A A = A 8. A ¹A = 0 9. ¹A = A 10. A + AB = A 11. A + ¹AB = A + B 12. (A + B)(A + C) = A + BC

1. A + 0 = A 2. A + 1 = 1 3. A 0 = 0 4. A 1 = A 5. A + A = A 6. A + ¹A = 1 7. A A = A 8. A ¹A = 0 9. ¹A = A Rules Explanation(2) 10. A + AB = A 11. A + ¹AB = A + B 12. (A + B)(A + C) = A + BC A + AB = A(1 + B) = A 1 = A

Rules Explanation(3) 1. A + 0 = A 2. A + 1 = 1 3. A 0 = 0 4. A 1 = A 5. A + A = A 6. A + ¹A = 1 7. A A = A 8. A ¹A = 0 9. ¹A = A 10. A + AB = A 11. A + ¹AB = A + B A + ¹AB = (A + AB) + ¹AB = (AA + AB) + ¹AB = AA + AB + A ¹ A + ¹ AB = (A + ¹A)(A + B) = 1 (A + B) = A + B (A + B)(A + C) = AA + AC + AB + BC = A + AC + AB + BC = A(1 + C) + AB + BC = A 1 + AB + BC = A(1 + B) + BC = A 1 + BC = A + BC 12. (A + B)(A + C) = A + BC

4-3 DeMorgan s Theorems Why DeMorgan s Theorems are important for Boolean algebra? It provides mathematical verification of the equivalency of the NAND and negative-or gates and NOR and negative-and gates In other words, it helps us to simplify Boolean expressions by utilizing: NAND or negative-or NOR or negative-and So please remember these two diagrams (and the truth table, of course) XY = XY X + Y = X + Y X + Y = X + Y XY = X Y

4-4 Boolean Analysis of Logic Circuits Boolean algebra provides a concise way to express the operation of a logic circuit formed by a combination of logic gates so that the output can be determined for various combinations of input values Boolean expression for a logic circuit Method of implementation Begin at the left-most inputs and work toward the final output, writing the expression for each gate Let s try to do example in Figure 4-16 (in the text book) Constructing a truth table for a logic circuit Subsequent to the Boolean expression determination, the truth table is developed We need to evaluate the Boolean expression for all possible combinations of values for the input variables So, if there are n inputs then we need to evaluate 2 n combinations

Figure 4-16 Begin from the left-most The answer is A(B + CD)

Evaluating the Expression We need to do these following items when evaluating the expression Find the values of variables that make the expression equal to 1 (use Boolean addition and multiplication) Evaluate the first term, A A(B + CD) = 1 1 = 1 if A = 1; B + CD = 1 Evaluate the second term, (B + CD) B +CD = 1 +0 = 1 if B = 1 B +CD = 0 +1 = 1 if CD = 1 B + CD = 1 + 1 = 1 if B = 1; CD = 1 As we may see, A(B+CD)=1 when A=1 and B=1 regardless of the values of C and D, or when A=1 and C=1 and D=1 regardless of the value of B A(B+CD) = 0 for other conditions

Putting the results in truth table format Remember these following items: 1. List ou the 16 (or the n) input variable combinations of 1s and 0s in a binary sequence 2. Place a 1 in the output column for each combination of input variables that was determined in the evaluation What are the inputs involved here?? Remember the observations that we made in the previous slide 3. Finally, place a 0 in the output column for all other combinations of input variables

4-5 Simplification using Boolean Algebra INPUTS OUTPUT A B C D A(B+CD) 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 1

4-5 Simplification using Boolean Algebra In logic circuits applications, we need to reduce an expression to its simplest form or change its form to a more convenient one to implement the expression more efficiently How to do this?? We need to understand the laws, rules, DeMorgan Theorems and of course, basics in logic circuits like AND, OR, NAND, NOR, XOR, XNOR, NOT, etc.

Example of simplified logic circuits The details of this are presented in Example 4-8 Notice that the output is the same from both circuits (b) is less complex compared to (a)

4-6 Standard Forms of Boolean Expressions Will be continued in the next slides