Renesas R5S72622 Doll User Manual


  Open as PDF
of 2152
 
Section 8 Cache
Page 220 of 2108 R01UH0134EJ0400 Rev. 4.00
Sep 24, 2014
SH7262 Group, SH7264 Group
8.3.2 Read Access
(1) Read Hit
In a read access, data is transferred from the cache to the CPU. LRU is updated so that the hit way
is the latest.
(2) Read Miss
An internal bus cycle starts and the entry is updated. The way replaced follows table 8.4. Entries
are updated in 16-byte units. When the desired data that caused the miss is loaded from the
external memory or the large-capacity on-chip RAM to the cache, the data is transferred to the
CPU in parallel with being loaded to the cache. When it is loaded in the cache, the V bit is set to 1,
and LRU is updated so that the replaced way becomes the latest. In operand cache, the U bit is
additionally cleared to 0. When the U bit of the entry to be replaced by updating the entry in write-
back mode is 1, the cache update cycle starts after the entry is transferred to the write-back buffer.
After the cache completes its update cycle, the write-back buffer writes the entry back to the
memory. The write-back unit is 16 bytes. Cache update operation and write-back operation to the
memory are performed in wrap-around mode. When the lower four bits of the address of read-
miss data are H'4, for example, cache update operation and write-back operation to the memory
are performed in the following order of the lower 4-bit value of address: H'4 H'8 H'C
H'0.
8.3.3 Prefetch Operation (Only for Operand Cache)
(1) Prefetch Hit
LRU is updated so that the hit way becomes the latest. The contents in other caches are not
modified. No data is transferred to the CPU.
(2) Prefetch Miss
No data is transferred to the CPU. The way to be replaced follows table 8.3. Other operations are
the same as those in the case of read miss.