MSC8144E Reference Manual, Rev. 3
11-18
Freescale
Semiconductor
Internal Memory Subsystem
1.
Make sure that all DSP core subsystems are in Debug mode (the CORE3_DBE_STS,
CORE2_DBE_STS, CORE1_DBE_STS, and CORE0_DBE_STS bits in the GSR are
all set; see Section 8.2.3, General Status Register 1 (GSR1), on page 8-4 for details).
2.
Clear the L2IC_CR2[CDM] bit in the L2 ICache to exit debug mode.
If the cache debug mode bit is cleared, all cache operations that do not relate to debug behave as
usual. Cache update mechanisms are disabled once cache debug mode bit is set by the user.
When L2 ICache is in debug mode, you can perform the following options:
Read the dedicated L2 ICache
debug registers:
— Valid State Register (L2IC_VALID)
— TAG State Register (L2IC_TAG)
— Line Replacement Mechanism (LRM) State Register (L2IC_LRM).
Read and write the cache memory array using the dedicated registers:
— Debug data register (L2IC_DBGDATA)
— Debug access register (L2IC_DBGACS).
11.4.7.1 Initialize/Read and Update State Registers
The following memory mapped state registers are located in the L2 ICache module: Tag State
Register, Line Replacement Mechanism State Register, and Valid State Register. In cache debug
mode, the content of the registers can be read via the MBus. This operation also updates the
content of the accessed register according to a dedicated counter that selects the appropriate
information to be sampled by the register. Each state register has a dedicated counter. The state
registers and their dedicated counters are initialized writing a 0x100 to the L2IC_CR1[CC] field
and then writing a 1 to the L2IC_CR1[CE] field (see Section 11.8.2). This command resets the
debug counters to zero and loads the state registers with the information related to first way and
index. Each read access to a state register increments by one the correlating counter and reloads
the state registers with a new data. To enable cache debug mode, set the L2IC_CR2[CDM] bit.
Table 11-3, Table 11-4, and Table 11-5 are examples of debug sequences by accessing the state
registers.
Table 11-3. Tag State Reading Sequence
Description
Debug Register
State initialization command
Initial load
Read tag array state register: way 0, index0, ETAG bits (in L2IC_B1)
re-load
Read tag array state register: way 0, index1, ETAG bits (in L2IC_B1)
re-load
Continue Reading from same address
Read tag array state register: way 0, index 31, ETAG bits (in L2IC_B1)
re-load
Read tag array state register: way 1, index0, ETAG bits (in L2IC_B1)
re-load
Read tag array state register: way 1, index1, ETAG bits (in L2IC_B1)
re-load
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 ...