Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

Similar documents
KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Systems I: Computer Organization and Architecture

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Combinational Logic. By : Ali Mustafa


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

IT T35 Digital system desigm y - ii /s - iii

Fundamentals of Boolean Algebra

Logic. Combinational. inputs. outputs. the result. system can

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

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

CS470: Computer Architecture. AMD Quad Core

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

Sample Test Paper - I

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

Introduction to Digital Logic Missouri S&T University CPE 2210 PLDs

Chap 2. Combinational Logic Circuits

Lecture 6: Manipulation of Algebraic Functions, Boolean Algebra, Karnaugh Maps

Advanced Digital Design with the Verilog HDL, Second Edition Michael D. Ciletti Prentice Hall, Pearson Education, 2011

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

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

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

COMBINATIONAL LOGIC FUNCTIONS

Programmable Logic Devices

Unit 3 Session - 9 Data-Processing Circuits

L4: Karnaugh diagrams, two-, and multi-level minimization. Elena Dubrova KTH / ICT / ES

Lecture 22 Chapters 3 Logic Circuits Part 1

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

UNIT II COMBINATIONAL CIRCUITS:

ENGIN 112 Intro to Electrical and Computer Engineering

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

211: Computer Architecture Summer 2016

PG - TRB UNIT-X- DIGITAL ELECTRONICS. POLYTECHNIC-TRB MATERIALS

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

Review for Test 1 : Ch1 5

Chapter 2 Combinational Logic Circuits

Digital Logic Design ENEE x. Lecture 14

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

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

UNIT 4 MINTERM AND MAXTERM EXPANSIONS

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

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

Unit 9. Multiplexers, Decoders, and Programmable Logic Devices. Unit 9 1

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

Unit 2 Session - 6 Combinational Logic Circuits

MC9211 Computer Organization

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Chapter 2 Boolean Algebra and Logic Gates

MODULAR CIRCUITS CHAPTER 7

Combinational Logic. Review of Combinational Logic 1

ECE 2300 Digital Logic & Computer Organization

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Lecture 2 Review on Digital Logic (Part 1)

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

Class Website:

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Combinatorial Logic Design Principles

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

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

Adders - Subtractors

ELCT201: DIGITAL LOGIC DESIGN

3 Logic Function Realization with MSI Circuits

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

Chapter 3. Boolean Algebra. (continued)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

EECS Variable Logic Functions

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

CHAPTER1: Digital Logic Circuits Combination Circuits

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

Boolean Algebra and Logic Design (Class 2.2 1/24/2013) CSE 2441 Introduction to Digital Logic Spring 2013 Instructor Bill Carroll, Professor of CSE

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

INSTITUTEOFAERONAUTICALENGINEERING (Autonomous) Dundigal, Hyderabad

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Chapter 2: Boolean Algebra and Logic Gates

Show that the dual of the exclusive-or is equal to its compliment. 7

Computer Science Final Examination Friday December 14 th 2001

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

Chapter 5 Arithmetic Circuits

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

Numbers and Arithmetic

UNIT 1. BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS

Combinational Logic. Course Instructor Mohammed Abdul kader

Menu. Binary Adder EEL3701 EEL3701. Add, Subtract, Compare, ALU

Combinational Logic Design Principles

Transcription:

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu Temple University

Gate Delay ((1.1).1) ((1.0).0) ((0.1).1) ((0.1).0) ((1.1) = 1 0

s = sum c out carry-out a, b = added bits C = carry in a b c c out s 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 One-bit Carry Ripple Adder 1 0 0 0 1 15 2 three-input two-input 0 1 NAND, 1 3 0 two-input NAND, four- 11 two-input XOR, NAND, 3 two-input three NANDs, not gates, 1 three- input NAND, and three not gates if 1 complemented 1 0 1 input inputs 0 OR are not available 1 1 1 1 1 S = a b c+a bc +ab c +abc c out = a bc+ab c+abc +abc = bc+ac+ab S = c(a b +ab)+c (ab +a b) c out = c (a+b)+ab S = c(aφb) +c (aφb) = c Φ(aΦb) Xor can be replaced with 4 two input NAND gates c out = c(aφb)+ab

One-bit Full Binary Adder Gate implementation for the One-bit Full Adder n-bit ripple-carry binary adder Worst case propagation delay 2n time units; Gate delay=1

Gate Delay through a 1-bit Adder Copyright 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Gate Delay through an n-bit Adder 1. Delay from inputs to c out + 2. (n-2)*delay from c in + to c out in to 3. Max(delay from c in to c out or c in to s) For the multilevel adder: 5 + 2(n-2) 2) + 3 Total delay does = (2n+4) not have to be so long!! What is the delay for a 64 bit adder?

Gate Delay Improvements SOP minimization for two-bit adders Complex equations Fan-in limitations With a maximum fan-in of 7, adding n-bit would have a total delay of (n+1) Four-bit adders 7483, 7483A, 74283 differ only in pin connections Produces the sum with four-level inputs Uses combination of NAND, NOR, AND, NOT and XOR gates Delay from c in to c out = 3 3 Total delay = of (3/4 n+1) 4-bit adders are cascaded for larger adders

One-bit Full Binary Adder a b c s Gate implementation for the One-bit Full Adder C out n-bit ripple-carry binary adder Worst case propagation delay 2n time units; Gate delay=1

Gate Delay Improvements Copyright 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Carry-Look-Ahead Adder Carry generate signal (g) is 1 if that stage of the adder has a carryout of 1 whether or not there was a carry-in Carry propagate signal (p) is 1 if that stage of the adder has a carryout of 1 if he carry-in is 1 Both g and p can be generated for all n bits in 1 gate delay. The carry out is 1 if the last bit generated a carry, or if it propagated a carry and the stage below it generated one. All the carries can be generated in 2 additional delays after g and p are available, independent of n. All sums can be generated in 4, independent of n. Gate Delay Improvements

One-bit Full Binary Subtractor/Adder Subtract y from x, with a borrow-in from the previous bit position, b in d: difference b out : borrow-out x y b in b out d 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 b = xy + xb + out yb in d = bin ( x y)

Organization of a 1-bit comparator Compares two numbers to determine if A is less than B A is equal to B A if greater than B Can be extended to any bit size

Truth Table for Simple 1-bit 1 Comparator A 2 B 2 A 1 B 1 Y: A=B 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1. In groups, come up with a minimum SOP expression for this simple comparator. Assume all inputs are available in both complimented and uncomplemented versions, design a logic circuit for your algebraic expression What is the minimum delay for your design

1 3 5 Group Work Homework: 2, 4, 7,

Binary Decoders Selects one of several outputs when activated n-bit binary number results in 2 n output lines

Binary Decoders Selected output is high

Binary Decoders Selected output is low

Binary Decoders Selected output is high only when Enable bit is high or Enable Prime is low

Binary Decoders Active Low and three enable bits Active when ALL THREE enable bits are active

Binary Decoders Copyright 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Exact Opposite of a binary decoder Binary Encoders Used to select a device from several possible What is the difference devices between Device A 0 If only one of the inputs can and be when 1, then there is the no truth device signaling? table for a 4-2 encoder is: A 0 A 1 A 2 A 3 z 0 z 1 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 1 1 1 Z 0 =A 2 +A 3 Z 1 =A 1 +A 3

Priority Encoders NR= AAAAAAAA 0 1 2 3 4 5 6 7 Z = A + A + A + A 0 4 5 6 7 Z = A + A + ( A + A ) A A 1 6 7 2 3 4 5 Z = A + A A + A A A + AA A A 2 7 5 6 3 4 6 1 2 4 6

Multiplexers A switch that is used to pass one input as a function of select inputs

Multiplexers

Group Work 10 assume you have 4-input NAND also available 13*

Programmable Logic Devices Also known as gate arrays Involves gate diagrams combinational circuits with lines for all possible connection

Programmable Logic Devices - Illustration Base array is manufactured first Each connection is added when needed based on user specifications

Programmable Logic Devices - Illustration Field Programmable Gate Arrays (FPGAs( FPGAs) A fuse in connected in the midst of each connection line If the connection is not wanted, the fuse is blown

Programmable Logic Devices - Illustration Field Programmable Gate Arrays (FPGAs( FPGAs) (a) Unprogrammed and-gate. (b) Unprogrammed or-gate. (c) Programmed and-gate realizing the term ac. (d) Programmed or-gate realizing the term a + b. (e) Special notation for an andgate having all its input fuses intact. (f) Special notation for an or-gate having all its input fuses intact. (g) And-gate with nonfusible inputs. (h) Or-gate with nonfusible inputs.

Programmable ROMs You only need a list of minterms One AND gate for each minterm Appropriate minterm gates are connected to each output W(A, B, C, D) = Σm(3, 7, 8, 9, 11, 15) X(A, B, C, D) = Σm(3, 4, 5, 7, 10, 14, 15) Y(A, B, C, D) = Σm(1, 5, 7, 11, 15)

Programmable Logic Arrays - PLAs You only need SOP expressions Main concern is the number of AND gates available You may use just a sum of minterms, or minimize each function or maximize charing W = AB C + A CD + ACD X = A BC + ACD + A CD + BCD Y = A C D + ACD + BCD 7 terms W = AB C + CD X = A BC + ACD + A CD + (BCD or ABC) Y = A C D + ACD + (BCD or A BD) 8 or 9 terms depending on if we choose BCD

Programmable Array Logic - PAL Each output comes from an OR gate that has its own group of AND gates W = AB C + CD Y = A BC + A CD + ACD + {BCD or ABC} Z = A C D + ACD + {A BD or BCD}

Group Work 14d ROM

Group Work 14d PLA F = A' B' C' D + A' C D' + A' B C + A C' D' + A C' D G = A' B' C' D + A B' + A C' D + A C D H = A' B' C' D + B C + A C' D' + A C D

Group Work 14d PLA

Group Work PAL