Professional Documents
Culture Documents
Mod 5 A
Mod 5 A
eg d D 10 0 0
die d
0 1 1 11 Otl I O
I O I l l
Ito 1 0
11 1
1 00 0 1 1 0 0 p
171 0 0 1
11 1 1 1
0 1 001 0
0 0 1 O I O
I I 0 0
0 1 needsto borrow
Fööö
if any MSB
I I O l l
Binary Multiplication
1 0 1 0
1 1 1 1
o o o o
0 1 0 1 1
1 1 1 1
0 0 0 o o o
00 0 0
I O l O l l
1 1 0 1 01 1 1 0
1 0 0 1 0 1 1
1011101 110
1 1 0g 1 1 0 1 I O
I l
II 0 1 0 1 1 1 0 1
01 I D I l o
l l O
0 10 1 1
1 1 0
i Quotient Ikt 0 I 0
Reminder 010
0 0 1
Eg Given number is 1 0 1 0 1 0 1
2s complement O l O I O I O t
O I O l O l l Add I to LSBof Is
complement
Given M 1 1 0 1 0 1 1 0
n 0 1 0 00 1 0 1
Find 2 s complement An
M 10 1 1 1 01 1
add Mtn 1 1 0 1 0 1 1 0
11
0 1 1 1 0 1 1
D 1 0 0 1 0 0 0 1
sincetheeis carry
discard it
and aus is 1 0 0 1
00011
Tofindumf
Find 2s complement AN M 00 1 I t
o_0
Add Dtm
01005inch
l t t l l l
no any is
ie ans 1 00 1 0 0 0 0
Thefinalanswer is 1 001
00011
0in
Y A OR B ATB OR operation
Y Ä not operation
Bodean.ddenktiescla
AA
OAIdeutityl.NU
l Law A Atl 0 0
ßyµeuf w aA A AA
1 A.A n 0 at
commutahwelaWA.Bn.BA A BtA
ct.at f
D LWA.tt AT AB
Truth table
I At AB A
A B AB AHAB
solution At AB D It B A I A o o o
O I
I O
I I I I
column of trutertable wen
SeeHat AandAxABaesame
2 AtÄB ATB A ÄB A HB AB HB
A AB FB
AB AB A ÄB ATB
00 0 0 0 D A 1Ä B ATF
0 1 1 1 1
1 0 0 1 1 At B
I I 0 1 1
Earn the truth table since last two columns are identical
3 A BC At B Htc
4 B A c AA Act AB BC distributive
usingcommutative
T and Law
ATAC 1 AB 1 BL
A Itc AB BL
A AB BC
A HB BL
Atzt
A BA CA BCA BCA.CI
Observing them
0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 0 We can conclude
out
O O O I 1 1 1
1 0 1 0 1 1 1 1 AtBC B A
1 0 0 1 1 1 1
I I
1 1 1 1
ACC c B
A AB 1A
HALFADDE.IR
Outputs
A B S
g A B A x on B
0 0
c a
0 1 1 0
1 0 1 0
I A Sum A B
1 0
HALF
ADDER
B Carry A B
A B
wing gates Realisation of half adder
Es an
DIFFÄ
A TAB
Full adder
Inputs output
0 0 0 0 0
after simplification we get
0 0 1 1 0 5 A B Ci
Ba an a
1 0 0 1 0
1 1
0 1 0
1 0 0 1
1 1 1 1 1
Proof of S A B Ci
S B AB Cit GÄB AB E
T t
t z
ifz AB AB.ie
AtOBZ
4 5 A B
RÄTABtAB BB
AB
AB.is
Zi
EDT
it outand b O
at first q O g L
a D 0 q O g
aiq lb qn Dg.no g
äämändäqston