Texas Instruments SPRAA56 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie Texas Instruments SPRAA56. Texas Instruments SPRAA56 User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 29
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
Application Report
SPRAA56 – September 2004
1
DSP/BIOS Real-Time Analysis (RTA) and Debugging
Applied to a Video Application
Brian Jeff DSP Field Software Applications
Arnie Reynoso Software Development Systems
ABSTRACT
DSP/BIOS and the Reference Frameworks allow developers to non-intrusively instrument
real-time applications. The software provided with this application note applies real-time
analysis (RTA) services to a working application—a H.263 encode/decode loopback
example for the TMS320DM642 evaluation module. The software demonstrates
techniques for benchmarking and controlling video software. It also introduces a service to
programmatically measure CPU and TSK loading. Debugging and troubleshooting
techniques for real-time applications, using Code Composer Studio, is also discussed.
Contents
1
Important Benchmarks for Video Applications.......................................................................... 2
2
Base Application Overview ......................................................................................................... 3
2.1
DSP/BIOS and RF5 Components Used.................................................................................. 5
2.2
Requirements for Viewing RTA Benchmarks .......................................................................... 7
3
Modifications to the Base Example............................................................................................. 7
3.1
Splitting the Encode and Decode CELLs ................................................................................ 8
3.2
Adding the Control TSK and MBX Communication ................................................................. 8
3.3
Querying the H.263 Encoder for Status .................................................................................. 9
3.4
Controlling the Frame Rate................................................................................................... 10
4
RTA Techniques for Performance Measurement ..................................................................... 11
4.1
Measuring Function Execution Time with the UTL Module ................................................... 11
4.2
Measuring Task Scheduling Latencies ................................................................................. 12
4.3
Measuring End-to-End Latencies.......................................................................................... 12
4.4
Measuring the Frame Rate ................................................................................................... 13
4.5
Simulating High CPU Load Stress Conditions with Dummy NOP Loads............................... 14
4.6
Programmatic Measurement of Total CPU Load................................................................... 14
4.7
Memory Bus Utilization......................................................................................................... 15
4.8
Bitrate and Frame Type........................................................................................................ 17
4.9
Methods for Transmitting Measured Performance Data........................................................ 18
4.10
Application-Specific Control via GEL Scripts in CCStudio..................................................... 19
5
Viewing Benchmarks in the Instrumented Application ........................................................... 19
5.1
Requirements ....................................................................................................................... 19
5.2
Running the Application........................................................................................................ 20
5.3
Interpreting the Benchmarks................................................................................................. 22
5.4
Controlling the Run-Time Parameters Dynamically............................................................... 25
6
References.................................................................................................................................. 26
Appendix A. Performance Impact..................................................................................................... 27
A.1
Overhead of Performance Measurement Techniques........................................................... 27
A.2
RTA Effects on CPU Load .................................................................................................... 27
A.3
Memory Footprint ................................................................................................................. 28
Przeglądanie stron 0
1 2 3 4 5 6 ... 28 29

Podsumowanie treści

Strona 1 - SPRAA56 – September 2004

Application Report SPRAA56 – September 2004 1 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application Brian Jeff DSP Field Sof

Strona 2

SPRAA56 10 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application This call returns a status structure of type IH263ENC_Statu

Strona 3 - 2 Base Application Overview

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 11 4 RTA Techniques for Performance Measurement The RTA techn

Strona 4

SPRAA56 12 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 4.2 Measuring Task Scheduling Latencies Scheduling latency

Strona 5 - 2.1.1 LOG

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 13 The low-resolution CLK_getltime API is used instead of the

Strona 6 - 2.1.4 UTL

SPRAA56 14 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application last30frame.current = CLK_getltime(); // check to see if w

Strona 7

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 15 Window = 500ms (default) t0 t1 t0 t1 ‘minloop’ (in units

Strona 8

SPRAA56 16 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application In video applications that handle the full resolution of 72

Strona 9

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 17 These estimates are fairly accurate for the color conversio

Strona 10 - SPRAA56

SPRAA56 18 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application Most current encoders use three primary frame types: Intrac

Strona 11

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 19 The benchmarking routines send out selected benchmark data

Strona 12

SPRAA56 2 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application Figures Figure 1. Basic Data Flow of the Video Application..

Strona 13

SPRAA56 20 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application The application supplied with this note references board su

Strona 14

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 21 – Statistics View. Shows the values for STS objects used b

Strona 15 - 4.7 Memory Bus Utilization

SPRAA56 22 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application Figure 6. Workspace Including RTA Windows 5.3 Interpreti

Strona 16

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 23 Figure 7. Statistics View Showing Benchmark Measurements

Strona 17 - 4.8 Bitrate and Frame Type

SPRAA56 24 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application In the input and output tasks, Cell0 is the color conversio

Strona 18

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 25 5.3.2 Expected Values Delivered to the Message Log CPU loa

Strona 19 - 5.1 Requirements

SPRAA56 26 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application The value of N, which is used by modes 2 and 3, is 30 frame

Strona 20 - 5.2 Running the Application

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 27 Appendix A. Performance Impact A.1 Overhead of Performance

Strona 21

SPRAA56 28 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application A.3 Memory Footprint The total additional code size added t

Strona 22

IMPORTANT NOTICETexas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications,enhancements, improvemen

Strona 23

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 3 Quantization is the process of dividing a continuous range o

Strona 24

SPRAA56 4 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application Figure 1 shows a simplified view of the sequential flow of

Strona 25 - 5.4.1 Debug Mode

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 5 2.1 DSP/BIOS and RF5 Components Used The base application l

Strona 26 - 6 References

SPRAA56 6 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 2.1.2 STS An STS object accumulates the following statistica

Strona 27 - A.2 RTA Effects on CPU Load

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 7 2.2 Requirements for Viewing RTA Benchmarks In order for an

Strona 28 - A.3 Memory Footprint

SPRAA56 8 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application DeviceDriverBuffer3 framesDeviceDriverBuffer3 framesDeviceDr

Strona 29

SPRAA56 DSP/BIOS Real-Time Analysis (RTA) and Debugging Applied to a Video Application 9 if(controlVideoProc.frameRateChanged) { txMsg.cmd = FRA

Komentarze do niniejszej Instrukcji

Brak uwag