Texas Instruments TMS320 DSP Computer Hardware User Manual


 
www.ti.com
6.5DataTransferProperties
Elem0 Elem1 Elem2 Elem3
Gaps between
elements
Element index
Frame
Element size
Frame 0
Frame 1
Frame N-1
Number of
frames = N
Frame index
6.6DataTransferSynchronization
DataTransferProperties
Somesystemsmightmapeachlogicalchanneltoaphysicalchannel,whileinothersystems,several
logicalchannelsmaptothesamephysicalchannel.Thismappingisdependentontheparticularsystem
andthenumberofavailablephysicalDMAchannels.Theimportantpointtobemadeisthatthese
variablesaretransparentfromthealgorithm'spointofviewwhenworkingwithlogicalchannels.
ThefollowingdefinitionoftransferparametersareintroducedinIDMA2todescribeaDMAtransferblock
astheunitofaDMAtransfer.EachDMAtransfercanbeseenasablockmadeupofframesand
elements.ADMAtransferisscheduledbyissuingsourceanddestinationaddressesoftheblockandthe
numberofelementsineachframe.
Thefollowingtransferparametersaresharedacrossboththesourceandthedestination:
elementsize:thenumberofbytesperelement{1,2,4}forIDMA2and1bytes65535forIDMA3.
numberofelements:thenumberofelementsperframe,1elements65535
numberofframes:thenumberofframesintheblock,1frames65535
Thefollowingparametersmaybesharedbetweensourceanddestinationandifsupportedbyhardware,
canalsobesetindependently:
elementindex:thesizeofthegapbetweenelementsplustheelementsizeinbytesbetweentwo
consecutiveelementswithinaframe.Zeroindicatesthatelementindexingisdisabled.
frameindex:sizeofthegapinbytesbetweentwoconsecutiveframeswithinablock.Definedfor2D
transfersonly.
Figure6-1andFigure6-2illustratetheDMAtransfersparameters.
Figure6-1.TransferPropertiesfora1-DFrame
Figure6-2.FrameIndexand2-DTransferofN-1Frames
ADMAdatatransferisaccomplishedindependentofCPUoperations.Formaximumperformance,the
algorithmshouldschedulethoseCPUoperationsthatexecuteinparallelwiththedatatransfers,to
completeafterthedatatransfercompletes.
64UseoftheDMAResourceSPRU352GJune2005RevisedFebruary2007
SubmitDocumentationFeedback