ADDC Unit 2 - Combinational Circuits
ADDC Unit 2 - Combinational Circuits
Combinational Ciocuft
Ihe outputs oj Combinattom logic Cictaits
ae only cletomined by the l0go0 jukction o hefr
CuYent tnput stau, logic 0 o 18qic , at any 9en
i'nstant in time
The togiC CiTcuits
oeCult is thot (ombinoiona
have hoeodback ,and any changey to +ol etgna
tomedtaHly hav
being oPlie to Hoiy înpidS w
an eet at e Output.
Combinational loiC
Classfcation o
Combinaional Logic Ciacuit
Codle
Dcta
Aithmeic ransmiSsion Conveote
L o gRcal F u n c f o n BinaYy-Yray
BCD - Excul-3
Mutiplex
Addsd Demufpuas S e m e u
Subtsattsd
Enodu
Comporocs
Decodu
>PLD
CircuttsTBinsy
Pasallel addag
addir bit
PPe Carosy 1ull adld-3
bts add tHon,
In hall adolu N t addItio)
addition pes]omec To operate MuHtple
i pple cory
D
a ddu ic dsed be
Can
4ip Mu ull ad& ciTCCits numberr tso 09
to an - b t t
add
Caccadad p a t oDa N ho. o4Qde
there must be
N-bt pavalOal addu,
Crut
Circuit fo Lolidh e
is on loqic
vipple Ca0y addy
addo is tti Cay-in 0| aSurCed
Coy-Out o each Jull
adlin
hext most stght|tcant Jull
Each cawy bit qets Mppled
Ripple Camy ad
into te hext staog
B Da B B
B A
CiD C2
Cut FAA Cout jCout Cout
fA3 FA2 FAI
S3 S So
Ha 21 bit vippl carry addn tijcu
The Cum and co0ry out bits 0] any haldd
Staqe te uot valtd unil ta CaTY-in ol thot Sto*
S-(AABiC Pi
CTH=AiBi+ (AHer)CT
o
S
C DCi+1
CtP (, +P,C)
=
i9, C4
Crt Pes, +P,PC
t PaC
=(st P. (Ct P
tP,P,C)
P tPPs tRPa PsC
Each staqe Cout
each Junction can be expreMLe nSum ol þroducs,
"
AND got1s
tmpumuuted si+hone Dave a
Jollosed by an OR qot. by tu o Davel
NANO qat)
CA4L
As P3 A CA
C
E
A D P
E P2
C D-
A
Ca R
Advantaqe
*The popa qotion dolay îs secducool
*It providaN t Jastest additio) lofic
Disadvantag
* Tha Complt "cTtuit qts Conmplicat.d atea numa@4
Vavialdu 'n(taj.
*The Circuit ic coct|ier al itnvoweymore humbeL
hovduocare.
Exompl
A 6 bit pple cary addar pe vealzod usinq 1G
denti ca Jull addeYs (FA) as shouon tn iqune U
qu Sum
Coy -propagotton dolay o lath fA fs 12
propaqaon alay oj each FA ic 15ns The worst Cak e y
this 16-B+ addr be
(innty o
Ao Ais BisS
A B Au By
Cis
Ao A AIS
S S3
tp12 h, tpsum 1Sns
S X tcarmy t1X tsus
ISXt2 41x1S
180tI
HwTSS-(n-)tpc+1X tpsum
Exampl &
Z -Zn+1
Sn Stabla
alt
D
C20t0)4-ons stan all au initiallyO
nt Sttbl alteu (dotist to) 4Sns slan a a o
At to, = ii oO
OOO D
ShCtall alle Jo t40)60
ZnH sBab
40hs (4s4 &S) to ng
Z
Z
en Z
1
becoe
6 ts ca ied oud as
Addton
hmmol binany addit
CaSe 2
OOO
Tnvalid 8 cD numbey1
4
1 0
oO
| Ooo JneOrvecd 6 (DTesulk
is acsgrech
BCD numbes, b t 1t
valid
oo1 00o1 OeguUt
lact6
C o o e c d on aAr6B
BCD
To get Co00ecd
addodto
-o S B cl t91 suk
hao be
O OO
0lI0
OoTOJL
B1na3y Sun BCD um
CSES4 |S S
O
|O
oo1o
1
O
O
O
O
O OO
1
O1
224
o o
o t O
K oO
1 1ooO
C K+ Ze Zy t Zs Z
oo
A dectmal pataW addr +hot add n
detma) degRk Debd h ' BCD adder
Stage
Outpud Cam o On
tag2 mus be corhecho
to the înpud Ca y -We hex hiqla ovdr
staqe
(8(P.h-.)
Outpu
Sg SS
: BcD addu i CLt
iq 4
Maqnitudle Compatatu
îs an opT OLON
he compadtson o) tuwo Humbeds
LOMta
one nlimber ts aeatir han,
that dteoonines
4e O t t e humber (A BA<8, A=B)
OY éouo to
b i t maQnitude conparadr
(AAH AA B.B
A O 10
ol O
DO
to o o O
A4B)-A. Bo t hA B1 tB.B| A
D- ALB
4bit maHu de (ompadatsy
in n-bit num) beod,
ontoiey 1
lhe h inreaeA
Sequwntio
duth table ane become tod umbersome
so
e
booloan un etions
u0
= A2 tzAAo
B Bs B B i B
X =
AiBi +A B;
+ Ys X2 A1 B,t MAB
B
( A 5 ) - As B
+ X A2
B
%X2A,6,t Xs X
A
*3AzB, t
CA <B)-A3 B3 +h
DD
A LB
D- D
A YB
D
AB
Enodor
An Encoder is g Combi natonal Circuit hat
has maximum o input Lines oand h'Output
nes
4to& Entoders (n-2)
Let 4 Entodr ha
to 2 Jour inpus Y,Y,1+
CLnd tuo outputs A Ao.
BloCk diaej am Tvut able
4to
Y7, Y. A A
ELoL
A OOlO O
A= Mt7
A. Ye +7
A
o
Drawbacks o En Lod
t an ambiqutty, shen
ol outputS o1 en (odlus
Thene todi cse Spooding
ae eqal to zsotCouNd be
tnput is
to t ' tnpu,ulsn only Jast stqnilicant
One r wen all inpuk a e zeTTY
m6e tharn o e inpu is a i v e Hiqh,+hen e
J)
wlich may nt be
enoder pmduco an outpu
A- Y,1
X A. t
V Y3t YTy +Y
x i
A
Ao
DecCodert
ecod fe q combinational Ctrccuit Aot kaj
inpu lint and maximum o) output in0.O
The &e
outpubs Lst| be acthve High oa ted on t Combina
mpu preuut
The Outpuds o| l a c e t o d are nothing bus
ta
minttm s o\h' inpud vartabla s,slun t ts
enatic.
t o 4 decod
Tt has a
inputs Ao 4 Ar and 4 outpud %,Y.
A
2t 4
A decod O
3 EAs A
D Y
Y -EA A
Y-EA.A
EAeA
-
3to & dde code) usinq 9 4 decocda
to 4
A E
A
9 4
decoder Y
E
A 3t8
A Y2
Pro decod Yu
A3
3to8
Aacodnt4
De
3 :8
TA Dis
E
Ds
3:8
PN23
3 D2A
D
Muliplexer
MultipleXin
MuHiplexens are 1ed Jor mulliplexing.
inJomno09
means tangoiHinga arqenumbrs o|
means
inD3
o
number Chonhe o
i s oves a
niis emallo
combinoticna CiYCuit,
A digital multiplexey 0 tr put
o manyon
celect binary fnog matto)o
hat
sinqle oudpat lin
Tha
and directs it to 'a
e
Jines
fuw fs Co ntsol
b
o a paoticedad fnput
Selectio)
Set oSelection Sues seleciona
input Ltueg and n
There ane sLic 1up
input
Combinatto)s
datanmino si
inee tsLose bit
is selected
48 Mulliplexer
Tvuttabla 4x
MUX
4X1YOutput SoSy
MOX
Co S
S. S T t S.S t S T
= 3.E,T.t
Seloc
iu
T.
mult ptK
Boolean unttio fmplemynteitjoD ucing
23
O
)o0O
A
O
1o A A
4x1
A1MUx
A
CaCe & Se S
Con Ci du A4C (B) Cc)
as
eloct ue
B
B
3 41
MOX
B B
Case 3
Consider A 4B AC
as select i e
co2 C
4x
S
MUX
C C
Jmplement ollo Ling unetion 1+h a mutip
FA,B,C,D)2lo, e,715)
Four voYiab al S0 e heec 3 Sect LiuIMK
ucing
Lo uSin9 8 X1 Mutipluru h Jotlotinq 4unchion împlemntad
CaLe_1
Cons i d l o BCD
Cons fd
as Seloct Li
TT4,TJ T9
e10 1112 13 4 ( s
8X
MUX
A O
o 1 O
1
CD
Cae
Concider A.B,C a celct Ltug
6&to 12 14
D d 0 0 0 TD
E4 12 B 14C 1
B OBB B
Case 4
Conido e A,B,D a elect w
c c 0 cc0 C
Demuliplexes (Dota d:ctributs )
DemulHiplrer ts deViCO llom binattonal cires
hod takej a cingle input iw and TOuts 1t bon
Oeveal alieil output ineS 9" Outputs has q
Seluct Iines, dach a ueo to selet aith oufpA
Jine to end 4ie înput.
Xy dlomuliplar
A S.SiD cBA
D
| o O0
=S. F
B S.
C
S F
D S. S F
Dotn r F
-C
-D
A:8 dom uliplre tonstsut Hon using
x4 dumultipexeu
dmuxx
So
4
oumux
Binary tMutiplie
-bit binary Muli pie
A A
xBB
A B A B
AB A B +
AB (AB Ae Be
A. B
Pa P
Ostug LaJ addu
A P
A
B
Ao
-P2
A
B C
Ex: The logtc lunction tmplementid by
+he cirit h
rs(Cround implie a logtc
's "7
CTat 20l|
4X MUXX
| Y -F
P Q
F P I, t PQ ItPtt PQT
Fo Co)+
P9() +PÙ 0) +POC)
-PotPo
FCA,8,D)
AB
C+ ABDt aBCt A
F (AB,C.D) AB
ABC+ABDtAB +AB +ABD
F(nB,Cb) = m( 2, 3, 5,7,8,9,12)
Ex:3
What adE Aa
miojmum number ol 2:1 mutiplo
10
aPquiotdto qeneiale 2-10put AND dat nd a 2input
a
Ex-0Rqata p
0-
F T
A-
0
-
f B)+ BA
BA+BA
F.A3 YAl)tA)Y
A
Ex4
The aruit shoon in tha q u eonveJts
D inpuds
MSB
Outputs
f r înpats Censtduing 4 bitwad. 10 1o
Cray
BinooyY
C Ba
B = C,
Ex
Considey the Jollo sing multi ple YoY LsLee Io,LT,I
CIDe ou0 data înpu 2iu08 Selectsd by tuwo addoess n
Combinations AAo O0,oIJC,
=
Despe frvely anclis
ttt
Oudput ol 4he multipla rov EN ts-Ce EaUle inpu
4:IMUX
2t 2 tzy):'
-(x1(2 +2)+ 2 )2
=( t2)2,
X12
E6
A Booloan Junction, F C qiVen as sum Pouduct
ExT