Chapter 1 - Introduction

Download Report

Transcript Chapter 1 - Introduction

Chapter 21b
Reference Frameworks
Learning Objectives


Chapter 21b, Slide 2
Introduce The Reference Frameworks
Laboratory experiment
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
What are the DSP applications

There are many DSP applications and
every day many new applications are
emerging.
Chapter 21b, Slide 3
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
What are the DSP applications?
Chapter 21b, Slide 4
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
What are the DSP applications?
•
•
•
•
•
Chapter 21b, Slide 5
Wireless base-stations and transcoders
DSL
Home theater audio
IBOC digital radio
Imaging and video servers & gateways
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
What are the DSP applications?
•
•
•
•
•
•
HardDisk Drive Servo Control
Industrial Motor Drives
Digital Motor Control in White Goods
HVAC Motor Control
Un-interruptible Power Supply PFC
Optical Lasers
Chapter 21b, Slide 6
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
What are the DSP applications

•
•
•
•
•
•
There are many DSP applications and
every day many new applications are
emerging.
HardDisk Drive Servo Control
Industrial Motor Drives
Digital Motor Control in White Goods
HVAC Motor Control
Un-interruptible Power Supply PFC
Optical Lasers
C2000
Chapter 21b, Slide 7
•
•
•
•
Wireless terminals, radios, GPS applications
Digital Still Cameras, portable Fingerprint Analyzer
Internet Audio and MP3 players
IP telephone
•
•
•
•
•
C5000
Wireless base-stations and transcoders
DSL
Home theater audio
C6000
IBOC digital radio
Imaging and video servers & gateways
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Frameworks, RF
•
We have seen that there are many applications. However, most of
the systems look like the Generic system shown below
D/A 1
A/D 1
Processing Engine
A/D 2
A/D n
D/A 2
D/A n
Control
(HOST)
Figure 1 Generic System
Chapter 21b, Slide 8
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Frameworks, RF
•
•
Chapter 21b, Slide 9
If your system is similar to the one shown in Figure 1, Then
why not take the source code and modify it to suit your
application.
If you examine all the applications in this CD Rom, you will
find that they are similar to the Generic System and with a
maxim of two channel I/Os
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Frameworks, RF
What is reference Framework?
A reference framework is an application “blueprint”
What the reference framework contains?
It contains:
• Memory management software
• Algorithm management software
• Channel encapsulations software
Where the reference framework is located in the
system?
Chapter 21b, Slide 10
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Frameworks, RF
Where the reference framework is located in
the system?
ExpressDSP Reference Application
Reference Framework
Memory Management
Channel Abstraction
Algorithm Manager
DSP/BIOS Drivers
(eg: IOM-based codec, drivers
for RF)
DSP/BIOS
Chip Support Library
TMS320 DSP processor, eg TMS320C6713 or TMS320C6416
DSP Platform eg DSK6416
Chapter 21b, Slide 11
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Frameworks, RF
•
How many Reference Frameworks exist?
To minimise the size and complexity many reference frameworks exist.
Four reference frameworks are currently available: RF1, RF3, RF5 and RF6
Design Parameter
RF1
RF3
RF5
RF6
Static Configuration












Dynamic Object Creation
Static Memory Management

Dynamic Memory Allocation
Recommended # of Channels
1 to 3
1 to 10+
1 to 100
1 to 100
Recommended # of XDAIS Algos
1 to 3
1 to 10+
1 to 100
1 to 100
multi
multi
multi





HWI, SWI
HWI, SWI, TSK
HWI, SWI, TSK
Absolute Minimum Footprint

Single/Multi Rate Operation
single
Thread Preemption and Blocking
Implements Control Functionality
Supports
HWI
Implements DSPLink (DSPGPP)

Total Memory Footprint (less algos)
3.5KW
Processor Family Supported
C5000
Chapter 21b, Slide 12
11KW
C5000
C6000
25KW
C5000
C6000
tbd
None Currently
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework by application,
RF1
RF1

 
Design Parameter
• Static
Static
Configuration
Configuration
• Dynamic
Dynamic
Object
Object
Creation
Creation


• Static
Static
Memory
Memory
Management
Management
•Dynamic
Dynamic
Memory
Allocation
Memory
Allocation
•Recommended
Recommended
of Channels
# of #Channels
# of##XDAIS
Algos
••Recommended
Recommended
•ofof# XDAIS
XDAIS
Algos
• Recommended
Recommended
of
XDAIS
•Absolute
Absolute
Minimum
Minimum
Footprint
Footprint
•Single/Multi
Single/Multi
RateRate
Operation
Operation
•Thread
Thread
Preemption
Blocking
Preemption
and and
Blocking
Control
Functionality
•Implements
Implements
Control
Functionality
•Supports
Supports
(DSPGPP)
•Implements
Implements
• DSPLink
DSPLink
• 
(DSP
• GPP)
Memory
Footprint
algos)
•TotalTotal
Memory
Footprint
• (less•algos
(less
)
•Processor
Processor
Family
Family
Supported
Supported
Chapter 21b, Slide 13
•
•
•

1 to 3
1 to 3



single
• •HWIHWI
• 3.5KW
• •C5000
C5000
RF1 is suited to applications such as:
•
•
•
•
•
•
Speakerphones
Smart toys
Digital Headsets
Network cameras
Digital scanners
Portable medical devices etc.
Main Advantage of RF1:
Absolute minimum footprint.
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework by application,
RF3
Design Parameter
• Static
Static
Configuration
Configuration
• Dynamic
Dynamic
Object
Object
Creation
Creation
• Static
Static
Memory
Memory
Management
Management
•Dynamic
Dynamic
Memory
Allocation
Memory
Allocation
•Recommended
Recommended
of Channels
# of #Channels
# of##XDAIS
Algos
••Recommended
Recommended
•ofof# XDAIS
XDAIS
Algos
• Recommended
Recommended
of
XDAIS
•Absolute
Absolute
Minimum
Minimum
Footprint
Footprint
•Single/Multi
Single/Multi
RateRate
Operation
Operation
•Thread
Thread
Preemption
Blocking
Preemption
and and
Blocking
Control
Functionality
•Implements
Implements
Control
Functionality
•Supports
Supports
(DSPGPP)
•Implements
Implements
• DSPLink
DSPLink
• 
(DSP
• GPP)
Memory
Footprint
algos)
•TotalTotal
Memory
Footprint
• (less•algos
(less
)
•Processor
Processor
Family
Family
Supported
Supported
Chapter 21b, Slide 14
•
•
RF3

 
RF3 is suited to applications such as:


 
•
•
•

1 to 10+
1 to 10+
•
•
multi
HWI,
• SWI
HWI
•
11 KW
• C5000
C5000
• •C6000
Internet audio players
Multi-channel phones
Digital still/video cameras
Main Advantage of RF3:
•
•
•
More channels
Multi-rate operations
Flexibility
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework by application,
RF5
RF5

 
Design Parameter
• Static
Static
Configuration
Configuration
• Dynamic
Dynamic
Object
Object
Creation
Creation
• Static
Static
Memory
Memory
Management
Management
•Dynamic
Dynamic
Memory
Allocation
Memory
Allocation
•Recommended
Recommended
of Channels
# of #Channels
# of##XDAIS
Algos
••Recommended
Recommended
•ofof# XDAIS
XDAIS
Algos
• Recommended
Recommended
of
XDAIS
•Absolute
Absolute
Minimum
Minimum
Footprint
Footprint
•Single/Multi
Single/Multi
RateRate
Operation
Operation
•Thread
Thread
Preemption
Blocking
Preemption
and and
Blocking
Control
Functionality
•Implements
Implements
Control
Functionality
•
• Supports
Supports
(DSPGPP)
•Implements
Implements
• DSPLink
DSPLink
• 
(DSP
• GPP)
Memory
Footprint
algos)
•TotalTotal
Memory
Footprint
• (less•algos
(less
)
•Processor
Processor
Family
Family
Supported
Supported
Chapter 21b, Slide 15
•
•
•
 


 

1 to 100
•
•
Are use for video applications
Require 100 + different channels or
algorithms
1 to 100
multi
 
 
HWI, SWI,TSK
• HWI
•
RF5 is suited to applications which:
Reference Frameworks for eXpressDSP Software:
RF5, An Extensive, High-Density System
\Links\spra75a.pdf
25 KW
• C5000
C5000
• •C6000
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework by application,
RF6
RF6

 
 
Design Parameter
• Static
Static
Configuration
Configuration
• Dynamic
Dynamic
Object
Object
Creation
Creation
• Static
Static
Memory
Memory
Management
Management
•Dynamic
Dynamic
Memory
Allocation
Memory
Allocation
•Recommended
Recommended
of Channels
# of #Channels
# of##XDAIS
Algos
••Recommended
Recommended
•ofof# XDAIS
XDAIS
Algos
• Recommended
Recommended
of
XDAIS
•Absolute
Absolute
Minimum
Minimum
Footprint
Footprint
•Single/Multi
Single/Multi
RateRate
Operation
Operation
•Thread
Thread
Preemption
Blocking
Preemption
and and
Blocking
Control
Functionality
•Implements
Implements
Control
Functionality
•
• Supports
Supports
(DSPGPP)
•Implements
Implements
• DSPLink
DSPLink
• 
(DSP
• GPP)
Memory
Footprint
algos)
•TotalTotal
Memory
Footprint
• (less•algos
(less
)
•Processor
Processor
Family
Family
Supported
Supported
Chapter 21b, Slide 16
•
•
•


•
RF6 is provided for developing
applications involving multiprocessor,
eg a General Purpose Processor (GPP)
which is an ARM9TDMI and a DSP
processor which is a TMS320C55:
•
\Links\ OMAP5910.pdf
•
Main Advantage:


1 to 100
1 to 100
multi
 
 
HWI, SWI,TSK
• HWI
 
• tbd
•
C5000
none curently
Utilise two processors, a GPP and a DSP
An RF6 JPEG Decoder Adaptation on the OMAP5910 Processor :
\Links\spra979.pdf
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework
Summary
•
•
•
•
•
•
Provides a blue-print for different applications.
Source code in C language and complete and working examples are provided
Examples provided with Xdais compliant FIR filters.
System benchmarks available in advance in terms of
(a) Memory footprint
(b) instruction cycles.
Good documentation and all the software in Royalty Free.
Useful documentation:
• spra793d.pdf
• spru352e.pdf
• spru616.pdf
Chapter 21b, Slide 17
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework, RF3
Laboratory Demonstration
In this chapter the reference framework 3 is taken as an example and a working
application (for the TMS320C6416 DSK) is presented
To illustrate how the RF3 works we will consider the following example
clkControl
Memory
Control Thread
(swiControl)
RRR
In
RLRLRLRLRLRL
IOM
Chapter 21b, Slide 18
PIP
Split SWI
LLL
FIR
Vol
SWI Audio 0
FIR
Vol
SWI Audio 1
RRR
Join SWI
LLL
PIP
Out
RLRLRLRLRLRL
IOM
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework, RF3
clkControl
Control Thread
Memory
(swiControl)
In
PIP
FIR
Vol
SWI Audio 1
IOM
1.
2.
3.
4.
5.
Split SWI
FIR
Vol
SWI Audio 0
Join SWI
PIP
Out
IOM
RF3 converts an incoming audio signal to digital data at a given sampling rate.
Then the signal is separated into two channels.
Both channels are processed independently (in this case FIR filters are used)
Then the volume of each channel is controlled (this is done in real-time)
The signals are then combined and sent to the output codec.
Chapter 21b, Slide 19
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework,
hardware setup
PC (CCS)
Power supply
DSK
Oscilloscope
Signal Generator
Chapter 21b, Slide 20
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework,
RF3
Let’s first locate, build and run the code for the RF3 application.
File location: c:\ti\referenceframework\ or in this CD it can be found in :
\DSP Code for DSK6416\Chapter 21 - RF3_XDAIS
Chapter 21b, Slide 21
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Reference Framework,
RF3
Build and run the code for the RF3 application:
1.
2.
Now that you have located the RF3 software, open the CCS and load the project
“app.pjt”
Build, and run the project. (the .out file will be automatically loaded as the “load
program” option is already set in the project options.
If the build output shows no errors and no warnings, you can proceed to the rest of the
lab which is shown in the linked PDF file:
•
Chapter 21b, Slide 22
RF3 Demo on the TMS320C6416
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 21b
Reference Frameworks
END
Chapter 21b, Slide 23
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004