Datasheet

Table Of Contents
Bits Name Description Type Reset
0 EN When 1, enable the cache. When the cache is disabled, all
XIP accesses
will go straight to the flash, without querying the cache.
When enabled,
cacheable XIP accesses will query the cache, and the flash
will
not be accessed if the tag matches and the valid bit is set.
If the cache is enabled, cache-as-SRAM accesses have no
effect on the
cache data RAM, and will produce a bus error response.
RW 0x1
FLUSH Register
Description
Cache Flush control
Table 151. FLUSH
Register
Bits Name Description Type Reset
31:1 Reserved. - - -
0 NONAME Write 1 to flush the cache. This clears the tag memory, but
the data memory retains its contents. (This means cache-
as-SRAM
contents is not affected by flush or reset.)
Reading will hold the bus (stall the processor) until the
flush
completes. Alternatively STAT can be polled until
completion.
SC 0x0
STAT Register
Description
Cache Status
Table 152. STAT
Register
Bits Name Description Type Reset
31:3 Reserved. - - -
2 FIFO_FULL When 1, indicates the XIP streaming FIFO is completely full.
The streaming FIFO is 2 entries deep, so the full and empty
flag allow its level to be ascertained.
RO 0x0
1 FIFO_EMPTY When 1, indicates the XIP streaming FIFO is completely
empty.
RO 0x1
0 FLUSH_READY Reads as 0 while a cache flush is in progress, and 1
otherwise.
The cache is flushed whenever the XIP block is reset, and
also
when requested via the FLUSH register.
RO 0x0
CTR_HIT Register
Description
Cache Hit counter
RP2040 Datasheet
2.5. Memory 111