ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,

Slides:



Advertisements
Similar presentations
Digital Systems: Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.
Advertisements

Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
CT455: Computer Organization Logic gate
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Instructor Dr Sameh Abdulatif
Chapter3: Gate-Level Minimization Part 2
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 2 – Combinational Logic Circuits Part 3.
topics Logic gates Gates types Universal gates
01 Introduction to Digital Logic
CS 121 Digital Logic Design
Chapter 2 Logic Circuits.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
ENGIN112 L11: NAND and XOR Implementation September 26, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 11 NAND and XOR Implementations.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Chapter 33 Basic Logic Gates. 2 Objectives –After completing this chapter, the student should be able to: Identify and explain the function of the basic.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
LOGIC GATES & BOOLEAN ALGEBRA
Using De’Morgan’s On of the most useful principles in boolean algebra is De’Morgan’s Theorem, which allows one to switch between ANDs and NORs and ORs.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
5 - Digital Logic with Boolean Algebra
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Topic 4 – Switching Circuits. Serial vs. Parallel Transmission Circuit elements can be connected in either a serial or parallel manner. Serial implies.
Module 7.  In Module 3 we have learned about NAND gate – it is a combination of AND operation followed by NOT operation  Symbol A. B = Y  Logic Gate.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
1’S COMPLEMENT REPRESENTATION 1’s complement of a number (binary) is obtained by changing all 1’s to 0 and all 0’s to 1. If one of these numbers is positive.
Logic Gates and Boolean Algebra Introduction to Logic II.
Chapter 5 Combinational Logic 组合逻辑
Combinational Circuits Part 1
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
De Morgan’s Theorem,.
Logic Gates and Boolean Algebra
EI205 Lecture 5 Dianguang Ma Fall 2008.
Digital Logic.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Digital Signals Digital Signals have two basic states:
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Number Systems Decimal (base 10) { }
King Fahd University of Petroleum and Minerals
Logic Gates.
Boolean Algebra.
Logic Gates.
KS4 Electricity – Electronic systems
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Logic Gates.
Chapter 4 Gates and Circuits.
Chapter 2 Gates.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR, XOR

ENGIN112 L7: More Logic Functions September 17, 2003 Overview °More 2-input logic gates (NAND, NOR, XOR) °Extensions to 3-input gates °Converting between sum-of-products and NANDs SOP to NANDs NANDs to SOP °Converting between sum-of-products and NORs SOP to NORs NORs to SOP °Positive and negative logic We use primarily positive logic in this course.

ENGIN112 L7: More Logic Functions September 17, 2003 Logic functions of N variables °Each truth table represents one possible function (e.g. AND, OR) °If there are N inputs, there are 2 2 N °For example, is N is 2 then there are 16 possible truth tables. °So far, we have defined 2 of these functions 14 more are possible. °Why consider new functions? Cheaper hardware, more flexibility. x0011x0011 y0101y0101 G0001G0001

ENGIN112 L7: More Logic Functions September 17, 2003 The NAND Gate °This is a NAND gate. It is a combination of an AND gate followed by an inverter. Its truth table shows this… °NAND gates have several interesting properties… NAND(a,a)=(aa) = a = NOT(a) NAND(a,b)=(ab) = ab = AND(a,b) NAND(a,b)=(ab) = a+b = OR(a,b) ABY A B Y

ENGIN112 L7: More Logic Functions September 17, 2003 The NAND Gate °These three properties show that a NAND gate with both of its inputs driven by the same signal is equivalent to a NOT gate °A NAND gate whose output is complemented is equivalent to an AND gate, and a NAND gate with complemented inputs acts as an OR gate. °Therefore, we can use a NAND gate to implement all three of the elementary operators (AND,OR,NOT). °Therefore, ANY switching function can be constructed using only NAND gates. Such a gate is said to be primitive or functionally complete.

ENGIN112 L7: More Logic Functions September 17, 2003 A Y A B Y Y A B NOT Gate AND Gate OR Gate NAND Gates into Other Gates (what are these circuits?)

ENGIN112 L7: More Logic Functions September 17, 2003 The NOR Gate °This is a NOR gate. It is a combination of an OR gate followed by an inverter. Its truth table shows this… °NOR gates also have several interesting properties… NOR(a,a)=(a+a) = a = NOT(a) NOR(a,b)=(a+b) = a+b = OR(a,b) NOR(a,b)=(a+b) = ab = AND(a,b) ABY A B Y

ENGIN112 L7: More Logic Functions September 17, 2003 Functionally Complete Gates °Just like the NAND gate, the NOR gate is functionally complete…any logic function can be implemented using just NOR gates. °Both NAND and NOR gates are very valuable as any design can be realized using either one. °It is easier to build an IC chip using all NAND or NOR gates than to combine AND,OR, and NOT gates. °NAND/NOR gates are typically faster at switching and cheaper to produce.

ENGIN112 L7: More Logic Functions September 17, 2003 NOT Gate OR Gate AND Gate NOR Gates into Other Gates (what are these circuits?) A Y Y A B A B Y

ENGIN112 L7: More Logic Functions September 17, 2003 The XOR Gate (Exclusive-OR) °This is a XOR gate. °XOR gates assert their output when exactly one of the inputs is asserted, hence the name. °The switching algebra symbol for this operation is, i.e. 1 1 = 0 and 1 0 = 1. ABY A B Y

ENGIN112 L7: More Logic Functions September 17, 2003 The XNOR Gate °This is a XNOR gate. °This functions as an exclusive-NOR gate, or simply the complement of the XOR gate. °The switching algebra symbol for this operation is, i.e. 1 1 = 1 and 1 0 = 0. ABY A B Y

ENGIN112 L7: More Logic Functions September 17, 2003 NOR Gate Equivalence °NOR Symbol, Equivalent Circuit, Truth Table

ENGIN112 L7: More Logic Functions September 17, 2003 DeMorgans Theorem °A key theorem in simplifying Boolean algebra expression is DeMorgans Theorem. It states: (a + b) = ab(ab) = a + b °Complement the expression a(b + z(x + a)) and simplify. (a(b+z(x + a))) = a + (b + z(x + a)) = a + b(z(x + a)) = a + b(z + (x + a)) = a + b(z + xa)

ENGIN112 L7: More Logic Functions September 17, 2003 Example °Determine the output expression for the below circuit and simplify it using DeMorgans Theorem

ENGIN112 L7: More Logic Functions September 17, 2003 Universality of NAND and NOR gates

ENGIN112 L7: More Logic Functions September 17, 2003 Universality of NOR gate °Equivalent representations of the AND, OR, and NOT gates

ENGIN112 L7: More Logic Functions September 17, 2003 Example

ENGIN112 L7: More Logic Functions September 17, 2003 Interpretation of the two NAND gate symbols °Determine the output expression for circuit via DeMorgans Theorem

ENGIN112 L7: More Logic Functions September 17, 2003 Interpretation of the two OR gate symbols °Determine the output expression for circuit via DeMorgans Theorem

ENGIN112 L7: More Logic Functions September 17, 2003 Summary °Basic logic functions can be made from NAND, and NOR functions °The behavior of digital circuits can be represented with waveforms, truth tables, or symbols °Primitive gates can be combined to form larger circuits °Boolean algebra defines how binary variables with NAND, NOR can be combined °DeMorgans rules are important. Allow conversion to NAND/NOR representations