www.ti.com
1.1ScopeoftheStandard
Rules for TMS320C2x
Level 1
Level 2
Level 3
Level 4
Telecom
Rules for TMS320C5x Rules for TMS320C6x
Imaging Audio Automotive Other
Algorithm Component Model
General Programming Guidelines
S C callable
S No hard coded addresses
S Reentrant
S etc.
S Modules
S Generic interfaces
S Packaging
S etc.
S Interrupt usage
S Memory usage
S Register usage
S etc.
S Interrupt usage
S Memory usage
S Register usage
S etc.
S Interrupt usage
S Memory usage
S Register usage
S etc.
S vocoders
S echo cancel
S etc.
S JPEG
S etc.
S coders
S etc.
S etc.
ScopeoftheStandard
DigitalSignalProcessors(DSPs)areoftenprogrammedlike"traditional"embeddedmicroprocessors.That
is,theyareprogrammedinamixofCandassemblylanguage,theydirectlyaccesshardwareperipherals,
and,forperformancereasons,almostalwayshavelittleornostandardoperatingsystemsupport.Thus,
liketraditionalmicroprocessors,thereisverylittleuseofcommercialoff-the-shelf(COTS)software
componentsforDSPs.
However,unlikegeneral-purposeembeddedmicroprocessors,DSPsaredesignedtorunsophisticated
signalprocessingalgorithmsandheuristics.Forexample,theymaybeusedtodetectDTMFdigitsinthe
presenceofnoise,tocompresstollqualityspeechbyafactorof20,orforspeechrecognitioninanoisy
automobiletravelingat65milesperhour.
Suchalgorithmsareoftentheresultofmanyyearsofdoctoralresearch.However,becauseofthelackof
consistentstandards,itisnotpossibletouseanalgorithminmorethanonesystemwithoutsignificant
reengineering.SincefewcompaniescanaffordateamofDSPPhDs,andthereuseofDSPalgorithmsis
solaborintensive,thetime-to-marketforanewDSP-basedproductismeasuredinyearsratherthanin
months.
ThisdocumentdefinesasetofrequirementsforDSPalgorithmsthat,iffollowed,allowsystemintegrators
toquicklyassembleproduction-qualitysystemsfromoneormoresuchalgorithms.Thus,thisstandardis
intendedtoenablearichCOTSmarketplaceforDSPalgorithmtechnologyandtosignificantlyreducethe
time-to-marketfornewDSP-basedproducts.
TheTMS320DSPAlgorithmStandarddefinesthreelevelsofguidelines.
Figure1-1.TMS320DSPAlgorithmStandardElements
Level1containsprogrammingguidelinesthatapplytoallalgorithmsonallDSParchitecturesregardless
ofapplicationarea.Almostallrecentlydevelopedsoftwaremodulesfollowthesecommonsense
guidelinesalready,sothisleveljustformalizesthem.
Level2containsrulesandguidelinesthatenableallalgorithmstooperateharmoniouslywithinasingle
system.Conventionsareestablishedforthealgorithm'suseofdatamemoryandnamesforexternal
identifiers,forexample.Inaddition,simplerulesforhowalgorithmsarepackagedarealsospecified.
10OverviewSPRU352G–June2005–RevisedFebruary2007
SubmitDocumentationFeedback