Académique Documents
Professionnel Documents
Culture Documents
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
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
A + B
Sum = A + B
A B
C out= A.B
FORWARD
BACK
HOME
FIRST SLIDE
LAST SLIDE
A B C in
S
C out
Input carry
A B
SC
S
out
A B
S C out
Sum
Output Carry, C out
Input Carry, C in
FORWARD
b.
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
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
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
FORWARD
c. Circuit diagram D= X + Y
BACK
HOME
FIRST SLIDE
LAST SLIDE
Y X
B=X.Y
FORWARD
BACK
Bin
FS Bout
HOME
FIRST SLIDE
LAST SLIDE
x
y HS
Difference
HS B out
B out
Bin
FORWARD
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
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