ES 244: Digital Logic Design Chapter 4 Chapter 4: Combinational Logic Uchechukwu Ofoegbu Temple University.

Slides:



Advertisements
Similar presentations
Princess Sumaya University
Advertisements

Modular Combinational Logic
ECE 331 – Digital System Design
CSE-221 Digital Logic Design (DLD)
Chapter 4 Gates and Circuits.
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Lecture 8 Arithmetic Logic Circuits

ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Logic Gates Combinational Circuits
CS 105 Digital Logic Design
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Top-down modular design
Combinational Circuits Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 2003.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Logical Circuit Design Week 8: Arithmetic Circuits Mentor Hamiti, MSc Office ,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Basic Arithmetic (adding and subtracting)
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Digital Arithmetic and Arithmetic Circuits
MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5) Dr. Costas Kyriacou and Dr. Konstantinos Tatas ACOE161 - Digital Logic.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
IKI a-Combinatorial Components Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes.
Functions of Combinational Logic
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Karnaugh maps for the binary full adder.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
CHAPTER 4 Combinational Logic Design- Arithmetic Operation (Section 4.6&4.9)
Computer Organization Department of CSE, SSE Mukka Chapter 6 : ARITHMETIC | Website for students | VTU NOTES.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Lecture 12 Time/space trade offs Adders. 2 Time vs. speed: Linear chain 8-input OR function with 2-input gates Gates: 7 Max delay: 7.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
ES 244: Digital Logic Design Chapter 2 Chapter 2: Combinational Systems Adapted from Alan Marcovitz’s Introduction to Logic and Computer Design Uchechukwu.
EEL-3705 TPS QUIZZES Chapter 4. Quiz 4-1 Using the 2x4 Decoder shown below and two-input OR gates, design a logic circuit which implements.
Computer Architecture
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Complex Combinational Logic Blocks ECE/CS 252, Fall 2010 Prof.
Computing Machinery Chapter 3: Combinational Circuits.
ECE 320 Homework #4 1. Using 8 data input selector logic (MUX), implement the following two functions: a) F(A,B,C)=S 0 S 2 S 3 S 5 b) F(A,B,C,D)=P 0 +P.
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
1 Combinational Logic EE 208 – Logic Design Chapter 4 Sohaib Majzoub.
Designing Combinational Systems
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
Complex Combinational Circuits Binary Adders Key to enterprise: Addition table also a truth table S i = C i 'A i B i ' + C i 'A i 'B i + C i A i 'B i '+
Chapter 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Combinational Systems.
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Chapter 3 Digital Logic Structures
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
Mu.com.lec 11.  Used not only to perform addition but also to perform subtraction, multiplication and division  The most basic of the adders is the.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
ACOE161 (Spring2007)MSI Devices1 Revision on MSI Devices M. Mano & C. Kime: Logic and Computer Design Fundamentals (Chapter 5)
Combinational Circuits
ECE 3130 Digital Electronics and Design
Combinational Circuit Design
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Presentation transcript:

ES 244: Digital Logic Design Chapter 4 Chapter 4: Combinational Logic Uchechukwu Ofoegbu Temple University

ES 244: Digital Logic Design Chapter 4 One-bit Carry Ripple Adder – s = sum –c out – carry-out –a, b = added bits –C = carry in abcc out s – –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 5 three-input NAND, 3 two-input NAND, 1 four- input NAND, and three not gates if complemented inputs are not available 12 two-input NAND, two not gates or 9 two-input NAND gates assuming all input are available both complemented and uncomplemented 9 two-input NAND gates assuming all input are available both complemented and uncomplemented 2 two-input XOR, 3 two-input NANDs, 1 three- input OR

ES 244: Digital Logic Design Chapter 4 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

ES 244: Digital Logic Design Chapter 4 Copyright © 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Gate Delay through a 1-bit Adder

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

ES 244: Digital Logic Design Chapter 4 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, – differ only in pin connections Produces the sum with four-level inputs Uses combination of NAND, NOR, AND, NOT and XOR gates c in to c out = 3Delay from c in to c out = 3 ∆ Total delay = of (3/4 n+1)∆ 4-bit adders are cascaded for larger adders Gate Delay Improvements

ES 244: Digital Logic Design Chapter 4 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 abc s C out

ES 244: Digital Logic Design Chapter 4 Copyright © 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Gate Delay Improvements

ES 244: Digital Logic Design Chapter 4 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

ES 244: Digital Logic Design Chapter 4 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 xyb in b out d

ES 244: Digital Logic Design Chapter 4 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

ES 244: Digital Logic Design Chapter 4 Truth Table for Simple 1-bit Comparator A2A2 B2B2 A1A1 B1B1 Y: A=B Y: A>B Y A<B 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

ES 244: Digital Logic Design Chapter 4 Selects one of several outputs when activated n-bit binary number results in 2 n output lines Binary Decoders

ES 244: Digital Logic Design Chapter 4 Binary Decoders Selected output is high

ES 244: Digital Logic Design Chapter 4 Binary Decoders Selected output is low

ES 244: Digital Logic Design Chapter 4 Binary Decoders Selected output is high only when Enable bit is high or Enable Prime is low

ES 244: Digital Logic Design Chapter 4 Active Low and three enable bits Active when ALL THREE enable bits are active Binary Decoders

ES 244: Digital Logic Design Chapter 4 Copyright © 2008 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Binary Decoders

ES 244: Digital Logic Design Chapter 4 Exact Opposite of a binary decoder Used to select a device from several possible devices If only one of the inputs can be 1, then the truth table for a 4-2 encoder is: Binary Encoders A0A0A0A0 A1A1A1A1 A2A2A2A2 A3A3A3A3 z0z0z0z0 z1z1z1z Z 0 =A 2 +A 3 Z 1 =A 1 +A 3 What is the difference between Device A 0 and when there is no device signaling?

ES 244: Digital Logic Design Chapter 4 Priority Encoders

ES 244: Digital Logic Design Chapter 4Multiplexers A switch that is used to pass one input as a function of select inputs

ES 244: Digital Logic Design Chapter 4Multiplexers

Homework