Section 8 Cache
Rev. 2.00 Mar 09, 2006 page 361 of 906
REJ09B0292-0200
8.4
Cache Operation
8.4.1
Cache Reads
This section describes cache operation when the cache is enabled and data is read from the CPU.
One of the 64 entries is selected by the entry address part of the address output from the CPU on
the cache address bus. The tag addresses of ways 0 through 3 are compared to the tag address parts
of the addresses output from the CPU. When there is a way for which the tag address matches, this
is called a cache hit (when any one of the way tag addresses and the tag address of the address
output from the CPU match). In proper use, the tag addresses of each way differ from each other,
and the tag address of only one way will match. When none of the way tag addresses match, it is
called a cache miss. Tag addresses of entries with valid bits of 0 will not match in any case.
When a cache hit occurs, data is read from the data array of the way that was matched according to
the entry address, the byte address within the line, and the access data size, and is sent to the CPU.
The address output on the cache address bus is calculated in the CPU’s instruction execution phase
and the results of the read are written during the CPU’s write-back stage. The cache address bus
and cache data bus both operate as pipelines in concert with the CPU’s pipeline structure. From
address comparison to data read requires 1 cycle; since the address and data operate as a pipeline,
consecutive reads can be performed at each cycle with no waits (figure 8.3).
EX
CPU pipeline stage
I
φ
Cache address bus
Cache data bus
MA
WB
EX
Address A
Cache tag comparison
Address B
MA
EX
Address A
Data array read
Address B
EX: Instruction execution
MA: Memory access
WB: Write-back
Figure 8.3 Read Access in Case of a Cache Hit
Summary of Contents for SH7616
Page 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Page 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Page 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Page 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Page 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Page 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Page 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Page 935: ...SH7616 Hardware Manual ...