Carry-Lookahead, Carry-Select, & Hybrid Adders

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

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.
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.
Datorteknik ArithmeticCircuits bild 1 Computer arithmetic Somet things you should know about digital arithmetic: Principles Architecture Design.
Lecture 20: Hardware for Arithmetic Today’s topic –Carry Look-Ahead Adder 1.
Fast Adders See: P&H Chapter 3.1-3, C Goals: serial to parallel conversion time vs. space tradeoffs design choices.
Fast Adders See: P&H Chapter 3.1-3, C Goals: serial to parallel conversion time vs. space tradeoffs design choices.
CSE 246: Computer Arithmetic Algorithms and Hardware Design Prof Chung-Kuan Cheng Lecture 3.
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Chapter # 5: Arithmetic Circuits
Chapter 6-1 ALU, Adder and Subtractor
Carry look ahead adder P (I) = a(I) xor b(I); G(I) = a(I) and b(I); S(I) = p(I) xor c(I); Carry(I+1) = c(I)p(I) + g(I)
Computing Systems Designing a basic ALU.
درس مدارهای منطقی دانشگاه قم مدارهای منطقی محاسباتی تهیه شده توسط حسین امیرخانی مبتنی بر اسلایدهای درس مدارهای منطقی دانشگاه.
Fast Adders: Parallel Prefix Network Adders, Conditional-Sum Adders, & Carry-Skip Adders ECE 645: Lecture 5.
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
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.
Unrolling Carry Recurrence
Conditional-Sum Adders Parallel Prefix Network 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
1 Lecture 11: Hardware for Arithmetic Today’s topics:  Logic for common operations  Designing an ALU  Carry-lookahead adder.
Application of Addition Algorithms Joe Cavallaro.
Carry-Lookahead, Carry-Select, & Hybrid Adders ECE 645: Lecture 2.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1.
Lecture 3 ALU and Carry Generator using FPGA 2007/09/21 Prof. C.M. Kyung.
CDA3101 Recitation Section 5
Carry-Lookahead & Carry-Select Adders
Somet things you should know about digital arithmetic:
Lecture 12 Logistics Last lecture Today HW4 due today Timing diagrams
Chapter 4 -- Modular Combinational Logic
Lecture Adders Half adder.
Conditional-Sum Adders Parallel Prefix Network Adders
Space vs. Speed: Binary Adders
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Basic Adders and Counters
ECE/CS 552: Carry Lookahead
Combinational Circuits
ECE 331 – Digital System Design
Tree and Array Multipliers
CSE Winter 2001 – Arithmetic Unit - 1
VLSI Arithmetic Lecture 4
Lecture 14 Logistics Last lecture Today
Instructor: Alexander Stoytchev
Arithmetic Circuits (Part I) Randy H
Instructor: Alexander Stoytchev
Instructor: Prof. Chung-Kuan Cheng
Instructor: Alexander Stoytchev
CS 140 Lecture 14 Standard Combinational Modules
Basic Adders and Counters Implementation of Adders
Digital System Design Combinational Logic
Part III The Arithmetic/Logic Unit
Multioperand Addition
CSE 140 Lecture 14 Standard Combinational Modules
Instructor: Alexander Stoytchev
Lecture 14 Logistics Last lecture Today
Tree and Array Multipliers
Instructor: Alexander Stoytchev
Instructor: Alexander Stoytchev
74LS283 4-Bit Binary Adder with Fast Carry
Lecture 9 Digital VLSI System Design Laboratory
Carry-Lookahead, Carry-Select, & Hybrid Adders
Carry-Lookahead & Carry-Select Adders
Lecture 3 Combinational units. Adders
Conditional-Sum Adders Parallel Prefix Network Adders
Lecture 2 Adders Half adder.
Presentation transcript:

Carry-Lookahead, Carry-Select, & Hybrid Adders ECE 645: Lecture 2 Carry-Lookahead, Carry-Select, & Hybrid Adders

Required Reading Behrooz Parhami, Computer Arithmetic: Algorithms and Hardware Design Chapter 6, Carry-Lookahead Adders Sections 6.1-6.2. Chapter 7, Variations in Fast Adders Section 7.3, Carry-Select Adders. Chapter 28, Reconfigurable Arithmetic Section 28.2, Adder Designs for FPGAs.

Carry-Lookahead Adders

Basic Signals ci+1 = gi + cipi = gi + ci ti Generate signal: gi = xiyi Propagate signal: pi = xi  yi Anihilate (absorb) signal: ai = xi yi = xi + yi Transfer signal: ti = gi + pi = ai = xi + yi cout =1 given cin = 1 Carry recurrence ci+1 = gi + cipi = gi + ci ti

Unrolling Carry Recurrence ci = gi-1 + ci-1pi-1 = = gi-1 + (gi-2 + ci-2pi-2)pi-1 = gi-1 + gi-2 pi-1 + ci-2pi-2pi-1 = = gi-1 + gi-2 pi-1 + (gi-3 + ci-3pi-3)pi-2pi-1 = = gi-1 + gi-2 pi-1 + gi-3 pi-2pi-1 + ci-3pi-3pi-2pi-1 = = ….. = = gi-1 + gi-2 pi-1 + gi-3 pi-2pi-1 + gi-4pi-3pi-2pi-1 + ….. + + g0p1p2…pi-2pi-1 + c0p0p1p2…pi-2pi-1 = = gi-1 +  gk  pj + c0  pj i-2 i-1 i-1 k=0 j=k+1 j=0

4-bit Carry-Lookahead Adder (1) c4 = g3 + g2 p3 + g1 p2p3 + g0p1p2p3 + c0p0p1p2p3 c3 = g2 + g1 p2 + g0 p1p2 + c0p0p1p2 c2 = g1 + g0 p1 + c0p0p1 c1 = g0 + c0 p0 s0 = x0  y0  c0 = p0  c0 s1 = p1  c1 s2 = p2  c2 s3 = p3  c3

4-bit Carry-Lookahead Adder (2) c4 = g3 + c3p3 3 gates less c3 = g2 + g1 p2 + g0 p1p2 + c0p0p1p2 c2 = g1 + g0 p1 + c0p0p1 c1 = g0 + c0 p0 s0 = x0  y0  c0 = p0  c0 s1 = p1  c1 s2 = p2  c2 s3 = p3  c3

4-bit Carry Network with Full Lookahead

4-bit Lookahead Carry Generator Equations ci+3 = gi+2 + gi+1 pi+2 + gi pi+1pi+2 + cipipi+1pi+2 ci+2 = gi+1 + gi pi+1 + cipipi+1 ci+1 = gi + ci pi g[i..i+3] = gi+3 + gi+2 pi+3 + gi+1 pi+2 pi+3 + gi pi+1 pi+2 pi+3 p[i..i+3] = pi pi+1 pi+2 pi+3

4-bit Lookahead Carry Generator Schematic

4-bit Lookahead Carry Generator Symbol

16-bit 2-level Carry Lookahead Adder g14p14 g12p12 g10p10 g8p8 g6p6 g4p4 g2p2 g0p0 g15p15 g13p13 g11p11 g9p9 g7p7 g5p5 g3p3 g1p1 c12 c8 c4 c0 CLA GEN CLA GEN CLA GEN CLA GEN g[12,15] P[12,15] g[8,11] p[8,11] g[4,7] p[4,7] g[0,3] p[0,3] CLA GEN g[0,15] p[0,15]

16-bit 2-level Carry Lookahead Adder (1) Operation of the 16-bit 2-level Carry Lookahead Adder (1) Signals computed Formulas Delay gi = xiyi gi, pi 1 gate delay pi = xi  yi i=0..15 g[i..i+3], p[i..i+3] 2 gate delays i=0, 4, 8, 12 g[i..i+3] = gi+3 + gi+2 pi+3 + gi+1 pi+2 pi+3 + gi pi+1 pi+2 pi+3 p[i..i+3] = pi pi+1 pi+2 pi+3

16-bit 2-level Carry Lookahead Adder (2) Operation of the 16-bit 2-level Carry Lookahead Adder (2) Signals computed Formulas Delay c4, c8, c12 2 gate delays g[0..15], p[0..15] c4 = g[0..3] + c0 p[0..3] c8 = g[4..7] + g[0..3] p[4..7] + c0 p[0..3] p[4..7] c12 = g[8..11] + g[4..7] p[8..11] + g[0..3] p[4..7]p[8..11] + c0p[0..3]p[4..7]p[8..11] g[0..15] = g[12..15] + g[8..11] p[12..15] + g[4..7] p[8..11]p[12..15] + g[0..3]p[4..7]p[8..11] p[12..15] p[0..15] = p[0..3]p[4..7]p[8..11] p[12..15]

16-bit 2-level Carry Lookahead Adder (3) Operation of the 16-bit 2-level Carry Lookahead Adder (3) Signals computed Formulas Delay ci+1, ci+2, ci+3 2 gate delays i = 4, 8, 12 i.e., c5, c6, c7, c9, c10, c11, c13, c14, c15 ci+3 = gi+2 + gi+1 pi+2 + gi pi+1pi+2 + cipipi+1pi+2 ci+2 = gi+1 + gi pi+1 + cipipi+1 ci+1 = gi + ci pi

16-bit 2-level Carry Lookahead Adder (4) Operation of the 16-bit 2-level Carry Lookahead Adder (4) Signals computed Formulas Delay si+1, si+2, si+3 1 gate delay i = 4, 8, 12 i.e., s5, s6, s7, s9, s10, s11, s13, s14, s15 si = pi  ci Total: 8 gate levels in the CLA adder vs. 32 gate levels in the ripple carry adder

64-bit 3-level Carry Lookahead Adder c31 c30 c29 c27 c26 c25 c23 c22 c21 c19 c18 c17 c28 c24 c20 c16 c48 c32 c0 CLA GEN CLA GEN CLA GEN CLA GEN g[28,31] g[24,27] g[20,23] g[16,19] p[28,31] p[24,27] p[20,23] p[16,19] CLA GEN g[48,63] g[32,47] g[16,31] g[0,15] p[48,63] p[32,47] p[16,31] p[0,15] CLA GEN g[0,63] p[0,63]

64-bit 3-level Carry Lookahead Adder Operation of the 64-bit 3-level Carry Lookahead Adder Level Signals computed Delay PRE gi, pi i=0..63 1 gate delay 1 g[i..i+3], p[i..i+3] 2 gate delays i=0, 4, 8, 12, …, 56, 60 2 g[i..i+15], p[i..i+15] 2 gate delays i=0, 16, 32, 48 3 g[0..63], p[0..63] c16, c32, c48, 2 gate delays 2 c20, c24, c28, c36, c40, c44, c52, c56, c60 2 gate delays 1 c21, c22, c23, c25, c26, c27, …, c61, c62, c63 2 gate delays POST s21, s22, s23, s25, s26, s27, …, s61, s62, s63 1 gate delay

Delay of a k-bit Carry-Lookahead Adder Tlookahead-adder = 4 log4 k Tlookahead-adder Tripple-carry-adder k 4 16 32 64 128 256 8 32 64 128 256 512 4 8 12 16

Carry-Select Adders

One-level k-bit Carry-Select Adder

One-level k-bit Carry-Select Adder Cost & Latency Units: cost and delay of a single 2-to-1 multiplexer

Two-level k-bit Carry Select Adder

Possible Design of a Carry-Select Adder on an FPGA / 2 2 bits 1 3 bits 4 bits 6 bits 1 bit / 3 / 4 / 6

Hybrid Adders

A Hybrid Ripple-Carry/Carry-Lookahead Adder

A Hybrid Carry-Lookahead/Carry-Select Adder