23
Chapter 21b Chapter 21b Reference Frameworks Reference Frameworks

Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Embed Size (px)

Citation preview

Page 1: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Chapter 21bChapter 21b

Reference FrameworksReference Frameworks

Page 2: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 2

Learning ObjectivesLearning Objectives

Introduce The Reference FrameworksIntroduce The Reference Frameworks Laboratory experimentLaboratory experiment

Page 3: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 3

There are many DSP applications and There are many DSP applications and every day many new applications are every day many new applications are emerging.emerging.

What are the DSP applicationsWhat are the DSP applications

Page 4: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 4

What are the DSP applications?What are the DSP applications?

Wireless terminals, radios, GPS applications Digital Still Cameras, portable Fingerprint Analyzer Internet Audio and MP3 players IP telephone

Page 5: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 5

What are the DSP applications?What are the DSP applications?

• Wireless base-stations and transcoders• DSL• Home theater audio• IBOC digital radio• Imaging and video servers & gateways

Page 6: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 6

What are the DSP applications?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

Page 7: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 7

What are the DSP applicationsWhat are the DSP applications

There are many DSP applications and There are many DSP applications and every day many new applications are every day many new applications are emerging.emerging.

• Wireless terminals, radios, GPS applications

• Digital Still Cameras, portable Fingerprint Analyzer

• Internet Audio and MP3 players

• IP telephone

• Wireless base-stations and transcoders• DSL• Home theater audio• IBOC digital radio• Imaging and video servers & gateways

• HardDisk Drive Servo Control• Industrial Motor Drives• Digital Motor Control in White Goods• HVAC Motor Control• Un-interruptible Power Supply PFC• Optical Lasers

C2000

C5000

C6000

Page 8: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 8

Reference Frameworks, RFReference Frameworks, RF• We have seen that there are many applications. However, most of

the systems look like the Generic system shown below

D/A 1A/D 1

Control(HOST)

Processing EngineA/D 2

A/D n

D/A 2

D/A n

Figure 1 Generic System

Page 9: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 9

Reference Frameworks, RFReference Frameworks, RF

• 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

Page 10: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 10

Reference Frameworks, RFReference 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?

Page 11: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 11

Reference Frameworks, RFReference Frameworks, RF

Where the reference framework is located in the system?

Memory ManagementChannel AbstractionAlgorithm Manager

Reference Framework

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

ExpressDSP Reference Application

Page 12: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 12

Reference Frameworks, RFReference 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 ParameterDesign Parameter RF1RF1 RF3RF3 RF5RF5 RF6RF6

Static ConfigurationStatic Configuration

Dynamic Object CreationDynamic Object Creation

Static Memory ManagementStatic Memory Management

Dynamic Memory AllocationDynamic Memory Allocation

Recommended # of ChannelsRecommended # of Channels 1 to 31 to 3 1 to 10+1 to 10+ 1 to 1001 to 100 1 to 1001 to 100

Recommended # of XDAIS AlgosRecommended # of XDAIS Algos 1 to 31 to 3 1 to 10+1 to 10+ 1 to 1001 to 100 1 to 1001 to 100

Absolute Minimum FootprintAbsolute Minimum Footprint

Single/Multi Rate OperationSingle/Multi Rate Operation singlesingle multimulti multimulti multimulti

Thread Preemption and BlockingThread Preemption and Blocking

Implements Control FunctionalityImplements Control Functionality

SupportsSupports HWIHWI HWI, SWIHWI, SWI HWI, SWI, TSKHWI, SWI, TSK HWI, SWI, TSKHWI, SWI, TSK

Implements DSPLink (DSPImplements DSPLink (DSPGPP)GPP)

Total Memory Footprint (less algos)Total Memory Footprint (less algos) 3.5KW3.5KW 11KW11KW 25KW25KW tbdtbd

Processor Family SupportedProcessor Family Supported C5000C5000 C5000C5000C6000C6000

C5000C5000C6000C6000

None CurrentlyNone Currently

Page 13: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 13

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.

Reference Framework by application,Reference Framework by application,RF1RF1

• Implements• Implements• DSPLink• DSPLink• (DSP• (DSP • GPP)• GPP)

• Total Memory Footprint (less• Total Memory Footprint (less• algos• algos• )• )

• HWI• HWI• Supports• Supports

• C5000• C5000• Processor Family Supported• Processor Family Supported

• Implements Control Functionality• Implements Control Functionality

• Thread Preemption and Blocking• Thread Preemption and Blocking

• Single/Multi Rate Operation• Single/Multi Rate Operation

• Absolute Minimum Footprint• Absolute Minimum Footprint

• Recommended # of XDAIS• Recommended # of XDAIS• Algos• Algos

• Recommended # of Channels• Recommended # of Channels

• Dynamic Memory Allocation• Dynamic Memory Allocation

• Static Memory Management• Static Memory Management

• Dynamic Object Creation• Dynamic Object Creation

• Static Configuration• Static Configuration

Implements DSPLink (DSPImplements DSPLink (DSPGPP)GPP)

• 3.5KWTotal Memory Footprint (less algos)

• HWISupports

• C5000Processor Family Supported

Implements Control Functionality

Thread Preemption and Blocking

• singleSingle/Multi Rate Operation

Absolute Minimum Footprint

• 1 to 3• Recommended # of XDAISRecommended # of XDAIS Algos

• 1 to 3Recommended # of Channels

Dynamic Memory Allocation

Static Memory Management

Dynamic Object Creation

Static Configuration

RF1Design Parameter

Page 14: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 14

RF3 is suited to applications such as:

• Internet audio players

• Multi-channel phones

• Digital still/video cameras

Main Advantage of RF3:

• More channels

• Multi-rate operations

• Flexibility

Reference Framework by application,Reference Framework by application,RF3RF3

Reference Framework by application,Reference Framework by application,

• Implements• Implements• DSPLink• DSPLink• (DSP• (DSP • GPP)• GPP)

• Total Memory Footprint (less• Total Memory Footprint (less• algos• algos• )• )

• HWI• HWI• Supports• Supports

• C5000• Processor Family Supported• Processor Family Supported

• Implements Control Functionality• Implements Control Functionality

• Thread Preemption and Blocking• Thread Preemption and Blocking

• Single/Multi Rate Operation• Single/Multi Rate Operation

• Absolute Minimum Footprint• Absolute Minimum Footprint

• Recommended # of XDAIS• Recommended # of XDAIS• Algos• Algos

• Recommended # of Channels• Recommended # of Channels

• Dynamic Memory Allocation• Dynamic Memory Allocation

• Static Memory Management• Static Memory Management

• Dynamic Object Creation• Dynamic Object Creation

• Static Configuration• Static Configuration

Implements DSPLink (DSPImplements DSPLink (DSPGPP)GPP)

• 11 KWTotal Memory Footprint (less algos)

• HWI, SWISupports

• C5000• C6000

Processor Family Supported

Implements Control Functionality

Thread Preemption and Blocking

• multiSingle/Multi Rate Operation

Absolute Minimum Footprint

• 1 to 10+• Recommended # of XDAISRecommended # of XDAIS Algos

• 1 to 10+Recommended # of Channels

Dynamic Memory Allocation

Static Memory Management

Dynamic Object Creation

Static Configuration

RF3

Design Parameter

Page 15: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 15

Reference Framework by application,Reference Framework by application,RF5RF5

RF5 is suited to applications which:

• Are use for video applications

• Require 100 + different channels or algorithms

Reference Frameworks for eXpressDSP Software:

RF5, An Extensive, High-Density System \Links\spra75a.pdf

Reference Framework by application,Reference Framework by application,Reference Framework by application,Reference Framework by application,

• Implements• Implements• DSPLink• DSPLink• (DSP• (DSP • GPP)• GPP)

• Total Memory Footprint (less• Total Memory Footprint (less• algos• algos• )• )

• HWI• HWI• Supports• Supports

• C5000• Processor Family Supported• Processor Family Supported

• Implements Control Functionality• Implements Control Functionality

• Thread Preemption and Blocking• Thread Preemption and Blocking

• Single/Multi Rate Operation• Single/Multi Rate Operation

• Absolute Minimum Footprint• Absolute Minimum Footprint

• Recommended # of XDAIS• Recommended # of XDAIS• Algos• Algos

• Recommended # of Channels• Recommended # of Channels

• Dynamic Memory Allocation• Dynamic Memory Allocation

• Static Memory Management• Static Memory Management

• Dynamic Object Creation• Dynamic Object Creation

• Static Configuration• Static Configuration

Implements DSPLink (DSPImplements DSPLink (DSPGPP)GPP)

• 25 KWTotal Memory Footprint (less algos)

• HWI, SWI,TSKSupports

• C5000• C6000

Processor Family Supported

Implements Control Functionality

Thread Preemption and Blocking

• multiSingle/Multi Rate Operation

Absolute Minimum Footprint

• 1 to 100• Recommended # of XDAISRecommended # of XDAIS Algos

• 1 to 100Recommended # of Channels

Dynamic Memory Allocation

Static Memory Management

Dynamic Object Creation

Static Configuration

RF5

Design Parameter

Page 16: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 16

Reference Framework by application,Reference Framework by application,RF6RF6

• 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:

Utilise two processors, a GPP and a DSP

An RF6 JPEG Decoder Adaptation on the OMAP5910 Processor :

\Links\spra979.pdf

• Implements• Implements• DSPLink• DSPLink• (DSP• (DSP • GPP)• GPP)

• Total Memory Footprint (less• Total Memory Footprint (less• algos• algos• )• )

• HWI• HWI• Supports• Supports

• C5000• Processor Family Supported• Processor Family Supported

• Implements Control Functionality• Implements Control Functionality

• Thread Preemption and Blocking• Thread Preemption and Blocking

• Single/Multi Rate Operation• Single/Multi Rate Operation

• Absolute Minimum Footprint• Absolute Minimum Footprint

• Recommended # of XDAIS• Recommended # of XDAIS• Algos• Algos

• Recommended # of Channels• Recommended # of Channels

• Dynamic Memory Allocation• Dynamic Memory Allocation

• Static Memory Management• Static Memory Management

• Dynamic Object Creation• Dynamic Object Creation

• Static Configuration• Static Configuration

Implements DSPLink (DSPImplements DSPLink (DSPGPP)GPP)

• tbdTotal Memory Footprint (less algos)

• HWI, SWI,TSKSupports

none curentlyProcessor Family Supported

Implements Control Functionality

Thread Preemption and Blocking

• multiSingle/Multi Rate Operation

Absolute Minimum Footprint

• 1 to 100• Recommended # of XDAISRecommended # of XDAIS Algos

• 1 to 100Recommended # of Channels

Dynamic Memory Allocation

Static Memory Management

Dynamic Object Creation

Static Configuration

RF6

Design Parameter

Page 17: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 17

Reference FrameworkReference FrameworkSummarySummary

• 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

Page 18: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 18

L L L

R R RR R R

L L L

RLRLRLRLRLRL

Reference Framework, RF3Reference Framework, RF3Laboratory DemonstrationLaboratory Demonstration

RLRLRLRLRLRL

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

SWI Audio 1

Split SWI

Join SWIIn PIP

IOM IOM

SWI Audio 0

FIR Vol

FIR Vol

Control Thread(swiControl)

MemoryclkControl

PIP Out

Page 19: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 19

Reference Framework, RF3Reference Framework, RF3

1. RF3 converts an incoming audio signal to digital data at a given sampling rate.2. Then the signal is separated into two channels.3. Both channels are processed independently (in this case FIR filters are used)4. Then the volume of each channel is controlled (this is done in real-time)5. The signals are then combined and sent to the output codec.

SWI Audio 1

Split SWI

Join SWIIn OutPIP

IOM IOM

SWI Audio 0FIR Vol

FIR Vol

Control Thread(swiControl)

MemoryclkControl

PIP

Page 20: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 20

Reference Framework,Reference Framework,hardware setuphardware setup

Signal GeneratorDSK Oscilloscope

PC (CCS)

Power supply

Page 21: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 21

Reference Framework,Reference Framework,RF3RF3

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

Page 22: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 22

Reference Framework,Reference Framework,RF3RF3

Build and run the code for the RF3 application:

1. Now that you have located the RF3 software, open the CCS and load the project “app.pjt”

2. 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:

• RF3 Demo on the TMS320C6416

Page 23: Chapter 21b Reference Frameworks. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 21b, Slide 2 Learning Objectives Introduce

Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004

Chapter 21b, Slide 23

Chapter 21bChapter 21b

Reference FrameworksReference Frameworks

ENDEND