Combinational & Sequential Logic Circuits — A Professional Insight by Dr. G.S. Virdi

gsvirdi07 12 views 35 slides Oct 27, 2025
Slide 1
Slide 1 of 35
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35

About This Presentation

This lecture on Combinational and Sequential Logic Circuits has been prepared by Dr. G.S. Virdi, Ex. Chief Scientist, CSIR–Central Electronics Engineering Research Institute (CEERI), Pilani, with over 45 years of distinguished R&D experience in microelectronics and semiconductor device fabrica...


Slide Content

Combinational&Sequential
LogicCircuits
Dr.G.S.Virdi
Ex.ChiefScientist
CSIR -Central Electronics Engineering Research Institute
Pilani-333031,India

INTRODUCTION
•Indigitalcircuittheory,sequentiallogicisatype
oflogiccircuitwhoseoutputdependsnotonlyon
thepresentvalueofitsinputsignalsbutonthe
sequenceofpastinputs,theinputhistoryaswell.
Thisisincontrasttocombinationallogic,whose
outputisafunctionofonlythepresentinput.

•Differencebetweencombinationaland
sequentialcircuit....
•Sequentialcircuitsarethosewhicharedependenton
clockcyclesanddependsonpresentaswellaspastinputs
togenerateanyoutput.
•CombinationalCircuit–
•Inthisoutputdependsonlyuponpresentinput.
•Thesequentiallogichasmemorywhilecombinationallogic
doesnot.
•Theyemployafeedbacklooptogiveoutputbacktoinput.
Sequentiallogiccircuitsisaformofbinarycircuit;its
designemploysoneormoreinputsandoneormore
outputs.

•Acombinationallogiccircuitperformsanoperation
assignedlogicallybyaBooleanexpressionortruthtable.
Examples ofcommon combinational
circuits include:
adders,multiplexers,
half adders,
demultiplexers,encoders
logic
full
and
decoders.

•ASequentiallogiccircuitsisaformofbinarycircuit;its
designemploysoneormoreinputsandoneormore
outputs,whosestatesarerelatedtosomedefiniterules
thatdependsonpreviousstates....Examplesof
suchcircuitsincludeclocks,flip-flops,bi-stables,counters,
memories,andregisters.
•Therearetwotypesofsequentialcircuit,synchronous
andasynchronous.Synchronoustypesusepulsedorlevel
inputsandaclockinputtodrivethecircuit(with
restrictionsonpulsewidthandcircuitpropagation).
Asynchronoussequentialcircuitsdonotuseaclock
signalassynchronouscircuitsdo.
•Flipflopisasequentialcircuitwhichgenerallysamples
itsinputsandchangesitsoutputsonlyatparticular
instantsoftimeandnotcontinuously.Flipflopissaidtobe
edgesensitiveoredgetriggeredratherthanbeinglevel
triggeredlikelatches.

Halfadder
•Anadderisadigitalcircuitthatperformsadditionof
numbers.Halfadderhasonlytwoinputsandtwooutputs.
Thehalfadderaddstwobinarydigitscalledasaugend
andaddendandproducestwooutputsassumandcarry;
XORisappliedtobothinputstoproducesumandANDgate
isappliedtobothinputstoproducecarry.
•Byusinghalfadder,youcandesignsimpleadditionwith
thehelpoflogicgates.
CircuitImplementation
TruthTable
BlockDiagram

WhyitiscalledasHalf-adder?
•Thehalfaddercanaddonlytwoinputbits(AandB)and
hasnothingtodowiththecarryifthereisanyintheinput.
Soiftheinputtoahalfadderhaveacarry,thenitwill
neglectitandaddsonlytheAandBbits.Thatmeansthe
binaryadditionprocessisnotcompleteandthat'swhyit
iscalledahalfadder
HowHalfAdderworks?
•Halfadderisasimplecombinationalcircuitusedtoadd
twosinglebits.Itacceptstwoinputsandproducetwo
outputsthatisasumoutputandacarryoutput.Ahalf
adderconsistsoftwologicgates1)XORand2)ANDgate.
AndthecarryoperationperformedbyANDgatethuscarry
outputwillbeA+B.

FULLADDER
Thefulladderadds3onebitnumbers,wheretwocanbereferred
toasoperandsandonecanbereferredtoasbitcarriedin.It
produces2-bitoutputandthesecanbereferredtoasoutput
carryandsum.
Thefull-adderhasthreeinputsandtwooutputs.Thefirsttwo
inputsareAandBandthethirdinputis aninputcarryasC-IN.
Whenafull-adderlogicisdesigned,youstringeightofthem
togethertocreateabyte-wideadderandcascadethecarrybit
fromoneaddertothenext.
TruthTable
BlockDiagram
CircuitImplementation

•Withthetruth-table,thefulladderlogiccanbeimplemented.Youcan
seethattheoutputSisanXORbetweentheinputAandthehalf-adder,
SUMoutputwithBandC-INinputs.WetakeC-OUTwillonlybetrueifany
ofthetwoinputsoutofthethreeareHIGH.
•So,wecanimplementafulladdercircuitwiththehelpoftwohalfadder
circuits.Atfirst,halfadderwillbeusedtoaddAandBtoproduceapartial
SumandasecondhalfadderlogiccanbeusedtoaddC-INtotheSum
producedbythefirsthalfaddertogetthefinalSoutput.
•Ifanyofthehalfadderlogicproducesacarry,therewillbeanoutput
carry.So,C-OUTwillbeanORfunctionofthehalf-adderCarryoutputs.
•Theimplementationoflargerlogicdiagramsispossiblewiththeabove
fulladderlogicasimplersymbolismostlyusedtorepresenttheoperation.
Givenbelowisasimplerschematicrepresentationofafulladder.

•Afulladderisadigitalcircuitthatperformsaddition.Full
addersareimplementedwithlogicgatesinhardware.
Afulladderadds threeone-bitbinarynumbers,two
operandsandacarrybit.Theadderoutputstwonumbers,
asumandacarrybit.
•TheBooleanexpressionforafulladderisasfollows.
•FortheCARRY-OUT (Cout)bit:CARRY-OUT=AANDBOR
Cin(AXORB)=A.B+Cin(A⊕B)

•Abinaryparalleladderisadigitalfunctionthatproduces
thearithmeticsumoftwobinarynumbersinparallel.
•FOUR-BITBINARYPARALLELADDERisacircuitinwhich
twobinarynumberseachofnbitscanbeaddedbymeans
ofafulladdercircuit.Considertheexamplethattwo4-bit
binarynumbersB
4B
3B
2B
1andA
4A
3A
2A
1aretobe
addedwithacarryinputC
1.
•Agroupoffourbitsiscalledanibble.Abasic4-bitparallel
adderisimplementedwithfourfull-adderstagesasshown
inFigure.
4-BitParallelBinaryadder:

•Again,theLSBs(A1andB1)ineachnumberbeingaddedgointotheright-
mostfull-adder:thehigher-orderbitsareappliedasshowntothesuccessively
higher-orderadders,withtheMSBs(A4andB4)ineachnumberbeingapplied
totheleft-mostfull-adder.Thecarryoutputofeachadderisconnectedtothe
carryinputofthenexthigher-orderadderasindicated.Thesearecalled
internalcarries.Inkeepingwithmostmanufacturers'datasheets,theinput
labeledC,istheinputcarrytotheleastsignificantbitadder;C4inthecaseof
fourbits,istheoutputcarryofthemostsignificantbitadder;and∑1(LSB)
through∑4(MSB)arethesumoutputs.Thelogicsymbolfor4-bitparallel
adderisshowninFigure.
•Twobinarynumberseachofnbitscanbeaddedbymeansofafulladder
circuit.Considertheexamplethattwo4-bitbinarynumbersB
4B
3B
2B
1and
A
4A
3A
2A
1aretobeaddedwithacarryinputC
1.Thiscanbedoneby
cascadingfourfulladdercircuitsasshowninfigure.Theleastsignificantbits
A
1,B
1,andC
1areaddedtotheproducesumoutputS
1andcarryoutputC
2.
CarryoutputC
2isthenaddedtothenextsignificantbitsA
2andB
2producing
sumoutputS
2andcarryoutputC
3.C
3isthenaddedtoA
3andB
3andsoon.
Thusfinallyproducingthefour-bitsumoutputS
4S
3S
2S
1andfinalcarry
outputCout.Suchtypeoffour-bitbinaryadderiscommerciallyavailableinan
ICpackage.

•Ahalfsubtractorisanarithmeticcircuitthatsubtractstwobitsand
producestheirdifference.Thecircuithastwoinputsminuend(X)and
subtrahend(Y)andtwooutputbits,oneisthedifferencebit(D)and
theotheristheborrowbit(B).
•Aslikeadditionoperationof2binarydigits,whichproducesSUMand
CARRY,thesubtractionof2binarydigitsalsoproducestwooutputs
whicharetermedasdifferenceandborrow.Thesimplestpossible
subtractionof2-bitbinarydigitsconsistsoffourpossibleoperations,
theyare0-0,0-1,1-0and1-1.Theoperations0-0,1-0and1-
1producesasubtractionof1-bitoutputwhereas,theremaining
operation0-1producesa2-bitoutput.Theyarereferred
asdifferenceandborrowbitrespectively.Thisborrowbitisusedfor
subtractionofthenexthigherpairbit.
•So,wecandefinehalfsubtractorasacombinationalcircuitwhichis
capableofperformingsubtractionof2-bitbinarydigitsisknownasa
halfsubtractor.Here,thebinarydigitfromwhichtheotherdigitis
subtractediscalledminuendandthebinarydigitwhichistobe
subtractedisknownasthesubtrahend.
HalfSubstractor:

•ItperformstheoperationX–Y.Itshouldbenotedthatthe
weightoftheoutputborrowbitis-2,whiletheweightof
theoutputdifferencebitis+1.
•Thetruthtableofthehalfsubtractorisshown.The
Booleanfunctionsforthetwooutputscanbeobtained
directlyfromthetruthtableas:
D=(XY +XY)=X⊕Y
•Thehalfsubtractorbooleanexpressionsare:
•D=(X’Y+XY’)= X⊕Y
•B=X’Y

•Afullsubtractorisacombinationalcircuitthatperformsasubtraction
betweentwobits,takingintoaccountthata1mayhavebeenborrowed
byalowersignificantbit.Thecircuithasthreeinputsandtwooutputs.
•Inputvariablesareminuend(X),subtrahend(Y),andpreviousborrow
(Z);outputvariablesaredifference(D)andoutputborrow(B).
•ItperformstheoperationX–Y–Z.Itshouldbenotedthattheweight
oftheoutputborrowbitis-2,whiletheweightoftheoutputdifference
bitis+1.Thetruthtableofthefullsubtractorisshown.
•Thefullsubtractorbooleanexpressionsare:
•(X’Y’Z+X’YZ’+XY’Z’+XYZ)=X⊕Y⊕Z
•(X’Y’Z+X’YZ’+X’YZ+XYZ)=X'(Y⊕Z)+YZ

FullSubstractor:

•Whenthereisasituationwheretheminuendandsubtrahendnumber
containsmoresignificantbit,thentheborrowbitwhichisobtained
fromthesubtractionof2-bitbinarydigitsissubtractedfromthenext
higherorderpairofbits.Insuchsituation,thesubtractioninvolvesthe
operationof3bits.Suchsituationofsubtractioncan’thandlebya
simplehalfsubtractor.So,combiningtwohalfsubtractorwecanform
anothercombinationalcircuitwhichcanperformthistypeof
operation.Thiscircuitisknownasthefullsubtractor.
•Sowecandefinefullsubtractorasacombinationalcircuitwhichtakes
threeinputsandproducestwooutputsdifferenceandborrow.Above
isthetruthtableofthefullsubtractor,wehaveusedthreeinput
variablesX,YandZwhichreferstothetermminuend,
subtrahend andborrow bitrespectively.Thetwo
outputsdifferenceandborrowarenamedasDandBrespectively.
•Theconstructionoffullsubtractorcircuitdiagraminvolvestwohalf
subtractorjoinedbyanORgateasshownintheabovecircuitdiagram
ofthefullsubtractor.Thetwoborrowbitsgeneratedbytwoseparate
halfsubtractorarefedtotheORgatewhichproducesthefinalborrow
bit.Thefinaldifferencebitisthecombinationofthedifferenceoutput
ofthefirsthalfadderandthenexthigherorderpairofbits.

•BothLatchesandflipflopsarecircuitelementswhereintheoutputnotonly
dependsonthecurrentinputs,butalsodependsonthepreviousinputand
outputs.Themaindifferencebetweenthelatchandflipflopisthataflip
flophasaclocksignal,whereasalatchdoesnot.
•Aflip-floporlatchisacircuitthathastwostablestatesandcanbeusedto
storestateinformation.Aflip-flopisabistablemultivibrator.Thecircuitcan
bemadetochangestatebysignalsappliedtooneormorecontrolinputsand
willhaveoneortwooutputs.
•Latchesandflip-flopsarethebasicelementsforstoringinformation.Onelatch
orflip-flopcanstoreonebitofinformation.Themaindifferencebetween
latchesandflip-flopsisthatforlatches,theiroutputsareconstantlyaffectedby
theirinputsaslongastheenablesignalisasserted.Inotherwords,whenthey
areenabled,theircontentchangesimmediatelywhentheirinputschange.Flip-
flops,ontheotherhand,havetheircontentchangeonlyeitherattherisingor
fallingedgeoftheenablesignal.Thisenablesignalisusuallythecontrolling
clocksignal.Aftertherisingorfallingedgeoftheclock,theflip-flopcontent
remainsconstanteveniftheinputchanges.
SequentialLogicCircuits:
FLIP-FLOPS:

•Therearebasicallyfourmaintypesoflatchesandflip-
flops:
•SR,D,JK,andT.Themajordifferencesintheseflip-flop
typesarethenumberofinputstheyhaveandhowthey
changestate.Foreachtype,therearealsodifferent
variationsthatenhancetheiroperations.
•Eachtypecanhavedifferentvariationssuchasactivehigh
orlowinputs,whethertheychangestateattherisingor
fallingedgeoftheclocksignal,andwhethertheyhave
asynchronousinputsornot.Theflip-flopscanbedescribed
fullyanduniquelybyitslogicsymbol,characteristictable,
characteristicequation,statediagram,orexcitationtable,
andaresummarizedinFigurebelow.

Flip-Flops:SR,D,JK,andTFlip-Flops

•Thebistableelementisabletorememberorstoreonebitof
information.However,becauseitdoesnothaveanyinputs,wecannot
changetheinformationbitthatisstoredinit.Inordertochangethe
informationbit,weneedtoaddinputstothecircuit.Thesimplestway
toaddinputsistoreplacethetwoinverterswithtwoNANDgatesas
showninFigure.ThiscircuitiscalledaSRlatch.
•InadditiontothetwooutputsQandQ',therearetwoinputsS'andR'
forsetandresetrespectively.Followingtheconvention,theprimeinS
andRdenotesthattheseinputsareactivelow.TheSRlatchcanbein
oneoftwostates:asetstatewhenQ=1,oraresetstatewhenQ=0.
•Figure4.SRlatch:(a)circuitusingNANDgates;(b)truthtable;(c)logic
symbol;(d)timingdiagram.
S-RLatchusingNAND&NORGate:

•LiketheNORGateS-Rflipflop,thisonealsohasfourstates.Theyare
•S=0,R=1—Q=0,Q’=1
•ThisstateisalsocalledtheSETstate.
•S=1,R=0—Q=1,Q’=0
•ThisstateisknownastheRESETstate.
•Inboththestatesyoucanseethattheoutputsarejustcomplimentsof
eachotherandthatthevalueof
•QfollowsthecomplimentvalueofS.
•S=0,R=0—Q=Q0,&Q’=Q0’Nochange
•IfboththevaluesofSandRareswitchedto0,thenthecircuit
remembersthevalueofSandRintheirpreviousstate.
•S=1,R=1—Q&Q’=Remember
•Ifboth thevaluesofSandRareswitchedto1itisaninvalidstate
becausethevaluesofbothQandQ’are1.Theyaresupposedtobe
complimentsofeachother.Normally,thisstatemustbeavoided.
Continued…

•Anotherreasonwhywedonotwantbothinputstobeasserted
i.e.R=S=1isthatwhentheyarebothasserted,QisequaltoQ',
butweusuallywantQtobetheinverseofQ'.
•Figure5.SRlatch:(a)circuitusingNORgates;(b)truthtable;(c)
logicsymbol.
Continued

S-RFLIPFLOPUSINGNANDGATE

S-RFLIPFLOPUSINGNORGATE

•TheproblemswithS-RflipflopsusingNORandNANDgateisthe
invalidstate.ThisproblemcanbeovercomebyusingabistableSRflip-
flopthatcanchangeoutputswhencertaininvalidstatesaremet,
regardlessoftheconditionofeithertheSetortheResetinputs.For
this,aclockedS-RflipflopisdesignedbyaddingtwoANDgatestoa
basicNORGateflipflop.Thecircuitdiagramandtruthtableisshown
below.
•Aclockpulse[CP]isgiventotheinputsoftheANDGate.Whenthe
valueoftheclockpulseis‘0’,theoutputsofboththeANDGates
remain‘0’.AssoonasapulseisgiventhevalueofCPturns‘1’.This
makesthevaluesatSandRtopassthroughtheNORGateflipflop.But
whenthevaluesofbothSandRvaluesturn‘1’,theHIGHvalueofCP
causesbothofthemtoturnto‘0’forashortmoment.Assoonasthe
pulseisremoved,theflipflopstatebecomesintermediate.Thuseither
ofthetwostatesmaybecaused,anditdependsonwhetherthesetor
resetinputoftheflip-flopremainsa‘1’longerthanthetransitionto‘0’
attheendofthepulse.Thustheinvalidstatescanbeeliminated.
ClockedS-RFlip-Flop:

ClockedS-RFlip-flop

•JKflip-flopsareverysimilartoSRflip-flops.TheJinputisjustliketheS
inputinthatwhenasserted,itsetstheflip-flop.Similarly,theKinputis
liketheRinputwhereitclearstheflip-flopwhenasserted.Theonly
differenceiswhenbothinputsareasserted.FortheSRflip-flop,
thenextstateisundefined, whereas,fortheJKflip-flop,thenext
stateistheinverseofthecurrentstate.Inotherwords,theJKflip-
floptogglesitsstatewhenbothinputsareasserted.Thecircuit,
truthtableandthelogicsymbolfortheJKflip-flopisshowninFigure
17.
•Figure17.JKflip-flop:(a)circuit;(b)truthtable;(c)logicsymbol.
J-KFLIP-FLOP:

•AJ-Kflipflopcanalsobedefined as
amodificationoftheS-Rflipflop.
Theonlydifference isthatthe
intermediatestateismorerefined
andprecisethanthatofaS-Rflip
flop.
•ThebehaviorofinputsJandKis
sameastheSandRinputsoftheS-R
flipflop.TheletterJstandsforSET
andtheletterKstandsforCLEAR.
J-KFlip-Flop :

•WhenboththeinputsJandKhaveaHIGHstate,theflip-flopswitchto
thecomplementstate.So,foravalueofQ=1,itswitchestoQ=0andfor
avalueofQ=0,itswitchestoQ=1.
•Thecircuitincludestwo3-inputANDgates.TheoutputQoftheflip
flopisreturnedbackasafeedbacktotheinputoftheANDalongwith
otherinputslikeKandclockpulse[CP].So,ifthevalueofCPis1,the
flipflopgetsaCLEARsignalandwiththeconditionthatthevalueofQ
wasearlier1.SimilarlyoutputQ’oftheflipflopisgivenasafeedback
totheinputoftheANDalongwithotherinputslikeJandclockpulse
[CP].SotheoutputbecomesSETwhenthevalueofCPis1onlyifthe
valueofQ’wasearlier1.
•Theoutputmayberepeatedintransitionsoncetheyhavebeen
complimentedforJ=K=1becauseofthefeedbackconnectionin
theJKflip-flop.Thiscanbeavoidedbysettingatimeduration
lesserthanthepropagationdelaythroughtheflip-flop.The
restrictiononthepulsewidthcanbeeliminatedwithamaster-
slaveoredge-triggeredconstruction.
J-KFlip-Flop:

•Latchesareoftencalledlevel-sensitivebecausetheiroutputfollows
theirinputsaslongastheyareenabled.Theyaretransparentduring
thisentiretimewhentheenablesignalisasserted.Therearesituations
whenitismoreusefultohavetheoutputchangeonlyattherising
orfallingedgeoftheenablesignal.Thisenablesignalisusuallythe
controllingclocksignal.Thus,wecanhaveallchangessynchronizedto
therisingorfallingedgeoftheclock.Anedge-triggeredflip-flop
achievesthisbycombininginseriesapairoflatches.Figureshowsa
positiveedge-triggeredDflip-flopwheretwoDlatchesareconnected
inseriesandaclocksignalClkisconnectedtotheEinputofthe
latches,onedirectly,andonethroughaninverter.Thefirstlatchis
calledthemasterlatch.ThemasterlatchisenabledwhenClk=0and
followstheprimaryinputD.WhenClkisa1,themasterlatchis
disabledbutthesecondlatch,calledtheslavelatch,isenabledsothat
theoutputfromthemasterlatchistransferredtotheslavelatch.The
slavelatchisenabledallthewhilethatClk=1,butitscontentchanges
onlyatthebeginningofthecycle,thatis,onlyattherisingedgeofthe
signalbecauseonceClkis1,themasterlatchisdisabledandsothe
DTYPEFLIP-FLOP:

•inputtotheslavelatchwillnotchange.ThecircuitofFigure10(a)is
calledapositiveedge-triggeredflip-flopbecausetheoutputQonthe
slavelatchchangesonlyattherisingedgeoftheclock.Iftheslavelatch
isenabledwhentheclockislow,thenitisreferredtoasanegative
edge-triggeredflip-flop.ThecircuitofFigure10(a)isalsoreferredtoas
amasterslaveDflip-flopbecauseofthetwolatchesusedinthecircuit.
Figure10(b)and(c)showthetruthtableandthelogicsymbol
respectively.Figure10(d)showsthetimingdiagramfortheDflip-flop.
•Figure10.Master-slavepositive-edge-triggeredDflip-flop:(a)circuit
usingDlatches;(b)truthtable;(c)logicsymbol;(d)timingdiagram.
Continued…

DtypeFlip-Flop:
•Thecircuitdiagramandtruth
tableisgiveninfigure
•Dflipflopisactuallyaslight
modificationoftheabove
explainedclockedSRflip-flop.
Fromthefigureyoucanseethat
theDinputisconnected totheS
inputandthecomplementofthe
DinputisconnectedtotheR
input.TheDinputispassedonto
theflipflopwhenthevalueofCP
is‘1’.
•WhenCPisHIGH,theflipflop
movestotheSETstate.Ifitis‘0’,
theflipflopswitchestothe
CLEARstate.

•TheTflip-flophasoneinputinadditiontotheclock.Tstandsfor
togglefortheobviousreason.WhenTisasserted(T=1),theflip-flop
statetogglesbackandforth,andwhenTisde-asserted,theflip-flop
keepsitscurrentstate.TheTflip-flopcanbeconstructedusingaDflip-
flopwiththetwooutputsQandQ'feedbacktotheDinputthrougha
multiplexerthatiscontrolledbytheTinputasshowninFigure18.
•Figure18.Tflip-flop:(a)circuit;(b)truthtable;(c)logicsymbol.
TtypeFlip-Flop:

•Thisisamuchsimplerversionof
theJ-Kflipflop.BoththeJandK
inputsareconnectedtogetherand
thusarealsocalledasingleinputJ-
Kflipflop.Whenclockpulseis
giventotheflipflop,theoutput
beginstotoggle.Herealsothe
restrictiononthepulsewidthcan
beeliminatedwith amaster-slave
oredge-triggered construction.
Takealookatthecircuitandtruth
tableisshowninfigure.
TTYPEFLIP-FLOP:

THANKYOU
Tags