Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

Similar documents
Announcements. Chapter 2 - Part 1 1

Chapter 2 Combinational Logic Circuits

Chapter 6 Selected Design Topics

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Chapter 2. Boolean Expressions:

Combinational Logic Circuits

Summary. Boolean Addition

Chapter 3. Gate-Level Minimization. Outlines

Boolean Algebra and Logic Gates

Chapter 8 Memory Basics

Chapter 2. Boolean Algebra and Logic Gates

Combinational Logic & Circuits

2/8/2017. SOP Form Gives Good Performance. ECE 120: Introduction to Computing. K-Maps Can Identify Single-Gate Functions


ELCT201: DIGITAL LOGIC DESIGN

Gate Level Minimization Map Method

MODULE 5 - COMBINATIONAL LOGIC

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

ELCT201: DIGITAL LOGIC DESIGN

Unit 6 1.Random Access Memory (RAM) Chapter 3 Combinational Logic Design 2.Programmable Logic

Ch. 5 : Boolean Algebra &

Chapter 4 Arithmetic Functions

Lecture (05) Boolean Algebra and Logic Gates

Combinational Devices and Boolean Algebra

IT 201 Digital System Design Module II Notes

LECTURE 4. Logic Design

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

Boolean Analysis of Logic Circuits

DKT 122/3 DIGITAL SYSTEM 1

Experiment 4 Boolean Functions Implementation

Digital Fundamentals

LAB #1 BASIC DIGITAL CIRCUIT

Computer Organization and Levels of Abstraction

Gate-Level Minimization

DIGITAL CIRCUIT LOGIC UNIT 7: MULTI-LEVEL GATE CIRCUITS NAND AND NOR GATES

Chap-2 Boolean Algebra

UNIT- V COMBINATIONAL LOGIC DESIGN

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

Chapter 3. Boolean Algebra and Digital Logic

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

Gate-Level Minimization. section instructor: Ufuk Çelikcan

Chapter 2 Boolean algebra and Logic Gates

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Gate-Level Minimization

Logic Gates and Boolean Algebra ENT263

Combinational Logic Worksheet

Lecture 5. Chapter 2: Sections 4-7

Chapter 2 Combinational

CprE 281: Digital Logic

Boolean Algebra & Digital Logic

CENG 241 Digital Design 1

Experiment 3: Logic Simplification

Computer Organization and Levels of Abstraction

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

Lecture #21 March 31, 2004 Introduction to Gates and Circuits

QUESTION BANK FOR TEST

Software Engineering 2DA4. Slides 2: Introduction to Logic Circuits

1. Mark the correct statement(s)

Digital Logic Design (CEN-120) (3+1)

Combinational Circuits

Circuit analysis summary

Logic and Computer Design Fundamentals VHDL. Part 1 Chapter 4 Basics and Constructs

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

Dr. Chuck Cartledge. 10 June 2015

Combinational Logic Circuits

EECS150, Fall 2004, Midterm 1, Prof. Culler. Problem 1 (15 points) 1.a. Circle the gate-level circuits that DO NOT implement a Boolean AND function.

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2006

Variable, Complement, and Literal are terms used in Boolean Algebra.

BOOLEAN ALGEBRA. Logic circuit: 1. From logic circuit to Boolean expression. Derive the Boolean expression for the following circuits.

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

ENGIN 112 Intro to Electrical and Computer Engineering

211: Computer Architecture Summer 2016

END-TERM EXAMINATION

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

數位系統 Digital Systems 朝陽科技大學資工系. Speaker: Fuw-Yi Yang 楊伏夷. 伏夷非征番, 道德經察政章 (Chapter 58) 伏者潛藏也道紀章 (Chapter 14) 道無形象, 視之不可見者曰夷

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

01 Introduction to Digital Logic. ENGR 3410 Computer Architecture Mark L. Chang Fall 2008

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

ece5745-pla-notes.txt

Combinational Circuits Digital Logic (Materials taken primarily from:

COMP combinational logic 1 Jan. 18, 2016

CS8803: Advanced Digital Design for Embedded Hardware

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Introduction to Computer Architecture

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Chapter 9 Computer Design Basics

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Standard Forms of Expression. Minterms and Maxterms

2.1 Binary Logic and Gates

Gate-Level Minimization

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Combinational Logic II

ENGIN 112. Intro to Electrical and Computer Engineering

ECE/Comp Sci 352 Digital Systems Fundamentals Kewal K. Saluja and Yu Hen Hu Spring Logic and Computer Design Fundamentals.

EE292: Fundamentals of ECE

Austin Herring Recitation 002 ECE 200 Project December 4, 2013

Chapter 2 Combinational Logic Circuits

Last Name Student Number. Last Name Student Number

Following the advice of breaking the longest (uppermost) bar first, I'll begin by breaking the bar covering the entire expression as a first step:

Transcription:

Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 3 Additional Gates and Circuits Charles Kime & Thomas Kaminski 28 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Overview Part 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 2

NAND Gate The basic NAND gate has the following symbol, illustrated for three inputs: AND-Invert (NAND) F(,, ) = 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) F (,, ) = + + 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. Chapter 2 - Part 3 6 3

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) F (,,) = + + 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 4

NOR Gate (continued) Applying DeMorgan's Law gives Invert-AND (NOR) 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 5

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

Truth Tables for OR/NOR Operator Rules: OR NOR The OR function means: OR, but NOT BOTH Why is the NOR function also known as the equivalence function, denoted by the operator? ( ) or Chapter 2 - Part 3 3 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: = + + + The complement of the odd function is the even function. The OR identities: = = = = = ( ) = ( ) = Chapter 2 - Part 3 4 7

Symbols For OR and NOR OR symbol: NOR symbol: Shaped symbols exist only for two inputs Chapter 2 - Part 3 5 OR Implementations The simple SOP implementation uses the following structure: A NAND only implementation is: Chapter 2 - Part 3 6 8

Odd and Even Functions The odd and even functions on a K-map form checkerboard patterns. The s of an odd function correspond to minterms having an index with an odd number of s. The s of an even function correspond to minterms having an index with an even number of s. 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 7 Example: Odd Function Implementation Design a 3-input odd function F = + + with 2-input OR gates Factoring, F = ( + ) + The circuit: F Chapter 2 - Part 3 8 9

Example: Even Function Implementation Design a 4-input odd function F = W + + + with 2-input OR and NOR gates Factoring, F = (W + ) + ( + ) The circuit: W F Chapter 2 - Part 3 9 Parity Generators and Checkers In Chapter, a parity bit added to n-bit code to produce an n + 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: (,,) = (,,) gives (,,,P) = (,,,) and E =. If changes from to between P generator and checker, then E = indicates an error. Chapter 2 - Part 3 2 P E

Hi-Impedance Outputs Logic gates introduced thus far have and 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-), giving three states:,, and Hi- on the outputs. The presence of a Hi- state makes a gate output as described above behave quite differently: and become,, and Hi- cannot becomes can, and only one becomes two Chapter 2 - Part 3 2 Hi-Impedance Outputs (continued) What is a Hi- value? The Hi- 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- 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 =, regardless of the value on IN (denoted by ), the output value is Hi-. For EN =, 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 Hi- Chapter 2 - Part 3 23 Resolving 3-State Values on a Connection Connection of two 3-state buffer outputs, B and B, to a wire, OUT Assumption: Buffer data inputs can take on any combination of values and Resulting Rule: At least one buffer output value must be Hi-. 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 B B OUT Hi- Hi- Hi- Hi- Hi- Hi- Hi- Chapter 2 - Part 3 24 2

3-State Logic Circuit Data Selection Function: If s =, OL = IN, else OL = IN Performing data selection with 3-state buffers: EN IN EN IN OL IN EN IN EN Since EN = S and EN = S, one of the two buffer outputs is always Hi- plus the last row of the table never occurs. S OL 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 3

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- 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 28 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 4