ECE 352 Digital System Fundamentals

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logic Gates.
Boolean Algebra and Reduction Techniques
ECE2030 Introduction to Computer Engineering Lecture 9: Combinational Logic, Mixed Logic Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Chapter 5 Boolean Algebra and Reduction Techniques William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education,
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
© 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.
Digital Systems Presented by Prof Tim Johnson
DeMorgan Theorem, Computer Simulation Exercises
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
The Digital Logic Level
Unit 7 Multi-Level Gate Circuits Nand and Nor Gates Fundamentals of Logic Design Roth and Kinny.
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.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 2.
Basic Gates 3.1 Basic Digital Logic: NAND and NOR Gates ©Paul Godin Created September 2007 Last Update Sept 2009.
Basic Digital Logic: NAND and NOR Gates Technician Series ©Paul Godin Last Update Dec 2014.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
Boolean Algebra and Reduction Techniques
5 - Digital Logic with Boolean Algebra
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.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Combinational Circuits Part 1
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Morgan Kaufmann Publishers
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Boolean Algebra & De Morgan's Theorems
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
EI205 Lecture 5 Dianguang Ma Fall 2008.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
ECE 331 – Digital System Design
Dr. Clincy Professor of CS
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Universal Gate – NOR Universal Gate - NOR Digital Electronics
UNIVERSAL GATES.
Dr. Clincy Professor of CS
BASIC & COMBINATIONAL LOGIC CIRCUIT
Circuits, Truth Tables & Boolean Algebra
Universal gates.
Universal Gate – NAND Universal Gate - NAND Digital Electronics
CS Chapter 3 (3A and ) Part 3 of 8
Logic Gates.
Digital Logic.
KS4 Electricity – Electronic systems
CS Chapter 3 (3A and ) – Part 2 of 5
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Circuits, Truth Tables & Boolean Algebra
ECE 352 Digital System Fundamentals
ECE 352 Digital System Fundamentals
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Chapter 5 Combinational Logic Analysis
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Chapter 3 – Describing Logic Circuits
Circuit Simplification and
Presentation transcript:

ECE 352 Digital System Fundamentals Universal Gates In this presentation, we will discuss the idea of a universal logic gate.

Universal Gates Universal: a gate or group of gates that can implement all basic Boolean operations AND, OR, NOT are together universal NAND, NOR are each universal Example: NAND gate Can implement F = A Can implement F = A·B Can implement F = A+B A universal gate is a type of gate that can be used to implement ANY Boolean function (though it may require more than one of them to do so). The combination of AND, OR, and NOT gate types is universal, because we can use just those gate types to implement any truth table. NAND and NOR gates are also universal, because we can implement any truth table using just NAND gates or just NOR gates. Let’s look at the NAND gate, and show how we can use that to implement the three basic logic functions, AND, OR, and NOT First, we can implement the NOT function by taking the same input signal and connecting it to all of the NAND inputs. This ANDs signal A with itself before complementing the result. Alternately, we can NAND the A signal with a constant 1, which also produces /A  as the output. NAND gates can implement an AND function by complementing the output of one NAND using another NAND to implement the NOT. The double complement cancels out. Finally, NAND gates can implement an OR function by taking advantage of De Morgan’s Law. When implementing A OR B, we complement A and complement B before NANDing them together. According to De Morgan’s, the result is logically equivalent to an OR function. This means that if you have a function built of AND, OR, and NOT gates, you know it is possible to replace each with some number of NAND gates and preserve the logical correctness of the circuit.

Universal Gates Can convert any combinational circuit to use universal gates using Boolean algebra Often using De Morgan’s in addition to other identities Can use a “visual” approach by drawing the circuit, and using Boolean algebra with the gates A  ∙  B = A + B A  +  B = A·B We can transform logic functions algebraically to use a universal gate such as a NAND or a NOR by using Boolean algebra to transform the function. We can also transform a circuit directly by visually applying Boolean algebra transformations such as De Morgan’s Law. A = A

Universal Gates Example Now we’ll show examples of transforming a circuit to use only NOR gates or only NAND gates. We start with the original circuit, which uses a combination of NOT, AND, and OR gates. We will modify this circuit to use only NOR gates and inverters (which can themselves be implemented using NOR gates) We can add two NOT gates in series, which is equivalent to a wire, and turn one of those inverters into a bubble for the NOR gate, and the other inverter into a bubble on the input of the AND gate Next, we can slide the bottom inverter forward to turn it into a bubble on the other input of the AND gate. Remember, an AND gate with complemented inputs is equivalent to a NOR gate, according to De Morgan’s Law. Next, we can take the same circuit, and modify it to use NANDs using similar transformations where we take advantage of double-NOT gates and De Morgan’s Law.

How to Prove Gate is Universal? Example: “M” gate, where M = A + B Use one or more M gates to implement either… NOT and OR NOT and AND NAND NOR The M gate is universal! So, how do we prove if a particular gate or logic circuit is universal? Well, we already did this for the NAND gate when we showed it can implement the NOT, OR, and AND functions. But since we already known that the NAND and NOR functions are universal, we really only need to show it can implement NOT and OR (which lets us build a NOR), or NOT and AND (which lets us build a NAND). Alternately, we can directly show it can implement a NAND or a NOR. Which of these is simplest depends on the logic function you’re working with. In this case, the M gate already contains an OR operator in its logic function, or, we will prove the M gate is universal by showing that it can implement the NOT function and the OR function. Usually it’s easiest to start with the NOT function. The A input of the M gate is complemented, so we will make use of that. Then, to get rid of the OR function, we can OR with 0. We now have an implementation of the NOT function. The M gate already implements an OR function, but with one input complemented. So we use another M gate to provide that NOT function. The double-complement cancels out, and we have an implementation of the OR function. We have now shown that the M gate is universal, by proving we can implement a NOT function and an OR function using only M gates. F = X F = X + Y X X X X  + Y X  + 0 = X = X + Y Y

ECE 352 Digital System Fundamentals Universal Gates This concludes our video on universal gates.