EasyManuals Logo

Texas Instruments TMS320 User Manual

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
Implicit DSP/BIOS Instrumentation
3-30
You can rewrite this equation:
You can also express CPU load using instruction cycles rather than time
intervals:
3.6.1.1 Measuring the CPU Load
In a DSP/BIOS application, the CPU is doing work when any of the following
are occurring:
hardware interrupts are serviced
software interrupts and periodic functions are run
task functions are run
user functions are executed from the idle loop
HST channels are transferring data to the host
real-time analysis data is uploaded to the DSP/BIOS Analysis Tools
When the CPU is not performing any of those activities, it is going through the
idle loop, executing the IDL_cpuLoad function, and calling the other
DSP/BIOS IDL objects. In other words, the CPU idle time in a DSP/BIOS
application is the time that the CPU spends doing the routine in Example 3-3.
To measure the CPU load in a DSP/BIOS application over a time interval T, it
is sufficient to know how much time was spent going through the loop, shown
in Figure 3-3, and how much time was spent doing application work.
Example 3-3. The Idle Loop
Over a period of time T, a CPU with M MIPS (million instructions per second)
executes M x T instruction cycles. Of those instruction cycles, c
w
are spent
doing application work. The rest are spent executing the idle loop shown in
Example 3-3. If the number of instruction cycles required to execute this loop
once is l
1
, the total number of instruction cycles spent executing the loop is
CPUload
t
w
t
w
t
i
+
--------------
100×=
CPUloa d
c
w
c
w
c
i
+
----------------
100×=
’Idle_loop:
Perform IDL_cpuLoad
Perform all other IDL functions (user/system functions)
Goto IDL_loop’

Table of Contents

Other manuals for Texas Instruments TMS320

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 and is the answer not in the manual?

Texas Instruments TMS320 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320
CategoryComputer Hardware
LanguageEnglish

Related product manuals