DIGITAL ELECTRONICS CIRCUIT (PCEC 4202)

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

Boolean Algebra Part 1

ENGI 241 Experiment 5 Basic Logic Gates

BOOLEAN ALGEBRA & LOGIC GATES

Gates, Circuits, and Boolean Algebra

Basic Logic Gates Richard E. Haskell

Elementary Logic Gates

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

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

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

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

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

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

CH3 Boolean Algebra (cont d)

Logic in Computer Science: Logic Gates

CSE140: Midterm 1 Solution and Rubric

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

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

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

Digital Electronics Detailed Outline

Unit 3 Boolean Algebra (Continued)

Two-level logic using NAND gates

CHAPTER 3 Boolean Algebra and Digital Logic

2.0 Chapter Overview. 2.1 Boolean Algebra

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Simplifying Logic Circuits with Karnaugh Maps

Binary Adders: Half Adders and Full Adders

Lecture 5: Gate Logic Logic Optimization

NAND and NOR Implementation

Lecture 8: Synchronous Digital Systems

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

COMPUTER SCIENCE. Paper 1 (THEORY)

Theory of Logic Circuits. Laboratory manual. Exercise 3

Upon completion of unit 1.1, students will be able to

Logic Reference Guide

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

Class One: Degree Sequences

CSE140: Components and Design Techniques for Digital Systems

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

Mixed Logic A B A B. 1. Ignore all bubbles on logic gates and inverters. This means

Understanding Logic Design

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

6. BOOLEAN LOGIC DESIGN

Chapter 2 Logic Gates and Introduction to Computer Architecture

DEPARTMENT OF INFORMATION TECHNLOGY

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

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

Combinational circuits

Systems I: Computer Organization and Architecture

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

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

Digital Logic Elements, Clock, and Memory Elements

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

Figure 8-1 Four Possible Results of Adding Two Bits

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Designing Digital Circuits a modern approach. Jonathan Turner

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

DESIGN OF GATE NETWORKS

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

Counters and Decoders

Click on the links below to jump directly to the relevant section

Switching Algebra and Logic Gates

Decimal Number (base 10) Binary Number (base 2)

COMBINATIONAL CIRCUITS

Let s put together a Manual Processor

Warm-up Tangent circles Angles inside circles Power of a point. Geometry. Circles. Misha Lavrov. ARML Practice 12/08/2013

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.

Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

3.Basic Gate Combinations

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

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

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

α = u v. In other words, Orthogonal Projection

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Combinational Logic Design Process

Circle Name: Radius: Diameter: Chord: Secant:

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Chapter 7 Memory and Programmable Logic

Chapter 1. Computation theory

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

Resolution. Informatics 1 School of Informatics, University of Edinburgh

EE360: Digital Design I Course Syllabus

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

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

Module 3: Floyd, Digital Fundamental

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

Circuits and Boolean Expressions

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

CS311 Lecture: Sequential Circuits

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

ANALOG & DIGITAL ELECTRONICS

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

CSE140 Homework #7 - Solution

Transcription:

MODULE-1 Chapter 3(Combinational Logic Design) LECTURE-11 THE UNIVERSAL PROPERTY OF NAND AND NOR GATES The NAND Gate as a Universal Logic Element The NAND gate is a universal gate because it can be used to produce the NOT, the AND, the OR, and the NOR functions. An inverter can be made from a NAND gate by connecting all of the inputs together and creating, in effect, a single input, as shown in Figure (a) for a 2-input gate. An AND function can be generated by the use of NAND gates alone, as shown in Figure (b). An OR function can be produced with only NAND gates, as illustrated in part (c). Finally. a NOR function is produced as shown in part (d). NAND gates can be used to produce any logic function. P.K.NAYAK Page 1

In Figure (b), a NAND gate is used to invert (complement) a NAND output to form the AND function, as indicated in the following equation: In Figure (c), NAND gates G1 and G 2 are used to invert the two input variables before they are applied to NAND gate G3. The final OR output is derived as follows by application of DeMorgan's theorem: In Figure (d), NAND gate G4, is used as an inverter connected to the circuit of part (c) to produce the NOR operation The NOR Gate as a Universal Logic Element NOR gates can be used to produce any logic function. Like the NAND gate, the NOR gate can be used to produce the NOT, AND. OR and NAND functions. A NOT circuit or inverter can be made from a NOR gate by connecting all of the inputs together to effectively create a single input, as shown in Figure (a) with a 2-input example. Also, an OR gate can be produced from NOR gates, as illustrated in Figure (b). An AND gate can be constructed by the use of NOR gates, as shown in Figure (c). In this case the NOR gates G 1 and G 2 are used as inverters, and the final output is derived by the use of DeMorgan's theorem as follows: Figure (d) shows how NOR gates are used to form a NAND function. P.K.NAYAK Page 2

Implimenting logical circuit using NAND and NOR gate only. In addition to AND, OR, and NOT gates, other logic gates like NAND and NOR are also used in the design of digital circuits. The NAND gate represents the complement of the AND operation. Its name is an abbreviation of NOT AND. The graphic symbol for the NAND gate consists of an AND symbol with a bubble on the output, denoting that a complement operation is performed on the output of the AND gate as shown earlier The NOR gate represents the complement of the OR operation. Its name is an abbreviation of NOT OR. The graphic symbol for the NOR gate consists of an OR symbol with a bubble on the output, denoting that a complement operation is performed on the output of the OR gate as shown earlier. A universal gate is a gate which can implement any Boolean function without need to use any other gate type. The NAND and NOR gates are universal gates. In practice, this is advantageous since NAND and NOR gates are economical and easier to fabricate and are the basic gates used in all IC digital logic families. In fact, an AND gate is typically implemented as a NAND gate followed by an inverter not the other way around. Likewise, an OR gate is typically implemented as a NOR gate followed by an inverter not the other way around. P.K.NAYAK Page 3

Two-Level Implementations: We have seen before that Boolean functions in either SOP or POS forms can be implemented using 2-Level implementations. For SOP forms AND gates will be in the first level and a single OR gate will be in the second level. For POS forms OR gates will be in the first level and a single AND gate will be in the second level. Note that using inverters to complement input variables is not counted as a level. To implement a function using NAND gates only, it must first be simplified to a sum of product and to implement a function using NOR gates only, it must first be simplified to a product of sum. We will show that SOP forms can be implemented using only NAND gates, while POS forms can be implemented using only NOR gates through examples. Example 1: Implement the following SOP function using NAND gate only F = XZ + Y Z + X YZ Being an SOP expression, it is implemented in 2-levels as shown in the figure. Introducing two successive inverters at the inputs of the OR gate results in the shown equivalent implementation. Since two successive inverters on the same line will not have an overall effect on the logic as it is shown before. By associating one of the inverters with the output of the first level OR gates and the other with the input of the AND gate, it is clear that this implementation is reducible to 2- level implementation where both levels are NOR gates as shown in Figure. P.K.NAYAK Page 4

Example 2: Implement the following POS function using NOR gates only F = (X+Z) (Y +Z) (X +Y+Z) Being a POS expression, it is implemented in 2-levels as shown in the figure. Introducing two successive inverters at the inputs of the AND gate results in the shown equivalent implementation. Since two successive inverters on the same line will not have an overall effect on the logic as it is shown before. By associating one of the inverters with the output of the first level OR gates and the other with the input of the AND gate, it is clear that this implementation is reducible to 2-level implementation where both levels are NOR gates as shown in Figure. Designing Combinatorial Circuits The design of a combinational circuit starts from the verbal outline of the problem and ends with a logic circuit diagram or a set of Boolean functions from which the Boolean function can be easily obtained. The procedure involves the following steps: P.K.NAYAK Page 5

- The problem is stated - The number of available input variables and required output variables is determined. - The input and output variable are assigned their letter symbol - The truth table that defines the required relationship between the inputs and the outputs is derived. - The simplified Boolean function for each output is obtained - The logic diagram is drawn. EXAMPLE: Implement the following Boolean function with NAND gates: F (x, y, z) = (1, 2, 3, 4, 5, 7) The first step is to simplify the function into sum-of-products form. This is done by means of the map of Fig. (a), from which the simplified function is obtained: F = xy + x y + z The two-level NAND implementation is shown in Fig. (b) in mixed notation. Note that input z must have a one-input NAND gate (an inverter) to compensate for the bubble in the secondlevel gate. An alternative way of drawing the logic diagram is given in Fig. (c). Here, all the NAND gates are drawn with the same graphic symbol. The inverter with input z has been removed, but the input variable is complemented and denoted by z. P.K.NAYAK Page 6

The procedure for obtaining the logic diagram from a Boolean function is as follows: 1. Simplify the function and express it in sum-of-products form. 2. Draw a NAND gate for each product term of the expression that has at least two literals. The inputs to each NAND gate are the literals of the term. This procedure produces a group of first-level gates. 3. Draw a single gate using the AND-invert or the invert-or graphic symbol in the second level, with inputs coming from outputs of first-level gates. 4. A term with a single literal requires an inverter in the first level. However, if the single literal is complemented, it can be connected directly to an input of the second level NAND gate. Multilevel NAND Circuits F = A (CD + B) + BC The general procedure for converting a multilevel AND OR diagram into an all-nand diagram using mixed notation is as follows: P.K.NAYAK Page 7

1. Convert all AND gates to NAND gates with AND-invert graphic symbols. 2. Convert all OR gates to NAND gates with invert-or graphic symbols. 3. Check all the bubbles in the diagram. For every bubble that is not compensated by another small circle along the same line, insert an inverter (a one-input NAND gate) or complement the input literal. As another example, consider the multilevel Boolean function F = (AB + A B)(C + D ) NOR Implementation F = (A + B)(C + D)E P.K.NAYAK Page 8