STS Module
Application Program Interface
2-415
maximum value, the last 32-bit value passed to the object, the number of
samples (up to 2
32
- 1 samples), and the 32-bit sum of all samples.
These statistics are accumulated on the target in real-time until the host
reads and clears these values on the target. The host, however,
continues to accumulate the values read from the target in a host buffer
which is displayed by the Statistics View real-time analysis tool. Provided
that the host reads and clears the target statistics objects faster than the
target can overflow the 32-bit wide values being accumulated, no
information loss occurs.
Using Tconf, you can select a Host Operation for an STS object. The
statistics are filtered on the host using the operation and variables you
specify. Figure 2-11 shows the effects of the (A x X + B) / C operation.
Figure 2-11.
Statistics Accumulation on the Host
STS Manager
Properties
The following global property can be set for the STS module in the STS
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Object Memory
. The memory segment that contains STS objects.
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.STS.OBJMEMSEG = prog.get("myMEM");
STS Object Properties
To create an STS object in a configuration script, use the following
syntax. The Tconf examples that follow assume the object has been
created as shown here.
var mySts = bios.STS.create("mySts");
The following properties can be set for an STS object in the STS Object
Properties dialog of the DSP/BIOS Configuration Tool or in a Tconf script:
❏
comment
. Type a comment to identify this STS object.
Tconf Name: comment
Type: String
Example:
mySts.comment = "my STS";
Target
Host
Read
&
clear
Accumulate
Filter = (A*x + B) / C
Display
Count
(A x total + B) / C
(A x max + B) / C
Count
Total
Maximum
Count
Total
0
Max
32
Previous
Count
Total
Max
Average
(A x total + B) /
(C x count)
64