Chapter 2 Combinational Logic Circuits



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

BOOLEAN ALGEBRA & LOGIC GATES

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

Basic Logic Gates Richard E. Haskell

NAND and NOR Implementation

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

Gates, Circuits, and Boolean Algebra

Two-level logic using NAND gates

ENGI 241 Experiment 5 Basic Logic Gates

3.Basic Gate Combinations

Lecture 5: Gate Logic Logic Optimization

CHAPTER 3 Boolean Algebra and Digital Logic

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

Binary Adders: Half Adders and Full Adders

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

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

Combinational circuits

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

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

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

Logic in Computer Science: Logic Gates

Digital Electronics Detailed Outline

Lecture 8: Synchronous Digital Systems

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

Elementary Logic Gates

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

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

CSE140: Components and Design Techniques for Digital Systems

ERROR DETECTION AND CORRECTION

CSE140: Midterm 1 Solution and Rubric

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

Systems I: Computer Organization and Architecture

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

Course Requirements & Evaluation Methods

Simplifying Logic Circuits with Karnaugh Maps

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

Combinational Logic Design

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

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

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

CMOS Binary Full Adder

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

Multiplexers Two Types + Verilog

Sistemas Digitais I LESI - 2º ano

DESIGN OF GATE NETWORKS

Counters and Decoders

Understanding Logic Design

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

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

CSE140 Homework #7 - Solution

[ 4 ] Logic Symbols and Truth Table

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

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

2.0 Chapter Overview. 2.1 Boolean Algebra

Chapter 2 Logic Gates and Introduction to Computer Architecture

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

Flip-Flops, Registers, Counters, and a Simple Processor

Upon completion of unit 1.1, students will be able to

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

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

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

BINARY CODED DECIMAL: B.C.D.

Combinational Logic Design Process

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

ECE410 Design Project Spring 2008 Design and Characterization of a CMOS 8-bit Microprocessor Data Path

CHAPTER 11: Flip Flops

Boolean Algebra Part 1

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

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

CS311 Lecture: Sequential Circuits

Using Op Amps As Comparators

Using Logic to Design Computer Components

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

7. Latches and Flip-Flops

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

COMBINATIONAL CIRCUITS

Sequential Logic: Clocks, Registers, etc.

Figure 8-1 Four Possible Results of Adding Two Bits

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

The string of digits in the binary number system represents the quantity

C H A P T E R. Logic Circuits

Conversion Between Analog and Digital Signals

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

Topics of Chapter 5 Sequential Machines. Memory elements. Memory element terminology. Clock terminology

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

2011, The McGraw-Hill Companies, Inc. Chapter 3

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

MAS.836 HOW TO BIAS AN OP-AMP

Chapter 7 Memory and Programmable Logic

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

ANALOG & DIGITAL ELECTRONICS

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Chapter 6 TRANSISTOR-TRANSISTOR LOGIC. 3-emitter transistor.

Chapter 1. Computation theory

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

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

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Transcription:

Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 3 Additional Gates and Circuits Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc.

Overview Part 1 Gate Circuits and Boolean Equations Binary Logic and Gates Boolean Algebra Standard Forms Part 2 Circuit Optimization Two-Level Optimization Map Manipulation Practical Optimization (Espresso) Multi-Level Circuit Optimization Part 3 Additional Gates and Circuits Other Gate Types Exclusive-OR Operator and Gates High-Impedance Outputs Chapter 2 - Part 3 2

Other Gate Types Why? Implementation feasibility and low cost Power in implementing Boolean functions Convenient conceptual representation Gate classifications Primitive gate - a gate that can be described using a single primitive operation type (AND or OR) plus an optional inversion(s). Complex gate - a gate that requires more than one primitive operation type for its description Primitive gates will be covered first Chapter 2 - Part 3 3

Buffer A buffer is a gate with the function F = : In terms of Boolean function, a buffer is the same as a connection! So why use it? A buffer is an electronic amplifier used to improve circuit voltage levels and increase the speed of circuit operation. F Chapter 2 - Part 3 4

NAND Gate The basic NAND gate has the following symbol, illustrated for three inputs: AND-Invert (NAND) Y Z F (, Y, Z) = Y Z NAND represents NOT AND, i. e., the AND function with a NOT applied. The symbol shown is an AND-Invert. The small circle ( bubble ) represents the invert function. Chapter 2 - Part 3 5

NAND Gates (continued) Applying DeMorgan's Law gives Invert-OR (NAND) Y Z F (, Y, Z) = + Y + This NAND symbol is called Invert-OR, since inputs are inverted and then ORed together. AND-Invert and Invert-OR both represent the NAND gate. Having both makes visualization of circuit function easier. A NAND gate with one input degenerates to an inverter. Z Chapter 2 - Part 3 6

NAND Gates (continued) Universal gate - a gate type that can implement any Boolean function. The NAND gate is a universal gate as shown in Figure 2-24 of the text. NAND usually does not have a operation symbol defined since the NAND operation is not associative, and we have difficulty dealing with non-associative mathematics! Chapter 2 - Part 3 7

NOR Gate The basic NOR gate has the following symbol, illustrated for three inputs: OR-Invert (NOR) Y Z F (,Y,Z) = + Y+ Z NOR represents NOT - OR, i. e., the OR function with a NOT applied. The symbol shown is an OR-Invert. The small circle ( bubble ) represents the invert function. Chapter 2 - Part 3 8

NOR Gate (continued) Applying DeMorgan's Law gives Invert-AND (NOR) Y Z This NOR symbol is called Invert-AND, since inputs are inverted and then ANDed together. OR-Invert and Invert-AND both represent the NOR gate. Having both makes visualization of circuit function easier. A NOR gate with one input degenerates to an inverter. Chapter 2 - Part 3 9

NOR Gate (continued) The NOR gate is a universal gate NOR usually does not have a defined operation symbol since the NOR operation is not associative, and we have difficulty dealing with non-associative mathematics! Chapter 2 - Part 3 10

Exclusive OR/ Exclusive NOR The eclusive OR (OR) function is an important Boolean function used extensively in logic circuits. The OR function may be; implemented directly as an electronic circuit (truly a gate) or implemented by interconnecting other gate types (used as a convenient representation) The eclusive NOR function is the complement of the OR function By our definition, OR and NOR gates are complex gates. Chapter 2 - Part 3 11

Exclusive OR/ Exclusive NOR Uses for the OR and NORs gate include: Adders/subtractors/multipliers Counters/incrementers/decrementers Parity generators/checkers Definitions Y = Y + Y The OR function is: The eclusive NOR (NOR) function, otherwise known as equivalence is: Y = Y + Y Strictly speaking, OR and NOR gates do not exist for more that two inputs. Instead, they are replaced by odd and even functions. Chapter 2 - Part 3 12

Truth Tables for OR/NOR Operator Rules: OR NOR Y Y 0 0 0 0 1 1 1 0 1 1 1 0 The OR function means: OR Y, but NOT BOTH Why is the NOR function also known as the equivalence function, denoted by the operator? Y ( Y) or Y 0 0 1 0 1 0 1 0 0 1 1 1 Chapter 2 - Part 3 13

OR/NOR (Continued) The OR function can be extended to 3 or more variables. For more than 2 variables, it is called an odd function or modulo 2 sum (Mod 2 sum), not an OR: Y Z = Y Z The complement of the odd function is the even function. The OR identities: + Y Z 0 = 1 = = 0 = 1 Y = Y ( Y) Z = (Y Z) = Y Z + Y Z + Y Z Chapter 2 - Part 3 14

Symbols For OR and NOR OR symbol: NOR symbol: Shaped symbols exist only for two inputs Chapter 2 - Part 3 15

OR Implementations The simple SOP implementation uses the following structure: Y A NAND only implementation is: Y Y Y Chapter 2 - Part 3 16

Odd and Even Functions The odd and even functions on a K-map form checkerboard patterns. The 1s of an odd function correspond to minterms having an index with an odd number of 1s. The 1s of an even function correspond to minterms having an index with an even number of 1s. Implementation of odd and even functions for greater than four variables as a two-level circuit is difficult, so we use trees made up of : 2-input OR or NORs 3- or 4-input odd or even functions Chapter 2 - Part 3 17

Example: Odd Function Implementation Design a 3-input odd function F = + Y + Z with 2-input OR gates Factoring, F = ( + Y) + Z The circuit: Y Z F Chapter 2 - Part 3 18

Example: Even Function Implementation Design a 4-input odd function F = W + + Y + Z with 2-input OR and NOR gates Factoring, F = (W + ) + (Y + Z) The circuit: W Y Z F Chapter 2 - Part 3 19

Parity Generators and Checkers In Chapter 1, a parity bit added to n-bit code to produce an n + 1 bit code: Add odd parity bit to generate code words with even parity Add even parity bit to generate code words with odd parity Use odd parity circuit to check code words with even parity Use even parity circuit to check code words with odd parity Example: n = 3. Generate even parity code words of length four with odd parity generator: Check even parity code words of length four with odd parity checker: Operation: (,Y,Z) = (0,0,1) gives (,Y,Z,P) = (0,0,1,1) and E = 0. Z If Y changes from 0 to 1 between P generator and checker, then E = 1 indicates an error. Y Z Y P Chapter 2 - Part 3 20 E

Hi-Impedance Outputs Logic gates introduced thus far have 1 and 0 output values, cannot have their outputs connected together, and transmit signals on connections in only one direction. Three-state logic adds a third logic value, Hi- Impedance (Hi-Z), giving three states: 0, 1, and Hi-Z on the outputs. The presence of a Hi-Z state makes a gate output as described above behave quite differently: 1 and 0 become 1, 0, and Hi-Z cannot becomes can, and only one becomes two Chapter 2 - Part 3 21

Hi-Impedance Outputs (continued) What is a Hi-Z value? The Hi-Z value behaves as an open circuit This means that, looking back into the circuit, the output appears to be disconnected. It is as if a switch between the internal circuitry and the output has been opened. Hi-Z may appear on the output of any gate, but we restrict gates to: a 3-state buffer, or Optional: a transmission gate (See Reading Supplement: More on CMOS Circuit-Level Design), each of which has one data input and one control input. Chapter 2 - Part 3 22

The 3-State Buffer For the symbol and truth table, IN is the data input, and EN, the control input. For EN = 0, regardless of the value on IN (denoted by ), the output value is Hi-Z. For EN = 1, the output value follows the input value. Variations: Data input, IN, can be inverted Control input, EN, can be inverted by addition of bubbles to signals. Symbol IN OUT EN Truth Table EN IN OUT 0 Hi-Z 1 0 0 1 1 1 Chapter 2 - Part 3 23

Resolving 3-State Values on a Connection Connection of two 3-state buffer outputs, B1 and B0, to a wire, OUT Assumption: Buffer data inputs can take on any combination of values 0 and 1 Resulting Rule: At least one buffer output value must be Hi-Z. Why? How many valid buffer output combinations exist? What is the rule for n 3-state buffers connected to wire, OUT? How many valid buffer output combinations exist? Resolution Table B1 B0 OUT 0 Hi-Z 0 1 Hi-Z 1 Hi-Z 0 0 Hi-Z 1 1 Hi-Z Hi-Z Hi-Z Chapter 2 - Part 3 24

3-State Logic Circuit Data Selection Function: If s = 0, OL = IN0, else OL = IN1 Performing data selection with 3-state buffers: EN0 IN0 EN1 IN1 OL 0 0 1 0 1 1 0 0 1 0 1 0 S IN0 EN0 OL 1 0 1 0 0 1 IN1 EN1 Since EN0 = S and EN1 = S, one of the two buffer outputs is always Hi-Z plus the last row of the table never occurs. Chapter 2 - Part 3 25

More Complex Gates The remaining complex gates are SOP or POS structures with and without an output inverter. The names are derived using: A - AND O - OR I - Inverter Numbers of inputs on first-level gates or directly to second-level gates Chapter 2 - Part 3 26

More Complex Gates (continued) Example: AOI - AND-OR-Invert consists of a single gate with AND functions driving an OR function which is inverted. Example: 2-2-1 AO has two 2-input ANDS driving an OR with one additional OR input These gate types are used because: the number of transistors needed is fewer than required by connecting together primitive gates potentially, the circuit delay is smaller, increasing the circuit operating speed Chapter 2 - Part 3 27