StarCore SC3400 DSP Subsystem
MSC8144E Reference Manual, Rev. 3
Freescale Semiconductor
1-15
1.4.5 Debug and Profiling Unit (DPU)
Debug and profiling are supported in the DSP platform with two units:
The on-chip emulator (OCE)
The debug and profiling unit (DPU)
The OCE supports core-coupled debug functions such as breakpoint detection, forcing the core
into debug mode, single stepping, and program trace generation. The functionality of the OCE is
similar to that of the EOnCE unit in the SC140 architecture used in the MSC81xx DSP family
and the OCE10 module in the SC1400 architecture used in the MSC711x DSP family.
The DPU supports the debugging and profiling of the SC3400 DSP subsystem in cooperation
with the OCE. It includes two main functions:
Set of 6 counters that enable to count a selection of platform level events.
A trace unit that processes the OCE program trace information, adding additional
information to it.
The six counters can be programmed to count down on a selection from a wide array of platform
events. Each counter can generate an interrupt upon reaching zero or signal the core to enter
Debug mode. The counters can be enabled and disabled by writing to their control register or by
an event such as a watchpoint detected by the OCE or execution of the debug-oriented core
instructions MARK and DEBUGEV. The counted events can be filtered so that only events that
occur during a specific task (marked by its task ID in the MMU) are counted.
The main counted events are:
Number of hits and misses in the ICache or in the DCache.
Number of thrashes in the ICache and in the DCache.
Reasons for core stall cycles.
Different bus contentions.
MBus profiling: cycles where the bus is busy, waiting for service, or idle.
Number of interrupts that were serviced.
Number of cycles the core was in the Wait processing state.
Number of cycles a certain task executed (total execution cycles to completion and the
actual number of cycles), and the number of times it was swapped out.
Most events are organized in configured sets of events for easy configuration.
The trace unit generates and manages trace writes to the virtual trace buffer (VTB), a
user-defined system memory area to which the trace data is written. A selection of trace writing
policies implements protocols such as continuous double-buffered DMA uploads, continuous
writes for failure point history, and more.
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 ...