MSC8144E Reference Manual, Rev. 3
25-70
Freescale
Semiconductor
Debugging, Profiling, and Performance Monitoring
The performance monitor can generate an interrupt on overflow. Several control registers specify
how a performance monitor interrupt is signalled. The PMCs can also be programmed to freeze
when an interrupt is generated.
25.3.1 Functional Description
The MSC8144E performance monitor offers a rich set of features that permits a complete
performance characterization of the implementation. These features include:
One 64-bit counter exclusively dedicated to counting cycles.
Eight 32-bit counters that count the occurrence of selected events.
One global control register (all counters) and two local control registers per counter.
Counts up to 64 reference events on any of the eight 32-bit counters.
Ability to count up to 512 counter-specific events.
Triggering and chaining capability.
quantity threshold counting.
Ability to generate an interrupt on overflow.
The performance monitor does not drive any signals externally, but it does assert the internal
interrupt signal when a monitored event or other interrupt condition occurs.
25.3.1.1 Performance Monitor Interrupts
The PMCs can generate an interrupt on an overflow when the msb of a counter changes from 0 to
1. For the interrupt to be signalled, the condition enable bit (PMLCAn[CE]) and performance
monitor interrupt enable bit (PMGC[PMIE]) must be set. When an interrupt is signalled and the
freeze-counters-on-enabled-condition-or-event bit (PMGC[FCECE]) is set, PMGC[FAC] is set
by hardware and all of the registers are frozen. Software can clear the interrupt condition by
resetting the performance monitor and clearing the most significant bit of the counter that
generated the overflow.
25.3.1.2 Event Counting
Using the control registers described in Section 25.3.2
,
the nine PMCs can count the occurrences
of specific events. The 64-bit PMC0 is design to count only clock cycles. However, to provide
flexibility, a total of 64 reference events can be counted on any of the 32-bit PMCs
(PMC1–PMC8). Additionally, up to 64 unique events can be counted on each 32-bit counter. The
performance monitor must be reset before event counting sequences. The performance monitor
can be reset by first freezing one or more counters and then clearing the freeze condition to allow
the counters to count according to the settings in the performance monitor registers. Counters can
be frozen individually by setting PMLCAn[FC] bits, or simultaneously by setting PMGC[FAC].
Simply clearing these freeze bits will then allow the performance monitor to begin counting
based on the register settings.
Summary of Contents for MSC8144E
Page 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Page 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Page 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Page 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Page 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Page 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Page 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Page 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Page 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Page 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...