GD32W51x User Manual
119
4.
Instruction cache (ICACHE)
4.1.
Introduction
The instruction cache (ICACHE) is based on C-AHB code bus of Cortex-M33 processor.
It is necessary to improve performance in fetching instruction and data from both internal
and external memories.
4.2.
Characteristics
•
Support 32KB cache with 2 ways, 1024 cache lines per way and 16B per cache line
•
Support fetch address without any wait state if cache hit
•
ICACHE interface support two 32-bit slave ports and two 32-bit master ports. One slave
port is execution port, the other one is for registers access. Master 0 port outputs to fast
bus, while master 1 port outputs to slow bus.
•
Cache access support hit-under-miss and paired master access feature
•
Support memory address remap
•
Support pLRU replacement policy and critical-word-first refill policy.
•
Support remap region AHB transaction burst type configuration.
•
Support two performance counters: 32-bit hit monitor counter and16-bit miss monitor
counter.
•
Operation management: Cache invalidate and optional interrupt handle.
•
Support TrustZone security and configure registers to be protected at system level.
4.3.
Function overview
The purpose of ICACHE is to cache fetched instruction and data, only for read transaction,
not for write transaction. Considering error management, in case of detecting an
unexpected cacheable write access, set an error flag and trigger optionally an interrupt.