35
EE141 1 gital Integrated Circuits 2nd Arithmetic Circuit Lec 17 : ADDERS Lec 17 : ADDERS ece407/507 ece407/507

Lec 17 : ADDERS ece407/507

Embed Size (px)

DESCRIPTION

Lec 17 : ADDERS ece407/507. Outline. Introduction to Adders Adder Design Types of Adders Design Aspects Discussion on Lab 4. 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. - PowerPoint PPT Presentation

Citation preview

Page 1: Lec 17  :       ADDERS ece407/507

EE1411

© Digital Integrated Circuits2ndArithmetic Circuits

Lec 17 : ADDERSLec 17 : ADDERS

ece407/507ece407/507

Page 2: Lec 17  :       ADDERS ece407/507

EE1412

© Digital Integrated Circuits2ndArithmetic Circuits

Outline Outline

Introduction to Adders Adder Design Types of Adders Design Aspects Discussion on Lab 4

Page 3: Lec 17  :       ADDERS ece407/507

EE1413

© Digital Integrated Circuits2ndArithmetic Circuits

AddersAdders

Page 4: Lec 17  :       ADDERS ece407/507

EE1414

© Digital Integrated Circuits2ndArithmetic Circuits

Full-AdderFull-AdderA B

Cout

Sum

Cin Fulladder

Page 5: Lec 17  :       ADDERS ece407/507

EE1415

© Digital Integrated Circuits2ndArithmetic Circuits

The Binary AdderThe Binary Adder

S A B Ci =

A= BCi ABCi ABCi ABCi+ + +

Co AB BCi ACi+ +=

A B

Cout

Sum

Cin Fulladder

Page 6: Lec 17  :       ADDERS ece407/507

EE1416

© Digital Integrated Circuits2ndArithmetic Circuits

Express Sum and Carry as a function of P, G, DExpress Sum and Carry as a function of P, G, D

Define 3 new variable which ONLY depend on A, B

Generate (G) = AB

Propagate (P) = A B

Delete = A B

Can also derive expressions for S and Co based on D and P

Propagate (P) = A BNote that we will be sometimes using an alternate definition for

Page 7: Lec 17  :       ADDERS ece407/507

EE1417

© Digital Integrated Circuits2ndArithmetic Circuits

The Ripple-Carry AdderThe Ripple-Carry Adder

Worst case delay linear with the number of bits

Goal: Make the fastest possible carry path circuit

FA FA FA FA

A0 B0

S0

A1 B1

S1

A2 B2

S2

A3 B3

S3

Ci,0 Co,0

(Ci,1)

Co,1 Co,2

td = O(N)

tadder = (N-1)tcarry + tsum

Page 8: Lec 17  :       ADDERS ece407/507

EE1418

© Digital Integrated Circuits2ndArithmetic Circuits

Complimentary Static CMOS Full AdderComplimentary Static CMOS Full Adder

28 Transistors

A B

B

A

Ci

Ci A

X

VDD

VDD

A B

Ci BA

B VDD

A

B

Ci

Ci

A

B

A CiB

Co

VDD

Page 9: Lec 17  :       ADDERS ece407/507

EE1419

© Digital Integrated Circuits2ndArithmetic Circuits

Inversion PropertyInversion Property

A B

S

CoCi FA

A B

S

CoCi FA

S A B Ci S A B Ci

=

Co A B Ci Co A B Ci

=

Page 10: Lec 17  :       ADDERS ece407/507

EE14110

© Digital Integrated Circuits2ndArithmetic Circuits

Minimize Critical Path by Reducing Inverting StagesMinimize Critical Path by Reducing Inverting Stages

Exploit Inversion Property

A3

FA FA FA

Even cell Odd cell

FA

A0 B0

S0

A1 B1

S1

A2 B2

S2

B3

S3

Ci,0 Co,0 Co,1 Co,3C

Page 11: Lec 17  :       ADDERS ece407/507

EE14111

© Digital Integrated Circuits2ndArithmetic Circuits

A Better Structure: The Mirror AdderA Better Structure: The Mirror Adder

VDD

Ci

A

BBA

B

A

A BKill

Generate"1"-Propagate

"0"-Propagate

VDD

Ci

A B Ci

Ci

B

A

Ci

A

BBA

VDD

SCo

24 transistors

Page 12: Lec 17  :       ADDERS ece407/507

EE14112

© Digital Integrated Circuits2ndArithmetic Circuits

Mirror AdderMirror AdderStick Diagram

CiA B

VDD

GND

B

Co

A Ci Co Ci A B

S

Page 13: Lec 17  :       ADDERS ece407/507

EE14113

© Digital Integrated Circuits2ndArithmetic Circuits

The Mirror AdderThe Mirror Adder•The NMOS and PMOS chains are completely symmetrical. A maximum of two series transistors can be observed in the carry-generation circuitry.

•When laying out the cell, the most critical issue is the minimization of the capacitance at node Co. The reduction of the diffusion

capacitances is particularly important.

•The capacitance at node Co is composed of four diffusion capacitances, two internal gate capacitances, and six gate capacitances in the connecting adder cell .

•The transistors connected to Ci are placed closest to the output.

•Only the transistors in the carry stage have to be optimized for optimal speed. All transistors in the sum stage can be minimal size.

Page 14: Lec 17  :       ADDERS ece407/507

EE14114

© Digital Integrated Circuits2ndArithmetic Circuits

Transmission Gate Full AdderTransmission Gate Full Adder

A

B

P

Ci

VDDA

A A

VDD

Ci

A

P

AB

VDD

VDD

Ci

Ci

Co

S

Ci

P

P

P

P

P

Sum Generation

Carry Generation

Setup

Page 15: Lec 17  :       ADDERS ece407/507

EE14115

© Digital Integrated Circuits2ndArithmetic Circuits

Manchester Carry ChainManchester Carry Chain

CoCi

Gi

Di

Pi

Pi

VDD

CoCi

Gi

Pi

VDD

Page 16: Lec 17  :       ADDERS ece407/507

EE14116

© Digital Integrated Circuits2ndArithmetic Circuits

Manchester Carry ChainManchester Carry Chain

G2

C3

G3

Ci,0

P0

G1

VDD

G0

P1 P2 P3

C3C2C1C0

Page 17: Lec 17  :       ADDERS ece407/507

EE14117

© Digital Integrated Circuits2ndArithmetic Circuits

Manchester Carry ChainManchester Carry Chain

Pi + 1 Gi + 1

Ci

Inverter/Sum Row

Propagate/Generate Row

Pi Gi

Ci - 1Ci + 1

VDD

GND

Stick Diagram

Page 18: Lec 17  :       ADDERS ece407/507

EE14118

© Digital Integrated Circuits2ndArithmetic Circuits

Carry-Bypass AdderCarry-Bypass Adder

FA FA FA FA

P0 G1 P0 G1 P2 G2 P3 G3

Co,3Co,2Co,1Co,0Ci ,0

FA FA FA FA

P0 G1 P0 G1 P2 G2 P3 G3

Co,2Co,1Co,0Ci,0

Co,3

Mul

tipl

exer

BP=PoP1P2P3

Idea: If (P0 and P1 and P2 and P3 = 1)then Co3 = C0, else “kill” or “generate”.

Also called Carry-Skip

Page 19: Lec 17  :       ADDERS ece407/507

EE14119

© Digital Integrated Circuits2ndArithmetic Circuits

Carry-Bypass Adder (cont.)Carry-Bypass Adder (cont.)

Carrypropagation

Setup

Bit 0–3

Sum

M bits

tsetup

tsum

Carrypropagation

Setup

Bit 4–7

Sum

tbypass

Carrypropagation

Setup

Bit 8–11

Sum

Carrypropagation

Setup

Bit 12–15

Sum

tadder = tsetup + Mtcarry + (N/M-1)tbypass + (M-1)tcarry + tsum

Page 20: Lec 17  :       ADDERS ece407/507

EE14120

© Digital Integrated Circuits2ndArithmetic Circuits

Carry Ripple versus Carry BypassCarry Ripple versus Carry Bypass

N

tp

ripple adder

bypass adder

4..8

Page 21: Lec 17  :       ADDERS ece407/507

EE14121

© Digital Integrated Circuits2ndArithmetic Circuits

Carry-Select AdderCarry-Select AdderSetup

"0" Carry Propagation

"1" Carry Propagation

Multiplexer

Sum Generation

Co,k-1 Co,k+3

"0"

"1"

P,G

Carry Vector

Page 22: Lec 17  :       ADDERS ece407/507

EE14122

© Digital Integrated Circuits2ndArithmetic Circuits

Carry Select Adder: Critical Path Carry Select Adder: Critical Path

0

1

Sum Generation

Multiplexer

1-Carry

0-Carry

Setup

Ci,0 Co,3 Co,7 Co,11 Co,15

S0–3

Bit 0–3 Bit 4–7 Bit 8–11 Bit 12–15

0

1

Sum Generation

Multiplexer

1-Carry

0-Carry

Setup

S4–7

0

1

Sum Generation

Multiplexer

1-Carry

0-Carry 0-Carry

Setup

S8–11

0

1

Sum Generation

Multiplexer

1-Carry

Setup

S

Page 23: Lec 17  :       ADDERS ece407/507

EE14123

© Digital Integrated Circuits2ndArithmetic Circuits

Linear Carry Select Linear Carry Select

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Bit 0-3 Bit 4-7 Bit 8-11 Bit 12-15

S0-3 S4-7 S8-11 S12-15

Ci,0

(1)

(1)

(5)(6) (7) (8)

(9)

(10)

(5) (5) (5)(5)

Page 24: Lec 17  :       ADDERS ece407/507

EE14124

© Digital Integrated Circuits2ndArithmetic Circuits

Square Root Carry Select Square Root Carry Select

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Setup

"0" Carry

"1" Carry

Multiplexer

Sum Generation

"0"

"1"

Bit 0-1 Bit 2-4 Bit 5-8 Bit 9-13

S0-1 S2-4 S5-8 S9-13

Ci,0

(4) (5) (6) (7)

(1)

(1)

(3) (4) (5) (6)

Mux

Sum

S14-19

(7)

(8)

Bit 14-19

(9)

(3)

Page 25: Lec 17  :       ADDERS ece407/507

EE14125

© Digital Integrated Circuits2ndArithmetic Circuits

Adder Delays - Comparison Adder Delays - Comparison

Square root select

Linear select

Ripple adder

20 40N

t p(in

un

it de

lays

)

600

10

0

20

30

40

50

Page 26: Lec 17  :       ADDERS ece407/507

EE14126

© Digital Integrated Circuits2ndArithmetic Circuits

LookAhead - Basic IdeaLookAhead - Basic Idea

Co k f A k Bk Co k 1– Gk PkCo k 1–+= =

AN-1, BN-1A1, B1

P1

S1

• • •

• • • SN-1

PN-1Ci, N-1

S0

P0Ci,0 Ci,1

A

Page 27: Lec 17  :       ADDERS ece407/507

EE14127

© Digital Integrated Circuits2ndArithmetic Circuits

Look-Ahead: TopologyLook-Ahead: Topology

Co k Gk Pk Gk 1– Pk 1– Co k 2–+ +=

Co k Gk Pk Gk 1– Pk 1– P1 G0 P0Ci 0+ + + +=

Expanding Lookahead equations:

All the way:

Co,3

Ci,0

VDD

P0

P1

P2

P3

G0

G1

G2

Page 28: Lec 17  :       ADDERS ece407/507

EE14128

© Digital Integrated Circuits2ndArithmetic Circuits

Logarithmic Look-Ahead AdderLogarithmic Look-Ahead Adder

A7

F

A6A5A4A3A2A1

A0

A0

A1

A2

A3

A4

A5

A6

A7

F

tp log2(N)

tp N

Page 29: Lec 17  :       ADDERS ece407/507

EE14129

© Digital Integrated Circuits2ndArithmetic Circuits

Carry Lookahead TreesCarry Lookahead Trees

Co 0 G0 P0Ci 0+=

Co 1 G1 P1G0 P1P0Ci 0+ +=

Co 2 G2 P2G1 P2P1G0 P+ 2P1P0C i 0+ +=

G2 P2G1+ = P2P1 G0 P0Ci 0+ + G2:1 P2:1Co 0+=

Can continue building the tree hierarchically.

Page 30: Lec 17  :       ADDERS ece407/507

EE14130

© Digital Integrated Circuits2ndArithmetic Circuits

About Lab 4About Lab 4

Design a 4 bit carry Look Ahead Adder Measure Propagation Delay Layout Simulations Analysis

Page 31: Lec 17  :       ADDERS ece407/507

EE14131

© Digital Integrated Circuits2ndArithmetic Circuits

LayoutLayout

Focus on a Modular design ex: Design of propagate and generate blocks

Test individual modules First.Go ahead only if each module works.Modules like Propagate Generate Carry Generator Hint: Use the gates designed in previous labs. Take care of area of the designs

Page 32: Lec 17  :       ADDERS ece407/507

EE14132

© Digital Integrated Circuits2ndArithmetic Circuits

SimulationsSimulations

Individual Blocks like Propagate, Generate,carry generator need to be simulated.

Measure the propagation delay of each of the blocks,Area etc.

Simulation of the complete Design

EACH STEP CARRYS POINTS!!!!!

Page 33: Lec 17  :       ADDERS ece407/507

EE14133

© Digital Integrated Circuits2ndArithmetic Circuits

AnalysisAnalysis

Comment on the design considerations. Sizing of the Transistors Reducing Capacitance Identify the critical path Design Problems and Solutions.

Page 34: Lec 17  :       ADDERS ece407/507

EE14134

© Digital Integrated Circuits2ndArithmetic Circuits

What is to be turned in…What is to be turned in…

A good report (need not be highly detailed) covering the above aspects.

When….Last day of Classes!!!! Advice: Start your work soon.Things are

not as easy as they seem.

Page 35: Lec 17  :       ADDERS ece407/507

EE14135

© Digital Integrated Circuits2ndArithmetic Circuits

QuestionsQuestions