CPE 626 CPU Resources: Adders & Multipliers Aleksandar Milenkovic Web:http://www.ece.uah.edu/~milenkahttp://www.ece.uah.edu/~milenka.

Slides:



Advertisements
Similar presentations
L23 – Adder Architectures. Adders  Carry Lookahead adder  Carry select adder (staged)  Carry Multiplexed Adder  Ref: text Unit 15 9/2/2012 – ECE 3561.
Advertisements

Carry Lookahead Homework
1 ECE 4436ECE 5367 Computer Arithmetic I-II. 2 ECE 4436ECE 5367 Addition concepts 1 bit adder –2 inputs for the operands. –Third input – carry in from.
Introduction So far, we have studied the basic skills of designing combinational and sequential logic using schematic and Verilog-HDL Now, we are going.
Chapter 4 -- Modular Combinational Logic. Decoders.
1 Lecture 12: Hardware for Arithmetic Today’s topics:  Designing an ALU  Carry-lookahead adder Reminder: Assignment 5 will be posted in a couple of days.
Comparator.
EE141 © Digital Integrated Circuits 2nd Arithmetic Circuits 1 Digital Integrated Circuits A Design Perspective Arithmetic Circuits Jan M. Rabaey Anantha.
EE141 Adder Circuits S. Sundar Kumar Iyer.
Datorteknik ArithmeticCircuits bild 1 Computer arithmetic Somet things you should know about digital arithmetic: Principles Architecture Design.
DPSD This PPT Credits to : Ms. Elakya - AP / ECE.
CSE-221 Digital Logic Design (DLD)
Arithmetic II CPSC 321 E. J. Kim. Today’s Menu Arithmetic-Logic Units Logic Design Revisited Faster Addition Multiplication (if time permits)
Space vs. Speed: Binary Adders 11.3 Space vs. Speed.
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Introduction to CMOS VLSI Design Lecture 11: Adders
Modern VLSI Design 2e: Chapter 6 Copyright  1998 Prentice Hall PTR Topics n Shifters. n Adders and ALUs.
Lecture 8 Arithmetic Logic Circuits
Arithmetic-Logic Units CPSC 321 Computer Architecture Andreas Klappenecker.
Lecture 17: Adders.
ECE 301 – Digital Electronics
Spring 2002EECS150 - Lec10-cl1 Page 1 EECS150 - Digital Design Lecture 10 - Combinational Logic Circuits Part 1 Feburary 26, 2002 John Wawrzynek.
Digital Integrated Circuits© Prentice Hall 1995 Combinational Logic COMBINATIONAL LOGIC.
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Adders. Full-Adder The Binary Adder Express Sum and Carry as a function of P, G, D Define 3 new variable which ONLY depend on A, B Generate (G) = AB.
Lec 17 : ADDERS ece407/507.
Parallel Prefix Adders A Case Study
Introduction to CMOS VLSI Design Lecture 11: Adders David Harris Harvey Mudd College Spring 2004.
Bar Ilan University, Engineering Faculty
 Arithmetic circuit  Addition  Subtraction  Division  Multiplication.
VLSI Arithmetic Adders & Multipliers Prof. Vojin G. Oklobdzija University of California
Abdullah Aldahami ( ) Feb26, Introduction 2. Feedback Switch Logic 3. Arithmetic Logic Unit Architecture a.Ripple-Carry Adder b.Kogge-Stone.
ECE2030 Introduction to Computer Engineering Lecture 12: Building Blocks for Combinational Logic (3) Adders/Subtractors, Parity Checkers Prof. Hsien-Hsin.
WEEK #10 FUNCTIONS OF COMBINATIONAL LOGIC (ADDERS)
Arithmetic Building Blocks
5-1 Programmable and Steering Logic Chapter # 5: Arithmetic Circuits.
1/8/ L3 Data Path DesignCopyright Joanne DeGroat, ECE, OSU1 ALUs and Data Paths Subtitle: How to design the data path of a processor.
1 CPSC3850 Adders and Simple ALUs Simple Adders Figures 10.1/10.2 Binary half-adder (HA) and full-adder (FA). Digit-set interpretation: {0, 1}
Nov 10, 2008ECE 561 Lecture 151 Adders. Nov 10, 2008ECE 561 Lecture 152 Adders Basic Ripple Adders Faster Adders Sequential Adders.
Computing Systems Designing a basic ALU.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
COE 202: Digital Logic Design Combinational Circuits Part 2 KFUPM Courtesy of Dr. Ahmad Almulhem.
Spring C:160/55:132 Page 1 Lecture 19 - Computer Arithmetic March 30, 2004 Sukumar Ghosh.
CDA 3101 Fall 2013 Introduction to Computer Organization The Arithmetic Logic Unit (ALU) and MIPS ALU Support 20 September 2013.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 10 Multiplexers MUX: –Selects binary information from one of many input lines and.
ECE 331 – Digital System Design Multi-bit Adder Circuits, Adder/Subtractor Circuit, and Multiplier Circuit (Lecture #12)
EE466: VLSI Design Lecture 13: Adders
1 Carry Lookahead Logic Carry Generate Gi = Ai Bi must generate carry when A = B = 1 Carry Propagate Pi = Ai xor Bi carry in will equal carry out here.
C-H1 Lecture Adders Half adder. C-H2 Full Adder si is the modulo- 2 sum of ci, xi, yi.
CPEN Digital System Design
Addition, Subtraction, Logic Operations and ALU Design
Arithmetic-Logic Units. Logic Gates AND gate OR gate NOT gate.
Lecture #23: Arithmetic Circuits-1 Arithmetic Circuits (Part I) Randy H. Katz University of California, Berkeley Fall 2005.
Application of Addition Algorithms Joe Cavallaro.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
EE141 Arithmetic Circuits 1 Chapter 14 Arithmetic Circuits Rev /12/2003 Rev /05/2003.
Full Adder Truth Table Conjugate Symmetry A B C CARRY SUM
Somet things you should know about digital arithmetic:
Subtitle: How to design the data path of a processor.
Lecture Adders Half adder.
Swamynathan.S.M AP/ECE/SNSCT
CSE Winter 2001 – Arithmetic Unit - 1
Unsigned Multiplication
VLSI Arithmetic Adders & Multipliers
Arithmetic Functions & Circuits
Arithmetic Circuits (Part I) Randy H
Digital Integrated Circuits A Design Perspective
Part III The Arithmetic/Logic Unit
Arithmetic Building Blocks
Presentation transcript:

CPE 626 CPU Resources: Adders & Multipliers Aleksandar Milenkovic Web:

2 Outline  Full Adder  Ripple Carry Adder  Carry-Look-Ahead Adder  Manchester Adders  Carry Select Adder  Carry Skip Adder  Conditional Sum Adder  Hybrid Designs

3 Full Adder  Inputs  data inputs A, B  carry in C in  Outputs  sum S  carry out C out

4 Full Adder

5

6 Transmission-Gate Adder (1)  A = 1 => -A = 0 => TG is open => out = -B  A = 0 => -A = 1 => TG is closed => out = B  A = 1 => -A = 0 => TG is closed => out = B  A = 0 => -A = 1 => TG is open => out = -B TG XOR TG XNOR

7 Transmission-Gate Adder (2)

8 Ripple Carry Adder - RCA (1)  Method 1  G[i] = A[i]*B[i]  P[i] = A[i]  B[i]  C[i] = G[i] + P[i]*C[i-1]  S[i] = P[i]  C[i-1]  Method 2  G[i] = A[i]*B[i]  P[i] = A[i] + B[i]  C[i] = G[i] + P[i]*C[i-1]  S[i] = A[i]  B[i]  C[i-1]

9 Ripple Carry Adder - RCA (2)  Replace AND-OR pair with fast 2-inputs NAND gates RCA delay is proportional to n and is limited by the propagation of the carry signal through all of the stages

10 Ripple Carry Adder - RCA (3) Used in odd stages! Used in even stages!

11 Ripple Carry Adder - RCA (4)  Carry equations  C[i+1] = A[i]*B[i] + P[i]*C[i] or C[i+1] = (A[i] + B[i])*(P[i]’ + C[i]) P[i]’ = NOT(P[i])  Even stages  C1[i+1]’ = P[i]*C3[i]*C4[i]  C2[i+1] = A[i] + B[i]  C[i+1] = C1[i]*C2[i]  Odd stages  C3[i+1]’ = P[i]*C1[i]*C2[i]  C4[i+1]’ = A[i]*B[i]  C[i+1] = C3[i]’ + C4[i]’  Inputs to stage zero: C3[0] = C4[0] = ‘0’

12 Carry-Look-Ahead Adder – CLA (1)  Idea: speed up carry computation – C i+1 = G i + P i* C i  Propagate: P i = A i + B i  if P i = 1, then carry from (i-1)th stage is propagated  Generate: G i = A i *B i  if G i = 1 there is carry out

13 Carry-Look-Ahead Adder – CLA (2)

14 Carry-Look-Ahead Adder – CLA (3) Domino implementation (Dynamic Carry Gates)

15 Carry-Look-Ahead Adder – CLA (4)

16 Carry-Look-Ahead Adder – CLA (5)

17 Brent-Kung CLA  a) lookahead terms  b) CLG cell  c) cells can be rearranged into tree  d) simplified representations for part a)  e) simplified representation for part c)  f) lookahead logic for 8-bit adder  g) Brent-Kung adder Reduces delay, increases the regularity, reduces the number of unnecessary switching events (power)

18 Manchester Adder Circuits (1)

19 Manchester Adder Circuits (2) Dynamic Stage Static Stage MUX stage

20 4-bit Manchester Adder

21 Carry Bypass

22 Carry Select Adder (1) Compute 2 versions of the addition with different carry-ins, one assuming that the carry-in is 0 and another assuming that it is 1

23 Carry Select Adder (2)

24 Carry Skip Adder: Motivation Computing P 3-0 is much simpler than computing G 0-3 Let’s compute only P 3-0 !

25 Carry Skip Adder Carries begin rippling simultaneously through each block; If any block generates a carry, then the carry out will be true, even the carry-in may not be not true yet. If at the start of each add operation the carry-in to each block is 0, then correct carry-outs will be generated – carry-out can be thought of as if it is the G signal Practical only if the carry-in signals can be easily cleared at the start of each operation – e.g. precharging CMOS

26 Carry Skip Adder: Analysis  Assume  it takes 1 time unit for signal to propagate through two logic level  n bits wide adder  blocks of size k  It will take k units for a carry to ripple through a block of size k  Critical path  k units for the first block  n/k – 2 units to skip the blocks  k units to ripple through the last block  Increase the efficiency by varying the blocks size  20 bits (4, 4, 4, 4, 4,): Delay = = 11  20 bits (2, 5, 6, 5, 2): Delay = 9

27 Conditional Sum Adder (1)

28 Conditional Sum Adder (2)

29 Conditional Sum Adder (3) A B Si Ci Si Ci Si Ci Si Ci Si Ci 0 01 Si Ci S0S S1S

30 Hybrid Designs: An Example  Combine CLA (Carry Look-Ahead) with RCA