2 1 Implementation using NAND gates: We can write the XOR logical expression A B + A B using double negation as



Similar documents
Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

BOOLEAN ALGEBRA & LOGIC GATES

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Elementary Logic Gates

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Boolean Algebra Part 1

Understanding Logic Design

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

CHAPTER 3 Boolean Algebra and Digital Logic

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

NAND and NOR Implementation

Two-level logic using NAND gates

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Logic in Computer Science: Logic Gates

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

CSE140: Components and Design Techniques for Digital Systems

Unit 3 Boolean Algebra (Continued)

Gates, Circuits, and Boolean Algebra

Digital Logic Elements, Clock, and Memory Elements

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

3.Basic Gate Combinations

Sum-of-Products and Product-of-Sums expressions

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

ERROR DETECTION AND CORRECTION

Karnaugh Maps (K-map) Alternate representation of a truth table

CSE140: Midterm 1 Solution and Rubric

Lecture 8: Synchronous Digital Systems

Digital Electronics Detailed Outline

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

Basic Logic Gates Richard E. Haskell

Simplifying Logic Circuits with Karnaugh Maps

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

CSE140 Homework #7 - Solution

Binary Adders: Half Adders and Full Adders

Sistemas Digitais I LESI - 2º ano

Chapter 5. Rational Expressions

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Lecture 5: Gate Logic Logic Optimization

CH3 Boolean Algebra (cont d)

Factoring (pp. 1 of 4)

Module 4 : Propagation Delays in MOS Lecture 22 : Logical Effort Calculation of few Basic Logic Circuits

Upon completion of unit 1.1, students will be able to

Chapter 3 Digital Basics

Switching Algebra and Logic Gates

Figure 8-1 Four Possible Results of Adding Two Bits

Counters and Decoders

COMBINATIONAL CIRCUITS

Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders

C H A P T E R. Logic Circuits

DESIGN OF GATE NETWORKS

ASYNCHRONOUS COUNTERS

6. BOOLEAN LOGIC DESIGN

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

Lab 1: Full Adder 0.0

Logic Reference Guide

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

Chapter 10 Advanced CMOS Circuits

DEPARTMENT OF INFORMATION TECHNLOGY

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Introduction. The Quine-McCluskey Method Handout 5 January 21, CSEE E6861y Prof. Steven Nowick

2.0 Chapter Overview. 2.1 Boolean Algebra

1.4. Arithmetic of Algebraic Fractions. Introduction. Prerequisites. Learning Outcomes

Chapter 7 Memory and Programmable Logic

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

BINARY CODED DECIMAL: B.C.D.

Optimization and Comparison of 4-Stage Inverter, 2-i/p NAND Gate, 2-i/p NOR Gate Driving Standard Load By Using Logical Effort

ENGI 241 Experiment 5 Basic Logic Gates

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

Let s put together a Manual Processor

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Counters are sequential circuits which "count" through a specific state sequence.

Chapter 2 Logic Gates and Introduction to Computer Architecture

CMOS Binary Full Adder

[ 4 ] Logic Symbols and Truth Table

e.g. τ = 12 ps in 180nm, 40 ps in 0.6 µm Delay has two components where, f = Effort Delay (stage effort)= gh p =Parasitic Delay

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Digital Circuit Design

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

Ladder and Functional Block Programming

EE360: Digital Design I Course Syllabus

COMPUTER SCIENCE. Paper 1 (THEORY)

FACTORING TRINOMIALS IN THE FORM OF ax 2 + bx + c

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, The Binary Adder

ECE124 Digital Circuits and Systems Page 1

Lecture 5: Logical Effort

Chapter 9. Systems of Linear Equations

Bits Superposition Quantum Parallelism

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Transcription:

Chapter 2 Digital Logic asics 2 Implementation using NND gates: We can write the XOR logical expression + using double negation as + = + = From this logical expression, we can derive the following NND gate implementation: Figure 2.: 2-input XOR gate using only NND gates. Implementation using NOR gates: We can write the XOR logical expression as + = + = + + + From this logical expression, we can derive the following NOR gate implementation:

2 Chapter 2 Figure 2.2: 2-input XOR gate using only NOR gates. 2 2 Implementation using NND gates: We can write the exclusive-nor logical expression + using double negation as + = + = From this logical expression, we can derive the following NND gate implementation:

Chapter 2 3 Implementation using NOR gates: We can write the exclusive-nor logical expression as + = + = + + + From this logical expression, we can derive the following NOR gate implementation: lternative Implementations: lternatively, we can derive the following NND implementation by modifying the logic circuit in Figure 2. by adding an output inverter:

4 Chapter 2 Similarly, we derive the following NOR implementation by modifying the logic circuit in Figure 2.2 by deleting the output inverter: 2 3 NOT gate can be implemented by holding one input at as shown below: 2 4 y keeping one input at, we can turn an XOR gate into a buffer that passes input to output as shown below: It is clear from this and the last exercise that by controlling one input (call it control input), we can turn an XOR gate into either an inverter or a buffer. If the control input is, the XOR gate acts as an inverter; if the control input is, it acts as a buffer. 2 5 We can write the ND logical expression ( ) using double negation as = = + From this logical expression, we can derive the following implementation:

Chapter 2 5 2 6 We can write the OR logical expression ( + ) using double negation as + = + = From this logical expression, we can derive the following implementation: 2 7 The two transistors are in series. V out is low only when both transistors are turned on. This happens only when both V in and V in2 are high as shown below: V in V in2 V out low low high low high high high low high high high low s in the text, when we interpret low as and high as, it implements the NND function. 2 8 In this example, the two transistors are in parallel. V out is low when any of the two transistors are turned on. This happens when either V in or V in2 (or both) is high as shown below: V in V in2 V out low low high low high low high low low high high low s in the text, when we interpret low as and high as, it implements the NOR function. 2 9 We assume that input has 5% weight. The truth table is shown below:

6 Chapter 2 C F We use the Karnaugh map to derive the simplified logical expression. C C From this K-map, we get the following logical expression: +C The following logic circuit implements this function: C 2 We assume that input has the veto power. The truth table is shown below: C F

Chapter 2 7 The sum-of-products expression for F can be simplified by replicating the term ( C) as shown below: F = C + C + C = C + C + C + C = C + = ( +C) You can also use the Karnaugh map method to derive the same logical expression. The following logic circuit implements this function: C 2 (a) x x = x Let us start with x and show that it is equivalent to x x. x = x (Identity) = x (x + x) (Complement) = (x x) + (x x) (Distribution) = (x x) + (Complement) = x x (Identity) (b) x + x = x Let us start with x and show that it is equivalent to x + x (very similar to the last exercise). x = x + (Identity) = x +(x x) (Complement) = (x + x) (x + x) (Distribution) = (x + x) (Complement) = x + x (Identity) (c) x = s in the previous examples, we start with the right hand side () and show that it is equivalent to

8 Chapter 2 x. (d) x + = This is the dual of the last exercise. = x x (Complement) = x (x + ) (Identity) = (x x) + (x ) (Distribution) = + (x ) (Complement) = x (Identity) = x + x (Complement) = x + (x ) (Identity) = (x + x) (x + ) (Distribution) = (x + ) (Complement) = x + (Identity) 2 2 We have to show (x y) (x + y) = and (x y) + (x + y) =. (x y) (x +y) = xyx + xyy = + = (x y) + (x +y) = xy + x(y + y) + y(x + x) = xy + x y + x y + y x + y x = (x y + x y) + (x y + y x) = (x y + x y) + (x y + y x) = y + y = 2 3 We have to show (x + y) (x y) = and (x + y) + (x y) =. (x + y) (x y) = x x y + y x y = + =

Chapter 2 9 (x + y) + (x y) = x( y + y) + y (x + x) + (x y) = xy + x y+yx + y x + x y = x ( y + y + y) + x(y + y) = x + x = 2 4 ND version: C= + + C The truth table below verifies the ND version. C C + + C OR version: + + C= C The truth table below verifies the OR version. C + + C C 2 5 From the 3-input NND gate shown in Figure 2.23b, we can see that each additional input needs an inverter and a 2-input NND gate. Since we implement the inverter with a 2-input NND gate as well, we need two 2-input NND gates for each additional input. Thus, for an n input NND gate, we need +2(n 2)

Chapter 2 2-input NND gates. To build an 8-input NND gate we need +2(8 2)=3gates Since there are four gates in the 74 chip, we need four 74 chips. 2 6 (a) (x +y) (x +y) = (x y) x y (de Morgon s law) = (b) x + yx = x ( + y) + yx = x + xy + yx = x + y (x + x) = x + y (c) = ( + ) ( + ) = + + + = + 2 7 Truth table: C F Sum-of-products form: C + C + C + C Product-of-sums form: ( + + C) ( + + C) ( + + C) ( + + C)

Chapter 2 2 8 We start with the product-of-sums expression and derive the sum-of-products expression. ( + + C) ( + + C) ( + + C) ( + + C) =( + +C+ + C+ C+ C) ( + + C) (++C) =( C+ C++ C+ C+ C+C+ C) (++C) = C + C + C + C 2 9 Logic expression for Figure 2.a is ( ). Logic expression for Figure 2.b is +. We show that this expression is equivalent to ( ). + = (de Morgon s law) 2 2 We start with the product-of-sum expression and derive the other expression. ( + + C) ( + + C) ( + + C) ( + + C) =( + + C+ + C+ C+ C) ( + +C) (+ + C) =( + + C+ C+ C+C+ + C + C+C)(+ + C) = C + + C + C + C + C + C y observing that + C + C + C is equivalent to ( C), we derive the sum-ofproducts expression. 2 2 We start with the product-of-sums expression and derive the sum-of-products expression. ( + + C) ( + + C) ( + + C) ( + + C) =( + + C++ C+C+ C) (+ + C) ( ++C) =( C+ C + + C+ C+C+ C+ C) ( ++C) = C + C + C + C 2 22 Replace the exercise in the book by the following: Using oolean algebra show that the following two expressions are equivalent: C + C D + C + D + C + C + CD + D + C D + C + CD

2 Chapter 2 Solution: C + C + C D + C + D + C + CD = C( + ) + C D + C + D + C + CD =( C + C) + C D + C + D + CD = + C D + ( + C D) + C + ( + C) + D + ( + D) + CD + ( + CD) = + C D + C + D + CD 2 23 The logic circuit is shown below: 2 24 We need a 7-input XOR gate to derive the parity bit. We can construct 7-input XOR using 2-input XOR gates as shown below: 2 3 4 5 6 P We need to add an inverter at the output to generate odd parity bit.

Chapter 2 3 2 25 D + C D + D = D( + C) + C D ( + ) + D = D + D C + C D + C D + D = D + C(D + D) + D( + C) = D + C + D 2 26 The truth table is shown below: C F C + C + C + C = C( + ) + C( + ) = C( + ) = C Clearly, we just need one inverter to implement this simplified logical expression. 2 27 The truth table is shown below:

4 Chapter 2 From the following Karnaugh map C D F CD C D we get the simplified logical expression as (C D). We just need a single NOR gate to implement this. 2 28 The following table finds the prime implicants: Column Column 2 Column 3 C D p C D p C D C D p C D p C D p C D p C D p C D p

Chapter 2 5 There is no need for Step 2. The simplified expression is C D. 2 29 The truth table is shown below: C D F From the following Karnaugh map CD we derive the simplified expression as D + C + D + C = (C + D) + (C + D) The following circuit implements this logic expression:

6 Chapter 2 C D C D 2 3 The following table finds the prime implicants: Column Column 2 D C D p C C D p D CD p C C D p C D p CD p Step 2: Prime implicants D C D C Input product terms C D C D CD C D C D CD N N N N

Chapter 2 7 The minimal expression is D + C + D + C = (C + D) + (C + D) 2 3 The truth table is shown below: C D F From the following Karnaugh map CD we derive the following simplified logic expression: C D + CD + C + D = C ( D + D) + C + D n implementation of this logic expression is shown below:

8 Chapter 2 C D D C 2 32 The following table finds the prime implicants: Column Column 2 C D C C D C D p D C D p CD p CD CD p Step 2: Prime implicants Input product terms C D C D C D C D CD CD C C D D C D CD N N N N

Chapter 2 9 We derive the following simplified logic expression: C D + CD + C + D = C ( D + D) + C + D