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

Similar documents
Standard & Canonical Forms

Digital Logic Design. Combinational Logic

Chapter 2: Boolean Algebra and Logic Gates

Standard Expression Forms

EC-121 Digital Logic Design

Chap 2. Combinational Logic Circuits

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

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

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

Chapter 2 Boolean Algebra and Logic Gates

CHAPTER III BOOLEAN ALGEBRA

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

Chapter 2 Boolean Algebra and Logic Gates

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

CHAPTER III BOOLEAN ALGEBRA

Digital Circuit And Logic Design I. Lecture 3

Chapter 2: Switching Algebra and Logic Circuits

Chapter 2. Boolean Algebra and Logic Gates

CHAPTER 2 BOOLEAN ALGEBRA

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

This form sometimes used in logic circuit, example:

Chapter 2 : Boolean Algebra and Logic Gates

Chapter 2 Combinational Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

MC9211 Computer Organization

Chapter-2 BOOLEAN ALGEBRA

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Boolean Algebra and Logic Gates

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

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Chapter 2 Boolean Algebra and Logic Gates

Signals and Systems Digital Logic System

Chapter 2 Combinational Logic Circuits

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

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

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

Logic Design. Chapter 2: Introduction to Logic Circuits

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

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

Unit 2 Session - 6 Combinational Logic Circuits

Unit 2 Boolean Algebra

Number System conversions

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

Logic Design Combinational Circuits. Digital Computer Design

Computer Organization I

Contents. Chapter 2 Digital Circuits Page 1 of 30

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

CHAPTER1: Digital Logic Circuits Combination Circuits

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

Chapter 2 Combinational Logic Circuits

Combinational Logic Circuits Part II -Theoretical Foundations

EEE130 Digital Electronics I Lecture #4

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

Lecture 2 Review on Digital Logic (Part 1)

Week-I. Combinational Logic & Circuits

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

Midterm1 Review. Jan 24 Armita

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

BOOLEAN ALGEBRA TRUTH TABLE

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

Combinational Logic Design Principles

Binary Logic and Gates

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

Lecture 21: Boolean Logic. To Wrap up AVR

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Boolean Algebra and Logic Simplification

Boolean Algebra & Logic Gates. By : Ali Mustafa

Standard & Canonical Forms

Chapter 2 Combinational

Minimization techniques

Logic Gate Level. Part 2

ELCT201: DIGITAL LOGIC DESIGN

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

Boolean Algebra. Examples: (B=set of all propositions, or, and, not, T, F) (B=2 A, U,, c, Φ,A)

Digital Design. Digital Design

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

Exclusive OR/ Exclusive NOR

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Unit 2 Boolean Algebra

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

CS 226: Digital Logic Design

Combinational Logic Fundamentals

UNIT 3 BOOLEAN ALGEBRA (CONT D)

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

Chapter 3. Boolean Algebra. (continued)

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

Digital Logic Design. Malik Najmus Siraj

DIGITAL ELECTRONICS & it0203 Semester 3

Digital electronics form a class of circuitry where the ability of the electronics to process data is the primary focus.

Circuits & Boolean algebra.

Combinational Logic Design

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

Boolean Algebra, Gates and Circuits

CPE100: Digital Logic Design I

ELC224C. Karnaugh Maps

WEEK 2.1 BOOLEAN ALGEBRA

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

Chapter 2 Combinational Logic Circuits

Transcription:

COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: 22-324

Objectives Minterms and Maxterms From truth table to Boolean expression Sum of minterms Product of Maxterms. Standard and Canonical Forms Implementation of Standard Forms Practical Aspects of Logic Gates

Minterms A product term is a term where literals are ANDed. Example: x y, xz, xyz, A minterm is a product term in which all variables appear exactly once, in normal or complemented form Example: F(x,y,z) has 8 minterms: x y z, x y z, x yz,... In general, a function with n variables has 2 n minterms A minterm equals 1 at exactly one input combination and is equal to 0 otherwize Example: x y z = 1 only when x=0, y=0, z=0 A minterm is denoted as m i where i corresponds the input combination at which this minterm is equal to 1

Minterms Src: Mano s book Variable complemented if 0 Variable uncomplemented if 1 m i indicated the i th minterm i indicates the binary combination m i is equal to 1 for ONLY THAT combination

Maxterms A sum term is a term where literals are ORed. Example: x +y, x+z, x+y+z, A maxterm is a sum term in which all variables appear exactly once, in normal or complemented form Example: F(x,y,z) has 8 maxterms: (x+y+z), (x+y+z ), (x+y +z),... In general, a function with n variables has 2 n maxterms A maxterm equals 0 at exactly one input combination and is equal to 1 otherwize Example: (x+y+z) = 0 only when x=0, y=0, z=0 A maxterm is denoted as M i where i corresponds the input combination at which this maxterm is equal to 0

Maxterms Src: Mano s book Variable complemented if 1 Variable not complemented if 0 M i indicated the i th maxterm i indicates the binary combination M i is equal to 0 for ONLY THAT combination

Minterms and Maxterms In general, a function of n variables has 2 n minterms: m 0, m 1,, m 2 n -1 2 n maxterms: M 0, M 1,, M 2 n -1 Minterms and maxterms are the complement of each other! Example: F(X,Y): m 2 = XY m 2 = X +Y = M 2

Expressing Functions with Minterms A Boolean function can be expressed algebraically from a give truth table by forming the logical sum (OR) of ALL the minterms that produce 1 in the function Example: Consider the function defined by the truth table F(X,Y,Z) = X Y Z + X YZ + XY Z + XYZ = m 0 + m 2 + m 5 + m 7 = Sm(0,2,5,7) X Y Z m F 0 0 0 m 0 1 0 0 1 m 1 0 0 1 0 m 2 1 0 1 1 m 3 0 1 0 0 m 4 0 1 0 1 m 5 1 1 1 0 m 6 0 1 1 1 m 7 1

Expressing Functions with Maxterms A Boolean function can be expressed algebraically from a give truth table by forming the logical product (AND) of ALL the maxterms that produce 0 in the function Example: Consider the function defined by the truth table F(X,Y,Z) = M(1,3,4,6) X Y Z M F F 0 0 0 M 0 1 0 0 0 1 M 1 0 1 0 1 0 M 2 1 0 0 1 1 M 3 0 1 1 0 0 M4 0 1 1 0 1 M 5 1 0 1 1 0 M 6 0 1 1 1 1 M 7 1 0 Applying DeMorgan F = m 1 + m 3 + m 4 + m 6 = Sm(1,3,4,6) F = F = [m 1 + m 3 + m 4 + m 6 ] = m 1.m 3.m 4.m 6 = M 1.M 3.M 4.M 6 = M(1,3,4,6) Note the indices in this list are those that are missing from the previous list in Sm(0,2,5,7)

Sum of Minterms vs Product of Maxterms A Boolean function can be expressed algebraically as: The sum of minterms The product of maxterms Given the truth table, writing F as m i for all minterms that produce 1 in the table, or M i for all maxterms that produce 0 in the table Minterms and Maxterms are complement of each other.

Example Write E = Y + X Z in the form of Sm i and M i? Solution: Method1 First construct the Truth Table as shown Second: E = Sm(0,1,2,4,5), and E = M(3,6,7) X Y Z m M E 0 0 0 m 0 M 0 1 0 0 1 m 1 M 1 1 0 1 0 m 2 M 2 1 0 1 1 m 3 M 3 0 1 0 0 m 4 M4 1 1 0 1 m 5 M 5 1 1 1 0 m 6 M 6 0 1 1 1 m 7 M 7 0

Example (Cont.) Solution: Method2_a E = Y + X Z = Y (X+X )(Z+Z ) + X Z (Y+Y ) = (XY +X Y )(Z+Z ) + X YZ +X Z Y = XY Z+X Y Z+XY Z +X Y Z + X YZ +X Z Y = m 5 + m 1 + m 4 + m 0 + m 2 + m 0 = m 0 + m 1 + m 2 + m 4 + m 5 = Sm(0,1,2,4,5) To find the form Mi, consider the remaining indices E = M(3,6,7) Solution: Method2_b E = Y + X Z E = Y(X+Z) = YX + YZ = YX(Z+Z ) + YZ(X+X ) = XYZ+XYZ +X YZ E = (X +Y +Z )(X +Y +Z)(X+Y +Z ) = M 7. M 6. M 3 = M(3,6,7) To find the form Sm i, consider the remaining indices E = Sm(0,1,2,4,5)

Example Question: F (a,b,c,d) = m(0,1,2,4,5,7), What are the minterms and maxterms of F and and its complement F? Solution: F has 4 variables; 24 possible minterms/maxterms F (a,b,c,d) = m(0,1,2,4,5,7) = Π M(3,6,8,9,10,11,12,13,14,15) F (a,b,c,d) = m(3,6,8,9,10,11,12,13,14,15) = Π M(0,1,2,4,5,7)

Example Question: F (a,b,c,d) = m(0,1,2,4,5,7), What are the minterms and maxterms of F and and its complement F? Solution: F has 4 variables; 2 4 = 16 possible minterms/maxterms F (a,b,c,d) = m(0,1,2,4,5,7) = Π M(3,6,8,9,10,11,12,13,14,15) F (a,b,c,d) = m(3,6,8,9,10,11,12,13,14,15) = Π M(0,1,2,4,5,7)

Canonical Forms The sum of minterms and the product of maxterms forms are known as the canonical forms القانونية) (الصيغ of a function.

Standard Forms Sum of Products (SOP) and Product of Sums (POS) are also standard forms AB+CD = (A+C)(B+C)(A+D)(B+D) The sum of minterms is a special case of the SOP form, where all product terms are minterms The product of maxterms is a special case of the POS form, where all sum terms are maxterms

SOP and POS Conversion SOP POS POS SOP F = AB + CD = (AB+C)(AB+D) = (A+C)(B+C)(AB+D) = (A+C)(B+C)(A+D)(B+D) Hint 1: Use id15: X+YZ=(X+Y)(X+Z) Hint 2: Factor F = (A +B)(A +C)(C+D) = (A +BC)(C+D) = A C+A D+BCC+BCD = A C+A D+BC+BCD = A C+A D+BC Hint 1: Use id15 (X+Y)(X+Z)=X+YZ Hint 2: Multiply

SOP and POS Conversion SOP POS POS SOP F = AB + CD = (AB+C)(AB+D) = (A+C)(B+C)(AB+D) = (A+C)(B+C)(A+D)(B+D) Hint 1: Use id15: X+YZ=(X+Y)(X+Z) Hint 2: Factor F = (A +B)(A +C)(C+D) = (A +BC)(C+D) = A C+A D+BCC+BCD = A C+A D+BC+BCD = A C+A D+BC Hint 1: Use id15 (X+Y)(X+Z)=X+YZ Hint 2: Multiply Question1: How to convert SOP to sum of minterms? Question2: How to convert POS to product of maxterms?

Implementation of SOP Any SOP expression can be implemented using 2- levels of gates The 1 st level consists of AND gates, and the 2 nd level consists of a single OR gate Also called 2-level Circuit

Implementation of POS Any POS expression can be implemented using 2- levels of gates The 1 st level consists of OR gates, and the 2 nd level consists of a single AND gate Also called 2-level Circuit

Implementation of SOP Consider F = AB + C(D+E) This expression is NOT in the sum-of-products form Use the identities/algebraic manipulation to convert to a standard form (sum of products), as in F = AB + CD + CE Logic Diagrams: A B C F A B C D F D E 3-level circuit C E 2-level circuit

Practical Aspects of Logic Gates Logic gates are built with transistors as integrated circuits (IC) or chips. ICs are digital devices built using various technologies. Complementary metal oxide semiconductor (CMOS) technology Level s of Integration: Small Scale Integrated (SSI) < 10 gates Medium Scale Integrated (MSI) < 100 gates Large Scale Integrated (LSI) < 1000 gates Very Large Scale Integrated (VLSI) < 10 6 gates NOT gate

Practical Aspects of Logic Gates Key characteristics of ICs are: Voltages ranges Noise Margin Gate propagation delay/speed Fan-in and Fan-out Buffers Tri-state Gates NOT gate

Voltage Levels Logic values of 0 & 1 corresponds to voltage level A range of voltage defines logic 0 and logic 1. Any value outside this range is invalid. Illegal +5V Voltage Range +0V

Noise Margins Vcc 1 Logic Level 5.0 V Guaranteed Output Levels Forbidden Forbidden Region 0 Logic Level 1-Level Noise Margin Accepted Input Levels 0-Level Noise Margin

Propagation Delay Propagation delay (t pd ) is the time for a change in the input of a gate to propagate to the output High-to-low (t phl ) and low-to-high (t plh ) output signal changes may have different propagation delays t pd = max {t phl, t phl ) A circuit is considered to be fast, if its propagation delay is less (ideally as close to 0 as possible) Delay is usually measured between the 50% levels of the signal

Timing Diagram The timing diagram shows the input and output signals in the form of a waveform It also shows delays Inputs X Y Propagation Delay of the Circuit = τ Output Z Timing Diagram for an AND gate Time

Fanin Fan in of a gate is the number of inputs to the gate A 3-input OR gate has a fanin = 3 There is a limitation on the fanin Larger fanin generally implies slower gates (higher propagation delays) Fanin = 4 Fanin = 1 Fanin =?

Fanout Fan out of a gate is the number of gates that it can drive The driven gate is called a load Fan out is limited due to Current in TTL Propagation delays in CMOS driving gate (driver) load gates (load) Fanout = 3

Fanout Driving more gates than maximum fanout Use high drive buffers Use multiple drivers

Tristate Gates Gates with 3 output values 0, 1, Hi-Z Hi-Z behaves like an open circuit. E X Z 1 0 1 1 1 0 0 0 High Z 0 1 High Z

Tristate Gates Q: Can we connect the outputs of two gates?

Tristate Gates Q: Can we connect the outputs of two gates?

Tristate Gates Q: Can we connect the outputs of two gates? Two or more tri-state outputs may be connected provided that only one of these outputs is enabled while all others are in the Hi-Z state.