CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.

Slides:



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

CT455: Computer Organization Logic gate
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Chapter 2 Logic Circuits.
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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
Chapter 2: Boolean Algebra and Logic Functions
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals with PLD Programming.
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.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
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.
The NAND gate as a universal gate Logic function NAND gate only AA A B A.BA.B A B A+B A B A B A B A A A B A.BA.B B A A B A B A B.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Elementary Digital Logic Apps O/S Arch  Arch Logic Digital Analog.
NOCTI Review Lesson 4 Objectives:
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
DLD Lecture 19 Recap II Give qualifications of instructors: DAP
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.
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.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
LOGIC GATES & BOOLEAN ALGEBRA
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.
Brief Introduction to Boolean Algebra We can use transistors to build AND, OR, NAND, NOR, and Invertors Manufacturing is simplified with NAND/NOR NAND/NOR.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
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.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
5 - Digital Logic with Boolean Algebra
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
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.
1/16/ CSEE, UQ Lecture 3 Hardware Description Methods, Review of Switching Algebra.
C.S. Choy21 BOOLEAN ALGEGRA The Mathematics of logic Boolean variables have only two possible values (binary) Operators:. Product+ SumComplement A.B A+B.
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.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
CHAPTER 5 Combinational Logic Analysis
© 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.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Combinational Logic Analysis. Basic Combinational Logic Circuits AND-OR logic AND-OR logic AND-OR logic produces an SOP expression. AND-OR logic produces.
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.
The First lesson on Digital Logic Rachaen M. Huq1 Rachaen Huq. Dept. of EEE, BRACU.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Chapter 3 Notes – Part II Review Questions
Logic Gates and Boolean Algebra
Universal Gate – NAND Universal Gate - NAND Digital Electronics
CS 105 Digital Logic Design
EI205 Lecture 5 Dianguang Ma Fall 2008.
Digital Logic.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Universal gates.
King Fahd University of Petroleum and Minerals
Logic Gates.
Boolean Algebra.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Logic Gates.
Presentation transcript:

CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR

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.

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

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’)=(a’b’)’ = a+b = OR(a,b) ABY A B Y

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.

A Y A B Y Y A B NOT Gate AND Gate OR Gate NAND Gates into Other Gates (what are these circuits?)

The NOR Gate °This is a NOR gate. It is a combination of an OR gate followed by an inverter. It’s 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

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.

NOT Gate OR Gate AND Gate NOR Gates into Other Gates (what are these circuits?) A Y Y A B A B Y

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

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

NOR Gate Equivalence °NOR Symbol, Equivalent Circuit, Truth Table

DeMorgan’s Theorem °A key theorem in simplifying Boolean algebra expression is DeMorgan’s Theorem. It states: (a + b)’ = a’b’(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’ + x’a’’) = a’ + b’(z’ + x’a)

Example °Determine the output expression for the below circuit and simplify it using DeMorgan’s Theorem

Universality of NAND and NOR gates

Universality of NOR gate °Equivalent representations of the AND, OR, and NOT gates

Example

Interpretation of the two NAND gate symbols °Determine the output expression for circuit via DeMorgan’s Theorem

Interpretation of the two OR gate symbols °Determine the output expression for circuit via DeMorgan’s Theorem

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 °DeMorgan’s rules are important. Allow conversion to NAND/NOR representations