UNIT I NOTES
UNIT I NOTES
ORGANIZATION
UNIT I COMBINATIONALCIRCUITS:
-Combinational Circuits
– Karnaugh Map - Analysis and Design Procedures
– Binary Adder – Subtractor
– Decimal Adder
- Magnitude Comparator
– Decoder
– Encoder
– Multiplexers
- Demultiplexers
INTRODUCTION:
The digital system consists of two types of circuits, namely
(i) Combinational circuits
(ii) Sequential circuits
Sequential logic circuit comprises both logic gates and the state of
storage elements such as flip-flops. As a consequence, the output of a
sequential circuit depends not only on present value of inputs but also on the
past state of inputs.
In the previous chapter, we have discussed binary numbers, codes, Boolean
algebra and simplification of Boolean function and logic gates . In this chapter,
formulation and analysis of various system at icdesigns of combinational circuits
will be discussed.
The following guidelines should be followed while choosing the preferred form for
hardware implementation:
1. The implementation should have the minimum number of gates ,with the
gates used having the minimum number of inputs.
2. There should be a minimum number of inter connections.
3. Limitation on the driving capability of the gates should not be ignored.
ARITHMETICCIRCUITS–BASICBUILDINGBLOCKS:
Half-Adder:
A half-adder is a combinational circuit that can be used to add two
binary bits. It has two inputs that represent the two bits to be added and two
outputs, with one producing the SUM output and the other producing the
CARRY.
Block schematic of half-adder
The truth table of a half adder ,showing all possible input combinations and
the corresponding outputs are shown below.
Inputs Outputs
A B Carry(C Sum(S)
)
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Truth table of half adder K-map simplification for
carry and sum:
The Boolean expressions for the SUM and CARRY outputs are given by the
equations,
Sum ,S =A’B+AB’=AB
Carry ,C=A.B
The first one representing the SUM output is that of an EX- OR
gate, the second one representing the CARRY output is that of an AND
gate.
The logic diagram of the half adder is,
Full-Adder:
A full adder is a combinational circuit that forms the arithmetic sum of three
input bits .It consistsof3inputsand2outputs.
Two of the input variables, represent the significant bits to be added.
The third input represents the carry from previous lower significant position .The
block diagram of full adder is given by,
The full adder circuit overcomes the limitation of the half-adder, which
can be used to add two bits only. As there are three input variables, eight
different input combinations are possible .The truth table is shown below,
Truth Table:
Input Output
s s
A B Ci Sum(S) Carry(Co
n ut)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
To derive the simplified Boolean expression from the truth table ,the Karnaugh
map method is adopted as,
The Boolean expressions for the SUM and CARRY outputs are given by
the equations,
Sum ,S =A’B’Cin+A’BC’in+AB’C’in+ABCin
Carry ,Cout =AB+ACin+BCin.
The logic diagram of the full adder can also be implemented with two
half- adders and one OR gate .The S output from the second half adder is the
exclusive- OR of Cin and the output of the first half-adder ,giving
LogicImplementationofHalf-Subtractor
Comparing a half-subtractor with a half-adder, we find that the
expressions forthe SUM and DIFFERENCE outputs are just the same. The
expression for BORROW inthe case of the half-subtractor is also similar to
what we have for CARRY in the case ofthe half-adder. If the input A, ie., the
minuend is Dcoowmnplloeamdeendtefdro, m
EngagnTree.cAomND gate can
beusedtoimplementtheBORROWoutput.
FullSubtractor:
Afullsubtractorperformssubtractionoperationontwobits,aminuendandasubtra
hend, and alsotakes intoconsideration whethera ‗1‘ has alreadybeen
borrowedbythepreviousadjacentlowerminuendbitornot.
As a result, there are three bits to be handled at the input of a full
subtractor,namely the two bits to be subtracted and a borrow bit designated as
Bin. There are twooutputs,namelytheDIFFERENCEoutputDandthe
BORROWoutput Bo. TheBORROW output bit tells whether the minuend bit
TheBooleanexpressionsfortheDIFFERENCEandBORROWoutputsaregiv
enbytheequations,
Difference,D =A’B’Bin+A’BB’in+AB’B’in+ABBin
PreparedByKAVIARASAN.S/Asst.Prof.,PIT
Borrow,Bout =A’B+A’Cin+BBin.
Thelogicdiagramfortheabovefunctionsisshownas,
Implementationoffull-adderinSumofProducts
The logic diagram of the full-subtractor can also be implemented with two
half-
subtractorsandoneORgate.Thedifference,Doutputfromthesecondhalfsubtractoris t
heexclusive-ORofBinandtheoutputofthefirsthalf-subtractor, giving
Difference,D=Bin (AB) [xy=x‘y+xy‘]
=Bin(A‘B+AB‘)
=B‘in(A‘B+AB‘)+Bin(A‘B+AB‘)‘ [(x‘y+xy‘)‘=(xy+x‘y‘)]
=B‘in(A‘B+AB‘)+Bin(AB+A‘B‘)
= A‘BB‘in+ AB‘B‘in+ ABBin+A‘B‘Bin.
andtheborrowoutputis,
Borrow,Bout=A’B+Bin(A’B+AB’)’[(x‘y+xy‘)‘=(xy+x‘y‘)]
=A‘B+Bin(AB+A‘B‘)
= A‘B+ABBin+A‘B‘Bin
=A‘B(Bin+1)+ABBin+A‘B‘Bin [Cin+1=1]
=A‘BBin+A‘B+ABBin+A‘B‘Bin
= A‘B+ BBin(A+A‘)+A‘B‘Bin [A+A‘=1]
=A‘B+BBin+A‘B‘Bin
=A‘B(Bin+1)+BBin+A‘B‘Bin [Cin+1=1]
=A‘BBin+A‘B+BBin+A‘B‘Bin
=A‘B+BBin+A‘Bin(B+B‘)
=A‘B+BBin+A‘Bin.
Therefore,
wecanimplementfull-subtractorusingtwohalf-subtractorsandORgateas,
Implementationoffull-subtractorwithtwohalf-
subtractorsandanORgate
Four –bit BinaryAdder(ParallelAdder):
The4-bitbinaryadderusingfulladdercircuitsiscapableofaddingtwo4-
bitnumbersresulting ina4-bit sumanda carry output as showninfigure below.
4-bitbinaryparallelAdder
Sinceallthebitsofaugendandaddendarefedintotheaddercircuitssimultaneou
slyandtheadditionsineachpositionaretakingplaceatthesametime,thiscircuitiskno
wnasparalleladder.
Letthe4-
bitwordstobeaddedberepresentedby,A3A2A1A0=1111andB3B
2B1B0=0011.
Thebitsareaddedwithfulladders,startingfromtheleastsignificantposition,to
formthesumitandcarrybit.TheinputcarryC0intheleastsignificantpositionmustbe
0. The carry output of the lower order stage is connected to the carry input of the
nexthigherorderstage.Hencethistypeofadderiscalledripple-carryadder.
In the least significant stage, A0, B0 and C0 (which is 0) are added
resulting insumS0andcarryC1.ThiscarryC1becomesthecarryinputtothesecond
stage.Similarly in the second stage, A 1, B1 and C1 are added resulting in sum
S1 and carry C2,in the third stage, A2, B2 and C2 are added resulting in sum
S2 and carry C3, in the thirdstage, A3, B3 and C3 are added resulting in sum
S3 and C4, which is the output carry.Thusthe circuitresultsin a
sum(S3S2S1S0) and acarry output(Cout).
Though the parallel binary adder is said to generate its output
immediately afterthe inputs are applied, its speed of operation is limited by the
carry propagation delaythrough all stages. However,there are several methods
to reduce thisdelay.
One of the methods of speeding up this process is look-ahead carry
additionwhicheliminatestheripple-carrydelay.
BinarySubtractor(ParallelSubtractor):
The subtraction of unsigned binary numbers can be done most
conveniently bymeans of complements. The subtraction A-B can be done by
taking the 2‘s
complementofBandaddingittoA.The2‘scomplementcanbeobtainedbytakingthe1
‘scomplementandadding1totheleastsignificantpairofbits.
The1‘scomplementcanbeimplementedwithinvertersanda1canbeaddedtoth
esumthroughtheinputcarry.
ThecircuitforsubtractingA-
Bconsistsofanadderwithinvertersplacedbetween each data input B and the
corresponding input of the full adder. The
inputcarryC0mustbeequalto1whenperformingsubtraction.Theoperationthusperf
ormed becomes A, plus the 1‘s complement of B, plus1. This is equal to A plus
the2‘scomplementofB.
4-bitParallelSubtractor
4-Bit ParallelAdder/Subtractor:
The addition and subtraction operation can be combined into one circuit
withone common binary adder. This is done by including an exclusive-OR
In examining the contents of the table, it is apparent that when the binary
sum isequal to or less than 1001, the corresponding BCD number is identical, and
therefore noconversionis needed. When the binarysum is greaterthan 9(1001),
weobtain anon-
validBCDrepresentation.Theadditionofbinary6(0110)tothebinarysumconvertsittoth
ecorrectBCDrepresentationandalsoproducesanoutputcarryasrequired.
Thelogic circuittodetectsumgreaterthan
9canbedeterminedbysimplifyingthebooleanexpressionofthegiventruthtable.
ToimplementBCDadder werequire:
4-bitbinaryadderforinitialaddition
Logiccircuittodetectsumgreaterthan9and
Onemore4-bitaddertoadd01102inthesumifthesumisgreaterthan9orcarryis1.
MAGNITUDECOMPARATOR:
Blockdiagramofn-Bit magnitudecomparator
representingtheconditionsA=B,A>BandA<B,ifAandBarethetwonumbers
beingcompared.
Forcomparisonoftwon-bitnumbers,theclassicalmethodtoachievetheBoolean expressions
requires a truth table of 22nentries and becomes too lengthy andcumbersome.
From the above truth table logical expressions for each output can be expressed as
follows:
A>B: AB'
A<B: A'B
A=B: A'B' + AB
From the above expressions we can derive the following formula:
By using these Boolean expressions, we can implement a logic circuit for this
comparator as given below:
2-bitMagnitudeComparator:
Thetruthtableof2-bitcomparatorisgivenintablebelow—
Truthtable:
Input Outputs
s
A A2 A1 A0 A>B A=B A<B
3
0 0 0 0 0 1 0
0 0 0 1 0 0 1
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
K-mapSimplification:
LogicDiagram:
2- bitMagnitudeComparator
ENCODERS:
GeneralstructureofEncoder
It has 2n input lines, only one which 1 is active at any time and ‗n‘
output lines. Itencodes one of the active inputs to a coded binary output with
‗n‘ bits. In an encoder,thenumberofoutputsislessthanthenumberofinputs.
Octal-to-BinaryEncoder:
It has eight inputs (one for each of the octal digits) and the three outputs
thatgenerate the corresponding binary number. It is assumed that only one
input has avalueof1atanygiventime.
Inputs Outputs
D D D D D D D D A B C
0 1 2 3 4 5 6 7
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
The encoder can be implemented with OR gates whose inputs are
determineddirectly from the truth table. Output z is equal to 1, when the input
octal digit is 1 or 3or5or7.Outputyis
1foroctaldigits2,3,6,or7andtheoutputis1fordigits4,5,6or
7.TheseconditionscanbeexpressedbythefollowingoutputBooleanfunctions:
z=D1+D3+D5+D7
y=D2+D3+D6+D7
x=D4+D5+D6+D7
The encoder can be implemented with three OR gates. The encoder
defined inthe below table, has the limitation that only one input can be active at
any given time.
Iftwoinputsareactivesimultaneously,theoutputproducesanundefinedcombinatio
n.
For eg., if D3 and D6 are 1 simultaneously, the output of the encoder
may be 111.This does not represent either D6 or D3. To resolve this problem,
encoder circuits mustestablish an input priority to ensure that only one input is
encoded. If we establish ahigher priority for inputs with higher subscript
numbers and if D3and D6are 1 at thesame time, the output will be 110
becauseD6hashigher prioritythan D3.
Octal-to-BinaryEncoder
Another problem in the octal-to-binary encoder is that an output with all 0‘s
isgenerated when all the inputs are 0; this output is same as when D 0is equal to 1.
Thediscrepancycan be resolvedbyproviding one moreoutput
toindicatethatatleastoneinputisequalto1.
PriorityEncoder:
A priority encoder is an encoder circuit that includes the priority
function.
Inpriorityencoder,iftwoormoreinputsareequalto1atthesametime,theinputhavingt
hehighestprioritywilltakeprecedence.
In addition to the two outputs x and y, the circuit has a third output, V (valid
bitindicator).Itis set to 1 whenoneormore inputs areequal to 1.If allinputs are0,
thereisnovalidinputandVisequalto0.Thehigherthesubscriptnumber,higherthepriority
oftheinput.InputD3,hasthe highest priority. So, regardless of the values of the other
inputs, whenD3is 1, theoutputforxyis11.
D2hasthenextprioritylevel.Theoutputis10,ifD2=1providedD3=0.Theoutputfo
rD1isgeneratedonlyifhigherpriorityinputsare0,andsoondowntheprioritylevels.
Truthtable:
Input Outputs
s
D D D D x y V
0 1 2 3
0 0 0 0 x x 0
1 0 0 0 0 0 1
x 1 0 0 0 1 1
x x 1 0 1 0 1
x x x 1 1 1 1
Although the above table has only five rows, when each don‘t care
condition isreplaced first by 0 and then by 1, we obtain all 16 possible input
combinations.
Forexample,thethirdrowinthetablewithX100representsminterms0100and1100.T
hedon‘tcareconditionis replacedby0and 1asshown in thetable below.
ModifiedTruthtable:
Input Outputs
s
D D D D x y V
0 1 2 3
0 0 0 0 x x 0
1 0 0 0 0 0 1
0 1 0 0
1 1 0 0 0 1 1
0 0 1 0
0 1 1 0
1 0 1 0 1 0 1
1 1 1 0
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
K-mapSimplification:
ThepriorityencoderisimplementedaccordingtotheaboveBooleanfunctions.
InputPriorityEncoder
DECODERS:
BinaryDecoder(2to4decoder):
A binary decoder has ‗n‘ bit binary input and a one activated output out
of 2noutputs. A binary decoder is used when it is necessary to activate exactly
one of 2noutputsbasedonann-bitinputvalue.
2-to-4Linedecoder
Herethe2inputsaredecodedinto4outputs,eachoutputrepresentingoneoftheminter
msofthetwoinputvariables.
Input Output
s s
Enabl A B Y Y Y Y
e 3 2 1 0
0 x x 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
Asshowninthetruthtable,ifenableinputis1(EN=1)onlyoneoftheoutputs(Y0–
Y3),isactiveforagiveninput.
TheoutputY0isactive,ie.,Y0=1wheninputs
A=B=0,Y1isactivewheninputs,
A=0andB=1,
Y2isactive,wheninputA=1andB=0,
Y3isactive,
wheninputsA=B=1.
3 to-8LineDecoder:
A3-to-8linedecoderhasthreeinputs(A,B,C)andeightoutputs(Y0-
Y7).Basedonthe3inputsoneoftheeightoutputsisselected.
Thethreeinputsaredecodedintoeightoutputs,eachoutputrepresentingoneofthe
mintermsofthe3-inputvariables.Thisdecoderisusedforbinary-to-
octalconversion.Theinputvariablesmayrepresentabinarynumberandtheoutputswillre
present the eight digits in the octal number system. The output variables are
mutuallyexclusivebecauseonlyone outputcanbeequalto1 atanyone
time.Theoutputlinewhosevalueisequalto1representsthemintermequivalentofthebinar
ynumberpresentlyavailableintheinputlines.
Input Output
s s
A B C Y Y Y Y Y Y Y Y
0 1 2 3 4 5 6 7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
3-to-8linedecoder
BCDto7-SegmentDisplayDecoder:
A seven-segment display isnormally usedfordisplaying any one of the
decimaldigits,0through9.ABCD-to-
sevensegmentdecoderacceptsadecimaldigitinBCDandgeneratesthecorrespondi
ngseven-segmentcode.
Eachsegmentismadeupofamaterialthatemitslightwhencurrentispassedthrou
ghit.Thesegmentsactivatedduringeachdigit displayaretabulatedas—
0 a,b,c, d,e,f
1 b,c
2 a, b, d, e, g
3 a, b,c,d,g
4 b,c,f, g
5 a,c,d,f,g
6 a,c,d,e,f,g
7 a,b,c
8 a, b,c,d,e,f, g
9 a,b,c,d,f,g
Truthtable:
BCDcode 7-
Segmentcode
Digi A B C D a b c d e f g
t
0 0 0 0 0 1 1 1 1 1 1 0
1 0 0 0 1 0 1 1 0 0 0 0
2 0 0 1 0 1 1 0 1 1 0 1
3 0 0 1 1 1 1 1 1 0 0 1
4 0 1 0 0 0 1 1 0 0 1 1
5 0 1 0 1 1 0 1 1 0 1 1
6 0 1 1 0 1 0 1 1 1 1 1
7 0 1 1 1 1 1 1 0 0 0 0
8 1 0 0 0 1 1 1 1 1 1 1
9 1 0 0 1 1 1 1 1 0 1 1
K-mapSimplification:
PreparedByKAVIARASAN.S/Asst.Prof.,PIT
Logic Diagram
BCDto7-segmentdisplaydecoder
Applicationsofdecoders:
1. Decodersareusedincountersystem.
2. Theyareusedinanalogtodigitalconverter.
3. Decoderoutputsc a n be u se d t o dr i v e
D o w n lo a d e d f r o madEisnpglagyTsryes
ete.mco.m
MULTIPLEXER:(DataSelector)
BlockdiagramofMultiplexer
2-to-1-lineMultiplexer:
Thecircuithastwodatainputlines,oneoutputlineandoneselectionline,S.WhenS=
0,theupperANDgateisenabledandI0hasapathtotheoutput.
When S=1,thelowerAND gateisenabledandI1has apathtotheoutput.
Themultiplexeractslikeanelectronicswitchthatselectsoneofthetwosources.
Truthtable:
S Y
1 I1
4-to-1-lineMultiplexer:
A 4-to-1-line multiplexer has four (2n) input lines, two (n) select lines
and oneoutput line. It is the multiplexer consisting of four input channels and
information ofone of the channels can be selected and transmitted to an output
line according to theselect inputs combinations. Selection of one of the four
input channel is possible by twoselectioninputs.
EachofthefourinputsI0throughI3,isappliedtooneinputofANDgate.Selection
lines S1and S0are decoded to select a particular AND gate. The outputs of
theANDgateareappliedtoasingleORgatethatprovidesthe1-lineoutput.
4-to-1-LineMultiplexer
Functiontable:
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
To demonstrate the circuit operation, consider the case when S 1S0= 10. The
ANDgateassociatedwithinputI2hastwoofitsinputsequalto1andthethirdinputconnecte
dtoI2.TheotherthreeANDgateshaveatleastoneinputequalto0,whichmakestheiroutput
sequalto0.TheORoutputisnowequaltothevalueofI2,providingapathfromtheselectedin
puttotheoutput.
The data output DisoweqnuloaladtoedI0froonmlyEinf
gSg1T=re0ea.cnodmS0= 0;
Y= I0S1‘S0‘.The data output is equal to I1 only if S1= 0 and S0= 1; Y=
I1S1‘S0.The data output is equal to I2 only if S1= 1 and S0= 0; Y=
I2S1S0‘.ThedataoutputisequaltoI3onlyifS1=1andS0=1;Y
=I3S1S0.
WhenthesetermsareORed,thetotalexpressionforthedataoutputis,
Y=I0S1’S0’+I1S1’S0+I2S1S0’+I3S1S0.
As in decoder, multiplexers may have an enable input to control the
operation ofthe unit. When the enable input is in the inactive state, the outputs
are disabled, andwhenit isin the activestate, the circuit functionsasa
normalmultiplexer.
Quadruple 2-to-1LineMultiplexer:
PreparedByKAVIARASAN.S/Asst.Prof.,PIT
This circuit has four multiplexers, each capable of selecting one of two
inputlines. Output Y0 can be selected to come from either A0 or B0. Similarly,
output Y1 mayhave the value of A1 or B1, and so on. Input selection line, S
selects one of the lines
ineachofthefourmultiplexers.TheenableinputEmustbeactivefornormaloperation.
ImplementationofBooleanFunctionusingMUX:
AnyBooleanorlogicalexpressioncanbeeasilyimplementedusingamultiplex
er. If a Boolean expression has (n+1) variables, then ‗n‘ of these variables
canbe connected to the select lines of the multiplexer. The remaining single
variable alongwith constants 1 and 0 is used as the input of the multiplexer. For
example, if C is
thesinglevariable,thentheinputsofthemultiplexersareC,C‘,1and0.Bythismethoda
nylogicalexpression canbeimplemented.
In general, a Boolean expression of (n+1) variables can be implemented
using amultiplexerwith2ninputs.
1. Implementthefollowingboolean
functionusing4:1multiplexer,F(A,B,C)=∑m(1,3,5,6).
Solution:
Variables,n=3(A,B,C)Se
lectlines=n-1=2(S1,S0)
2n-
1toMUXi.e.,22to1=4to1MUXInputli
nes=2n-1=22=4(D0,D1,D2,D3)
Implementationtable:
ApplyvariablesAandBtotheselectlines.Theproceduresforimplementingthefunct
ionare:
i. Listtheinputofthemultiplexer
ii. Listunderthemallthemintermsintworowsasshownbelow.
The first half of the minterms is associated with A‘ and the second half with A.
Thegivenfunctionisimplementedbycirclingthemintermsofthefunctionandapplyi
ngthefollowingrulestofindthevaluesfortheinputsofthemultiplexer.
1. Ifboththeminterm s i nt h e c o lu m
D ow n l o a d e d
n a r eno t ci r cl e d , ap p ly 0tothecorrespondingin
fr o m E n g g T r e e .c o m
put.
2. Ifboththemintermsinthecolumnarecircled,apply1tothecorrespondinginput.
3. Ifthebottommintermiscircledandthetopisnotcircled,applyCtotheinput.
4. Ifthetopmintermiscircledandthebottomis notcircled,applyC‘totheinput.
MultiplexerImplementation:
2.F(x,y,z)=∑m(1,2,6,7)
Solution:
Implementationtable:
Multiplexer Implementation:
3.F(A,B,C) =∑m(1,2,4,5)
Solution:
Variables,n=3(A,B,C)Selectli
nes=n-1=2(S1,S0)
2n-
1toMUXi.e.,22to1=4to1MUXInputli
nes=2n-1=22=4(D0,D1,D2,D3)
Implementationtable:
Multiplexer Implementation
:
4.F(P,Q,R,S)=∑m(0,1,3,4,8,9,15)
Solution:
Variables,n=4(P,Q,R,S)Sel
ectlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
Implementationtable:
Multiplexer Implementation:
5. ImplementtheBooleanfunctionusing8:1andalsousing4:1multiplexer
F(A,B,C,D)=∑m(0,1 ,2 , 4, 6 , 9 ,1 2 ,1 4
D ow n lo a d e d
Solution:
Variables,n=4(A,B,C,D)Se
lectlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
Implementationtable:
MultiplexerImplementation(Using8:1MUX):
Using4:1MUX:
6.F(A,B,C,D)=∑m(1,3,4,11,12,13,14,15)
Solution:
Variables,n=4(A,B,C,D)Se
lectlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
Implementationtable:
Multiplexer Implementation:
7. ImplementtheBooleanfunctionusing8:1multiplexer.
F(A,B,C,D)=A’BD’+ACD+B’CD+A’C’D.
Solution:
ConvertintostandardSOPform,
=A‘BD‘(C‘+C)+ACD(B‘+B)+B‘CD(A‘+A)+A‘C‘D(B‘+B)
=A‘BC‘D‘+A‘BCD‘+AB‘CD+ABCD+A‘B‘CD+AB‘CD+A‘B‘C‘D
+A‘BC‘D
=A‘BC‘D‘+A‘BCD‘+AB‘CD+ABCD+A‘B‘CD+A‘B‘C‘D+A‘BC‘
D
=m4+m6+m11+m15+m3+m1+m5
=∑m (1,3,4,5,6,11,15)
Implementationtable:
Multiplexer Implementation:
8. ImplementtheBooleanfunctionusing8:1multiplexer.
F(A,B,C,D)=AB’D+A’C’D+B’CD’+AC’D.
Solution:
ConvertintostandardSOPform,
=AB‘D(C‘+C)+A‘C‘D(B‘+B)+B‘CD‘(A‘+A)+AC‘D(B‘+B)
=AB‘C‘D+AB‘CD+A‘B‘C‘D+A‘BC‘D+A‘B‘CD‘+AB‘CD‘+AB‘C
‘D+ABC‘D
=AB‘C‘D+AB‘CD+A‘B‘C‘D+A‘BC‘D+A‘B‘CD‘+AB‘CD‘+ABC‘
D
=m9+m11+m1+m5+m2+m10+m13
=∑m (1,2,5,9,10,11,13).
ImplementationTable:
Multiplexer Implementation:
9. ImplementtheBooleanfunctionusing8:1andalsousing4:1multiplexer
F(w,x,y,z)=∑m(1,2,3,6,7,8,11,12,14)
Solution:
Variables,n=4(w,x,y,z)Sele
ctlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
Implementationtable:
MultiplexerImplementation(Using8:1MUX):
(Using4:1MUX):
10. ImplementtheBooleanfunctionusing8:1multiplexer
F(A,B,C,D)=∏m(0,3,5,8,9,10,12,14)
Solution:
Variables,n=4(A,B,C,D)Se
lectlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
Implementationtable:
Multiplexer Implementation:
11. ImplementtheBooleanfunctionusing8:1multiplexer
F(A,B,C,D)=∑m(0,2,6,10,11,12,13)+d(3,8,14)
Solution:
Variables,n=4(A,B,C,D)Se
lectlines=n-1=3(S2,S1,S0)
2n-1toMUXi.e.,23to1=8to1MUX
Inputlines=2n-1=23=8(D0,D1,D2,D3,D4,D5,D6,D7)
ImplementationTable:
Multiplexer Implementation:
F(A,B,C,D)=∑m(3,5,6,8,11,12,13).
DEMULTIPLEXER:
Demultiplexmeansoneintomany.Demultiplexingistheprocessoftakinginfo
rmationfromoneinputandtransmittingthesameoveroneofseveraloutputs.
Ademultiplexerisacombinationallogiccircuitthatreceivesinformationonasi
ngleinputandtransmitsthesameinformationoveroneofseveral(2n)outputlines.
Blockdiagramofdemultiplexer
1-to-4Demultiplexer:
A1-to-
4demultiplexerhasasingleinput,Din,fouroutputs(Y0toY3)andtwoselectinputs(S
1andS0).
LogicSymbol
The input variable Dinhas a path to all four outputs, but the input
information isdirected to only one of the output lines. The truth table of the
1- to-4 demultiplexer isshownbelow.
Enabl S1 S0 Din Y0 Y1 Y2 Y3
e
0 x x x 0 0 0 0
1 0 0 0 0 0 0 0
1 Prepared
0 B 0
yKAVI 1
ARASAN.S/A 1
sst.Prof. ,PI 0 0 0
1 0 1 0 0 T 0 0 0
1 0 1 1 0 1 0 0
1 1 0 0 0 0 0 0
1 1 0 1 0 0 1 0
1 1 1 0 0 0 0 0
1 1 1 1 0 0 0 1
Truthtableof1-to-4demultiplexer
Fromthetruthtable,itisclearthatthedatainput,DinisconnectedtotheoutputY0
, when S1= 0 and S0= 0 and the data input is connected to output Y1 when
S1= 0 andS0= 1. Similarly, the data input is connected to output Y2and
Y3when S1= 1 and S0= 0and when S1= 1 and S0= 1, respectively. Also, from
the truth table, the expression foroutputscanbewrittenasfollows,
Y0=
S1’S0’DinY1=
S1’S0DinY2=S1S0
’Din
Y3=S1S0Din
Logicdiagramof1-to-4demultiplexer
Now, using the above expressions, a 1-to-4 demultiplexer can be
implementedusingfour3-inputAND gatesand twoNOT gates.
Here,theinputdatalineDin,isconnectedto allthe
ANDgates.ThetwoselectlinesS1,S0enableonlyonegate at a
time.andthedatathatappearsontheinputlinepassesthroughtheselectedgatetotheassoci
atedoutputline.
1-to-8Demultiplexer:
A1-to-
8demultiplexerhasasingleinput,Din,eightoutputs(Y0toY7)andthreeselectinputs( S2,S1
andS0).Itdistributesoneinputlinetoeightoutputlinesbasedontheselectinputs
.Thetruthtableof1-to-8demultiplexerisshownbelow.
Din S S1 S0 Y Y Y Y Y Y Y Y
2 7 6 5 4 3 2 1 0
0 x x x 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0 0 0 1 0
1 0 1 0 0 0 0 0 0 1 0 0
1 0 1 1 0 0 0 0 1 0 0 0
1 1 0 0 0 0 0 1 0 0 0 0
1 1 0 1 0 0 1 0 0 0 0 0
1 1 1 0 0 1 0 0 0 0 0 0
1 1 1 1 1 0 0 0 0 0 0 0
Truthtableof1-to-8demultiplexer
Fromtheabovetruthtable,itisclearthatthedatainputisconnectedwithoneoftheei
ghtoutputsbasedontheselectinputs.Nowfromthistruthtable,theexpressionforeightout
putscanbewrittenasfollows:
Y0=S2‘S1‘S0‘Din
Y1=S2‘S1‘S0Din
Y2=S2‘S1S0‘Din
Y3=S2‘S1S0Din
Y4= S2S1‘S0‘Din
Y5= S2S1‘S0DiD
Y6= S2S1S0‘Din
Y7=S2S1S0Din
Now using the above expressions, the logic diagram of a 1-to-8 demultiplexer
can bedrawn as shown below. Here, the single data line, Din is connected to all
the eight ANDgates, but only one of the eight AND gates will be enabled by
the select input lines. Forexample, if S2S1S0= 000, then only AND gate-0 will
be enabled and thereby the
datainput,DinwillappearatY0.Similarly,thedifferentcombinationsoftheselectinp
uts,theinputDinwillappearattherespectiveoutput.
Logicdiagramof1-to-8demultiplexer
1. Design1:8demultiplexerusingtwo1:4DEMUX.
2. Implementfullsubtractorusingdemultiplexer.
Input Output
s s
A B Bi Difference(D Borrow(Bo
n ) ut)
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
PreparedByKAVIARASAN.S/Asst.Prof.,PIT