Logical Systems Synthesis.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Sistemas Digitais I LESI - 2º ano Lesson 3 - Boolean Algebra U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Introduction to Logic Circuits
Types of Logic Circuits
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
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.
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.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
CSCE 211: Digital Logic Design
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Boolean Algebra and Logic Simplification. Boolean Addition & Multiplication Boolean Addition performed by OR gate Sum Term describes Boolean Addition.
Digital Logic Design Adil Waheed. BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION AND gate F = A.B OR gate F = A + B NOT gate F = A NAND gate F = A.B NOR gate.
Chapter 2: Boolean Algebra and Logic Functions
CHAPTER 2 Boolean Algebra
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
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.
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
CSI-2111 Computer Architecture Ipage Revision  Objective : To examine basic concepts of: –2.1 Numbering Systems –2.2 Binary Numbers –2.3 Boolean.
Combinational Logic 1.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Boolean Algebra AND gate A B | AB 0 0 | | | | 1 OR gate A B | A + B 0 0 | | | | 1 NOT gate _ A | A or A’ 0 | 1 1 |
Lecture 3. Combinational Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
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.
Module –I Switching Function
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
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.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Princess Sumaya University
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
ECE 331 – Digital System Design
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSE 370 – Winter Combinational Logic - 1
Combinatorial Logic Circuit
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
Analysis of Logic Circuits Example 1
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Presentation transcript:

Logical Systems Synthesis

Logical Synthesis

Basic Gate Synthesis f = a . b f = a + b f = a’

Basic Gate Synthesis f = (a . b)’ f = (a + b)’ f = a

Operator Precedence in Synthesis F = A + B . C Incorrect Correct

Operator Precedence in Synthesis F = (A + B) . C Correct Incorrect

An example of Step by Step Synthesis Single Output Circuits

F = A + (B’ + C)(D’ + BE’) Reducing it to a more abstract form P = BE’ M = B’ + C F = A + M(D’ + P) N = D’ + P F = A + MN Z = MN F = A + Z

F = A + Z

F = A + Z F = A + MN

F = A + Z F = A + MN F = A + M(D’ + P)

F = A + (B’ + C)(D’ + BE’)

F = A + (B’ + C)(D’ + BE’) F = A + (B’ + C)(D’ + BE’)

An example of Multi-Output Synthesis

Sharing Gates f = ab + a’c g = ab + a’c’ These are the common terms in both logic expressions, therefore, they can be used to as a common gate when synthesizing the complete digital system. f = ab + a’c g = ab + a’c’

Idea of sharing of Gates f = a’c + ab g = a’c’ + ab Circuits for f and g have a common product term (Implicant) namely ab. We are going to make it a common factor i.e. we are going to use the corresponding gate to drive both outputs f & g.

Symbols

From Digital Design, 5th Edition by M. Morris Mano and Michael Ciletti

Manipulation of Switching Functions Boolean Algebra Manipulation of Switching Functions Boolean/Logic/Switching Expression/Function

Boolean Functions Variables and constants take on only one of the two values : 0 or 1 There are three operators OR written as a + b AND written as a . b NOT written as a ’

Operator Precedence () ’ . + Sequence ’ . +

Examples s = ((x . y’ + x’ . y)’ . z) + ((x . y’ + x’ . y) . z’) c = (x . y’ + x’ . y) . z + x . y c = (((x . y’) + (x’ . y)) . z) + (x . y) f = ( a.b + a.c + b.c’)’ . (a + b + c) + a.b.c f = (((a.b) + (a.c) + (b.c’))’ . (a + b + c)) + (a.b.c)

A Theorem about Theorems Metatheorem A Theorem about Theorems Duality Any Theorem or Identity in Switching Algebra remains true if 0 & 1 are swapped and . & + are swapped throughout the expression Note: Duality does not imply logical equivalence. It only states that one fact leads to another fact.

1 + 1 = 1 0 + 0 = 0 0 + 1 = 1 + 0 = 1 x = 1 implies x’ = 0 Axioms / Postulates 0 . 0 = 0 1 . 1 = 1 0 . 1 = 1 . 0 = 0 x = 0 implies x’ = 1 1 + 1 = 1 0 + 0 = 0 0 + 1 = 1 + 0 = 1 x = 1 implies x’ = 0

Theorems (Single Variable) Null Elements Identities Idempotency Complements Involution x . 0 = 0 x . 1 = x x . x = x x . x’ = 0 (x’)’ = x x + 1 = 1 x + 0 = x x + x = x x + x’ = 1 (x’)’ = x

Theorems (2- & 3- Variable) Commutativity Associativity Distributivity Covering Combining x . y = y . x x . (y . z) = (x . y) . z x . (y + z) = x . y + x . z x + (x . y) = x (x . y) + (x . y’) = x x + y = y + x x + (y + z) = (x + y) + z x + (y . z) = (x + y) . (x + z) x . (x + y) = x (x + y) . (x + y’) = x

Theorems (2- & 3- Variable) DeMorgan’s Theorem Consensus Theorem (x . y)’ = x’ + y’ (x . y) + (x’ . z) + (y . z) = (x . y) + (x’ . z) (x + y)’ = x’ . y’ (x + y) . (x’ + z) . (y + z) = (x + y) . (x’ + z)

Theorems (n-Variable) Generalized Idempotency DeMorgan’s Theorem x . x . ----- . x = x (x1 . x2 . ----- . xn)’ = x1’ + x2’ + ----- + xn’ x + x + ----- + x = x (x1 + x2 + ----- + xn)’ = x1’ . x2’ . ----- . xn’

Theorems (n-Variable) Generalized DeMorgan’s Theorem [F(x1, x2, -----, xn, . , + )]’ = F(x1’, x2’, -----, xn’, + , . )

Implications of DeMorgan’s Theorem f = ( a . b )’ = a’ + b’ f = ( a + b )’ = a’ . b’

Implications of DeMorgan’s Theorem f = { [a . ( b’ + c ) ]’ }’ = { a’ + ( b’ + c )’ }’ = { a’ + b . c’ }’ f’ = a’ + ( b . c’ )

Function Manipulation Using Axioms and Theorems of Boolean Algebra

Proof of Consensus Theorem x.y + x’.z + y.z = x.y + x’.z x.y + x’.z + y.z = x.y + x’.z + y.z.1 = x.y + x’.z + y.z.(x + x’) = x.y + x’.z + x.y.z + x’.y.z = x.y + x.y.z + x’.z + x’.y.z = x.y.1 + x.y.z + x’.z.1 + x’.y.z = x.y.(1 + z) + x’.z.(1 + y) = x.y.1 + x’.z.1 = x.y + x’.z Theorem Used a = a.1 1 = a + a’ a.(b + c) = a.b + a.c a.b + a.c = a.(b + c) 1 + a = 1 a.1 = a

Find DeMorgan’s Equivalent of the Following

DeMorgan’s Equivalent F = ( ( B . E’ ) + D’ ) . ( B’ + C ) + A = { [ ( ( ( B . E’ ) + D’ ) . ( B’ + C ) ) + A ]’ }’ = { ( ( ( B . E’ ) + D’ ) . ( B’ + C) )’ . A’ }’ = { ( ( B . E’ ) + D’ )’ + ( B’ + C )’ . A’ }’ = { ( B . E’ )’ . D ) + ( B . C’ ) . A’ }’ = { ( B’ + E ) . D ) + ( B . C’ ) . A’ }’ = { ( ( B’ + E ) . D ) ) + ( ( B . C’ ) . A’ ) }’ F = { ( B’ + E ) . D ) + ( B . C’ ) . A’ }’ F’ = ( B’ + E ) . D ) + ( B . C’ ) . A’

DeMorgan’s Equivalent F = ( ( B . E’ ) + D’ ) . ( B’ + C ) + A

DeMorgan’s Equivalent F’ = ( B’ + E ) . D ) + ( B . C’ ) . A’

Using DeMorgan’s Theorem NAND NOR Inter-Conversion A circuit developed using NAND gates only can be converted into a circuit employing only NOR gates by directly replacing the NAND gates with the NOR gates and inverting all the inputs and outputs of the circuit The Converse of this operation is also true

F = ((((B.E’)’ . D)’ . (B.C’)’)’ . A’)’

F’ = ((((B’ + E)’ + D’)’ + (B’ + C)’)’ + A)’

Using DeMorgan’s Theorem Proof by Example Using DeMorgan’s Theorem F = ((((B.E’)’ . D)’ . (B.C’)’)’ . A’)’ = ((((B’ + E) . D)’ . (B’ + C))’ . A’)’ = ((((B’ + E)’ + D’) . (B’ + C))’ . A’)’ = ((((B’ + E)’ + D’)’ + (B’ + C)’) . A’)’ = ((((B’ + E)’ + D’)’ + (B’ + C)’)’ + A) F’ = ((((B’ + E)’ + D’)’ + (B’ + C)’)’ + A)’

Can also be written in the following notation F = A + (B’ + C) . (D’ + B.E’) Can also be written in the following notation F = A + (B’ + C)(D’ + BE’)

Forms of Logic Expressions

Generalized Forms of Logic Expressions SOP Sum of Products POS Product of Sums

Terminology Literal Sum Term Product Term Product of Sums Sum of Products

Definitions Literal Sum Term Product Term A variable in either it’s complemented or uncomplemented form Sum Term One or more Literals connected by an OR operator Product Term One or more Literals connected by an AND operator

Definitions Product of Sums Sum of Products One or more Sum Terms connected by an AND operator Sum of Products One or more Product Terms connected by an OR operator

SOP Expression

POS Expression

(A + C)(B + D’)(B’+C)(A + D’ + E) More SOP Expressions ABC + A’BC’ AB + A’BC’ + C’D’ + D A’B + CD’ + EF + GK + HL’ More POS Expressions (A + B’ + C)(A + C) (A + B’)(A’ + C’ + D)F’ (A + C)(B + D’)(B’+C)(A + D’ + E)

Not an SOP or POS Expression s = (((x . y’) + (x’ . y))’ . z) + (((x . y’) + (x’ . y)) . z’) c = (((x . y’) + (x’ . y)) . z) + (x . y) f = (((a.b) + (a.c) + (b.c’))’ . (a + b + c)) + (a.b.c) nr = ((((b’ + e)’ + d’)’ + (b’ + c)’)’ + a)’ nd = ((((b.e’)’ . d)’ . (b.c’)’)’ . a’)’

Canonical Forms of Logic Expressions C-SOP Sum of Standard Product Terms aka Canonical Sum C-POS Product of Standard Sum Terms aka Canonical Product

More Terminology Minterm Maxterm Canonical Sum Canonical Product

Definitions Minterm aka Standard Product Term A Product Term composed of all the variables of the given problem Maxterm aka Standard Sum Term A Sum Term composed of all the variables of the given problem

Definitions Canonical Sum Canonical Product One or more Minterms connected by an OR operator Canonical Product One or more Maxterms connected by an AND operator

C-SOP Expression

C-POS Expression

Writing Algebraic Expressions From Truth Tables

Decomposing into Minterms Implementing 1’s OR =

OR = OR = a.b’ + a’.b = f m2 + m1 = f

Minterms Notation

Expressions involving Minterms

Decomposing into Maxterms Implementing 0’s AND =

AND = AND = ( a + b’ ) ( a’ + b ) = f M1 . M2 = f

Maxterms Notation

Expressions involving Maxterms

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = ? Using Maxterms f = ?

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = m2 + m5 + m6 Using Maxterms f = M0 . M1 . M3 . M4 . M7

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = m2 + m5 + m6 f’ = ? Using Maxterms f = M0 . M1 . M3 . M4 . M7 f’ = ?

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = m2 + m5 + m6 f’ = m0 + m1 + m3 + m4 + m7 Using Maxterms f = M0 . M1 . M3 . M4 . M7 f’ = M2 . M5 . M6

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = m2 + m5 + m6 f’ = m0 + m1 + m3 + m4 + m7 Using Maxterms f = M0 . M1 . M3 . M4 . M7 f’ = M2 . M5 . M6 Alternative Notation f = ∑ (2, 5, 6) = ∏ (0, 1, 3, 4, 7) f’ = ∏ (2, 5, 6) = ∑ (0, 1, 3, 4, 7)

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = ? f’ = ? Using Maxterms f = ? f’ = ?

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table Using Minterms f = m1 + m5 + m6 + m8 + m9 + m10 + m14 + m15 f’ = m0 + m2 + m3 + m4 + m7 + m11 + m12 + m13 Using Maxterms f = M0 . M2 . M3 . M4 . M7 . M11 . M12 . M13 f’ = M1 . M5 . M6 . M8 . M9 . M10 . M14 . M15

Write Expressions using Minterm/Maxterm Terminology for the following Truth Table

Can you intuitively establish a relationship within the following set of results? f = m2 + m5 + m6 f’ = m0 + m1 + m3 + m4 + m7 f = M0 . M1 . M3 . M4 . M7 f’ = M2 . M5 . M6 f = m1 + m5 + m6 + m8 + m9 + m10 + m14 + m15 f’ = m0 + m2 + m3 + m4 + m7 + m11 + m12 + m13 f = M0 . M2 . M3 . M4 . M7 . M11 . M12 . M13 f’ = M1 . M5 . M6 . M8 . M9 . M10 . M14 . M15

Relationship between Minterms and Maxterms f = m0 + m3 f = x’ y’ + x y = ( x’ x + y’ x ) ( x’ y + y’ y ) = ( x y’ ) ( x’ y ) f’ = [ (x y’) (x’ y) ]’ = x’ y + x y’ = m1 + m2 f’ = m1 + m2 f = m0 + m3 f = x’ y’ + x y f’ = ( x’ y’ + x y )’ = ( x’ . y’ )’ ( x . y )’ = ( x + y ) ( x’ + y’ ) f’ = ( x + y ) ( x’ + y’ ) = M0 . M3 f’ = M0 . M3 f’ = m1 + m2 = x’ y + x y’ f = ( x’ y + x y’ )’ = ( x’ y )’ ( x y’ )’ = ( x + y’ ) ( x’ + y) = M1 . M2 f = M1 . M2

Note : Observe the Duality inherent in this Generalization To implement a function we can use the logic 1’s in the output to obtain a Minterms’ SOP or use the logic 0’s to obtain a Maxterms’ POS F(x1, x2, …. , xn) = ∑mR = ∏MS [F(x1, x2, …. , xn)]’ = ∑mS = ∏MR Where, T = {Set of all indices} = {0 to 2n - 1} R = {Set of indices of required to implement C-SOP of F(x1, x2, …., xn)} S = T – R Note : Observe the Duality inherent in this Generalization

Use Boolean Algebra to establish the relationship between the following set of Expressions f = m2 + m5 + m6 f’ = m0 + m1 + m3 + m4 + m7 f = M0 . M1 . M3 . M4 . M7 f’ = M2 . M5 . M6 f = m1 + m5 + m6 + m8 + m9 + m10 + m14 + m15 f’ = m0 + m2 + m3 + m4 + m7 + m11 + m12 + m13 f = M0 . M2 . M3 . M4 . M7 . M11 . M12 . M13 f’ = M1 . M5 . M6 . M8 . M9 . M10 . M14 . M15

Converting SOP to POS f = x y + x’ z (SOP Form) Using Distributive Law f = ( x y + x’ ) (x y + z) f = ( x + x’ ) ( y + x’ ) ( x + z ) ( y + z ) f = ( y + x’ ) ( x + z ) ( y + z ) f = ( y + x’ ) ( x + z ) ( y + z ) (POS Form)

Converting POS to SOP f = ( x + y ) ( x’ + z ) (POS Form) Using Distributive Law f = ( x + y ) ( x’ + z ) f = x ( x’ + z ) + y ( x’ + z ) f = x x’ + x z + y x’ + y z f = x z + y x’ + y z f = x z + y x’ + y z (SOP Form) Note : To obtain the expression f = x y + x’ z as in the previous slide apply Consensus Theorem

Converting SOP to C-SOP F = A + B’C (SOP Form) Expanding both terms separately using {x = x . 1} & {1 = (x + x’)} A = A (B + B’) = AB + AB’ = AB (C + C’) + AB’ (C + C’) A = ABC + ABC’ + AB’C + AB’C’ B’C = B’C (A + A’) = AB’C + A’B’C Combining the expressions F = ABC + ABC’ + AB’C + AB’C’ + AB’C + A’B’C = ABC + ABC’ + AB’C + AB’C + AB’C’ + A’B’C Using {x + x = x} F = ABC + ABC’ + AB’C + AB’C’ + A’B’C F = ABC + ABC’ + AB’C + AB’C’ + A’B’C (C-SOP Form)

Converting POS to C-POS f = ( x’ + y ) ( x + z ) ( y + z ) (POS Form) Expanding the three terms separately using {x = x + 0} & {0 = x x’} ( x’ + y ) = x’ + y + z z’ = ( x’ + y + z ) ( x’ + y + z’ ) ( x + z ) = x + z + y y’ = ( x + z + y ) ( x + z + y’ ) = ( x + y + z ) ( x + y’ + z ) ( y + z ) = y + z + x x’ = ( y + z + x ) ( y + z + x’ ) = ( x + y + z ) ( x’ + y + z ) Combining the expressions f = ( x’ + y + z ) ( x’ + y + z’ ) ( x + y + z ) ( x + y’ + z ) ( x + y + z ) ( x’ + y + z ) f = ( x’ + y + z ) ( x’ + y + z ) ( x + y + z ) ( x + y + z ) ( x’ + y + z’ ) ( x + y’ + z ) Using {x . x = x} f = ( x’ + y + z’ ) ( x + y + z ) ( x’ + y + z’ ) ( x + y’ + z ) f = ( x’ + y + z’ ) ( x + y + z ) ( x’ + y + z’ ) ( x + y’ + z ) (C-POS Form)