Docsity

Logic Design: Adders and Carry Logic, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Logic Design: Adders and Carry Logic and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Logic Design

Adders

Adders

CMOS VLSI Design

Outline

^

Single-bit Addition

^

Carry-Ripple Adder

^

Carry-Skip Adder

^

Carry-Lookahead Adder

^

Carry-Select Adder

^

Carry-Increment Adder

^

Tree Adder

Adders

CMOS VLSI Design

Single-Bit Addition

Half Adder

Full Adder

S

Cout B A

S

Cout C B A

A^

B S Cout

A^

B C S Cout

S^ out

A^

B

C^

=^ ⊕ A B =^ ^

out^

(^ ,^

,^ )

S^

A^

B^

C

C^

MAJ

A B C =^

⊕^

⊕

Adders

PGK CMOS VLSI Design

^

For a full adder, define what happens to carries– Generate: C

out^

= 1 independent of C

  • G =
    • Propagate: C

out^

= C

  • P =
    • Kill: C

out^

= 0 independent of C

  • K =

Adders

CMOS VLSI Design

Full Adder Design I

^

Brute force implementation from eqns^ out

(^

,^

,^

S^

A^

B^

C

C^

=^ ⊕ MAJ A B C

= ABC

S Cout MAJ ABC

B^ A

B B

S C A

C

C

B^ C

B B A^

A

A^ C B

A B C

B

A^

A^

B^

C

Cout

A^ C

B A B

Adders

CMOS VLSI Design

Carry Propagate Adders ^

N-bit adder called CPA– Each sum bit depends on all previous carries– How do we compute all these carries quickly?

B +

N... AN...

SN...

Cin

Cout

111111111 +0000^0000

Cin^ carries^ A4...1B4...1^ S4... Cout

000001111 +0000^1111

Cin Cout

Adders

CMOS VLSI Design

Inversions

^

Critical path passes through majority gate– Built from minority + inverter– Eliminate inverter and use inverting full adder

Cout

Cin

B^1

A^1

B^2

A^2

B^3

A^3

B^4

A^4

S^1

S^2

S^3

S^4

C^1

C^2

C^3

Adders

CMOS VLSI Design

Generate / Propagate

^

Equations often factored into G and P

^

Generate and propagate for groups spanning i:j

^

Base case

^

Sum:

G^ =^ :^ i j P^ =: i j^ :^ i i^ :

i i i^

i G^

G P^

≡^ P

= ≡^

=

0:00:0^0 in

GCP 0:00:0^0 in

GCP

0:^

0 0:^

0 G^

G P^

≡^ P

= ≡^

=

S^ =^ i

Adders

CMOS VLSI Design P

  • B^1 S PG Logic
  • A
    • P
    • G
      • G0:
  • B^2 P^2 S
    • G
      • G1:
  • A
  • B^3 S
  • A
    • P
    • G
      • G2:
  • B^4 P^4 S
    • G
      • G3:
  • A
  • Cin G - C 1: Bitwise PG logic 0 2: Group PG logic3: Sum logic - C - C - C - C Cout

Adders

CMOS VLSI Design

Carry-Ripple Revisited :^

1:

i^

i^

i^

i

G^

G^

P^

G^

−

=^

+^

B^1 S^1 A^1

P^1 G^1

G0:

B^2 P^2 S^2 G^2

G1:

A^2 B^3 S^3 A^3

P^3 G^3

G2:

B^4 P^4 S^4 G^4

G3:

A^4

Cin^ G^0

P^0 C^0 C^1 C^2 C^3 C Cout 4

Adders

Slide 16

CMOS VLSI Design

Carry-Ripple PG Diagram

(^) Delay

(^01) (^23) (^45) (^67) (^89) (^1011) (^1213) (^1415) 15:0 14:0 13:0 12:0 11:0 10:0 9:

8:^

7:0^ 6:

5:^

4:0^ 3:

2:^

1:0^ 0:

Bit Position

ripple

xor

(^

pg^

AO

t^

t^

N^

t^

t

=^

+^

−^

Adders

Slide 17

CMOS VLSI Design

PG Diagram Notation

i:j i:j

i:k^

k-1:j i:j

i:k^

k-1:j i:j Gi:k Gk-1:j Pk-1:j

Gi:j Pi:j

Pi:k

Gi:k Gk-1:j

Gi:j^

Gi:j Pi:j

Gi:j^ Pi:j

Pi:k

Black cell

Gray cell

Buffer

Adders

CMOS VLSI Design

Carry-Skip PG Diagram

For k n-bit groups (N = nk)

t^^ skip

=

0 (^12) (^34) (^56) (^78) 9 (^1011) (^1213) (^1415) 16 15:0 14:0 13:0 12:0 11:0 10:0 9:

8:

7:^

6:0^ 5:

4:

3:^

2:0^ 1:

0:

16:

Adders

CMOS VLSI Design

Carry-Skip PG Diagram

For k n-bit groups (N = nk)

(^

skip^

xor

2

1

(^

pg^

AO

t^

t^

n^

k^

t^

t

=^

+^

−^

+^

−^

^

^

0 (^12) (^34) (^56) (^78) 9 (^1011) (^1213) (^1415) 16 15:0 14:0 13:0 12:0 11:0 10:0 9:

8:

7:^

6:0^ 5:

4:

3:^

2:0^ 1:

0:

16: