Lecture 4: More Boolean Algebra

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

This form sometimes used in logic circuit, example:

University of Technology

Lecture 3: Boolean Algebra

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

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

Standard Expression Forms

CS 226: Digital Logic Design

Combinational Logic Circuits Part II -Theoretical Foundations

CPE100: Digital Logic Design I

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

Slides for Lecture 10

Mark Redekopp, All rights reserved. Lecture 5 Slides. Canonical Sums and Products (Minterms and Maxterms) 2-3 Variable Theorems DeMorgan s Theorem

Unit 2 Session - 6 Combinational Logic Circuits

WEEK 2.1 BOOLEAN ALGEBRA

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

Chapter 2 : Boolean Algebra and Logic Gates

Digital Logic Design. Malik Najmus Siraj

Boolean Algebra and Logic Simplification

Chapter 2 Boolean Algebra and Logic Gates

Combinatorial Logic Design Principles

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

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Administrative Notes. Chapter 2 <9>

EEE130 Digital Electronics I Lecture #4

7.1. Unit 7. Minterm and Canonical Sums 2- and 3-Variable Boolean Algebra Theorems DeMorgan's Theorem Simplification using Boolean Algebra

MC9211 Computer Organization

The Karnaugh Map COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Chapter 2 Combinational

Chapter 2 Boolean Algebra and Logic Gates

Digital Circuit And Logic Design I. Lecture 3

Logic Design. Chapter 2: Introduction to Logic Circuits

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

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

CHAPTER1: Digital Logic Circuits Combination Circuits

Gate-Level Minimization

Mark Redekopp, All rights reserved. Lecture 4 Slides. Boolean Algebra Logic Functions Canonical Sums/Products

211: Computer Architecture Summer 2016

Chapter 4 Optimized Implementation of Logic Functions

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Boolean Algebra & Logic Gates. By : Ali Mustafa

ELCT201: DIGITAL LOGIC DESIGN

Chapter 2: Switching Algebra and Logic Circuits

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

ENGR 303 Introduction to Logic Design Lecture 3. Dr. Chuck Brown Engineering and Computer Information Science Folsom Lake College

Chapter 2 Combinational Logic Circuits

Standard & Canonical Forms

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

Goals for Lecture. Binary Logic and Gates (MK 2.1) Binary Variables. Notation Examples. Logical Operations

UNIT 5 KARNAUGH MAPS Spring 2011

Chapter-2 BOOLEAN ALGEBRA

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

Digital Logic Design. Combinational Logic

Unit 2 Boolean Algebra

Chapter 2. Boolean Algebra and Logic Gates

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

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

Boolean Algebra and Logic Gates

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

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

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Introduction to Digital Logic Missouri S&T University CPE 2210 Boolean Representations

Electronics. Overview. Introducction to Synthetic Biology

Lecture 5. Karnaugh-Map

CHAPTER 2 BOOLEAN ALGEBRA

Computer Organization I

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

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Combinational Logic Design Principles

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Signals and Systems Digital Logic System

Minimization techniques

Chapter 2: Boolean Algebra and Logic Gates

DIGITAL ELECTRONICS & it0203 Semester 3

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

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

Combinational Logic Fundamentals

Digital Design. Digital Design

CprE 281: Digital Logic

Simplifying Logic Circuits with Karnaugh Maps

WEEK 3.1 MORE ON KARNAUGH MAPS

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

Lecture 2 Review on Digital Logic (Part 1)

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Chapter 2 Combinational Logic Circuits

EC-121 Digital Logic Design

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

Combinational Logic. Review of Combinational Logic 1

CHAPTER III BOOLEAN ALGEBRA

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

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

Cover Sheet for Lab Experiment #3

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

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Unit 2 Boolean Algebra

Circuits & Boolean algebra.

Transcription:

Lecture 4: More Boolean Algebra Syed M. Mahmud, Ph.D ECE Department Wayne State University Original Source: Prof. Russell Tessier of University of Massachusetts Aby George of Wayne State University ENGIN2 L6: More Boolean Algebra September 5, 23

Overview Epressing Boolean functions Relationships between algebraic equations, symbols, and truth tables Simplification of Boolean epressions Minterms and Materms AND-OR representations Product of sums Sum of products ENGIN2 L6: More Boolean Algebra September 5, 23

Conversion between Boolean Epression and Truth Table Boolean Epression Truth Table ENGIN2 L6: More Boolean Algebra September 5, 23

ENGIN2 L6: More Boolean Algebra September 5, 23 Truth Table to Epression What Boolean function is represented by the following Truth Table? Is it an AND or an OR function? The answer is AND because G= only for one combination of, y and z (=, y= and z=). Therefore, G = yz y z G

ENGIN2 L6: More Boolean Algebra September 5, 23 Truth Table to Epression What about G2 and G3? Both G2 and G3 represent AND operations because each one of these two functions is also equal to, only for one combination of, y and z. G2= for =, y= and z=, and G3= for =, y= and z=. Therefore, G2 = yz and G3 = yz y z G2 y z G3

ENGIN2 L6: More Boolean Algebra September 5, 23 Truth Table to Epression If G = G+G2+G3, as shown in the following Truth Table, then G = yz + yz + yz y z G G2 G3 G = G+G2+G3

Truth Table to Epression Converting a truth table to an epression Each row with output of becomes a product term Sum all the product terms together. y z G Any Boolean Epression can be represented in sum of products form! yz + yz + yz G = yz + yz' +'yz Product Terms Sum of 3 Product Terms ENGIN2 L6: More Boolean Algebra September 5, 23

Implementation of the SOP Epression SOP Epression: G = yz + yz' +'yz A SOP epression is implemented using one OR gate and multiple AND gates. This is not a minimum logic. We will minimize later. ENGIN2 L6: More Boolean Algebra September 5, 23

Reducing the epression for G using Boolean Algebra G = yz + yz' +'yz Step : Use Theorum (a + a = a) So yz + yz + yz = yz + yz + yz + yz Step 2: Use distributive rule a(b + c) = ab + ac So yz + yz + yz + yz = y(z + z ) + yz( + ) Step 3: Use Postulate 3 (a + a = ) So y(z + z ) + yz( + ) = y. + yz. Step 4: Use Postulate 2 (a. = a) So y. + yz. = y + yz Therefore, G = y + yz ENGIN2 L6: More Boolean Algebra September 5, 23

ENGIN2 L6: More Boolean Algebra September 5, 23 Reduced Hardware Implementation Reduced equation requires less hardware! Same function implemented! y z y z G G = yz + yz + yz = y + yz G

Product of Sums (POS) Epression Any Boolean Epression can be represented in Product of Sums (POS) form. Let's find a POS epression for G. We have shown how G was written in a SOP epression. Using the same technique we can write a SOP epression for G'. G' = 'y'z'+'y'z+'yz'+y'z'+y'z Using DeMorgan's Theorem we can convert the SOP epression for G' into a POS epression for G ENGIN2 L6: More Boolean Algebra September 5, 23

Product of Sums (POS) Epression G' = 'y'z'+'y'z+'yz'+y'z'+y'z G = (G')' = ('y'z'+'y'z+'yz'+y'z'+y'z)' Using DeMorgan G=('y'z')'.('y'z)'.('yz')'.(y'z')'.(y'z)' Using DeMorgan again G=(+y+z).(+y+z').(+y'+z).('+y+z).('+y+z') Sum Terms POS Epression ENGIN2 L6: More Boolean Algebra September 5, 23

Summary of SOP and POS Epressions for G SOP Epression: G = yz + yz' +'yz POS Epression: G=(+y+z)(+y+z')(+y'+z)('+y+z)('+y+z') Notice, the SOP epression has 3 Product terms and the POS epression has 5 Sum terms. There are 8 terms in both SOP and POS epressions together. Why? Because G is a function of 3 variable (, y and z), and 3 variables have 8 different combinations. The 's of G are used for SOP and the 's of G are used for POS. ENGIN2 L6: More Boolean Algebra September 5, 23

Implementation of the POS Epression POS Epression: G=(+y+z)(+y+z')(+y'+z)('+y+z)('+y+z') A POS epression is implemented using one AND gate and multiple OR gates. ENGIN2 L6: More Boolean Algebra September 5, 23

Minterms and Materms The boolean variables and their complements are called Literals. For eample, is a literal, and y' is also a literal. The Product Terms of literals are called Minterms. The Sum Terms of literals are called Materms. ENGIN2 L6: More Boolean Algebra September 5, 23

ENGIN2 L6: More Boolean Algebra September 5, 23 Representing Functions with Minterms A SOP epression is a Sum of Minterms. The Minterms of a function correspond to the 's of the function. Shorthand way to represent functions y z G G = yz + yz + yz G = m 3 + m 6 + m 7 = Σm(3, 6, 7)

ENGIN2 L6: More Boolean Algebra September 5, 23 Representing Functions with Materms A POS epression is a Product of Materms. The Materms of a function correspond to the 's of the function. Shorthand way to represent functions G = (+y+z)(+y+z )(+y +z)( +y+z)( +y+z ) G = M M M 2 M 4 M 5 = ΠM(,,2,4,5) y z G

ENGIN2 L6: More Boolean Algebra September 5, 23 Canonical Forms The Minterm and Materm epressions are also called Canonical Forms y z G G = m 3 + m 6 + m 7 = Σm(3, 6, 7) G = M M M 2 M 4 M 5 = ΠM(,,2,4,5) Canonical Forms

Conversion Between Canonical Forms Easy to convert between Minterm and Materm epressions. Since 3 variables can take 8 combinations, if there are N Minterms in the epression for a function, then there will be 8-N Materms in the epression for the function. Similarly, since 4 variables can take 6 combinations, if there are N Minterms in the epression for a function, then there will be 6-N Materms in the epression for the function. Eample: IF F = Σ m(, 3, 6, 7,, 2, 5) THEN F = Π M(, 2, 4, 5, 8, 9,, 3, 4) ENGIN2 L6: More Boolean Algebra September 5, 23

Representation in Circuits All logic epressions can be represented in 2-level format Circuits can be reduced to minimal 2-level representation Sum of products representations are most common in industry. ENGIN2 L6: More Boolean Algebra September 5, 23

Summary Truth table, circuit, and boolean epression formats are equivalent Easy to translate truth table to SOP and POS representation Boolean algebra rules can be used to reduce circuit size while maintaining function All logic functions can be made from AND, OR, and NOT ENGIN2 L6: More Boolean Algebra September 5, 23

Practice Problems Boolean algebra, Basic theorems and Postulates 2., 2.2, 2.3, 2.5, 2.6 Boolean functions 2.8, 2.9, 2., 2.8 Canonical and standard forms and digital logic gates 2.2, 2.22, 2.23, 2.27, 2.28 ENGIN2 L6: More Boolean Algebra September 5, 23