19. Data cache (DCACHE)

19.1 DCACHE introduction

The data cache (DCACHE) is introduced on S-AHB system bus of the Cortex®-M33 processor to improve the performance of data traffic to/from external memories.

Some specific features, like hit-under-miss and critical-word-first refill policy, optimize performance on external memories data accesses.

19.2 DCACHE main features

The main features of DCACHE are described below:

19.3 DCACHE implementation

The DCACHE is placed on Cortex-M33 S-AHB bus, and caches the external memory regions (OCTOSPI, FMC) and DDR.

Indeed, by placing a busmatrix demultiplexing node in front of the DCACHE, S-AHB bus memory requests addressing SRAM region or peripherals region (respectively in ranges [0x2000 0000:0x3FFF FFFF] and [0x4000 0000:0x5FFF FFFF]) are routed directly to the Cortex-M33 AHB busmatrix and DCACHE is bypassed.

Table 82. DCACHE features

FeaturesDCACHE
Number of ways2
Cache size16 Kbytes
Cache line width32 bytes
Data size of AHB Master interface32 bits

19.4 DCACHE functional description

The purpose of the data cache is to cache external memory data loads and stores, coming from the processor. These accesses include the instruction fetches that may occur at an external memory address. The DCACHE manages both read and write transactions.

19.4.1 DCACHE block diagram

Figure 52. DCACHE block diagram

Figure 52. DCACHE block diagram. The diagram shows the internal structure of the DCACHE. On the left, the Cortex-M33 S-AHB bus connects to an Input port via AHB. A dcache_it signal is also shown. The main DCACHE block contains a Configuration interface (with Read-hit monitor, Write-hit monitor, Read-miss monitor, Write-miss monitor, CMD range start @, CMD range end @, Control, and Status), a Slave port interface, a Master port interface, and Cache control logic (containing Cache FSM, pLRU-t, and Maintenance operations). The Cache control logic connects to a Cache memory port, which in turn connects to Cache TAG Memories and Cache data Memories, both labeled 'n ways'. On the right, the Master port connects to the Main AHB via AHB. A Configuration slave port is at the top. The label 'DCACHE' is at the bottom left, and 'MSv49707V3' is at the bottom right.
Figure 52. DCACHE block diagram. The diagram shows the internal structure of the DCACHE. On the left, the Cortex-M33 S-AHB bus connects to an Input port via AHB. A dcache_it signal is also shown. The main DCACHE block contains a Configuration interface (with Read-hit monitor, Write-hit monitor, Read-miss monitor, Write-miss monitor, CMD range start @, CMD range end @, Control, and Status), a Slave port interface, a Master port interface, and Cache control logic (containing Cache FSM, pLRU-t, and Maintenance operations). The Cache control logic connects to a Cache memory port, which in turn connects to Cache TAG Memories and Cache data Memories, both labeled 'n ways'. On the right, the Master port connects to the Main AHB via AHB. A Configuration slave port is at the top. The label 'DCACHE' is at the bottom left, and 'MSv49707V3' is at the bottom right.

19.4.2 DCACHE reset and clocks

The DCACHE is clocked on the Cortex®-M33 S-AHB bus clock.

When the DCACHE reset signal is released, a cache invalidate procedure is automatically launched, making the DCACHE busy (DCACHE_SR = 0x0000 0001).

When this procedure is finished:

Note: When disabled, the DCACHE is bypassed: slave input requests are just forwarded to the master port.

19.4.3 DCACHE TAG memory

The DCACHE TAG memory contains:

There is one valid bit, one dirty bit, and one privilege bit per cache line (per way).

The valid bit enables/disables access to the data cache line: if the line is not valid, the data access (read or write) is performed in the main memory.

The valid bit is set when the cache line is written (refilled by either a read miss or a write-back miss).

Valid bits are reset in any of the below cases:

The dirty bit indicates that the cache line has up-to-date values with respect to the main memory content (the cache has last right value, the main memory is not up to date).

The dirty bit is set when the cache line is written by a slave port write transaction (only in case of an access with write-back attribute).

Dirty bits are reset in any of the below cases:

The privilege bit indicates if the data is managed by a privileged entity. It is assigned according to the value of AHB privileged attribute at the input slave port, for the first access to this line (it is written only during the line refill, on read miss or write-back miss).

The privilege bit holds the same polarity as the privileged attribute: 1 for privileged access, 0 for unprivileged access.

Privilege bits are reset when the cache is invalidated, and after the DCACHE reset is released.

When a cacheable transaction is received at input slave port, its AHB address (HADDR_in) is split into the following fields (see the table below for B and W values):

Table 83 gives DCACHE main parameters for TAG memory dimensioning.

Figure 53 shows the functional view of TAG and data memories, for an n-way set associative DCACHE.

Table 83. TAG memory dimensioning parameters

ParameterValueExample
Cache sizeS Kbytes = s bytes (s = 1024 × S)4 Kbytes = 4096 bytes
Cache number of waysn2
Cache line sizeL-byte = l-bit (l = 8 × L)16-byte = 128-bit
Number of cache lines (per way)LpW = s/(n × L) lines/way128 lines/way
Address byte offset sizeB = log₂(L) bit4-bit
Address way index sizeW = log₂(LpW) bit7-bit
TAG address sizeT = (32-W-B) bit21-bit

Figure 53. DCACHE TAG and data memories functional view

Functional view of DCACHE TAG and data memories. The diagram shows the AHB_address (HADDR_in) split into T-bit (TAG), W-bit (Index), and B-bit (Offset). The TAG is compared with TAG memory (Way(n-1) to Way0) using an equality comparator (==). The Index selects a way from the Data memory (Way(n-1) to Way0). The Offset is used to access the specific byte within the selected way. The pLRU-t block performs way selection for replacement. The TAG memory and Data memory are shown with n ways and LpW lines / way. The output of the comparator and the Data memory are combined to produce Cache hit/miss signals for Way(n-1) and Way0.

The diagram illustrates the functional view of the DCACHE TAG and data memories. The AHB_address (HADDR_in) is divided into three parts: T-bit (TAG), W-bit (Index), and B-bit (Offset). The TAG is compared with the TAG memory (Way(n-1) to Way0) using an equality comparator (==). The Index selects a way from the Data memory (Way(n-1) to Way0). The Offset is used to access the specific byte within the selected way. The pLRU-t block performs way selection for replacement. The TAG memory and Data memory are shown with n ways and LpW lines / way. The output of the comparator and the Data memory are combined to produce Cache hit/miss signals for Way(n-1) and Way0.

Functional view of DCACHE TAG and data memories. The diagram shows the AHB_address (HADDR_in) split into T-bit (TAG), W-bit (Index), and B-bit (Offset). The TAG is compared with TAG memory (Way(n-1) to Way0) using an equality comparator (==). The Index selects a way from the Data memory (Way(n-1) to Way0). The Offset is used to access the specific byte within the selected way. The pLRU-t block performs way selection for replacement. The TAG memory and Data memory are shown with n ways and LpW lines / way. The output of the comparator and the Data memory are combined to produce Cache hit/miss signals for Way(n-1) and Way0.

19.4.4 DCACHE enable

To activate the DCACHE functioning, the EN bit must be set in DCACHE_CR control register.

When DCACHE is disabled, it is bypassed and all transactions are copied from slave port to master port in the same clock cycle, and no comparison is performed with TAG address.

DCACHE is by default disabled at boot.

19.4.5 Cacheable and noncacheable traffic

DCACHE is developed for a Cortex®-M33 core and caches the memory regions addressed by the AHB bus connected to it.

In addition, the AHB bus traffic to the memory regions can be cacheable or noncacheable. An incoming memory request to DCACHE is defined as cacheable according to its AHB transaction memory lookup attribute.

In case of write transaction, the DCACHE write policy is defined as write-through or write-back according to its AHB transaction memory bufferable attribute (see Table 84).

These AHB attributes depend on the memory protection unit (MPU) programming for the addressed region.

Table 84. DCACHE cacheability for AHB transaction

AHB lookup attributeAHB bufferable attributeCacheability
0xRead and write: non cacheable
10Read: cacheable
Write: (cacheable) write-through
11Read: cacheable
Write: (cacheable) write-back

In case of noncacheable access, the DCACHE is bypassed, meaning that the AHB transaction is propagated unchanged to the master output port.

The bypass does not increase the latency of the access to the targeted memory.

In case of cacheable access, the DCACHE behaves as explained in Section 19.4.6.

Cacheable memory regions are defined and programmed by the user in the MPU, responsible for the generation of the AHB attribute signals for any transaction addressing a given region.

19.4.6 Cacheable accesses

When the DCACHE receives a cacheable transaction from Cortex®-M33 on its slave port, the DCACHE checks if the address requested is present in its TAG memory and if the corresponding cache line is valid.

For read transaction, there are three alternatives:

The critical-word-first refill policy insures minimum wait cycles for the processor, since read data can be provided while cache is still performing cache line refill (associated latency is the latency of fetching one word from main memory).

The kind of burst generated on the DCACHE master bus depends on HBURST bit in DCACHE_CR: either INCRw or WRAPw (w being the cache line width, in words).

The AHB transaction attributes are also propagated from the slave input (missing) request to the master output refill request.

Whatever the line refill is due to a read or write (missing) transaction, the DCACHE can provide the requested read data as soon as the data is available at its master interface, thus avoiding a miss (with data fetch from main memory).

For write-back transaction (write transaction, with write-back bufferable attribute), there are three alternatives as well:

First, a line allocation is performed by reading the entire cache line data from main memory. The kind of burst generated on the DCACHE master bus for this line refill depends on HBURST bit in DCACHE_CR: either INCRw or WRAPw (w being the cache line width, in words), and the AHB transaction attributes are propagated from the slave port initial request.

Once the refilled line is written in the DCACHE, the initial data provided on the slave port is written in this DCACHE line (it overwrites the data part of the cache line that was refilled just before).

Whatever the line refill is due to a read or write (missing) transaction, the DCACHE can write incoming data directly inside the refilled line, thus avoiding a miss (with refill from main memory).

For write-through transaction (write transaction, with write-through bufferable attribute), only two alternatives exist:

In case of cache refill (due to cache miss), the DCACHE selects which cache line is written with the refill data: as a 2-way set associative cache, one line among two can be used (line pointed by the address index, in each of the two ways). The way selection is based on a pLRU-t replacement algorithm that points, for each index, on the way candidate for the next refill.

If the cache line where the refill data must be written is already valid, the targeted cache line must be evicted first:

The DCACHE generates a burst write transaction on its master port, with burst type set to INCRw (w being the cache line width, in words), and with AHB memory transaction attribute signals set as below:

These AHB attributes cannot be propagated from the slave port (as it is the case for all other transactions emitted by the DCACHE) because the evicting transaction has no relation with the initial missing transaction. Setting of the AHB attributes is fixed, except for the privileged bit that is copied from the TAG privilege bit of the evicted line.

19.4.7 DCACHE security

The DCACHE implements an Armv8-M TrustZone.

DCACHE configuration registers are protected at system level.

19.4.8 DCACHE maintenance

The DCACHE features several maintenance operations that the software can programmed in DCACHE_CR control register:

The software can invalidate the whole DCACHE content by programming CACHEINV in DCACHE_CR.

When CACHEINV = 1, the DCACHE control logic sets BUSYF flag in DCACHE_SR status register, and performs the operation of cache invalidation, resetting each TAG valid bit to 0 (one valid bit per cache line). Each dirty and privilege bits are also reset to 0 during cache invalidation to prevent unknown values at next cache line validation. CACHEINV is automatically cleared.

Once the full invalidate operation is finished, the DCACHE automatically clears BUSYF flag, and sets BSYENDF in DCACHE_SR.

If enabled on this flag condition (BSYENDIE = 1 in DCACHE_IER), the DCACHE interrupt is raised. Then, the (empty) cache is available again.

This full invalidate operation is not interruptible, meaning that the cache does not treat any cacheable request while BUSYF = 1. However, non-cacheable traffic is treated (since the request address is not compared to TAG ones), the DCACHE being bypassed in the same clock cycle (same behavior as when the DCACHE is disabled).

The software can invalidate a given data region in the DCACHE by programming STARTCMD = 1 and CACHECMD = 0b010 in DCACHE_CR, after the address range was programmed into DCACHE_CMDRSADDRR (range start address) and DCACHE_CMDREADDRR (range end address).

The DCACHE control logic then parses the whole TAG memory. If the read line address (TAG address + line index) falls in the programmed address range (DCACHE_CMDRSADDRR ≤ Line Addr ≤ DCACHE_CMDREADDRR), the

corresponding cache line is invalidated (line TAG bits cleared, valid bit = dirty bit = privilege bit = 0).

When STARTCMD is set, the DCACHE control logic sets BUSYCMDF in DCACHE_SR and launches the invalidate range operation. STARTCMD is also automatically cleared.

Once the operation is finished (all TAG memory parsed), the DCACHE automatically clears BUSYCMDF and sets CMDENDF in DCACHE_SR.

If enabled on this flag condition (CMDENDIE = 1 in DCACHE_IER), the DCACHE interrupt is raised.

During this invalidate range operation, the DCACHE is interruptible, meaning it can accept new incoming requests that take higher priority than the invalidation process. The TAG memory is accessed for invalidate range operation only if not already accessed by an external cache request. This implies that invalidate range execution is usually not performed in one go, but can be interrupted.

Cleaning a cache line means making sure that the main memory content is up-to-date with the data, which may have been modified in the cache. The clean operation consists in performing the write-back in the main memory of the cache lines that are tagged as “dirty” (the ones with TAG dirty bit set).

The software can clean a given data region in DCACHE by programming STARTCMD = 1, and CACHECMD = 0b001 in DCACHE_CR, after the address range was programmed into DCACHE_CMDRSADDR (range start address) and DCACHE_CMDREADADDR (range end address).

The DCACHE control logic then parses the whole TAG memory. If the read line address (TAG address + line index) falls in the programmed address range (\(\text{DCACHE\_CMDRSADDR} \le \text{Line Addr} \le \text{DCACHE\_CMDREADADDR}\)), and the corresponding line is dirty, this line is cleaned, meaning the whole cache line is written-back in the memory through the DCACHE master port, and its TAG dirty bit is cleared.

When STARTCMD is set, the DCACHE control logic sets BUSYCMDF in DCACHE_SR and launches the clean range operation. STARTCMD is also automatically cleared.

Once the operation is finished (all TAG memory parsed), the DCACHE automatically clears BUSYCMDF and sets CMDENDF in DCACHE_SR.

If enabled on this flag condition (CMDENDIE = 1 in DCACHE_IER), the DCACHE interrupt is raised.

During this clean range operation, the DCACHE is interruptible, meaning it can accept new incoming requests that take higher priority than the cleaning process. The TAG memory is accessed for clean range operation only if not already accessed by an external cache request. This implies that clean range execution is usually not performed in one go, but can be interrupted.

It is under the software responsibility that no bus initiator attempts to change the content of the region being cleaned until clean range is completed. For that, the software can take advantage of BUSYCMDF flag in DCACHE_SR, and can poll this flag to prevent any spurious access to the area being cleaned.

Alternatively it can also rely on the command end flag (CMDENDF) or on the DCACHE interrupt to detect the end of the clean range execution.

This operation cleans the “dirty” cache lines that belong to the operation address range (the same as the clean range operation), and also invalidates all the (valid) cache lines that belong to this address range (whether they are dirty or not).

The software can launch this clean and invalidate range operation, by programming STARTCMD = 1, and CACHECMD = 0b011 in DCACHE_CR, after the address range was programmed into DCACHE_CMDRSADDRR (range start address) and DCACHE_CMDREADDRR (range end address).

This sets and clears the same flags, and potentially the same interrupt as invalidate range or clean range operations.

19.4.9 DCACHE performance monitoring

The DCACHE provides the following monitors for performance analysis:

Upon reaching their maximum values, the monitors do not wrap over.

The software can perform the following tasks:

To reduce power consumption, these monitors are disabled (stopped) by default.

19.4.10 DCACHE boot

The DCACHE is disabled (EN = 0 in DCACHE_CR) at boot.

Once the boot is finished, the DCACHE can be enabled (software setting EN = 1 in DCACHE_CR).

19.5 DCACHE low-power modes

At product level, the DCACHE reduces the power consumption by loading/storing data from/to the internal DCACHE most of the time, rather than from the bigger and then more power consuming main memories. This reduction is even much higher, since the cached main memories are external.

19.6 DCACHE error management and interrupts

A transaction initiated on the DCACHE master port may return an error (a write attempt into a read-only memory, for instance). If the master port request was propagated from a slave port request, the error is propagated back to the slave port. If ever the master port request is initiated by the DCACHE itself (a cache line is written back into the main memory because of an eviction or a clean operation), the DCACHE receives this functional error and flags it internally by setting the ERRF flag in DCACHE_SR.

In such a case, an interrupt is generated if the corresponding interrupt enable bit is set (ERRIE = 1 in DCACHE_IER).

Another case of potential interrupt generation is at the end of a full invalidate operation: when the cache busy state is finished, the DCACHE sets BSYENDF flag in DCACHE_SR.

An interrupt is then generated if the corresponding interrupt enable bit is set (BSYENDIE = 1 in DCACHE_IER).

Last case is at the end of invalidate and/or clean range operations: when the command busy state is finished, the DCACHE sets CMDENDF flag in DCACHE_SR.

An interrupt is also generated if the corresponding interrupt enable bit is set (CMDENDIE = 1 in DCACHE_IER).

All DCACHE interrupt sources raise the same and unique interrupt signal, dcache_it, and then use the same interrupt vector.

Table 85. DCACHE interrupts

Interrupt vectorInterrupt eventEvent flagEnable control bitInterrupt clear method
DCACHEFunctional errorERRF
in DCACHE_SR
ERRIE
in DCACHE_IER
Set CERRF to 1
in DCACHE_FCR
End of busy state
(full invalidate finished)
BSYENDF
in DCACHE_SR
BSYENDIE
in DCACHE_IER
Set CBSYENDF to 1
in DCACHE_FCR
End of cache operations
(address range based)
CMDENDF
in DCACHE_SR
CMDENDIE
in DCACHE_IER
Set CCMDENDF to 1
in DCACHE_FCR

The DCACHE also propagates all AHB bus errors (such as security issues, address decoding issues) from master port back to the S-AHB slave port.

19.7 DCACHE registers

19.7.1 DCACHE control register (DCACHE_CR)

Address offset: 0x000

Reset value: 0x0000 0000

31302928272625242322212019181716
HBURSTRes.Res.Res.Res.Res.Res.Res.WMISSMRSTWHITMRSTWMISSMENWHITMENRMISSMRSTRHITMRSTRMISSMENRHITMEN
rwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.STARTCMDCACHECMD[2:0]Res.Res.Res.Res.Res.Res.CACHEINVEN
wrwrwrwwrw

Bit 31 HBURST: output burst type for cache master port read accesses

Can be set by software, only when EN = 0.

Master port write accesses are always done in INCR burst type.

0: WRAP

1: INCR

Bits 30:24 Reserved, must be kept at reset value.

Bit 23 WMISSMRST: write-miss monitor reset

0: release the cache miss monitor reset (needed to enable the counting)

1: reset cache write-miss monitor

Bit 22 WHITMRST: write-hit monitor reset

0: release the cache miss monitor reset (needed to enable the counting)

1: reset cache write-hit monitor

Bit 21 WMISSMEN: write-miss monitor enable

0: cache write-miss monitor switched off. Stopping the monitor does not reset it.

1: cache write-miss monitor enabled

Bit 20 WHITMEN: write-hit monitor enable

0: cache write-hit monitor switched off. Stopping the monitor does not reset it.

1: cache write-hit monitor enabled

Bit 19 RMISSMRST: read-miss monitor reset

0: release the cache miss monitor reset (needed to enable the counting)

1: reset cache read-miss monitor

Bit 18 RHITMRST: read-hit monitor reset

0: release the cache miss monitor reset (needed to enable the counting)

1: reset cache read-hit monitor

Bit 17 RMISSMEN: read-miss monitor enable

0: cache read-miss monitor switched off. Stopping the monitor does not reset it.

1: cache read-miss monitor enabled

Bit 16 RHITMEN: read-hit monitor enable

0: cache read-hit monitor switched off. Stopping the monitor does not reset it.

1: cache read-hit monitor enabled

Bits 15:12 Reserved, must be kept at reset value.

Bit 11 STARTCMD: starts maintenance command (maintenance operation defined in CACHECMD).

Can be set by software, only when EN = 1, BUSYCMDF = 0, BUSYF = 0 and CACHECMD = 0b001, 0b010 or 0b011.

Cleared by hardware when the BUSYCMDF flag is set (during cache maintenance operation). Writing 0 has no effect.

0: command operation (cache maintenance) finished

1: start maintenance command (cache maintenance)

Bits 10:8 CACHECMD[2:0]: cache command maintenance operation (cleans and/or invalidates an address range)

Can be set and cleared by software, only when no maintenance command is ongoing (BUSYCMDF = 0).

000: no operation

001: clean range

010: invalidate range

011: clean and invalidate range

others: reserved

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 CACHEINV: full cache invalidation

Can be set by software, only when EN = 1.

Cleared by hardware when the BUSYF flag is set (during full cache invalidation operation). Writing 0 has no effect.

0: no effect

1: invalidate entire cache (all cache lines valid bit = 0)

Bit 0 EN: enable

0: cache disabled

1: cache enabled

19.7.2 DCACHE status register (DCACHE_SR)

Address offset: 0x004

Reset value: 0x0000 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDE
NDF
BUSYC
MDF
ERRFBSYEN
DF
BUSYF
rrrrr

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CMDENDF: command end flag

Cleared by writing DCACHE_FCR.CCMDENDF = 1.

0: cache busy or in idle

1: CACHECMD command finished

19.7.3 DCACHE interrupt enable register (DCACHE_IER)

Address offset: 0x008

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDE
NDIE
Res.ERRIEBSYEN
DIE
Res.
rwrwrw

Bits 31:5 Reserved, must be kept at reset value.

19.7.4 DCACHE flag clear register (DCACHE_FCR)

Address offset: 0x00C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CCMD
ENDF
Res.CERRFCBSYE
NDF
Res.
www

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CCMDENDF: clear command end flag

Set by software.

0: no effect

1: clears CMDENDF flag in DCACHE_SR

Bit 3 Reserved, must be kept at reset value.

Bit 2 CERRF: clear cache error flag

Set by software.

0: no effect

1: clears ERRF flag in DCACHE_SR

Bit 1 CBSYENDF: clear full invalidate busy end flag

Set by software.

0: no effect

1: clears BSYENDF flag in DCACHE_SR

Bit 0 Reserved, must be kept at reset value.

19.7.5 DCACHE read-hit monitor register (DCACHE_RHMONR)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
RHITMON[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
RHITMON[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 RHITMON[31:0]: cache read-hit monitor counter

19.7.6 DCACHE read-miss monitor register (DCACHE_RMMONR)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
RMISSMON[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 RMISSMON[15:0]: cache read-miss monitor counter

19.7.7 DCACHE write-hit monitor register (DCACHE_WHMONR)

Address offset: 0x020

Reset value: 0x0000 0000

31302928272625242322212019181716
WHITMON[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
WHITMON[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 WHITMON[31:0]: cache write-hit monitor counter

19.7.8 DCACHE write-miss monitor register (DCACHE_WMMONR)

Address offset: 0x024

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
WMISSMON[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 WMISSMON[15:0]: cache write-miss monitor counter

19.7.9 DCACHE command range start address register (DCACHE_CMDRSADDRR)

Address offset: 0x028

Reset value: 0x0000 0000

31302928272625242322212019181716
CMDSTARTADDR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CMDSTARTADDR[15:5]Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:5 CMDSTARTADDR[31:5]: start address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies

This register must be set before DCACHE_CR.CACHECMD is written.

Bits 4:0 Reserved, must be kept at reset value.

19.7.10 DCACHE command range end address register (DCACHE_CMDREADDRR)

Address offset: 0x02C

Reset value: 0x0000 0000

31302928272625242322212019181716
CMDENDADDR[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CMDENDADDR[15:5]Res.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:5 CMDENDADDR[31:5]: end address of range to which the cache maintenance command specified in DCACHE_CR.CACHECMD field applies

This register must be set before DCACHE_CR.CACHECMD is written.

Bits 4:0 Reserved, must be kept at reset value.

19.7.11 DCACHE hardware configuration register (DCACHE_HWCFGR)

Address offset: 0x3F0

Reset value: 0x0080 0641

31302928272625242322212019181716
ECCRes.Res.Res.Res.Res.Res.MASTERSIZE [1:0]Res.Res.Res.Res.Res.Res.Res.
rrr
1514131211109876543210
Res.Res.Res.Res.Res.LWIDTH[1:0]Res.Res.SIZE[2:0]Res.Res.WAYS[1:0]
rrrrrrr
ST logo
ST logo

19.7.12 DCACHE version register (DCACHE_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0010

column_1column_2Bit 31 Bits 24:23 Bits 10:9 Bits 6:4 Bits 1:0ECC SIZE[2:0]: WAYS[1:0]:00: reserved 01: 32-bit 10: 64-bit 11: reserved LWIDTH[1:0]: 00: reserved 000: reserved 001: 2-Kbyte 010: 4-Kbyte 011: 8-Kbyte 100: 16-Kbyte others: reserved 00: reserved 11: reservedcache sizecache line widthcolumn_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr
Bits 7:4MAJREV[3:0]:DCACHE major revision
Bits 3:0MINREV[3:0]:DCACHE minor revision
ST logo
ST logo

19.7.13 DCACHE identification register (DCACHE_IPIDR)

Address offset: 0x3F8

Reset value: 0x0010 0091

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: DCACHE identification

19.7.14 DCACHE size identification register (DCACHE_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: DCACHE address space size identification

19.7.15 DCACHE register map

Table 86. DCACHE register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DCACHE_CRHBURSTRes.Res.Res.Res.Res.Res.Res.WMISSMRSTWHITMRSTWMISSMENWHITMENRMISSMRSTRHITMRSTRMISSMENRHITMENRes.Res.Res.Res.STARTCMDCACHECMD [2:0]Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000000000000000
0x004DCACHE_SRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDENDIEBUSYCMDFERRFBSYENDIEBUSYF
Reset value000001
0x008DCACHE_IERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CMDENDIERes.ERRIEBSYENDIERes.
Reset value0000

Table 86. DCACHE register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x00CDCACHE_FCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CCMDENDFRes.CERRFCBSYENDFRes.
Reset value000
0x010DCACHE_RHMONRRHITMON[31:0]
Reset value0000000000000000000000000000000
0x014DCACHE_RMMONRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RMISSMON[15:0]
Reset value000000000000000
0x020DCACHE_WHMONRWHITMON[31:0]
Reset value0000000000000000000000000000000
0x024DCACHE_WMMONRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WMISSMON[15:0]
Reset value000000000000000
0x028DCACHE_CMDRSADDRRCMDSTARTADDR[31:5]Res.Res.
Reset value0000000000000000000000000000
0x02CDCACHE_CMDREADDRRCMDENDADDR[31:5]Res.Res.
Reset value0000000000000000000000000000
0x030-0x3ECReservedReserved
0x3F0DCACHE_HWCFGRECCRes.Res.Res.Res.Res.Res.Res.MASTERSIZE[1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SIZE[2:0]Res.Res.WAYS[1:0]
Reset value0x0080 0641
0x3F4DCACHE_VERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
Reset value0x0000 0010
0x3F8DCACHE_IPIDRID[31:0]
Reset value0x0010 0091
0x3FCDCACHE_SIDRSID[31:0]
Reset value0xA3C5 DD01

Refer to Section 2.4 for the register boundary addresses.