1 Logic Gates Digital Computer Logic Kashif Bashir WWW:

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

BOOLEAN ALGEBRA. A Mathematical notation used to represent the function of the Digital circuit. A notation that allows variables & constants to have only.
Combinational Logic Circuits Chapter 2 Mano and Kime.
Chapter 2 Logic Circuits.
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
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.
Lecture 3. Boolean Algebra, Logic Gates
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Combinational Logic Circuits Chapter 2 Mano and Kime.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
Chapter 2: Boolean Algebra and Logic Functions
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
2-6 Other Logic Operations For two variables one can achieve sixteen operations Only eight are useful for computers Boolean algebra built on AND, OR and.
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
In science, technology, business, and, in fact, most other fields of endeavor, we are constantly dealing with quantities. Quantities are measured, monitored,
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
Boolean Algebra and Logic Gates CE 40 B 18 June 2003.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
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.
Department of Computer Engineering
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Combinational Logic 1.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Logic Design Dr. Yosry A. Azzam.
Logic and Computer Design Simon Petruc-Naum CS 147 – Dr. S.M. Lee.
Overview Part 1 – Gate Circuits and Boolean Equations
Gate-Level Minimization
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Chap 2. Combinational Logic Circuits. Chap Binary Logic and Gates l 디지털 회로 (Digital circuits) o hardware components that manipulate binary information.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
LOGIC GATES & BOOLEAN ALGEBRA
Unit 1 Minimization Techniques and Logic Gates. Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Boolean Algebra and Logic Gates
ENG241 Digital Design Week #2 Combinational Logic Circuits.
KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.
Chap 2. Combinational Logic Circuits
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
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 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Boolean Algebra and Logic Gates
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Boolean Algebra.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra & Logic Gates
Chapter 2: Boolean Algebra and Logic Functions
CS 105 Digital Logic Design
Introduction to Logic Gates
PROPAGATION DELAY.
… and now for the Final Topic:
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra.
Digital Logic Chapter-2
Digital Logic Chapter-2
Presentation transcript:

1 Logic Gates Digital Computer Logic Kashif Bashir WWW:

2 Module Outline Binary Logic and Basic Gates Boolean Algebra Standard Forms Simplification of Boolean Functions NAND and NOR Gates XOR Gate Integrated Circuits CMOS Gates

3 Binary Logic Deals with variables that take on only two discrete values and operations of mathematical logic that are applied to these variables The two values are known by different names: HIGH and LOW TRUE and FALSE 0 and 1 Variables may be denoted by any name but single letter character names such as A, B, C, X, Y, Z, etc. are common and easy to use

4 Logical Operations AND Represented by a dot · or sometimes  or  Binary operator, i.e. operates on two variables at a time OR Represented by a + or sometimes  or  Binary operator, i.e. operates on two variables at a time NOT Represented by a bar over the variable, e.g. A or A’ Unary operator, i.e. operates on a single variable Also referred to as COMPELMENT operator

5 Binary Logic and Basic Gates Digital Circuits and Systems are complex However, the basic building blocks of all digital circuits and systems are logic gates Logic gates are therefore called the basic primitives of digital systems Logic gates in reality are implemented using electronic components such as transistors However, we are not concerned with their internal electronic properties but rather their external logic behavior

6 Electronic vs. Logical +V _X_X X X _X_X Electronic ImplementationLogical Behavior

7 Standard Symbols X _X_X X Y X + Y X Y X · Y AND OR NOT

8 Truth Table A table of combinations of the binary variables showing the the relationship between between the values the variables take on and the values of the result of the operation XYXY AND Z = X · Y XYXY OR Z = X + Y X NOT Z = X

9 Gates with More Than Two Inputs A C F = A · B · C 3-Input AND gate B A F = A+B+C+D+E+F B C D E F 6-Input OR gate

10 Truth Table XYZXYZ AND F = X · Y · Z

11 Boolean Algebra Defines rules of operations on Binary Logic and Logic Functions Sometimes similar to Binary Arithmetic but some times different – because binary logic variables can only take on two possible values 0 and 1 A Boolean function consists of a binary variable denoting the function, an equals sign, and an algebraic expression formed by using binary variables. For example F = X + Y’Z

12 Truth Tables for Boolean Functions Truth Table can be constructed for every boolean function A boolean function of n-variables will have 2 n rows in its truth table These 2 n inputs are formed by counting from 0 to 2 n - 1 For example G(W,X,Y,Z) will have 16 rows in the truth table and F(A,B) will have 4 rows

13 Truth Table for F = X + Y’Z XYZXYZ Truth Table for F = X + Y’ · Z F X Y Z F Logic Circuit Diagram for F = X + Y’Z

14 Timing Diagram AND OR 0011 X Y NOT(X)  Horizontal axis represents time  Vertical axis shows the value of the signal  High voltage level represents 1 and low voltage level represents 0  Timing diagrams are very important in digital systems design and verification

15 Basic Identities of Boolean Algebra 1. X + 0 = X 2. X · 1 = X 3. X + 1 = 1 4. X · 0 = 0 5. X + X = X 6. X · X = X 7. X + X’ = 1 8. X · X’ = 0 9. (X’)’ = X

16 Basic Identities of Boolean Algebra 1. X + Y = Y + X 2. XY = YX 3. X + (Y + Z) = (X + Y) + Z 4. X (YZ) = (XY)Z 5. X(Y+Z) = XY+ XZ 6. X + YZ = (X + Y)(X + Z) 7. (X + Y)’ = X’Y’ 8. (XY)’ = X’ + Y’ CommutativeAssociativeDistributiveDeMorgan’s

17 Algebraic Manipulation Using basic identities a boolean function can be simplified For example F = X’YZ + X’YZ’ + XZ = X’Y(Z + Z’) + XZ = X’Y·1 + XZ =X’Y + XZ

18 Algebraic Manipulation Examples 1. X + XY = X (1+Y) = X 2. XY + XY’ = X (Y + Y’) = X 3. X + X’Y = (X + X’) (X + Y) = X + Y 4. X (X + Y) = X + XY = X (1 + Y) = X 5. (X + Y)(X + Y’) = X + XY’ + XY + YY’ = X (1 + Y’) + XY = X · 1 + XY = X + XY = X (1 + Y) = X 6. X(X’ + Y) = XX’ +XY = XY

19 Duality Principle Dual of an expression is obtained by changing AND to OR and OR to AND throughout and 1’s to 0’s and 0’s to 1’s, if they appear in the expression X + Y’  XY’ XY+X’Y’  (X + Y)(X’ + Y’) Boolean equation remains valid if we take the dual of the expression on both sides of an equals sign

20 Consensus Theorem XY + X’Z + YZ = XY + X’Z Proof XY + X’Z + YZ = XY + X’Z + YZ(X + X’) = XY = X’Z + XYZ + X’YZ = XY + XYZ + X’Z + X’YZ = XY (1 +Z) + X’Z(1 + Y) = XY + X’Z Dual of Consensus Theorem is: (X + Y)(X’ + Z)(Y + Z) = (X + Y)(X’ + Z)

21 Complement of a Function Obtained by interchange of 1’s top 0’s and 0’s to 1’s for the values of F in the truth table Can be derived algebraically by applying DeMorgan’s theorem Complement of an expression is obtained by interchanging AND and OR and complementing each variable and constant Example: F = X’YZ’ + X’Y’Z F’ = (X + Y’ + Z)(X + Y + Z’)

22 Standard Forms Variety of possible ways of writing a boolean function algebraically Hard to see unambiguously that it is the same function we are talking about Standard forms have been developed Standard forms also generate more desirable logic circuits Product terms and Sum terms Product: XY’Z Sum: X + Y’ + Z

23 Truth Table and Algebraic Expression A truth table defines a boolean function An algebraic expression for the function is derived by finding the logical sum of all the product terms for which the function assumes a binary value 1 For example: F = X’Y’Z + XY’Z’ + XYZ’ + XYZ XYZXYZ Truth Table for F = X + Y’ · Z F

24 Minterms A product term in which all the variables appear exactly once, either complemented or uncomplemented, is called a minterm There are 2 n minterms for n Boolean variables Any Boolean function can be expressed as logical sum of minterms The complement of a function contain those minterm not included in the original function A function that includes all the 2 n minterms is equal to logic 1 The symbol for a minterm is m j where j denotes the decimal equivalent of the binary combination for which the minterm has value 1

25 Maxterms A sum term containing all the variables once in complemented or uncomplemented form is called a maxterm There are 2 n maxterms for n Boolean variables Any Boolean function can be expressed as logical product of maxterms The symbol for a maxterm is M j where j denotes the decimal equivalent of the binary combination for which the maxterm has value 0

26 XYZXYZ E F Example E(X, Y, Z) =  m(1,5,7) F(X, Y, Z) =  m(0,1,4,6,7) E’(X, Y, Z) =  m(0,2,3,4,6) F’(X, Y, Z) =  m(2,3,5) E + F =  m(0,1,4,5,6,7) E · F =  m(1,7)

27 Sum of Products Implementation Also called sum of minterms Look again at the previous example F = X’Y’Z + XY’Z’ + XYZ’ + XYZ It can be represented as m 0 + m 2 + m 5 + m 7 Or alternatively: F(X, Y, Z) =  m(0,2,5,7) F’ =  m(1,3,4,6)

28 Product of Sums Implementation Also called product of maxterms A Boolean function can be expressed as product of maxterms F =  M(1,3,4,6) Related to the sum of products or minterm representation of the F’

29 Two Level Implementations The standard forms result in two level implementation of a Boolean function Sum of products representation results in an AND/OR implementation Product of sums results in an OR/AND implementation

30 Karnaugh Maps Boolean expressions may be simplified by using algebraic operations But there is not set method to predict the steps to take That means not amenable to automated techniques Karnaugh Maps to the rescue Generates simplified expressions that are in SOP or POS form Produce two-level implementation with a minimum number of gates and a minimum number of inputs to the gates Sometimes two or more expressions that satisfy the simplification criteria

31 Two-Variable Map Four minterms so four squares As an example two K-maps are shown: 1. F(X, Y) = XY 2. F(X, Y) = X’Y + XY’ m0m0 m1m1 m2m2 m3m3 X’Y’X’Y XY’XY Y X Y X Y X

32 Three-Variable Map X’Y’Z’X’Y’Z XY’Z’XY’Z YZ X X’YZX’YZ’ XYZXYZ’ 1110 m0m0 m1m1 m4m4 m5m5 m3m3 m2m2 m7m7 m6m6

33 Example 1

34 Four-Variable Map Example - 1

35 Four-Variable Map Example - 2

36 Five Variable K-Maps

37 Five Variable K-Maps Example

38 Don’t Care Conditions

39 NAND Not AND = NAND X Y X · Y(X · Y)’ X Y XYXY NAND (X · Y)’

40 NOR Gates Not OR = NOR XYXY NOR (X + Y)’ X Y X Y X + Y (X + Y)’

41 XOR XOR = Exclusive OR

42 Use of XOR in Parity Generation and Checking

43 A Complete Set of Gates AND, OR, NOT NAND NOR XOR?

44 Integrated Circuits An Integrated Circuit or IC or chip is a small silicon crystal containing the electronic components

45 Integrated Circuits

46 Levels of Integration SSI MSI LSI VLSI

47 Digital Logic Families What? Why? RTL DTL TTL ECL MOS CMOS BiCMOS

48 Important Characteristics Fan-in Fan-out Noise Margin Power Dissipation Propagation Delay

49 Propagation Delay for an Inverter t PHL t PLH IN OUT X _X_X

50 CMOS Circuits CMOS = Complementary Metal Oxide Semiconductor A type of transistor Two types N-channel (NMOS) P-channel (PMOS)