Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.

Slides:



Advertisements
Similar presentations
Combinational Logic : NAND – NOR Gates CS370 – Spring 2003.
Advertisements

Digital Logic Design Gate-Level Minimization
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Other Gate Types COE 202 Digital Logic Design Dr. Aiman El-Maleh
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
MULTI-LEVEL GATE NETWORKS
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
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.
Lecture 5 Multilevel Logic Synthesis
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
2.7 NAND and NOR logic networks
© 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.
Unit 7 Multi-Level Gate Circuits / NAND and NOR Gates Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
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.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
DLD Lecture 19 Recap II Give qualifications of instructors: DAP
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 7 Transformations Factoring - finding a factored form from SOP or POS expression Decomposition.
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.
CS231 Boolean Algebra1 K-map Summary K-maps are an alternative to algebra for simplifying expressions. – The result is a minimal sum of products, which.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
LOGIC CIRCUIT IMPLEMENTATION
Chapter 3 Gate-Level Minimization
Logic Design CS221 1 st Term Logic-Circuit Implementation Cairo University Faculty of Computers and Information.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
Multi-Level Gate Networks NAND and NOR Gates
CHAPTER 7 MULTI-LEVEL GATE CIRCUITS / NAND AND NOR GATES
LOGIC GATES & BOOLEAN ALGEBRA
CS 1110 Digital Logic Design
1 K-Maps, Multi-level Circuits, Time Response Today: Reminder: Test #1, Thu 7-9pm K-map example, espressoFirst Hour: K-map example, espresso –Section 2.3.
CS 121 Digital Logic Design Gate-Level Minimization Chapter 3.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Pp244 In Sum-of-Products (SOP) form, basic.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
1/16/ CSEE, UQ Lecture 3 Hardware Description Methods, Review of Switching Algebra.
CEC 220 Digital Circuit Design NAND/NOR Multi-Level Circuits
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits 2-9 Exclusive-OR Operator and Gates 1Created by: Ms.Amany AlSaleh.
© 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.
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.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
Lecture 07 Digital logic By Amr Al-Awamry. 4 variables K-Map.
1 Digital Systems Design Lecture 7 Transformations Factoring - finding a factored form from SOP or POS expression Decomposition - expression of a function.
Combinational Circuits Part 1
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Princess Sumaya University
ECE 331 – Digital System Design
Digital Fundamentals Floyd Chapter 5 Tenth Edition
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSE 370 – Winter Combinational Implementation - 1
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Lecture 5 Logistics Last lecture Today’s lecture
Chapter 3 Overview • Multi-Level Logic
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Fundamentals Floyd Chapter 5 Tenth Edition
NAND and XOR Implementation
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Presentation transcript:

Lecture 09 NAND and XOR Implementations

Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level NAND implementations Convert from a network of AND/ORs °Exclusive OR Comparison with SOP °Parity checking and detecting circuitry Efficient with XOR gates!

Gates A X X = (A + B)’ B AND A X = A B X or B X = AB OR A X X = A + B B I A X X = A’ Buffer A X X = A A X 0 1 NAND A X X = (AB)’ B NOR XOR Exclusive OR A X = A  B X or B X = A’B + AB’ A X = (A  B)’ X or B X = A’B’+ AB XNOR Exclusive NOR or Equivalence A B X A X A B X

Axioms and Graphical representation of DeMorgan's Law Commutative Law Associative Law Distributive Law Consensus Theorem

nand nor and or not Recall that symbolic DeMorgan’s duals exist for all gate primitives The above alternate symbols can be used to facilitate the analysis and design of NAND and NOR gate networks. Network Conversion Using Alternate Gate Symbols

NAND-NAND & NOR-NOR Networks DeMorgan’s Law: (a + b)’ = a’ b’ (a b)’ = a’ + b’ a + b = (a’ b’)’ (a b) = (a’ + b’)’ push bubbles or introduce in pairs or remove pairs.

NAND-NAND & NOR-NOR Networks

NAND-NAND Networks °Mapping from AND/OR to NAND/NAND

NAND-NAND Networks

Implementations of Two-level Logic °Sum-of-products AND gates to form product terms (minterms) OR gate to form sum °Product-of-sums OR gates to form sum terms (maxterms) AND gates to form product

Two-level Logic using NAND Gates °Replace minterm AND gates with NAND gates °Place compensating inversion at inputs of OR gate

Two-level Logic using NAND Gates (cont’d) °OR gate with inverted inputs is a NAND gate de Morgan's:A' + B' = (A B)' °Two-level NAND-NAND network Inverted inputs are not counted In a typical circuit, inversion is done once and signal distributed

Two-level Logic using NAND Gates (cont’d)

Conversion Between Forms °Convert from networks of ANDs and ORs to networks of NANDs and NORs Introduce appropriate inversions ("bubbles") °Each introduced "bubble" must be matched by a corresponding "bubble" Conservation of inversions Do not alter logic function °Example: AND/OR to NAND/NAND A B C D Z A B C D Z NAND

Z = [ (A B)' (C D)' ]' = [ (A' + B') (C' + D') ]' = [ (A' + B')' + (C' + D')' ] = (A B) + (C D) Conversion Between Forms (cont’d) °Example: verify equivalence of two forms A B C D Z A B C D Z NAND

Conversion to NAND Gates °Start with SOP (Sum of Products) circle 1s in K-maps °Find network of OR and AND gates

ABCDEFGABCDEFG X Multi-level Logic °x = A D F + A E F + B D F + B E F + C D F + C E F + G Reduced sum-of-products form – already simplified 6 x 3-input AND gates + 1 x 7-input OR gate (may not exist!) 25 wires (19 literals plus 6 internal wires) °x = (A + B + C) (D + E) F + G Factored form – not written as two-level S-o-P 1 x 3-input OR gate, 2 x 2-input OR gates, 1 x 3-input AND gate 10 wires (7 literals plus 3 internal wires)

Level 1Level 2Level 3Level 4 original AND-OR network A C D B B C’C’ F introduction and conservation of bubbles A C D B B C’C’ F redrawn in terms of conventional NAND gates A C D B’B’ B C’C’ F Conversion of Multi-level Logic to NAND Gates °F = A (B + C D) + B C'

A X B C D F (a) Original circuit A X B C D F (b) Add double bubbles at inputs D’D’ A X’X’ B C F (c) Distribute bubbles some mismatches D’D’ A X B C F X’X’ (d) Insert inverters to fix mismatches Conversion Between Forms °Example

Making NAND circuits (Ex) °The easiest way to make a NAND circuit is to start with a regular, primitive gate-based diagram. °Two-level circuits are trivial to convert, so here is a slightly more complex random example.

Converting to a NAND °Step 1: Convert all AND gates to NAND gates and convert all OR gates to NAND gates. AND OR

Converting to NAND °Step 2: Cancel all pairs of inverters ((x’)’ = x)..

Exclusive-OR and Exclusive-NOR Circuits Exclusive-OR (XOR) produces a HIGH output whenever the two inputs are at opposite levels.

Exclusive-NOR (XNOR) : Exclusive-NOR (XNOR) produces a HIGH output whenever the two inputs are at the same level. Exclusive-NOR Circuits

XNOR gate may be used to simplify circuit implementation. Exclusive-NOR Circuits

XOR Function °XOR function can also be implemented with AND/OR gates (also NANDs).

FIGURE 4-25 XOR gates used to implement the parity generator and the parity checker for an even-parity system. Parity Generation and Checking

Summary °Follow rules to convert between AND/OR representation and symbols °Conversions are based on DeMorgan’s Law °NOR gate implementations are also possible °XORs provide straightforward implementation for some functions °Used for parity generation and checking XOR circuits could also be implemented using AND/Ors °Next time: Hazards