Binary full adder. 2-bit ripple-carry adder. CSE 370 Spring 2006 Introduction to Digital Design Lecture 12: Adders



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

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

Understanding Logic Design

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

Combinational Logic Design

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

Lesson 12 Sequential Circuits: Flip-Flops

Binary Adders: Half Adders and Full Adders

CSE140: Components and Design Techniques for Digital Systems

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

Two-level logic using NAND gates

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

5 Combinatorial Components. 5.0 Full adder. Full subtractor

CHAPTER 3 Boolean Algebra and Digital Logic

Elementary Logic Gates

Counters and Decoders

Combinational Logic Design Process

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

BOOLEAN ALGEBRA & LOGIC GATES

Digital Electronics Detailed Outline

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

ASYNCHRONOUS COUNTERS

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

Let s put together a Manual Processor

Figure 8-1 Four Possible Results of Adding Two Bits

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Lecture 8: Synchronous Digital Systems

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

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

BINARY CODED DECIMAL: B.C.D.

Gates, Circuits, and Boolean Algebra

3.Basic Gate Combinations

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Systems I: Computer Organization and Architecture

Counters. Present State Next State A B A B

Module 3: Floyd, Digital Fundamental

CSE140 Homework #7 - Solution

6.004 Computation Structures Spring 2009

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

(1) /30 (2) /30 (3) /40 TOTAL /100

Asynchronous counters, except for the first block, work independently from a system clock.

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

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

RUTGERS UNIVERSITY Department of Electrical and Computer Engineering 14:332:233 DIGITAL LOGIC DESIGN LABORATORY

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

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

CSE140: Components and Design Techniques for Digital Systems

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Basic Logic Gates Richard E. Haskell

NAND and NOR Implementation

Counters & Shift Registers Chapter 8 of R.P Jain

Contents COUNTER. Unit III- Counters

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

Asynchronous Counters. Asynchronous Counters

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Upon completion of unit 1.1, students will be able to

Chapter 3 Digital Basics

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

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

COMBINATIONAL CIRCUITS

Lecture 7: Clocking of VLSI Systems

Decimal Number (base 10) Binary Number (base 2)

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

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

2.0 Chapter Overview. 2.1 Boolean Algebra

Multipliers. Introduction

Digital Logic Design Sequential circuits

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

LFSR BASED COUNTERS AVINASH AJANE, B.E. A technical report submitted to the Graduate School. in partial fulfillment of the requirements

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

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

Modeling Latches and Flip-flops

Memory Elements. Combinational logic cannot remember

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Digital Logic Elements, Clock, and Memory Elements

Logic Reference Guide

Sequential Logic: Clocks, Registers, etc.

Using Logic to Design Computer Components

7. Latches and Flip-Flops

Lecture #21 April 2, 2004 Relays and Adder/Subtractors

DEPARTMENT OF INFORMATION TECHNLOGY

CSE140: Midterm 1 Solution and Rubric

Sequential Logic Design Principles.Latches and Flip-Flops

ANALOG & DIGITAL ELECTRONICS

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

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

CHAPTER 11: Flip Flops

(Refer Slide Time: 00:01:16 min)

Sistemas Digitais I LESI - 2º ano

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

Transcription:

SE 370 Spring 2006 Introduction to Digital Design Lecture 12: dders Last Lecture Ls and Ls Today dders inary full 1-bit full omputes sum, carry-out arry-in allows cascaded s = xor xor = + + 32 ND2 11 ND2 12 ND2 13 1 33 OR3 S 0 0 0 0 0 0 0 1 0 0 1 1 0 1 1 0 1 1 1 1 1 1 Full dder Full : lternative Implementation Multilevel logic Slower Less gates 2 s, 2 NDs, 1 OR = ( ) = + + = ( ) + Half dder xor S 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 Half dder xor xor ( xor ) 32 13 2-bit ripple-carry ND2 11 ND2 12 ND2 33 OR3 1 1-it dder 0 1 1 1 2 2 2 Overflow

-bit ripple-carry /subtractor Overflow ircuit adds or subtracts 2s complement: = + ( ) = + ' + 1 3 33' Sel 0 1 2 22' 1 11' 0 00' 0 1 Sel 0 1 Sel 0 1 Sel S3 S2 S1 S0 Note: an replace 2:1 muxes with gates 0 dd 1 Subtract roblem: Ripple-carry delay arry propagation limits speed N N N 32 ND2 11 ND2 12 ND2 13 1 33 OR3 N+1 N+2 0 0 1 1 takes two gate delays arrives late 2 2 S0 1 3 3 S1 2 @ S2 @5 3 @6 S3 @7 @8 Ripple-carry timing diagram ritical delay arry propagation 1111 + 0001 = 10000 is worst case S0, 1 Valid S1, 2 Valid S2, 3 Valid S3, Valid T0 T2 T T6 T8 One solution: arry lookahead logic ompute all the carries in parallel Derive carries from the data inputs Not from intermediate carries Use two-level logic ompute all sums in parallel ascade simple s to make large s Speed improvement 16-bit ripple-carry: ~32 gate delays 16-bit carry-lookahead: ~8 gate delays Issues omplex combinational logic 0 0 1 1 1 2 2 2 3 3 3 S0 S1 @ S2 @ S3 @

Full again arry-lookahead logic i i i i i Half dder xor i 36 ND2 i 37 Half dder xor xor ( xor ) 38 ND2 39 OR2 0 Si i+1 arry generate: i = i i enerate carry when = = 1 arry propagate: i = i xor i ropagate carry-in to carry-out when ( xor ) = 1 and in terms of generate/propagate: S i = i xor i xor i = i xor i i+1 = i i + i ( i xor i ) = i + i i arry-lookahead logic (cont d) Re-express the carry logic in terms of and 1 = 0 + 0 0 2 = 1 + 1 1 = 1 + 1 0 + 1 0 0 3 = 2 + 2 2 = 2 + 2 1 + 2 1 0 + 2 1 0 0 = 3 + 3 3 = 3 + 3 2 + 3 2 1 + 3 2 1 0 + 3 2 1 0 0 Implement each carry equation with two-level logic Derive intermediate results directly from inputs Rather than from carries llows "sum" computations to proceed in parallel i i i 1 Implementing the carrylookahead logic 1 2 i @ 1 gate delay Si @ 2 gate delays i @ 1 gate delay 1 2 3 Logic complexity increases with size 1 2 3

[15-12] [15-12] 12 -bit dder ascaded carry-lookahead four-bit s with internal carry lookahead Second level lookahead extends to 16 bits [11-8] -bit dder [11-8] 8 [7-] -bit dder [7-] [3-0] -bit dder [3-0] nother solution: arry-select Redundant hardware speeds carry calculation ompute two high-order sums while waiting for carryin () Select correct high-order sum after receiving 8 -bit [7:] 0 low S[15-12] @8 S[11-8] @8 @5 S[7-] @7 @5 3 3 2 2 1 1 @ S[3-0] @ 8 -bit [7:] 1 high 16 @ Lookahead arry Unit -0 3-0 @5 five 2:1 muxes -it dder [3:0] 8 S7 S6 S5 S S3 S2 S1 S0 We've finished combinational logic... What you should know Twos complement arithmetic Truth tables asic logic gates Schematic diagrams Timing diagrams Minterm and maxterm expansions (canonical, minimized) de Morgan's theorem ND/OR to NND/NOR logic conversion K-maps, logic minimization, don't cares Multiplexers/demultiplexers Ls/Ls ROMs dders Sequential versus combinational pply fixed inputs, Wait for edge Observe Wait for another edge Observe again ombinational: will stay the same Sequential: may be different

Sequential logic Two types Synchronous = ed synchronous = self-timed Has state State = memory Employs feedback ssumes steady-state signals Signals are valid after they have settled State elements hold their settled output values Sequential versus combinational (again) ombinational systems are memoryless Outputs depend only on the present inputs Inputs System Outputs Sequential systems have memory Outputs depend on the present and the previous inputs Inputs System Outputs Feedback Synchronous sequential systems Memory holds a system s state hanges in state occur at specific times periodic signal times or s the state changes The period is the time between state changes Steady-state abstraction Outputs retain their settled values The period must be long enough for all voltages to settle to a steady state before the next state change pulsewidth State changes occur at rising edge of duty cycle = pulsewidth/period (here it is 50%) lock hides transient behavior period Settled value

Example: sequential system Door combination lock Enter 3 numbers in sequence and the door opens If there is an error the lock must be reset fter the door opens the lock must be reset Inputs: Sequence of numbers, reset Outputs: Door open/close Memory: Must remember the combination