18. Instruction cache (ICACHE)

18.1 ICACHE introduction

The instruction cache (ICACHE) is introduced on the C-AHB code bus of the Cortex®-M33 processor, to improve performance when fetching instructions and data from internal and external memories.

Some specific features like dual master ports, hit-under-miss, and critical-word-first refill policy, allow close to zero-wait-state performance in most use cases.

18.2 ICACHE main features

The main features of ICACHE are listed below:

18.3 ICACHE implementation

Table 74. ICACHE features

FeatureICACHE
Number of ways2
Cache size16 Kbytes
Cache line width32 bytes
Range granularity of memory regions to be remapped2 Mbytes
Number of regions to remap4
Data size of AHB slave interface32 bits
Data size of AHB fast master1 interface32 bits
Data size of AHB slow master2 interface32 bits

18.4 ICACHE functional description

The purpose of the instruction cache is to cache instruction fetches or instruction memories loads, coming from the processor. As such, the ICACHE only manages cacheable read transactions and does not manage cacheable write transactions.

The noncacheable transactions (both read and write ones) bypass the ICACHE.

For the error management purpose, in case a write cacheable transaction is presented (this only happens in case of bad software programming), the ICACHE sets an error flag and, if enabled, raises an interrupt to the processor.

18.4.1 ICACHE block diagram

Figure 49. ICACHE block diagram

ICACHE block diagram showing internal components and interfaces.

The diagram illustrates the internal structure of the ICACHE. At the top, a bidirectional AHB bus connects to a 'Configuration slave port'. This port leads to a 'Configuration interface' block containing several sub-blocks: 'Region 0 cfg', 'Region 2 cfg', 'Hit monitor', 'Control', 'Region 1 cfg', 'Region 3 cfg', 'Miss monitor', and 'Status'. Below this is the 'Cache control logic' block, which includes a 'Cache FSM', 'pLRU-t', and 'REMAP' components. This logic is connected to an 'Execution port interface' on the left and a 'Master port interface' on the right. The 'Execution port interface' connects to the 'C-AHB' bus of the 'Cortex-M33', which also features an 'Execution port' and an 'AHB' bus. An 'icache_it' signal is shown between the C-AHB and the execution port interface. The 'Master port interface' connects to the 'Main AHB' bus, which includes 'Master1 port' and 'Master2 port' AHB buses. The 'Cache control logic' is connected via a 'Cache memory port' to two parallel memory blocks: 'Cache TAG memories' and 'Cache data memories', both labeled 'n ways'. The entire ICACHE block is labeled 'ICACHE' at the bottom left. A reference code 'MSv48191V3' is located at the bottom right.

ICACHE block diagram showing internal components and interfaces.

18.4.2 ICACHE reset and clocks

The ICACHE is clocked on the Cortex®-M33 C-AHB bus clock.

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

When this procedure is finished:

Note: When disabled, the ICACHE is bypassed, except the remapping mechanism that is still functional: slave input requests (remapped or not) are forwarded to the master port(s).

18.4.3 ICACHE TAG memory

The ICACHE TAG memory contains:

There is one valid bit per cache line (per way).

The valid bit is set when a cache line is refilled (after a miss).

Valid bits are reset in any of the below cases:

When a cacheable transaction is received at the execution input port, its AHB address (HADDR_in) is split into the following fields (see Table 75 for B and W definitions):

The following table gives a summary of the ICACHE main parameters for TAG memory dimensioning. Figure 50 shows the functional view of TAG and data memories, for an n-way set associative ICACHE.

Table 75. TAG memory dimensioning parameters
for n-way set associative operating mode (default)

ParameterValueExample
Cache sizeS Kbytes = s bytes (s = 1024 × S)8 Kbytes = 8192 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 / way256 lines / way
Address byte offset sizeB = log₂(L) bit4-bit
Address way index sizeW = log₂(LpW) bit8-bit
TAG address sizeT = (32-W-B) bit20-bit

Figure 50. ICACHE TAG and data memories functional view

ICACHE TAG and data memories functional view diagram

MSv48192V2

ICACHE TAG and data memories functional view diagram

18.4.4 Direct-mapped ICACHE (1-way cache)

The default configuration (at reset) is an n-way set associative cache (WAYSEL = 1 in ICACHE_CR), but the user can configure the ICACHE as direct mapped by writing WAYSEL = 0 (only possible when the cache is disabled, EN = 0 in ICACHE_CR).

The following table gives a summary of ICACHE main parameters for TAG memory when the direct-mapped cache operating mode is selected.

Table 76. TAG memory dimensioning parameters for direct-mapped cache mode

ParameterValueExample
Cache sizeS Kbytes = s bytes (s = 1024 x S)8 Kbytes = 8192 bytes
Cache number of ways11
Cache line sizeL-byte = l-bit (l = 8 x L)16-byte = 128-bit
Number of cache linesLpW = s / L lines512 lines
Address byte offset sizeB = log2(L) bit4-bit
Address way index sizeW = log2(LpW) bit9-bit
TAG address sizeT = (32 - W - B) bit19-bit

All cache operations (such as read, refill, remapping, invalidation) remain the same in the direct-mapped configuration. The only difference is the absence of a replacement algorithm in case of line eviction (as explained in Section 18.4.8): only one way (the unique one) is possible for any data refill.

18.4.5 ICACHE enable

To activate the ICACHE, the EN bit must be set to 1 in ICACHE_CR.

When the ICACHE is disabled, it is bypassed and all transactions are copied from the slave port to the master ports in the same clock cycle.

It is recommended to initialize or modify the main memory content (region to be later cached) with the ICACHE disabled, and to enable the ICACHE only when this region remains unchanged (an enabled ICACHE detects cacheable write transactions as errors).

To ensure performance determinism, it is recommended to wait for the end of a potential cache invalidate procedure before enabling the ICACHE. This procedure occurs when the hardware reset signal is released, when CACHEINV is set, or when EN is cleared in ICACHE_CR. During the procedure, BUSYF is set in ICACHE_SR, and once finished, BUSYF is cleared and BSYENDF is set in the same register (raising the ICACHE interrupt if enabled on such a busy end condition).

The software must test BUSYF and/or BSYENDF values before enabling the ICACHE. Else, if the ICACHE is enabled before the end of an invalidate procedure, any cache access (while BUSYF = 1) is treated as noncacheable, and its performance depends on the main memory access time.

The address remapping is performed, whether the ICACHE is enabled or not, if the input transaction address falls into the memory regions defined and enabled in ICACHE_CRRx (see Figure 51: ICACHE remapping address mechanism).

The ICACHE is by default disabled at boot.

18.4.6 Cacheable and noncacheable traffic

The ICACHE is developed for the Cortex®-M33 core. It is placed on the C-AHB bus, and thus caches the code memory region, ranging from address 0x0000 0000 to 0x1FFF FFFF of the memory map.

To make some other memory regions cacheable, the ICACHE supports a memory-region-remapping feature. It is used to define up to four external memory regions, which addresses have an alias in the code region. Addressing these external memory regions through their code alias address allows the memory request to be routed to the C-AHB bus, and to be managed by the ICACHE.

Any external memory space physically mapped at an address in the range [0x6000 0000:0xAFFF FFFF] can be aliased with an address in the range [0x0000 0000:0x07FF FFFF] or [0x1000 0000:0x1FFF FFFF].

For a given memory request in the code region, the ICACHE implements the address remapping functionality first. If aliased, it is the remapped address, which is then cached, and, if needed, provided to the master port to address the main AHB bus matrix. The destination physical address does not need further manipulation on the AHB bus.

The remapping functionality is also available for noncacheable traffic, and when the cache is disabled.

Further details on address remapping are provided in Section 18.4.7.

An incoming memory request to the ICACHE is defined as cacheable according to its AHB transaction memory lookup attribute, as shown in Table 77. This AHB attribute depends on the MPU (memory protection unit) programming for the addressed region.

Table 77. ICACHE cacheability for AHB transaction

AHB lookup attributeCacheability
1Cacheable
0Noncacheable

In the case of a noncacheable access (either a noncacheable read or a noncacheable write), the ICACHE is bypassed, meaning that the AHB transaction is propagated unchanged to the master output port, except the transaction address, which may be modified due to the address remapping feature (see Section 18.4.7).

The bypass, and eventual remap logic, does not increase the latency of the access to the targeted memory.

In the case of a cacheable access, the ICACHE behaves as explained in Section 18.4.8.

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

The following table summarizes programmable configurations of various memories.

Table 78. Memory configurations

MemoryCacheable
(MPU programming)
Remapped in the ICACHE
(ICACHE_CRRx programming)
Flash memoryYes or NoNot required
SRAMNot recommendedNot required
External memoriesYesRequired
NoRequired if the user wants code in external memories fetched on C-AHB bus (else on S-AHB bus)

18.4.7 Address remapping

The ICACHE allows an alias address to be defined in the code region for up to four external memory regions.

The address remapping is applied on the code alias address, transforming it into the destination external physical address.

The remapping operation is fully software configurable by programming ICACHE_CRRx (x = 0 to 3, number of remapped regions). This programming can be done only when the ICACHE is disabled.

Each region x can be individually enabled with REN in ICACHE_CRRx. Once enabled, the remap operation occurs even if the ICACHE is disabled, or if the transaction is noncacheable.

Remap regions can have different size: each region size can be programmed in RSIZE of its ICACHE_CRRx. The size of each region is a power of two multiple of range granularity (2 Mbytes), with a minimum region size of 2 Mbytes, and a maximum region size of 128 Mbytes.

The address remapping mechanism is based on the matching of an incoming AHB address (HADDR_in) with a given code subregion base-address, and the modification of this address into its (remapped) external physical address, as follows:

The following figure describes the matching and the output address generation.

Figure 51. ICACHE remapping address mechanism

Figure 51: ICACHE remapping address mechanism diagram. The diagram shows the process of remapping an incoming address HADDR_in to an output address HADDR_out. HADDR_in is a 32-bit bus (bits 31 to 0). A comparison is performed between the upper bits of HADDR_in (bits 31 to RI) and the base address 000:BASEADDR[28:RI]. If they match, the address is in region x. The output address HADDR_out is formed by concatenating the REMAPADDR[31:RI] field (bits 31 to RI) with the lower bits of HADDR_in (bits RI-1 to 0).

The diagram illustrates the ICACHE remapping address mechanism. It shows the flow from an incoming address HADDR\_in (bits 31 to 0) to an output address HADDR\_out (bits 31 to 0). The process involves a comparison of the upper bits of HADDR\_in (bits 31 to RI) with the base address 000:BASEADDR[28:RI]. If they match, the address is in region x. The output address HADDR\_out is then formed by concatenating the REMAPADDR[31:RI] field (bits 31 to RI) with the lower bits of HADDR\_in (bits RI-1 to 0). The diagram includes a comparator block labeled = = and a multiplexer block labeled 0/1. The output address HADDR\_out is shown as a 32-bit bus with bits 31 to RI labeled REMAPADDR[31:RI] and bits RI-1 to 0 labeled HADDR\_in[RI-1:0]. The diagram is labeled MSv48194V2.

Figure 51: ICACHE remapping address mechanism diagram. The diagram shows the process of remapping an incoming address HADDR_in to an output address HADDR_out. HADDR_in is a 32-bit bus (bits 31 to 0). A comparison is performed between the upper bits of HADDR_in (bits 31 to RI) and the base address 000:BASEADDR[28:RI]. If they match, the address is in region x. The output address HADDR_out is formed by concatenating the REMAPADDR[31:RI] field (bits 31 to RI) with the lower bits of HADDR_in (bits RI-1 to 0).

The following table summarizes all possible configurations of BASEADDR and REMAPADDR sizes (number of significant MSBs) in ICACHE_CRRx, depending on RSIZE.

Table 79. ICACHE remap region size, base address and remap address

Region size (Mbytes)Base address size (MSBs)Remap address (MSBs)
2811
4710
869
1658
3247
6436
12825

Care must be taken while programming BASEADDR and REMAPADDR in ICACHE_CRRx: if the programmed value is bigger than expected (number of MSBs, see Table 79), the unnecessary extra LSBs are ignored.

Typical remapping example: a 128-Mbyte external RAM region physically located in the external address range [0x9000 0000:0x97FF FFFF], remapped in the code section range [0x1800 0000:0x1FFF FFFF]:

If the comparison matches:

The software can program the kind of AHB burst that is generated by the ICACHE master ports on the bus matrix (for cache line refill), by setting HBURST in ICACHE_CRRx with:

Note: Coherency is needed when programming the SAU (secure attribution unit) and the MPU (memory protection unit) attributes for both the external regions and their aliased code subregions.

18.4.8 Cacheable accesses

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

There are then three alternatives:

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

The burst generated on the ICACHE master bus is WRAPw (w being the cache line width, in words) in case no address remap occurs. If an address remap occurs, the kind of burst depends on the HBURST programmed in corresponding ICACHE_CRRx.

The AHB transaction attributes are also propagated to the main AHB bus matrix on the master port selected for the line refill.

This happens during cache-line refill. The ICACHE can provide the requested data as soon as the data is available at its master interface, thus avoiding a miss (fetching data from the main memory).

In the case of cache refill (due to cache miss), the ICACHE selects which cache line is written with the refill data:

If ever the cache line where the refill data must be written is already valid, the targeted cache line must be invalidated first. This is true whatever the direct map or n-way set associative cache mode.

18.4.9 Dual-master cache

The ICACHE implements a dual-port AHB master on the main AHB bus matrix: master1 and master2 ports. This is used to split the traffic going to different destination memories.

The nonremapped traffic goes systematically to master1 port. The remapped traffic can be routed on the master2 port by programming MSTSEL in ICACHE_CRRx (on a region basis).

The code can typically be fetched as follows:

For systems not implementing external memories, the traffic to the internal flash memory can be decoupled from the traffic to the internal SRAM (when remapped by the ICACHE). This feature is used to prevent further processor stalls on misses.

Alongside with hit-under-miss, this dual-master feature allows the processor to have an alternative path in case of fetching from different memories.

18.4.10 ICACHE security

The ICACHE implements an Armv8-M TrustZone.

ICACHE configuration registers are protected at system level.

18.4.11 ICACHE maintenance

The software can invalidate the whole content of the ICACHE by programming CACHEINV in the ICACHE_CR register.

When CACHEINV = 1, the ICACHE control logic sets the BUSYF flag in ICACHE_SR and launches the invalidate cache operation, resetting each TAG valid bit to 0 (one valid bit per cache line). CACHEINV is automatically cleared.

Once the invalidate operation is finished (all valid bits reset to 0), the ICACHE automatically clears BUSYF, and sets BSYENDF in the ICACHE_SR register.

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

18.4.12 ICACHE performance monitoring

The ICACHE provides the following monitors for performance analysis:

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

Hit and miss monitors can be enabled and reset by software allowing the analysis of specific pieces of code.

The software can perform the following tasks:

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

18.4.13 ICACHE boot

The ICACHE is disabled (EN = 0 in ICACHE_CR) at boot.

The code remapping at boot is not needed for a Cortex®-M33 since it implements the VTOR (vector tables) that allows a boot start address definition different than 0x0.

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

18.5 ICACHE low-power modes

At device level, using the ICACHE reduces the power consumption by fetching instructions from the internal ICACHE most of the time, rather than from the bigger and then more power consuming main memories. This reduction is even higher if the cached main memories are external.

Applications with lower performance profile (in terms of hit ratio) and stringent power consumption constraints may benefit from the lower power consumption of an ICACHE configured as direct mapped. This single-way cache configuration is obtained by programming WAYSEL = 0 in ICACHE_CR (see Figure 50). The power consumption is reduced by accessing, for each request, only the necessary cut of TAG and data memories. The cache effect still improves fetch performance, even if for most code execution, it is less efficient than with an n-way set associative cache mode.

18.6 ICACHE error management and interrupts

If an unsupported cacheable write request is detected (functional error), the ICACHE generates an error by setting the ERRF flag in ICACHE_SR. An interrupt is generated if the corresponding interrupt enable bit is set (ERRIE = 1 in ICACHE_IER).

The other possible interrupt generation is at the end of a cache invalidation operation. When the cache-busy state is finished, the ICACHE sets the BSYENDF flag in ICACHE_SR. An interrupt is generated if the corresponding interrupt enable bit is set (BSYENDIE = 1 in ICACHE_IER).

All ICACHE interrupt sources raise the same and unique interrupt signal, icache_it, and then use the same interrupt vector.

Table 80. ICACHE interrupts

Interrupt vectorInterrupt eventEvent flagEnable control bitInterrupt clear method
ICACHEFunctional errorERRF in ICACHE_SRERRIE in ICACHE_IERSet CERRF to 1 in ICACHE_FCR
End of busy state (invalidate finished)BSYENDF in ICACHE_SRBSYENDIE in ICACHE_IERSet CBSYENDF to 1 in ICACHE_FCR

The ICACHE also propagates all AHB bus errors (such as security issues, address decoding issues) from the master1 or master2 port back to the execution port.

18.7 ICACHE registers

18.7.1 ICACHE control register (ICACHE_CR)

Address offset: 0x000

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MISSM RSTHITM RSTMISSM ENHITM EN
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAY SELCACHE INVEN
rwwrw

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

Bit 19 MISSMRST: miss monitor reset

Bit 18 HITMRST: hit monitor reset

Bit 17 MISSMEN: miss monitor enable

Bit 16 HITMEN: hit monitor enable

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

Bit 2 WAYSEL: cache associativity mode selection

This bit allows user to choose ICACHE set-associativity. It can be written by software only when cache is disabled (EN = 0).

Bit 1 CACHEINV: cache invalidation

Set by software and cleared by hardware when the BUSYF flag is set (during cache maintenance operation). Writing 0 has no effect.

Bit 0 EN: enable

18.7.2 ICACHE status register (ICACHE_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.Res.Res.ERRFBSYENDFBUSYF
rrr

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

Bit 2 ERRF: cache error flag

Bit 1 BSYENDF: busy end flag

Bit 0 BUSYF: busy flag

18.7.3 ICACHE interrupt enable register (ICACHE_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.Res.Res.ERRIEBSYEN
DIE
Res.
rwrw

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

Bit 2 ERRIE: interrupt enable on cache error

Set by software to enable an interrupt generation in case of cache functional error (cacheable write access)

0: interrupt disabled on error

1: interrupt enabled on error

Bit 1 BSYENDIE: interrupt enable on busy end

Set by software to enable an interrupt generation at the end of a cache invalidate operation.

0: interrupt disabled on busy end

1: interrupt enabled on busy end

Bit 0 Reserved, must be kept at reset value.

18.7.4 ICACHE flag clear register (ICACHE_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.Res.Res.CERRFCBSY
ENDF
Res.
ww

Bits 31: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 ICACHE_SR

Bit 1 CBSYENDF: clear busy end flag

Set by software.

0: no effect

1: clears BSYENDF flag in ICACHE_SR.

Bit 0 Reserved, must be kept at reset value.

18.7.5 ICACHE hit monitor register (ICACHE_HMONR)

Address offset: 0x010

Reset value: 0x0000 0000

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

Bits 31:0 HITMON[31:0]: cache hit monitor counter

18.7.6 ICACHE miss monitor register (ICACHE_MMONR)

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
MISSMON[15:0]
rrrrrrrrrrrrrrrr

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

Bits 15:0 MISSMON[15:0]: cache miss monitor counter

18.7.7 ICACHE region x configuration register (ICACHE_CRRx)

Address offset: 0x020 + 0x4 * x, (x = 0 to 3)

Reset value: 0x0000 0200

Define an alias address in the code region for other regions, making them cacheable.

BASEDADDR and REMAPADDR fields are write locked (read only) when EN = 1 in ICACHE_CR.

31302928272625242322212019181716
HBURSTRes.Res.MSTSELRes.REMAPADDR[31:21]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
RENRes.Res.Res.RSIZE[2:0]Res.BASEADDR[28:21]
rwrwrwrwrwrwrwrwrwrwrwrw

18.7.8 ICACHE hardware configuration register (ICACHE_HWCFGR)

Address offset: 0x3F0

Reset value: 0x00A4 1641

31302928272625242322212019181716
ECCRes.Res.Res.GSWIDTH[1:0]Res.SMASTER[1:0]FMASTER[1:0]Res.Res.REGION[2:0]
rrrrrrrrrr
1514131211109876543210
RANGE[3:0]Res.LWIDTH[1:0]Res.Res.SIZE[2:0]Res.Res.WAYS[1:0]
rrrrrrrrrrr
ST logo
ST logo

Bits 6:4 SIZE[2:0]: cache size

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

Bits 1:0 WAYS[1:0]: cache associativity, number of ways

18.7.9 ICACHE version register (ICACHE_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0012

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 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: ICACHE major revision

Bits 3:0 MINREV[3:0]: ICACHE minor revision

18.7.10 ICACHE identification register (ICACHE_IPIDR)

Address offset: 0x3F8

Reset value: 0x0010 0081

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

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

ST logo
ST logo

18.7.11 ICACHE size identification register (ICACHE_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

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

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

18.7.12 ICACHE register map

Table 81. ICACHE register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000ICACHE_CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MISSMRSTHITMRSTMISSMENHITMENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WAYSELCACHEINVEN
Reset value0000100
0x004ICACHE_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.Res.Res.ERRFBSYENDFBUSYF
Reset value001
0x008ICACHE_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.Res.Res.ERRIEBSYENDIERes.
Reset value00
0x00CICACHE_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.Res.Res.CERRFCBSYENDFRes.
Reset value00
0x010ICACHE_HMONRHITMON[31:0]
Reset value00000000000000000000000000000000
0x014ICACHE_MMONRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MISSMON[15:0]
Reset value0000000000000000
0x018-
0x01C
ReservedReserved
0x020ICACHE_CRR0HBURSTRes.Res.MSTSELRes.Res.REMAPADDR[31:21]RENRes.Res.Res.Res.RSIZE
[2:0]
Res.Res.BASEADDR[28:21]
Reset value0000000000000001000000
0x024ICACHE_CRR1HBURSTRes.Res.MSTSELRes.Res.REMAPADDR[31:21]RENRes.Res.Res.Res.RSIZE
[2:0]
Res.Res.BASEADDR[28:21]
Reset value0000000000000001000000
0x028ICACHE_CRR2HBURSTRes.Res.MSTSELRes.Res.REMAPADDR[31:21]RENRes.Res.Res.Res.RSIZE
[2:0]
Res.Res.BASEADDR[28:21]
Reset value0000000000000001000000
0x02CICACHE_CRR3HBURSTRes.Res.MSTSELRes.Res.REMAPADDR[31:21]RENRes.Res.Res.Res.RSIZE
[2:0]
Res.Res.BASEADDR[28:21]
Reset value0000000000000001000000
0x030-
0x3EC
ReservedReserved
0x3F0ICACHE_HWCFGRECCRes.Res.GSWIDTH
[1:0]
Res.Res.SMASTER
[1:0]
FMASTER
[1:0]
Res.Res.REGION
[2:0]
RANGE[3:0]Res.LWIDTH
[1:0]
Res.Res.SIZE[2:0]Res.Res.WAYS
[1:0]
Reset value0x00A4 1641
0x3F4ICACHE_VERRRes.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 0012
0x3F8ICACHE_IPIDRID[31:0]
Reset value0x0010 0081
ST logo
ST logo

Table 81. ICACHE register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x3FCICACHE_SIDRSID[31:0]
Reset value0xA3C5 DD01

Refer to Section 2.4 for the register boundary addresses.