Professional Documents
Culture Documents
ectcode:3140707 Subj
ectName:COA Dat
e:02/02/2021
Enr
oll
mentno:190420107509 Name:Dev
aniAkashKi
shor
bhai
.
*
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
***
Pr
act
ical
no:4
M :De
AI si
gn4bi
tBi
nar
yAdder
-Subt
ract
orusi
ngLogi
sim.
Bi
nar
yAdder:
TheAddmicro-
operat
ionr
equi
resregi
stersthatcanhol
dthedat
a
andthedi
git
alcomponent
sthatcanperfor
mt hearit
hmeti
c
addi
ti
on.
ABinar
yAdderisadi
git
alci
rcui
tthatper
for
mst hear
it
hmet
icsum
oft
wobi nar
ynumber
sprovi
dedwi t
hanylengt
h.
ABi
naryAdderisconstr
uctedusingful
l
-adderci
rcui
tsconnect
ed
i
nseri
es,wit
htheoutputcarr
yfrom oneful
l-
adderconnect
edto
t
heinputcar
ryofthenextful
l
-adder.
Out
put:
Subj
ectcode:3140707 Subj
ectName:COA Dat
e:02/02/2021
Enr
oll
mentno:190420107509 Name:Dev
aniAkashKi
shor
bhai
.
Bi
nar
yAdderandSubt
ract
or:
ABinar
yAdder-Subt
ract
ori
sonewhichi
scapabl
eofbothaddi
ti
on
andsubtr
act
ionofbinar
ynumber
sinoneci
rcui
tit
sel
f.
Whenthemodeinput(M)i
satal
owlogi
c,i
.e.'
0',
thecircui
tactas
anadderandwhenthemodei
nputi
satahi
ghl ogic,
i.
e.'1'
,t
he
ci
rcui
tactasasubt
ract
or.
Theexclusi
ve-
ORgat
econnect
edi
nser
iesr
ecei
vesi
nputM and
oneoftheinput
sB.
WhenM=0,Theci
rcui
tactasanAdder
.
Out
put:
Subj
ectcode:3140707 Subj
ectName:COA Dat
e:02/02/2021
Enr
oll
mentno:190420107509 Name:Dev
aniAkashKi
shor
bhai
.
WhenM=1,Theci
rcui
tactasanSubt
ract
or.
Out
put: