Chapter 2 Combinational Logic Circuits

Similar documents
Chapter 2 Combinational Logic Circuits

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Chapter 3 Combinational Logic Design

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Exclusive OR/ Exclusive NOR

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Logic Design. Chapter 2: Introduction to Logic Circuits

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations

Number System conversions

Chapter 2 Combinational Logic Circuits

EEE130 Digital Electronics I Lecture #4

MC9211 Computer Organization

Unit 8A Computer Organization. Boolean Logic and Gates

Week-I. Combinational Logic & Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Textbook: Digital Design, 3 rd. Edition M. Morris Mano

Gate-Level Minimization

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Logic Gate Level. Part 2

Computer Organization: Boolean Logic

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Class Website:

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Digital Fundamentals

Circuits & Boolean algebra.

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Chap 2. Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

CS 226: Digital Logic Design

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Chapter 3 Combinational Logic Design

Implementation of Boolean Logic by Digital Circuits

Lecture 2 Review on Digital Logic (Part 1)

Every time has a value associated with it, not just some times. A variable can take on any value within a range

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Computer organization

MODULAR CIRCUITS CHAPTER 7

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Chapter 2. Boolean Algebra and Logic Gates

Chapter 2: Boolean Algebra and Logic Gates

Review: Additional Boolean operations

CPE100: Digital Logic Design I

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Boolean Algebra, Gates and Circuits

Chapter 2 Boolean Algebra and Logic Gates

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

Chapter 7 Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

CHAPTER 7. Exercises 17/ / /2 2 0

Cs302 Quiz for MID TERM Exam Solved

Chapter 2 Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

ELCT201: DIGITAL LOGIC DESIGN

Combinational Logic. Review of Combinational Logic 1

Gates and Flip-Flops

ELCT201: DIGITAL LOGIC DESIGN

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

CS61c: Representations of Combinational Logic Circuits

Chapter 2. Digital Logic Basics

EC-121 Digital Logic Design

Boolean Algebra & Logic Gates. By : Ali Mustafa

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

L2: Combinational Logic Design (Construction and Boolean Algebra)

Switches: basic element of physical implementations

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

CHAPTER 7 MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Boolean Logic Continued Prof. James L. Frankel Harvard University

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

Chapter 2 Boolean Algebra and Logic Gates

Contents. Chapter 2 Digital Circuits Page 1 of 30

This form sometimes used in logic circuit, example:

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

COSC3330 Computer Architecture Lecture 2. Combinational Logic

EGC221: Digital Logic Lab

Boolean Algebra and Logic Gates

Intro To Digital Logic

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

EECS Variable Logic Functions

CprE 281: Digital Logic

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

Chapter 2 Boolean Algebra and Logic Gates

Homework Assignment #1 Solutions EE 477 Spring 2017 Professor Parker

WEEK 2.1 BOOLEAN ALGEBRA

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. (Hyperlinks are active in View Show mode)

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 = X: X 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) X Y F(X, Y, Z) = X Y Z 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) X Y Z F (X, Y, Z) = X + 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) The NAND gate is the natural implementation for CMOS technology in terms of chip area and speed. 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) X Y Z F (X,Y,Z) = X+ 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) X 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 natural implementation for some technologies other than CMOS in terms of chip area and speed. 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 exclusive OR (XOR) function is an important Boolean function used extensively in logic circuits. The XOR 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 exclusive NOR function is the complement of the XOR function By our definition, XOR and XNOR gates are complex gates. Chapter 2 - Part 3 11

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

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

XOR/XNOR (Continued) The XOR 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 XOR: X Y Z = X Y Z The complement of the odd function is the even function. The XOR identities: + X Y Z X 0 = X X 1 = X X X = 0 X X = 1 X Y = Y X ( X Y) Z = X (Y Z) = X Y Z + X Y Z + X Y Z Chapter 2 - Part 3 14

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

XOR Implementations The simple SOP implementation uses the following structure: X X Y A NAND only implementation is: X Y X 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 XOR or XNORs 3- or 4-input odd or even functions Chapter 2 - Part 3 17

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

Example: Even Function Implementation Design a 4-input odd function F = W + X + Y + Z with 2-input XOR and XNOR gates Factoring, F = (W + X) + (Y + Z) The circuit: W X 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: (X,Y,Z) = (0,0,1) gives (X,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. X Y Z X 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 X), 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 X 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 X 1 0 0 0 X 1 1 1 1 0 0 X 0 S IN0 EN0 OL 1 1 0 X 1 0 X 0 X X 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

Terms of Use All (or portions) of this material 2008 by Pearson Education, Inc. Permission is given to incorporate this material or adaptations thereof into classroom presentations and handouts to instructors in courses adopting the latest edition of Logic and Computer Design Fundamentals as the course textbook. These materials or adaptations thereof are not to be sold or otherwise offered for consideration. This Terms of Use slide or page is to be included within the original materials or any adaptations thereof. Chapter 2 - Part 3 28