Testing and Debugging DSP Systems.docx

上传人:b****6 文档编号:6668993 上传时间:2023-01-08 格式:DOCX 页数:27 大小:249.33KB
下载 相关 举报
Testing and Debugging DSP Systems.docx_第1页
第1页 / 共27页
Testing and Debugging DSP Systems.docx_第2页
第2页 / 共27页
Testing and Debugging DSP Systems.docx_第3页
第3页 / 共27页
Testing and Debugging DSP Systems.docx_第4页
第4页 / 共27页
Testing and Debugging DSP Systems.docx_第5页
第5页 / 共27页
点击查看更多>>
下载资源
资源描述

Testing and Debugging DSP Systems.docx

《Testing and Debugging DSP Systems.docx》由会员分享,可在线阅读,更多相关《Testing and Debugging DSP Systems.docx(27页珍藏版)》请在冰豆网上搜索。

Testing and Debugging DSP Systems.docx

TestingandDebuggingDSPSystems

TestingandDebuggingDSPSystems,Part1

RobOshana,TexasInstruments

2/22/20073:

00AMEST

Parttwo explainstheworkingsoftheJTAG(IEEE1149.1)boundary-scantechnology.

Insoftwaredevelopment,perhapsthemostcritical,yetleastpredictablestageintheprocessisdebugging.Manyfactorscomeintoplaywhendebuggingsoftwareapplications.Amongthesefactors,timeisoftheutmostimportance.Thetimerequiredtosetupanddebuga software applicationcanhavesignificantimpactsontime-to-market,meetingcustomerexpectations,andthefinancialimpactofawelldevelopedproductthatsucceedsinthemarket.Theintegrationofanapplicationfollowsamodelofmultiplespiralsthroughthestagesofbuild,load,debug/tune,andchange,asshowninFigure1.

Figure1Theintegrationanddebugcycle.Thegoalistominimizethenumberoftimesaroundthisloopaswellasminimizingthetimespentineachsegment.

Debuggingembeddedreal-timesystemsispartartandpartscience.Thetoolsandtechniquesusedindebuggingandintegratingthesesystemshaveasignificantimpactontheamountoftimespentinthedebug,integration,andtestphase.Themorevisibilitywegainintotherunningsystem,thefasterweareabletodetectandfixbugs.

Oneofthemoretraditionalandsimplestwaysofgainingvisibilityintothesystemistoaddmessagesatcertainpointsinthesoftwaretooutputinformationaboutthestateofthesystem.Thesemessagescanbeintheformof"printf"statementsoutputtoa monitor ortheblinkingofaLEDorsetofLEDstoindicatesystemstatusandhealth.Each function ortaskcanbeginbyoutputtingastatusmessagetoindicatethatthesystemhasmadeittoacertainpointintheprogram.Ifthesystemfailsatsomepoint,diagnosisofthe outputmessagescanhelptheengineerisolatetheproblembyknowingwherethesystemwaslast"good."Ofcourse,instrumentingthesysteminthiswayintroducesoverhead,whichchangesthebehaviorofthesystem.Theengineermusteitherremovetheinstrumentationafterthesystemhasbeentestedandre-validatethesystembeforeshipping,orshipthesystemwiththeinstrumentedcodeinthesystem.Theengineermustusuallyshipwhatisbeingtested(includingthisinstrumentation)andtestwhatisgoingtobeshipped.

Engineerscanusemoresophisticateddebugapproachestoreducethetimespentintheintegrationandtestphase.Oneapproachistheuseofadevicecalleda"debugmonitor."AdebugmonitorisarelativelysmallpieceofcodeembeddedinthetargetapplicationorintegratedintothemicrocontrollerorDSPcorethatcommunicatesovera serial interface toahostcomputer[1].Thesemonitorsprovidetheabilitytodownloadcode,readandwriteDSPmemoryandregisters,setsimpleandcomplex breakpoints, singlestep theprogram,andprofile sourcecodeatsomelevel.

ForsystemswithROMbasedsoftwareprograms,anotherformofdebugmonitor,calledaROMemulator,isused.AROMemulatorisaplug-inreplacementforthetargetsystemROMdevices.Theplug-indeviceconnectstothehostcomputeroveralink(serial,parallel,Ethernet,andsoon).AROMemulatorprovidestheengineerwithfasterturnaroundtimeduringthedebuggingprocess.Insteadofre-programmingtheROMdeviceusingaROMprogrammerforeachsoftwareiteration,thecodecaninsteadbedownloadedintofastRAMontheROMemulator.ThesystemisthenrunasifcodewasrunningoutoftheROMdevice.

DebugmonitorsandROMmonitorscertainlyprovidealargebenefittotheembeddedsystem debugphase.But,asembeddedprocessorsbecomefasterandfaster,andassystemsmigratetosystemonachipsolutions,visibilityintotheinternalprocessorpresentschallengesthatrequireevenmoresophisticateddebugsolutions.

Integratinganddebuggingcomplexdigitalsystemsalsorequirestheuseofsophisticatedandcomplexdebugtoolssuchas logicanalyzers.Alogicanalyzerisatoolthatallowsthesystemintegratortocaptureanddisplaydigitalsignalsinvariousformatssuchasbit,byte,andwordformats.Usingalogicanalyzer,thesystemintegratorcananalyzedigitalbehaviorsuchas:

∙Digitalcounters

∙Complexstatemachines

∙BuffersandFIFOs

∙Systembuses

∙Othersystemonachip(SoC)functionssuchasFPGA,ASICandstandardcellimplementations

Logicanalyzersarepowerfultoolsthatarealsoportableandveryversatile.Thesetoolsrequireasmalllearningcurveaswellashighinitialinvestment(dependingonhowmuchcapabilityisneededbythetoolandwhatclockratesneedtobesupported).Byusingtriggeringmechanismsinthetool,thesystemintegratorcancapturedataintolargebufferswithinthelogicanalyzer.Thisdatacanbepre-triggerdata,post-triggerdata,oracombination.Tracescanbesavedandprintedandthedatacanbefilteredinanumberofdifferentways.

AfundamentaldisadvantagetousingalogicanalyzerforembeddedDSPsoftwaredebugisthattheyarecomplexhardwaredebugtoolsbeingusedforsoftwaredebug.Thedegreeofsuccessusingalogicanalyzerisrelatedtohowhardwaresavvythesystemintegratorissincethetoolishardware-debugbasedandmayrequirecomplexsetupandconfigurationtogettherightinformationtoanalyze.

Anotherdisadvantagetousingalogicanalyzerforsystemdebugisvisibilityofthesignals.AlogicanalyzerneedstobeconnectedtothepinsoftheDSPdeviceinordertogetvisibilityintothesystem.ThevisibilityislimitedbythetypesofpinsontheDSP.AsDSPdevicesbecomemoreintegratedintosystemonachipcapability,thevisibilitytoseewhatisgoingoninsidethedevicediminishes.

Footnote

1.ArnoldBergerprovidesaveryintuitiveoverviewofdebuggersin EmbeddedSystemsDesign,Chapter6,CMPBooks,copyright2002.

TestingandDebuggingDSPSystems,Part1

RobOshana,TexasInstruments

2/22/20073:

00AMEST

DebugChallengesforDSP

Vanishingvisibility

In1988,theembeddedsystemindustrywentthroughachangefromconventional InCircuitEmulation[2]toscanbasedemulation.Thiswasmotivatedbydesigncycletimepressuresandnewlyavailablespaceontheembeddeddeviceforon-chipemulation.Scan-based,or JTAG,emulationisnowwidelypreferredovertheolderandmoreexpensive"in-circuitemulation,"or"ICE"technology.

DebugChallengesforDSP

ThehavebeenanumberofindustryforcesthathavebeenchangingtheDSPsystemdevelopmentlandscape:

Systemlevelintegration;Asapplicationcomplexityhasincreasedandsystemonachipcomplexityhasledtosmallerfootprints,thevisibilityintothesystemcomponentshasdiminished(Figure2).Embeddedsystembusesleadtoaninstrumentationchallenge.Widersystembusesalsoleadtosystem bandwidthissues.Programcontrolintheseenvironmentsisdifficult.

Figure2Systemlevelintegrationleadstodiminishingvisibility(courtesyofTexasInstruments)

Inordertorestorevisibility,DSPvendorshaveaddressedtheissueonseveralfronts:

On-chipinstrumentation –Assystemsbecomemoreintegrated,on-chipvisibilityintothedeviceoperationisbecomingblocked(Figure3). Bus snoopinglogicanalyzerfunctionshavebeenimplementedinon-chiplogic.Examplesofthisincludetriggeringlogictofindtheeventsofinterest,tracecollectionandexportlogictoallowingtheviewingofevents,andmaximizingexportbandwidthperavailablepinontheDSPcore.Debugcontrolisthroughanemulatorwhichextractstheinformationofinterest.

Figure3Vanishingvisibilityrequiresadvanceddebuglogicon-chip(courtesyofTexasInstruments)

Offchipcollectionfoundation –OncethedataisexportedfromtheDSPcore,thedatamustbestored,processed,filtered,andformattedinsuchawayastobeusefultothosetestengineerstointerpretthedatameaningfully.

Datavisualizationcapability –DSPintegrationcapabilitiesincludetheabilitytoeasilyviewthedataindifferentconfigurations.TheentirechainisshowninFigure4.Thelogicanalyzerfunctionsarenowon-chip,thecontrolandinstrumentationcollectionisprimarilythroughtheemulationcontroller,andthedataisdisplayedonthehostinavisualizationcontainer.Thekeychallenge,then,istoproperlyconfigurethesystemtocollecttherightdataattherighttimetocatchtherightproblem.

(Clicktoenlarge)

Figure4DSPtoolsareusedtovisualizedebugdataextractedfromtheDSP(courtesyofTexasInstruments)

Applicationspacediversity –DSPapplicationsarebecomingmorediverseandthispresentschallengestoDSPtestandintegrationengineers.Thisdiverseapplicationspacespectrumrequiresdifferentcostmodelsfordebugsupport:

∙DSPbasestationapplicationsrequirehighbandwidth,highfrequencydebugcapabilities.

∙Voiceover IP applicationsrequireMIPSdensityandmanyhomogeneousprocessorsperboard.

∙Cellphoneandother wireless applicationsrequireheterogeneousmultiprocessorsandveryhighsystemlevelintegration.

∙AutomotiveDSPapplicationsrequirelowcostdebugsolutionswhereDSPchippinsareatapremium.

Userdevelopmentenvironment;thedevelopmentenvironmentforDSPdevelopersischangingandDSPdebugtechnologiesarechangingtoaccommodatethesenewenvironments.DSPengineersaretransitioningdebugplatformsfromdesktopPCsystemstolaptopsthatareportabletothefieldfordebuginthecustomer'senvironment.PortableremoteapplicationsrequireportableDSPdebugenvironments.

Continuedclockrateincreases;asDSPcoreclockspeedsincreasemoredataisrequiredtoperformdebugging.Infact,theamountofdatarequiredtoperformdebugandtuningisdirectlyproportionaltotheDSPcore clock speed.MoreDSPpinsandmoredataperpinarerequiredtomaintaintherequiredvisibilityi

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 书信模板

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1