Module –I Switching Function

Slides:



Advertisements
Similar presentations
Logical Systems Synthesis.
Advertisements

Chapter 2 Logic Circuits.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 4 Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering Faculty.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 Part 3.
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.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Boolean Function Boolean function is an expression form containing binary variable, two-operator binary which.
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.
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
9/15/09 - L6 Standard FormsCopyright Joanne DeGroat, ECE, OSU1 Standard Forms.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
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.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Department of Computer Engineering
Combinational Logic 1.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Overview Part 1 – Gate Circuits and Boolean Equations
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
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.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
ece Parity Used to check for errors Can be either ODD or EVEN Left most bit used as the indicator For EVEN, insert a 0 or a 1 so as to make the.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
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.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Fundamentals of digital electronics Prepared by - Anuradha Tandon Assistant Professor, Instrumentation & Control Engineering Branch, IT, NU.
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,
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.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 2 Part 3 Tom Kaminski & Charles.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 1.
Review. Boolean Algebra.
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.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
DE MORGAN’S THEOREM. De Morgan’s Theorem De Morgan’s Theorem.
DeMorgan’s Theorem DeMorgan’s 2 nd Theorem The complement of a sum of variables is equal to the product of the complemented variables. A + B = A. B Applying.
CSE 260 BRAC University.
Canonical Forms BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Complement of a Function
Princess Sumaya University
Boolean Algebra.
Boolean Algebra.
Chapter 2 Boolean Algebra and Logic Gate
Combinatorial Logic Circuit
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
Digital Logic Chapter-2
Digital Logic Chapter-2
Analysis of Logic Circuits Example 1
Presentation transcript:

Module –I Switching Function Digital Design Module –I Switching Function Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida

Switching function Canonical and standard form Pos and sop form Outline Switching function Canonical and standard form Pos and sop form

Boolean Functions A Boolean function consists of an algebraic expression formed with binary variables, the constants 0 and 1, the logic operation symbols, parenthesis, and an equal sign. Example: F(X,Y,Z) = X + Y’ Z or F = X + Y’ Z X, Y and Z are Boolean variables A literal: The appearance of a variable or its complement in a Boolean expression A Boolean function can be represented with a truth table A Boolean function can be represented with a logic circuit diagram composed of logic gates.

Switching Functions Switching algebra: Boolean algebra with the set of elements K = {0, 1} If there are n variables, we can define switching functions. Sixteen functions of two variables A switching function can be represented by a table as above, or by a switching expression as follows: f0(A,B)= 0, f6(A,B) = AB' + A'B, f11(A,B) = AB + A'B + A'B' = A' + B, ... Value of a function can be obtained by plugging in the values of all variables: The value of f6 when A = 1 and B = 0 is: = 0 + 1 = 1.

Truth Tables Shows the value of a function for all possible input combinations. Truth tables for OR, AND, and NOT

Truth Tables Truth tables for f(A,B,C) = AB + A'C + AC'

Canonical Forms Minterms and Maxterms Sum-of-Minterm (SOM) Canonical Form Product-of-Maxterm (POM) Canonical Form Representation of Complements of Functions Conversions between Representations

Minterms Minterms are AND terms with every variable present in either true or complemented form. Given that each binary variable may appear normal (e.g., x) or complemented (e.g., ), there are 2n minterms for n variables. Example: Two variables (X and Y) produce 2 x 2 = 4 combinations: (both normal) (X normal, Y complemented) (X complemented, Y normal) (both complemented) Thus there are four minterms of two variables. x Y X XY X Y

Maxterms Maxterms are OR terms with every variable in true or complemented form. Given that each binary variable may appear normal (e.g., x) or complemented (e.g., x), there are 2n maxterms for n variables. Example: Two variables (X and Y) produce 2 x 2 = 4 combinations: (both normal) (x normal, y complemented) (x complemented, y normal) (both complemented) Y X +

Minterms & Maxterms for 2 variables Two variable minterms and maxterms. The minterm mi should evaluate to 1 for each combination of x and y. The maxterm is the complement of the minterm x y Index Minterm Maxterm m0 = x y M0 = x + y 1 m1 = x y M1 = x + y 2 m2 = x y M2 = x + y 3 m3 = x y M3 = x + y

Minterms & Maxterms for 3 variables M3 = x + y + z m3 = x y z 3 1 M4 = x + y + z m4 = x y z 4 M5 = x + y + z m5 = x y z 5 M6 = x + y + z m6 = x y z 6 y x z M7 = x + y + z m7 = x y z 7 M2 = x + y + z m2 = x y z 2 M1 = x + y + z m1 = x y z M0 = x + y + z m0 = x y z Maxterm Minterm Index Maxterm Mi is the complement of minterm mi Mi = mi and mi = Mi

Purpose of the Index Minterms and Maxterms are designated with an index The index number corresponds to a binary pattern 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” and ‘0’ means the variable is “Complemented”. For Maxterms: ‘0’ means the variable is “Not Complemented” and ‘1’ means the variable is “Complemented”.

Standard Order All variables should be present in a minterm or maxterm and should be listed in the same order (usually alphabetically) Example: For variables a, b, c: Maxterms (a + b + c), (a + b + c) are in standard order However, (b + a + c) is NOT in standard order (a + c) does NOT contain all variables Minterms (a b c) and (a b c) are in standard order However, (b a c) is not in standard order (a c) does not contain all variables

F = m1 + m6 + m7 = ∑ (1, 6, 7) = x y z + x y z + x y z Sum-Of-Minterm (SOM) Sum-Of-Minterm (SOM) canonical form: Sum of minterms of entries that evaluate to ‘1’ x y z F Minterm 1 m1 = x y z m6 = x y z m7 = x y z Focus on the ‘1’ entries F = m1 + m6 + m7 = ∑ (1, 6, 7) = x y z + x y z + x y z

Sum-Of-Minterm Examples F(a, b, c, d) = ∑(2, 3, 6, 10, 11) F(a, b, c, d) = m2 + m3 + m6 + m10 + m11 G(a, b, c, d) = ∑(0, 1, 12, 15) G(a, b, c, d) = m0 + m1 + m12 + m15 a b c d + a b c d + a b c d + a b c d + a b c d F(A,B,C,D,E) = A’B’C’DE’ + A’BC’D’E + AB’C’D’E + AB’CDE a b c d + a b c d + a b c d + a b c d

Product-Of-Maxterm (POM) Product-Of-Maxterm (POM) canonical form: Product of maxterms of entries that evaluate to ‘0’ x y z F Maxterm 1 M2 = (x + y + z) M4 = (x + y + z) M6 = (x + y + z) Focus on the ‘0’ entries F = M2·M4·M6 = ∏ (2, 4, 6) = (x+y+z) (x+y+z) (x+y+z)

Product-Of-Maxterm Examples F(a, b, c, d) = ∏(1, 3, 6, 11) F(a, b, c, d) = M1 · M3 · M6 · M11 G(a, b, c, d) = ∏(0, 4, 12, 15) G(a, b, c, d) = M0 · M4 · M12 · M15 (a+b+c+d) (a+b+c+d) (a+b+c+d) (a+b+c+d) F(A,B,C,D,E) = A’B’C’DE’ + A’BC’D’E + AB’C’D’E + AB’CDE (a+b+c+d) (a+b+c+d) (a+b+c+d) (a+b+c+d)

Observations We can implement any function by "ORing" the minterms corresponding to the ‘1’ entries in the function table. A minterm evaluates to ‘1’ for its corresponding entry. We can implement any function by "ANDing" the maxterms corresponding to ‘0’ entries in the function table. A maxterm evaluates to ‘0’ for its corresponding entry. The same Boolean function can be expressed in two canonical ways: Sum-of-Minterms (SOM) and Product-of-Maxterms (POM). If a Boolean function has fewer ‘1’ entries then the SOM canonical form will contain fewer literals than POM. However, if it has fewer ‘0’ entries then the POM form will have fewer literals than SOM.

Converting to Sum-of-Minterms Form A function that is not in the Sum-of-Minterms form can be converted to that form by means of a truth table Consider F = y + x z x y z F Minterm 1 m0 = x y z m1 = x y z m2 = x y z m4 = x y z m5 = x y z F = ∑(0, 1, 2, 4, 5) = m0 + m1 + m2 + m4 + m5 = x y z + x y z + x y z + x y z + x y z

Converting to Product-of-Maxterms Form A function that is not in the Product-of-Minterms form can be converted to that form by means of a truth table Consider again: F = y + x z x y z F Minterm 1 M3 = (x+y+z) M6 = (x+y+z) M7 = (x+y+z) F = ∏(3, 6, 7) = M3 · M6 · M7 = (x+y+z) (x+y+z) (x+y+z)

Conversions Between Canonical Forms x y z F Minterm Maxterm M0 = (x + y + z) 1 m1 = x y z m2 = x y z m3 = x y z M4 = (x + y + z) m5 = x y z M6 = (x + y + z) m7 = x y z F = m1+m2+m3+m5+m7 = ∑(1, 2, 3, 5, 7) = x y z + x y z + x y z + x y z + x y z F = M0 · M4 · M6 = ∏(0, 4, 6) = (x+y+z)(x+y+z)(x+y+z)

Algebraic Conversion to Sum-of-Minterms Expand all terms first to explicitly list all minterms AND any term missing a variable v with (v + v) Example 1: f = x + x y (2 variables) f = x (y + y) + x y f = x y + x y + x y f = m3 + m2 + m0 = ∑(0, 2, 3) Example 2: g = a + b c (3 variables) g = a (b + b)(c + c) + (a + a) b c g = a b c + a b c + a b c + a b c + a b c + a b c g = a b c + a b c + a b c + a b c + a b c g = m1 + m4 + m5 + m6 + m7 = ∑ (1, 4, 5, 6, 7)

Algebraic Conversion to Product-of-Maxterms Expand all terms first to explicitly list all maxterms OR any term missing a variable v with v · v Example 1: f = x + x y (2 variables) Apply 2nd distributive law: f = (x + x) (x + y) = 1 · (x + y) = (x + y) = M1 Example 2: g = a c + b c + a b (3 variables) g = (a c + b c + a) (a c + b c + b) (distributive) g = (c + b c + a) (a c + c + b) (x + x y = x + y) g = (c + b + a) (a + c + b) (x + x y = x + y) g = (a + b + c) (a + b + c) = M5 . M2 = ∏ (2, 5)

Function Complements F(x, y, z) = ∑ (0, 2, 4, 6) The complement of a function expressed as a sum of minterms is constructed by selecting the minterms missing in the sum-of-minterms canonical form Alternatively, the complement of a function expressed by a Sum of Minterms form is simply the Product of Maxterms with the same indices Example: Given F(x, y, z) = ∑ (1, 3, 5, 7) F(x, y, z) = ∑ (0, 2, 4, 6) F(x, y, z) = ∏ (1, 3, 5, 7)

Summary of Minterms and Maxterms There are 2n minterms and maxterms for Boolean functions with n variables. Minterms and maxterms are indexed from 0 to 2n – 1 Any Boolean function can be expressed as a logical sum of minterms and as a logical product of maxterms The complement of a function contains those minterms not included in the original function The complement of a sum-of-minterms is a product-of-maxterms with the same indices

Standard Forms A B C + A B C + B Standard Sum-of-Products (SOP) form: equations are written as an OR of AND terms Standard Product-of-Sums (POS) form: equations are written as an AND of OR terms Examples: SOP: POS: These “mixed” forms are neither SOP nor POS A B C + A B C + B (A + B) · (A + B + C ) · C (A B + C) (A + C) A B C + A C (A + B)

Standard Sum-of-Products (SOP) A sum of minterms form for n variables can be written down directly from a truth table. Implementation of this form is a two-level network of gates such that: The first level consists of n-input AND gates The second level is a single OR gate This form often can be simplified so that the corresponding circuit is simpler.

Standard Sum-of-Products (SOP) A Simplification Example: Writing the minterm expression: F = A B C + A B C + A B C + ABC + ABC Simplifying: F = A B C + A (B C + B C + B C + B C) F = A B C + A (B (C + C) + B (C + C)) F = A B C + A (B + B) F = A B C + A F = B C + A Simplified F contains 3 literals ) 7 , 6 5 4 1 ( C B A F S =

AND/OR Two-Level Implementation The two implementations for F are shown below It is quite apparent which is simpler!