Partial preview of the text
Download Digital logic design and more Slides Digital Electronics in PDF only on Docsity!
WVERSITY OF GUSRAT aA Lecture | 07 ; COMBINATIONAL LOGIC CIRCUITS Digital Logic Design (CS — 151), BS Computer Science ENGR. MUHAMMAD UMAIR Lecturer, Department of Computer Science Marghzar Campus, University of Gujrat Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science DEFINITIONS = Literal: True / (Non-Complemented) — or Complemented version of a variable A or A. = Product Term: a series of literals related to one another through the AND operator. Example: A-B-C = Sum Term: A series of literals related to one another through the OR operator. Example: 4+ B+C Engr. Muhammad Umair, Lecturer — DCS - MC — UOG Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science = 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.,X). = There are 2? Minterms for n variables. = Example: For Two variables (X and Y) there are four (22 = 4) combinations (called Minterms or Standard Products): * XY (Both Normal) + XY (X Normal, Y Complemented) + XY (X Complemented, Y Normal) + XY (Both Complemented) =" Thus there are 4 Minterms of two variables. = Minterms are represented by “m;”. For 2 Variables: m,, m,, m, and m,. Engr. Muhammad Umair, Lecturer — DCS - MC — UOG 4 Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science MINTERMS Table 6: Minterms for 3 Variables 0 600 0) Z Mo pa | 0) 0) 0) 0) 0 Q ) 0 0 0 0 0 0 0 >< ~<] “ “ Inthe Function Tables: Each Minterm has one and only one 1 present in the 2" terms (a minimum of 1s). All other entries are 0 (a maximum of Os). Each Maxterm has one and only one 0 present in the 2" terms (a minimum of Os) All other entries are 1 (a maximum of 1s). We can implement any function by "OR-ing" the Minterms corresponding to "1" entries in the function table. These are called the Minterms of the function. We can implement any function by "AND-ing" the Maxterms corresponding to "0" entries in the function table. These are called the Maxterms of the function. This gives us two standard forms (for stating any Boolean Function): v Sum of Minterms (SOM) ¥ Product of Maxterms (POM) Engr. Muhammad Umair, Lecturer — DCS - MC — UOG Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science Conversion of MINTERM to MAXTERM Examples: F = XYZ +XYZ+ XYZ + XYZ =m,+m,+m,+m,= > m(1, 3, 4, 6) F=(X+YtZ\(X+V4+Z\X+Y4+Z\(X+V4Z) F=[[M(,3, 4, 6) Engr. Muhammad Umair, Lecturer — DCS - MC — UOG Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science An Issue in Sum of Minterms (SOM) =» Any Boolean Function can be expressed as a Sum of Minterms (SOM). * For the Function Table, the Minterms used are the terms corresponding to the 1's. * For expressions, expand all terms first to explicitly list all Minterms. * Do this by “AND-ing” any term missing a variable V with a term (V+ V). = Example: Implement F = X +X Y as a Sum of Minterms (SOM). * First expand terms: f= x(v+¥)+¥eY * Then distribute terms: F=VYeY+VeY+iVey * Express as sum of Minterms: # =x ey +xe¥+Xe¥ =m,+m,+m, Engr. Muhammad Umair, Lecturer — DCS - MC — UOG Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science Implement the following SOP function: F =NXZ+YZ+XYZ *—T z—1/ ¥—T \ F z— J 1/ x — Y _ z—1/ Level-1: AND-Gates Level-2: OR-Gates Engr. Muhammad Umair, Lecturer — DCS - MC — UOG 16 Lecture # 07 Digital Logic Design (CS - 151) BS Computer Science Product of Sum (POS) Product of Sums Expression (POS): =» Any POS expression can be implemented in 2- levels of Gates. = The first level consists of a number of OR Gates which equals the number of sum terms in the expression, each OR Gate implements one of the sum terms in the expression. = The second level consists of a SINGLE AND Gate whose number of inputs equals the number of sum terms. # Not all sum terms are Maxterms. Engr. Muhammad Umair, Lecturer — DCS - MC — UOG