Specifications
9
Statement & condition coverage
Function coverage
Detailed coverage
addresses. The trace source must also be configured,
so that information is generated defining the virtual
address space in which an instruction was located.
For the ARM ETM/PTM, the amount of trace data can
be further reduced:
• The code-coverage analysis does not analyze or
need time information. We therefore recommend
configuring the TRACE32 trace tool so that the trace
data is transferred to the host without time stamps.
This reduces the amount of data by a third.
• PowerTraceIIalsoprovidesFPGA-basedhardware
compression of the trace data. This enables up to
3.2 GBit/s trace data to be transferred to the host
computer. Figure9 showsthat thistransferrateis
generally sufficient for streaming ETM/PTM data
without any data loss.
Nexus: Optimal Configuration
On processorsof the MPC5xxx/SPC5xx families the
core trace logic is implemented to the Nexus standard.
To undertake code-coverage analysis, a Nexus class 2
trace cell is adequate as all you need is detail of the
program sequence on the individual core(s). If Branch
History Messaging is used this can make the trace
data very compact. Compared to standard trace data
a reduction by a factor of 10 is realistic. Only Power-
Trace II supports streaming from the Nexus trace port.
Streaming also works for all other processors/SoCs
that are supported by TRACE32 and have a trace
port.
Code-Coverage for SMP-Systems
TRACE32 also supports code-coverage analysis on
SMP (symmetric multiprocessing) systems. For code-
coverage it must be proven that an instruction was
executed, which core was responsible for running the
code is irrelevant. Figure 10 shows the results of code-
coveragefortwoCortex-A9MPCores.
For statement and condition coverage, if only the fail-
branch of a conditional statement was run the state-
ment is highlighted in yellow and marked with “not
exec”. The detailed coverage lists the specifics of how
often each statement or each branch of the statement
was run.
Fig. 10: Code-coverage analysis for an SMP system.