www.ti.com
6.6.1.1ModuleStateEmulationEvents
6.6.1.2LocalResetEmulationEvents
6.6.2InterruptRegisters
PSCInterrupts
TheDM643xDMPisasingle-processordevice.TheC64x+CPUmustnotprogramitsownmodulestate.
TheC64x+CPUmodulestatecanonlybeprogrammedbyanexternalhost(forexample,PCI,HPI).Asa
result,interrupteventslistedinTable6-4canonlyoccurinthescenariowhereanexternalhostprograms
theC64x+CPUmodulestatebuttheemulatoraltersthatdesiredstate.
Amodulestateemulationeventoccurswhenemulationaltersthestateofamodule.Statusisreflectedin
theEMUIHBbitinMDSTATn.Inparticular,amodulestateemulationeventoccursunderthefollowing
conditions:
•Wheninhibitsleepisassertedbyemulationandsoftwareattemptstotransitionthemoduleoutofthe
enablestate.
•Whenforceactiveisassertedbyemulationandmoduleisnotalreadyintheenablestate.
Alocalresetemulationeventoccurswhenemulationaltersthelocalresetofamodule.Statusisreflected
intheEMURSTbitinMDSTATn.Inparticular,amodulelocalresetemulationeventoccursunderthe
followingconditions:
•Whenassertresetisassertedbyemulationalthoughsoftwarede-assertedthelocalreset.
•Whenwaitresetisassertedbyemulation.
•Whenblockresetisassertedbyemulationandsoftwareattemptstochangethestateoflocalreset.
ThePSCinterruptenablebitsaretheEMUIHBIEbitinMDCTL39andtheEMURSTIEbitinMDCTL39.
Note:TointerrupttheDSP,thepowerandsleepcontrollerinterrupt(PSCINT)mustalsobe
enabledintheDSPinterruptcontroller.SeeSection2.4.1formoreinformationonthe
interruptcontroller.
ThePSCinterruptstatusbitsaretheM[39]bitinMERRPR1,theEMUIHBbitinMDSTAT39,andthe
EMURSTbitinMDSTAT39.ThestatusbitinMERRPR1isreadbysoftwaretodeterminewhichmodule
hasgeneratedanemulationinterrupt,andthensoftwarecanreadthecorrespondingstatusbitsin
MDSTAT39todeterminewhicheventcausedtheinterrupt.
ThePSCinterruptclearbitistheM[39]bitinMERRCR1.
ThePSCinterruptevaluationbitistheALLEVbitinINTEVAL.Whenset,thisbitforcesthePSCinterrupt
logictore-evaluateeventstatus.Ifanyeventsarestillactive(ifanystatusbitsareset)whentheALLEV
bitinINTEVALissetto1,thePSCINTisre-assertedtotheDSPinterruptcontroller.SettheALLEVbitin
INTEVALbeforeexitingyourPSCINTinterruptserviceroutinetoensurethatyoudonotmissanyPSC
interrupts.
SeeSection6.7forcompletedescriptionsofallPSCregisters.
SPRU978E–March2008PowerandSleepController67
SubmitDocumentationFeedback