Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.

Slides:



Advertisements
Similar presentations
Logical Systems Synthesis.
Advertisements

Chapter 2 Logic Circuits.
Morgan Kaufmann Publishers
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Overview Part 1 – Gate Circuits and Boolean Equations
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
Boolean Algebra and Logic Gates
COMBINATIONAL LOGIC CIRCUITS C.L. x1 x2 xn Z Z = F (x1, x2, ……., Xn) F is a Binary Logic (BOOLEAN ) Function Knowing F Allows Straight Forward Direct Implementation.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Edited by Dr. Muhamed Mudawar for COE 202 & EE 200 at KFUPM) Boolean Algebra and Logic Gates.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
CS1104: Computer Organisation School of Computing National University of Singapore.
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Combinational Logic 1.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Overview Part 1 – Gate Circuits and Boolean Equations
1 ENGR 254 Lecture DeMorgan Symbol Equivalence.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 6 – Canonical Forms.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
Chap 2. Combinational Logic Circuits
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Module –I Switching Function
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2002 Topic2: DeMorgan Laws José Nelson Amaral.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Standard & Canonical Forms COE 202 Digital Logic Design Dr. Aiman El-Maleh College of Computer Sciences and Engineering King Fahd University of Petroleum.
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
Boolean Algebra ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
Logic Design (CE1111 ) Lecture 2 (Chapter 2) Prepared by Dr. Lamiaa Elshenawy 1.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 2 Boolean algebra and Logic gates
Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Overview Part 1 – Gate Circuits and Boolean Equations
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
Gate & Circuit Design.
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
Boolean Algebra.
CSE 370 – Winter Combinational Logic - 1
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
SYEN 3330 Digital Systems Chapter 2 Part 3 SYEN 3330 Digital Systems.
Introductory Concepts
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Presentation transcript:

Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 2 Presentation Outline  Boolean Algebra  Boolean Functions and Truth Tables  DeMorgan's Theorem  Algebraic manipulation and expression simplification  Logic gates and logic diagrams  Minterms and Maxterms  Sum-Of-Products and Product-Of-Sums

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 3 Boolean Algebra

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 4 Postulates of Boolean Algebra

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 5 AND, OR, and NOT Operators x yx·y x yx+y xx' 01 10

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 6 Boolean Functions

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 7 Truth Table x y z y' xy' x'x'zf = xy'+ x'z

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 8 DeMorgan's Theorem xyx'y'x+y(x+y)'x'y'x yx y(x y)'x'+ y' Can be verified Using a Truth Table Identical

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 9 Complementing Boolean Functions

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 10 Algebraic Manipulation of Expressions

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 11 Consensus Theorem

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 12 Summary of Boolean Algebra PropertyDual Property Identity Complement Null Idempotence Involution Commutative Associative Distributive Absorption Simplification De Morgan

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 13 Duality Principle PropertyDual Property Identity Complement Distributive

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 14 Expression Simplification

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 15 Importance of Boolean Algebra  Our objective is to learn how to design digital circuits  These circuits use signals with two possible values  Logic 0 is a low voltage signal (around 0 volts)  Logic 1 is a high voltage signal (e.g. 5 or 3.3 volts)  The physical value of a signal is the actual voltage it carries, while its logic value is either 0 (low) or 1 (high)  Having only two logic values (0 and 1) simplifies the implementation of the digital circuit

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 16 Next...  Boolean Algebra  Boolean Functions and Truth Tables  DeMorgan's Theorem  Algebraic manipulation and expression simplification  Logic gates and logic diagrams  Minterms and Maxterms  Sum-Of-Products and Product-Of-Sums

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 17 Logic Gates and Symbols AND gateOR gate NOT gate (inverter)  In the earliest computers, relays were used as mechanical switches controlled by electricity (coils)  Today, tiny transistors are used as electronic switches that implement the logic gates (CMOS technology) AND: Switches in series logic 0 is open switch OR: Switches in parallel logic 0 is open switch NOT: Switch is normally closed when x is 0

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 18 Truth Table and Logic Diagram Truth Table x y zy'+ zf = x(y'+ z) Logic Diagram

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 19 Combinational Circuit  Combinational Circuit 

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 20 Example of a Simple Combinational Circuit

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 21 From Truth Tables to Gate Implementation Truth Table x y zf To answer these questions, we need to define Minterms and Maxterms

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 22 Minterms and Maxterms xyindexMintermMaxterm

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 23 Minterms and Maxterms for 3 Variables xyzindex MintermMaxterm

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 24 Purpose of the Index  Minterms and Maxterms are designated with an index  The index for the Minterm or Maxterm, expressed as a binary number, is used to determine whether the variable is shown in the true or complemented form  For Minterms:  ‘1’ means the variable is Not Complemented  ‘0’ means the variable is Complemented  For Maxterms:  ‘0’ means the variable is Not Complemented  ‘1’ means the variable is Complemented

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 25 Sum-Of-Minterms (SOM) Canonical Form Sum of Minterm entries that evaluate to ‘1’ Truth Table x y zfMinterm Focus on the ‘1’ entries

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 26 Examples of Sum-Of-Minterms

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 27 Product-Of-Maxterms (POM) Canonical Form Truth Table x y zfMaxterm Product of Maxterm entries that evaluate to ‘0’ Focus on the ‘0’ entries

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 28 Examples of Product-Of-Maxterms

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 29 Conversions between Canonical Forms x y zfMintermsMaxterms To convert from one canonical form to another, interchange the symbols  and  and list those numbers missing from the original form. Truth Table

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 30 Function Complement x y zff' The complement of a function expressed by a Sum of Minterms is the Product of Maxterms with the same indices. Interchange the symbols  and , but keep the same list of indices. Truth Table

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 31 Summary of Minterms and Maxterms  There are 2 n Minterms and Maxterms for Boolean functions with n variables, indexed from 0 to 2 n – 1  Minterms correspond to the 1-entries of the function  Maxterms correspond to the 0-entries of the function  Any Boolean function can be expressed as a Sum-of-Minterms and as a Product-of-Maxterms  For a Boolean function, given the list of Minterm indices one can determine the list of Maxterms indices (and vice versa)  The complement of a Sum-of-Minterms is a Product-of-Maxterms with the same indices (and vice versa)

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 32 Sum-of-Products and Products-of-Sums

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 33 Two-Level Gate Implementation 3-input AND gate AND-OR implementations 3-input OR gate OR-AND implementations

Boolean Algebra and Logic GatesCOE 202 – Digital Logic Design© Muhamed Mudawar – slide 34 Two-Level vs. Three-Level Implementation 3-input OR gate