21
ADDER, HALF ADDER & FULL ADDER

ADDER, HALF ADDER & FULL ADDER

Embed Size (px)

DESCRIPTION

ADDER, HALF ADDER & FULL ADDER. 00 11 + 0 + 1 + 0 + 1 01 1 10. Sum. Carry. Sum. Binary Addition. ADDER. In electronics, an adder is a digital circuit that performs addition of numbers. - PowerPoint PPT Presentation

Citation preview

Page 1: ADDER, HALF ADDER & FULL ADDER

ADDER, HALF ADDER & FULL ADDER

Page 2: ADDER, HALF ADDER & FULL ADDER

Binary Addition

0 0 1 1+ 0 + 1 + 0 + 1 0 1 1 10

Sum Carry Sum

Page 3: ADDER, HALF ADDER & FULL ADDER

ADDER• In electronics, an adder is a digital circuit that

performs addition of numbers.

• In modern computers and other kinds of processors, adders are used in the arithmetic logic unit (ALU), but also in other parts of the processor, where they are used to calculate addresses, table indices, and similar operations.

• Although adders can be constructed for many numerical representations, such as binary-coded decimal or excess-3, the most common adders operate on binary numbers.

Page 4: ADDER, HALF ADDER & FULL ADDER

Types of Adder

• There are two types of Adder

1.Half Adder

2.Full Adder

Page 5: ADDER, HALF ADDER & FULL ADDER

Half Adder• The half adder accepts two binary digits on its

inputs A and B.

• It produce two binary digits outputs, a sum bit (S) and a carry bit (C).

• The simplest half-adder design, pictured incorporates an XOR gate for S and an AND gate for C.

Carry <= X AND Y;

Sum <= X XOR Y;

Page 6: ADDER, HALF ADDER & FULL ADDER

Diagram

A

B

(sum)

C0 (carry out)

HalfAdder

Input OutputLogic Symbol:

Logic Diagram:

Page 7: ADDER, HALF ADDER & FULL ADDER

Diagram

Logic Diagram:

Logic Diagram:

Page 8: ADDER, HALF ADDER & FULL ADDER

Truth Table

Inputs Outputs

X Y C S

0 0 0 0

0 1 0 1

1 0 0 1

1 1 1 0

Page 9: ADDER, HALF ADDER & FULL ADDER

Full Adder• A full adder adds binary numbers and accounts for

values carried in as well as out.

• A one-bit full adder adds three one-bit numbers input , often written as A, B, and Cin; A and B are the operands, and Cin is a bit carried in.

• A full adder can be constructed from two half adders by connecting A and B to the input of one half adder, connecting the sum from that to an input to the second adder, connecting Cin to the other input and OR the two carry outputs S = X xor Y xor Cin

Cout = X.Y + X.Cin + Y.Cin

Page 10: ADDER, HALF ADDER & FULL ADDER

Diagrams

Logic Symbol:

Logic Diagram:

AB

(sum)

C0 (carry out)

FullAdder

Input Output

Cin

Page 11: ADDER, HALF ADDER & FULL ADDER

Diagram

HalfAdder

HalfAdder

OR

a

b

cinSum

Cout

Page 12: ADDER, HALF ADDER & FULL ADDER

Truth Table

• S is 1 if an odd number of inputs are 1.• COUT is 1 if two or more of the inputs are 1.

Inputs OutputA B Cin Cout Sum

0 0 0 0 0

0 0 1 0 1

0 1 0 0 1

0 1 1 1 0

1 0 0 0 1

1 0 1 1 0

1 1 0 1 0

1 1 1 1 1

Page 13: ADDER, HALF ADDER & FULL ADDER

• Sum is `1’ when one of the following four cases is true:

– a=1, b=0, c=0

– a=0, b=1, c=0

– a=0, b=0, c=1

– a=1, b=1, c=1

Page 14: ADDER, HALF ADDER & FULL ADDER

A

B

Circuit of Adder

Page 15: ADDER, HALF ADDER & FULL ADDER

A

BX

Circuit of Adder

Page 16: ADDER, HALF ADDER & FULL ADDER

A

B

Cin

Circuit of Adder

Page 17: ADDER, HALF ADDER & FULL ADDER

A

B

Cin

Y

Circuit of Adder

Page 18: ADDER, HALF ADDER & FULL ADDER

A

B

Cin

= A.B

Y

Circuit of Adder

Page 19: ADDER, HALF ADDER & FULL ADDER

A

B

Cin

Cout

Cout= (A B). Cin + A.B

Circuit of Adder

Page 20: ADDER, HALF ADDER & FULL ADDER

The Full Adder

X

Y

Cin

S

Cout

Page 21: ADDER, HALF ADDER & FULL ADDER

The Full Adder

Half Adder Half Adder

Cin

Cin

Cin

Cin + xy