Sei sulla pagina 1di 3

7/29/2016

BoundaryScanBasics

iMPACT

BoundaryScanBasics
BoundaryScan/IEEEStandard1149.1
Designcomplexity,difficultyofloadedboardtesting,andthelimitedpinaccessofsurfacemount
technologyledindustryleaderstoseekaccordonastandardtosupportthesolutionoftheseproblems.
BoundaryScan,formallyknownasIEEEStandard1149.1andmorecommonlyknownasJTAG,isprimarily
atestingstandardcreatedtoalleviatethegrowingcostofdesigningandproducingdigitalsystems.The
primarybenefitofthestandardistheabilitytotransformextremelydifficultprintedcircuitboardtesting
problems(thatcouldonlybeattackedwithadhoctestingmethods)intowellstructuredproblemsthat
softwarecanhandleeasilyandswiftly.
Thestandarddefinesahardwarearchitectureandthemechanismsforitsusetosolvetheaforementioned
problems.

Whatcanitbeusedfor?
Althoughprimarilyatestingstandardforonchipcircuitry,theproliferationofthestandardhasopenedthe
doortoawidevarietyofapplications.Thestandarditselfdefinesinstructionsthatcanbeusedtoperform
functionalandinterconnecttestsaswellasbuiltinselftestprocedures.
Vendorspecificextensionstothestandardhavebeendevelopedtoallowexecutionofmaintenanceand
diagnosticapplications.Inaddition,industrystandardextensionshavebeendevelopedtodescribe
programmingalgorithmsforreconfigurableparts.TheseextensionsareknownasIEEESTD1532andhave
beenimplementedinallXilinxdevicessince2001.
SinceIEEESTD1149.1formsthebasisofIEEESTD1532,asolidunderstandingof1149.1isbeneficial.

HowdoesIEEESTD1149.1work?
ThetoplevelschematicofthetestlogicdefinedbyIEEEStd1149.1includesthreekeyblocks:
TAPController
TheTAPControllerrespondstothecontrolsequencessuppliedthroughthetestaccessport(TAP)and
generatestheclockandcontrolsignalsrequiredforcorrectoperationoftheothercircuitblocks.
InstructionRegister
Ashiftregisterbasedcircuitseriallyloadedwiththeinstructionthatselectsanoperationtobeperformed.
TheDataRegisters
DataRegistersareabankofshiftregisterbasedcircuits.Thestimulirequiredbyanoperationareserially
loadedintothedataregistersselectedbythecurrentinstruction.Followingexecutionoftheoperation,
resultscanbeshiftedoutforexamination.

TheTestAccessPort
TheJTAGTestAccessPort(TAP)containsfourpinsthatdrivethecircuitblocksandcontroltheoperations
specified.TheTAPfacilitatestheserialloadingandunloadingofinstructionsanddata.Thefourpinsofthe
TAPare:TMS,TCK,TDIandTDO.ThefunctionofeachTAPpinisasfollows:
TCKthispinistheJTAGtestclock.ItsequencestheTAPcontrolleraswellasalloftheJTAGregisters.
TMSthispinisthemodeinputsignaltotheTAPController.TheTAPcontrollerisa16stateFSMthat
providesthecontrollogicforJTAG.ThestateofTMSattherisingedgeofTCKdeterminesthesequenceof
statesfortheTAPcontroller.TMShasaninternalpullupresistoronittoprovidealogic1tothesystemif
thepinisnotdriven.
TDIthispinistheserialdatainputtoallJTAGinstructionanddataregisters.ThestateoftheTAP
controlleraswellastheparticularinstructionheldintheinstructionregisterdetermineswhichregisteris
fedbyTDIforaspecificoperation.TDIhasaninternalpullupresistoronittoprovidealogic1tothe
systemifthepinisnotdriven.TDIissampledintotheJTAGregistersontherisingedgeofTCK.
TDOthispinistheserialdataoutputforallJTAGinstructionanddataregisters.ThestateoftheTAP
http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/pim_r_boundaryscan_basics.htm

1/3

7/29/2016

BoundaryScanBasics

TDOthispinistheserialdataoutputforallJTAGinstructionanddataregisters.ThestateoftheTAP
controlleraswellastheparticularinstructionheldintheinstructionregisterdetermineswhichregister
feedsTDOforaspecificoperation.Onlyoneregister(instructionordata)isallowedtobetheactive
connectionbetweenTDIandTDOforanygivenoperation.TDOchangesstateonthefallingedgeofTCKand
isonlyactiveduringtheshiftingofdatathroughthedevice.Thispinisthreestatedatallothertimes.

TheTAPController
TheJTAGTAPControllerisa16statefinitestatemachine,thatcontrolsthescanningofdataintothe
variousregistersoftheJTAGarchitecture.ThestateoftheTMSpinattherisingedgeofTCKisresponsible
fordeterminingthesequenceofstatetransitions.Therearetwostatetransitionpathsforscanningthe
signalatTDIintothedevice,oneforshiftinginaninstructiontotheinstructionregisterandoneforshifting
dataintotheactivedataregisterasdeterminedbythecurrentinstruction.

TheTAPControllerStates
TestLogicReset.ThisstateisenteredonpowerupofthedevicewheneveratleastfiveclocksofTCK
occurwithTMSheldhigh.EntryintothisstateresetsallJTAGlogictoastatesuchthatitdoesnotinterfere
withthenormalcomponentlogic,andcausestheIDCODEinstructiontobeforcedintotheinstruction
register.
RunTestIdle.Thisstateenablescertainoperationstooccurdependingonthecurrentinstruction.ForIEEE
STD1532compliantdevices,thisstatecausesgenerationoftheprogram,verifyanderasepulseswhenthe
associatedinsystemprogramming(ISP)instructionisactive.
SelectDRScan.Thisisatemporarystateenteredpriortoperformingascanoperationonadataregister
orinpassingtotheSelectIRScanstate.
SelectIRScan.Thisisatemporarystateenteredpriortoperformingascanoperationontheinstruction
registerorinreturningtotheTestLogicResetstate.
CaptureDR.Thisstateenablesdatatobeloadedfromparallelinputsintothedataregisterselectedbythe
currentinstructionontherisingedgeofTCK.Iftheselecteddataregisterdoesnothaveparallelinputs,the
registerretainsitsstate.
ShiftDR.Thisstateshiftsthedata,inthecurrentlyselectedregister,towardsTDObyonestageoneach
risingedgeofTCKafterenteringthisstate.
Exit1DR.ThisisatemporarystatethatenablestheoptionofpassingontothePauseDRstateor
transitioningdirectlytotheUpdateDRstate.
PauseDR.Thisisawaitstatethatenablesshiftingofdatatobetemporarilyhalted.
Exit2DR.ThisisatemporarystatethatenablestheoptionofpassingontotheUpdateDRstateor
returningtotheShiftDRstatetocontinueshiftingindata.
UpdateDR.Thisstatecausesthedatacontainedinthecurrentlyselecteddataregistertobeloadedintoa
latchedparalleloutput(forregistersthathavesuchalatch)onthefallingedgeofTCKafterenteringthis
state.Theparallellatchpreventschangesattheparalleloutputoftheseregistersfromoccurringduringthe
shiftingprocess.
CaptureIR.Thisstateenablesdatatobeloadedfromparallelinputsintotheinstructionregisteronthe
risingedgeofTCK.Theleasttwosignificantbitsoftheparallelinputsmusthavethevalue01asdefinedby
IEEEStd.1149.1,andtheremainingbits,ifany,arefreetobeusedforanypurpose.MostXilinxdevices
usethesebitstoindicatesecurityandinternalcontrollogicstatus.
ShiftIR.ThisstateshiftsthevaluesintheinstructionregistertowardsTDObyonestageoneachrising
edgeofTCKafterenteringthisstate.
Exit1IR.ThisisatemporarystatethatenablestheoptionofpassingontothePauseIRstateor
transitioningdirectlytotheUpdateIRstate.
PauseIR.Thisisawaitstatethatenablesshiftingoftheinstructiontobetemporarilyhalted.
Exit2IR.ThisisatemporarystatethatenablestheoptionofpassingontotheUpdateIRstateorreturning
totheShiftIRstatetocontinueshiftingindata.
UpdateIR.Thisstatecausesthevaluescontainedintheinstructionregistertobeloadedintoalatched
paralleloutputonthefallingedgeofTCKafterenteringthisstate.Theparallellatchpreventschangesat
theparalleloutputoftheinstructionregisterfromoccurringduringtheshiftingprocess.

MandatoryBoundaryScanInstructions
BYPASS.TheBYPASSinstructionenablesrapidmovementofdatatoandfromothercomponentsonaboard2/3
http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/pim_r_boundaryscan_basics.htm

7/29/2016

BoundaryScanBasics

BYPASS.TheBYPASSinstructionenablesrapidmovementofdatatoandfromothercomponentsonaboard
thatarerequiredtoperformtestoperations.
SAMPLE/PRELOAD.TheSAMPLE/PRELOADinstructionenablesasnapshotofthenormaloperationofa
componenttobetakenandexamined.Itenablesdatavaluestobeloadedontothelatchedparalleloutputs
oftheBoundaryScanshiftregisterpriortotheselectionofotherBoundaryScantestinstructions.
EXTEST.TheEXTESTinstructionenablestestingofoffchipcircuitryandboardlevelinterconnections.

OptionalBoundaryScanInstructions
INTEST.TheINTESTinstructionenablestestingoftheonchipsystemlogicwhilethecomponentsare
alreadyontheboard.
HIGHZ.TheHIGHZinstructionforcesalldriversintohighimpedancestates.
IDCODE.TheIDCODEinstructionenablesblindinterrogationofthecomponentsassembledontoaprinted
circuitboardtodeterminewhatcomponentsexistinaproduct.
USERCODE.TheUSERCODEinstructionenablesauserprogrammable32bitidentificationcodetobeshifted
outforexamination.Thiscanbesuedtoidentifytheprogrammedfunctionofthecomponent.
Copyright19952009,XilinxInc.Allrightsreserved.

http://www.xilinx.com/support/documentation/sw_manuals/xilinx11/pim_r_boundaryscan_basics.htm

3/3

Potrebbero piacerti anche