binary addition section 4.5. binary addition example

15
Binary Addition Section 4.5

Upload: christopher-davis

Post on 11-Jan-2016

229 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Binary Addition Section 4.5. Binary Addition Example

Binary Addition

Section 4.5

Page 2: Binary Addition Section 4.5. Binary Addition Example

Binary Addition Example

Page 3: Binary Addition Section 4.5. Binary Addition Example

Binary Addition (2)

Page 4: Binary Addition Section 4.5. Binary Addition Example

Derivation of ∑

Question: What primitive best implements ∑? • Inputs: A, B• Outputs: ∑=

B A ∑

0 0 0

1 0 1

0 1 1

1 1 0

Page 5: Binary Addition Section 4.5. Binary Addition Example

Derivation of Carry Out

Question: What primitive best implements Co? • Inputs: A, B• Outputs: Co =A∙B

B A Co

0 0 0

1 0 0

0 1 0

1 1 1

Page 6: Binary Addition Section 4.5. Binary Addition Example

Implementation of a Half-Adder

Page 7: Binary Addition Section 4.5. Binary Addition Example

Limitation of a Half Adder

A half-adder does not account for carry-in.

Page 8: Binary Addition Section 4.5. Binary Addition Example

Truth Table for a Full Adder

carry-in

Page 9: Binary Addition Section 4.5. Binary Addition Example

Karnaugh Map For the Sum Bit

= = =

Page 10: Binary Addition Section 4.5. Binary Addition Example

Karnaugh Map For the Carry-Out Bit

C=𝑥 ′ 𝑦𝑧+𝑥 𝑦 ′ 𝑧+𝑥𝑦=𝑧 (𝑥⊕𝑦 )+𝑥𝑦

Page 11: Binary Addition Section 4.5. Binary Addition Example

Implementation of a Full Adder

𝑆=𝑧 (𝑥⊕ 𝑦 )+𝑥𝑦C=𝑧⊕(𝑥⊕𝑦 )

(carry-in)

Page 12: Binary Addition Section 4.5. Binary Addition Example

Four-Bit Adder

C4 is calculated last because it takes C0 8 gates to reach C4.

Page 13: Binary Addition Section 4.5. Binary Addition Example

Alternative Naming Convention for the Full Adder

𝐺𝑖=𝐴𝑖𝐵 𝑖P i=(𝐴𝑖⊕𝐵𝑖)

C 𝑖+1=𝐺𝑖+𝑃𝑖𝐶𝑖S i=(𝑃𝑖⊕𝐶𝑖)

Page 14: Binary Addition Section 4.5. Binary Addition Example

Hardware Simplificationinput carry

)

2 gate delays for C3!

Page 15: Binary Addition Section 4.5. Binary Addition Example

Four-bit adder with Carry Lookahead