ECE 331 – Digital System Design

Slides:



Advertisements
Similar presentations
Logical Systems Synthesis.
Advertisements

ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
ECE 331 – Digital System Design
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Chapter 2: Boolean Algebra and Logic Functions
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Combinational Logic 1.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE 331 – Digital System Design
Combinational Circuits Part 1
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
De Morgan’s Theorem,.
Prof. Hsien-Hsin Sean Lee
Chapter 2: Boolean Algebra and Logic Functions
Digital Fundamentals Floyd Chapter 5 Tenth Edition
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Complement of a Function
CHAPTER 1 : INTRODUCTION
Boolean Algebra and Combinational Logic
Princess Sumaya University
Boolean Algebra – Part 1 ECEn 224.
Boolean Expressions Lecture No. 10.
Lecture 2-1 Boolean Algebra
Karnaugh Maps.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Modified from John Wakerly Lecture #2 and #3
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
BASIC & COMBINATIONAL LOGIC CIRCUIT
ECE 331 – Digital System Design
CSE 370 – Winter Combinational Logic - 1
Combinatorial Logic Circuit
CSC 220: Computer Organization Logic Gates and Functions
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Chapter 2 Introduction to Logic Circuits
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Lecture 5 Logistics Last lecture Today’s lecture
Logic Gates By Dr.Mazin Alzewary
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Analysis of Logic Circuits Example 1
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Laws & Rules of Boolean Algebra
Circuit Simplification and
ECE 331 – Digital System Design
Presentation transcript:

ECE 331 – Digital System Design Standard Forms for Boolean Expressions (Lecture #4)

Standard Forms for Boolean Expressions Sum-of-Products (SOP) Derived from the Truth table for a function by considering those rows for which F = 1. The logical sum (OR) of product (AND) terms. Realized using an AND-OR circuit. Product-of-Sums (POS) Derived from the Truth table for a function by considering those rows for which F = 0. The logical product (AND) of sum (OR) terms. Realized using an OR-AND circuit. ECE 331 - Digital System Design

Sum-of-Products (SOP) ECE 331 - Digital System Design

ECE 331 - Digital System Design Minterms A minterm, for a function of n variables, is a product term in which each of the n variables appears once. Each variable may appear in its complemented or uncomplemented form. For a given row in the Truth table, the corresponding minterm is formed by Including variable xi, if xi = 1 Including the complement of xi, if xi = 0 ECE 331 - Digital System Design

ECE 331 - Digital System Design Minterms ECE 331 - Digital System Design

ECE 331 - Digital System Design Sum-of-Products Any function F can be represented by a sum of minterms, where each minterm is ANDed with the corresponding value of the output for F. F = S (mi . fi) where mi is a minterm and fi is the corresponding functional output Only the minterms for which fi = 1 appear in the expression for function F. F = S (mi) = S m(i) Denotes the logical sum operation shorthand notation ECE 331 - Digital System Design

ECE 331 - Digital System Design Sum-of-Products The Canonical Sum-of-Products for function F is the Sum-of-Products expression in which each product term is a minterm. The expression is unique However, it is not necessarily the lowest-cost Synthesis process Determine the Canonical Sum-of-Products Use Boolean Algebra (and K-maps) to find an optimal, functionally equivalent, expression. ECE 331 - Digital System Design

ECE 331 - Digital System Design Sum-of-Products AND sum term f x 1 2 3 X3.X2' X3.X2' + X1.X3' X1.X3' OR AND product term Product Term = Logical ANDing of literals Sum Term = Logical ORing of product terms ECE 331 - Digital System Design

ECE 331 - Digital System Design Sum-of-Products Use the Distributive Laws to multiply out a Boolean expression. Results in the Sum-of-Products (SOP) form. F = (A + B).(C + D).(E) F = (A.C + A.D + B.C + B.D).(E) F = A.C.E + A.D.E + B.C.E + B.D.E Product terms are of single variables not in SOP form H = A.B.(C + D) + ABE ECE 331 - Digital System Design

Product-of-Sums (POS) ECE 331 - Digital System Design

ECE 331 - Digital System Design Maxterms A Maxterm, for a function of n variables, is a sum term in which each of the n variables appears once. Each variable may appear in its complemented or uncomplemented form. For a given row in the Truth table, the corresponding Maxterm is formed by Including the variable xi, if xi = 0 Including the complement of xi, if xi = 1 ECE 331 - Digital System Design

ECE 331 - Digital System Design Maxterms ECE 331 - Digital System Design

ECE 331 - Digital System Design Product-of-Sums Any function F can be represented by a product of Maxterms, where each Maxterm is ANDed with the complement of the corresponding value of the output for F. F = P (Mi . f 'i) where Mi is a Maxterm and f 'i is the complement of the corresponding functional output Only the Maxterms for which fi = 0 appear in the expression for function F. F = P (Mi) = P M(i) Denotes the logical product operation shorthand notation ECE 331 - Digital System Design

ECE 331 - Digital System Design Product-of-Sums The Canonical Product-of-Sums for function F is the Product-of-Sums expression in which each sum term is a Maxterm. The expression is unique However, it is not necessarily the lowest-cost Synthesis process Determine the Canonical Product-of-Sums Use Boolean Algebra (and K-maps) to find an optimal, functionally equivalent, expression. ECE 331 - Digital System Design

ECE 331 - Digital System Design Product-of-Sums OR product term f x 2 1 3 X1 + X3 (X1+X3) . (X2'+X3') X2' + X3' AND OR sum term Sum Term = Logical ORing of literals Product Term = Logical ANDing of sum terms ECE 331 - Digital System Design

ECE 331 - Digital System Design Product-of-Sums Use the Distributive Laws to factor a Boolean expression. Results in the Product-of-Sums (POS) form. F = V.W.Y + V.W.Z + V.X.Y + V.X.Z F = (V).(W.Y + W.Z + X.Y + X.Z) F = (V).(W + X).(Y + Z) Sum terms are of single variables not in POS form H = (A+B).(C+D+E) + CE ECE 331 - Digital System Design

ECE 331 - Digital System Design SOP and POS Any function F may be implemented as either a Sum- of-Products (SOP) expression or a Product-of-Sums (POS) expression. Both forms of the function F can be realized using logic gates that implement the basic logic operations. However, the two logic circuits realized for the function F do not necessarily have the same cost. Objective: minimize the cost of the designed circuit Compare the cost of the SOP realization with that of the POS realization ECE 331 - Digital System Design

Converting between SOP and POS The sum-of-products (SOP) form of a Boolean expression can be converted to its corresponding product-of-sums (POS) form by factoring the Boolean expression. The product-of-sums (POS) form of a Boolean expression can be converted to its corresponding sum-of-products (SOP) form by multiplying out the Boolean expression. ECE 331 - Digital System Design

ECE 331 - Digital System Design Dual The dual of a Boolean expression is formed by changing AND to OR, OR to AND, 0 to 1, and 1 to 0. Alternately, it can be determined by complementing the entire Boolean expression, and then complementing each of the literals. The SOP and POS are duals of one another. ECE 331 - Digital System Design

Logic Circuit Implementations ECE 331 - Digital System Design

ECE 331 - Digital System Design Logic Gates AND and OR Gates 2-input gates realized with 6 CMOS transistors 3-input gates realized with 8 CMOS transistors NAND and NOR Gates 2-input gates realized with 4 CMOS transistors 3-input gates realized with 6 CMOS transistors Therefore, it is more cost efficient to design logic circuits using NAND and NOR gates. ECE 331 - Digital System Design

“Redrawing” the NAND Gate bubble denotes inversion Inverter (NOT gate) x 1 x x 1 1 x x 2 2 x 2 (a) x x = x + x 1 2 1 2 Remember, this is an application of DeMorgan's Theorem ECE 331 - Digital System Design

“Redrawing” the NOR Gate bubble denotes inversion Inverter (NOT gate) x 1 x x 1 1 x x 2 x 2 2 (b) x + x = x x 1 2 1 2 Remember, this is an application of DeMorgan's Theorem ECE 331 - Digital System Design

ECE 331 - Digital System Design SOP using NAND Gates Converting from AND-OR to NAND-NAND Draw the AND-OR logic circuit for the SOP expression. Add bubbles (inversion) At the output of each AND gate At the corresponding inputs of the OR gate Two bubbles on the same signal cancel (A'' = A) All gates in the logic circuit are NAND gates Two different representations for the NAND gate 74xx08 Quad 2-input NAND Gate ECE 331 - Digital System Design

NAND Gate Realization of SOP x x 1 1 x x 2 2 x x 3 3 x x 4 4 x x 5 5 NAND gate F = X1.X2 + X3.X4.X5 x 1 x 2 SOP Expression x 3 x 4 x 5 ECE 331 - Digital System Design

ECE 331 - Digital System Design POS using NOR Gates Converting from OR-AND to NOR-NOR Draw the OR-AND logic circuit for the POS expression. Add bubbles (inversion) At the output of each OR gate At the corresponding inputs of the AND gate Two bubbles on the same signal cancel (A'' = A) All gates in the logic circuit are NOR gates Two different representations for the NOR gate 74xx02 Quad 2-input NOR Gate ECE 331 - Digital System Design

NOR Gate Realization of POS x x 1 1 x x 2 2 x x 3 3 x x 4 4 x x 5 5 NOR gate F = (X1+X2).(X3+X4+X5) x 1 x 2 POS Expression x 3 x 4 x 5 ECE 331 - Digital System Design

Implement the function f(x1, x2, x3) = S m(2,3,4,6,7) Example: Implement the function f(x1, x2, x3) = S m(2,3,4,6,7) using only NAND gates. ECE 331 - Digital System Design

ECE 331 - Digital System Design f (a) SOP implementation (b) NAND implementation x2 x3 x1 F = X2 + X1.X3' ECE 331 - Digital System Design

Implement the function f(x1, x2, x3) = S m(2,3,4,6,7) Example: Implement the function f(x1, x2, x3) = S m(2,3,4,6,7) using only NOR gates. ECE 331 - Digital System Design

ECE 331 - Digital System Design x1 f (a) POS implementation (b) NOR implementation x3 x2 F = (X1+X2).(X2+X3') ECE 331 - Digital System Design