Vous êtes sur la page 1sur 10

Arithmetic Operations Half Adder

FORWARD

Adder is a logic circuit used to add two binary numbers. Half adder - The half adder accepts two binary digits on its input and produces two binary digits on its output. ( Sum and carry)

BACK

HOME

FIRST SLIDE
LAST SLIDE

a. Symbol
S A input B C out Carry S

Sum
Output

Arithmetic Operations Half Adder


b. Truth table
FORWARD

Input
A
0 0 1 1

Output
B
0 1 0 1

BACK

S
0 1 1 0

Cout
0 0 0 1

HOME

FIRST SLIDE
LAST SLIDE

S = A.B + A.B = Cout= A.B


c. Circuit diagram

A + B
Sum = A + B

A B

C out= A.B

Arithmetic Operations Full Adder


The full adder accepts three inputs including an input carry and generate a sum output and an output carry. a. Symbol
Input

FORWARD

BACK

HOME

FIRST SLIDE
LAST SLIDE

A B C in

S
C out

Sum Output carry

Input carry

- Arrangement of two half-adders to form a full adder

A B

SC

S
out

A B

S C out

Sum
Output Carry, C out

Input Carry, C in

Arithmetic Operations - Full Adder

FORWARD

b.

Truth table Input Input


Output Output

BACK

HOME

A
0 0 0 0 1 1 1 1

B
0 0 1 1 0 0 1 1

Cin
0 1 0 1 0 1 0 1

S
0 1 1 0 1 0 0 1

Cout
0 0 0 1 0 1 1 1

FIRST SLIDE
LAST SLIDE

Arithmetic Operations - Full Adder


c. Circuit diagram

FORWARD

BACK
A

HOME

A + B

FIRST SLIDE
LAST SLIDE

Cin

S = (A + B) + Cin

A + B

) C in
C out

AB

Cout

= AB + ( A + B ) C in

Arithmetic Operations- Half Subtractor


Subtractor is a logic circuit used to subtract two binary numbers
FORWARD BACK

HOME

FIRST SLIDE
LAST SLIDE

Half sub tractor The half sub tractor accepts two binary digits on its input and produces two binary digits on its output. (Difference and borrow) x D Difference a. Symbol HS Input Output
y
B Borrow

b.

Truth table
Input Output

X
0 0 1 1

Y
0 1 0 1

D
0 1 1 0

B
0 1 0 0

D = x.y + x.y = x + y B = x.y

Arithmetic Operations- Half Subtractor

FORWARD

c. Circuit diagram D= X + Y

BACK

HOME

FIRST SLIDE
LAST SLIDE

Y X

B=X.Y

Arithmetic Operations- Full Subtractor


a. Symbol
Input Input Borrow,
x y
D

FORWARD

Difference Output Borrow

BACK

Bin

FS Bout

HOME

FIRST SLIDE
LAST SLIDE

Arrangement of two half-sub tractors to form a full sub tractor


x y D

x
y HS

Difference

HS B out

B out

Bin

Output Borrow, Bout

Arithmetic Operations - Full Subtractor

FORWARD

b. Truth table Input


X
0 0 0 0 1 1 1 1

BACK

HOME

Output
Bin
0 1 0 1 0 1 0 1

FIRST SLIDE
LAST SLIDE

Y
0 0 1 1 0 0 1 1

D
0 1 1 0 1 0 0 1

Bout
0 1 1 1 0 0 0 1

Arithmetic Operations - Full Subtractor

FORWARD

c. Circuit diagram

BACK

HOME

X Y
B in
D = (X + Y) + Bin

FIRST SLIDE
LAST SLIDE

( X + Y ) B in B out

X.Y
B out = X.Y + ( X + Y ) B in

Vous aimerez peut-être aussi