Section 8 Cache
Rev. 2.00 Mar 09, 2006 page 366 of 906
REJ09B0292-0200
8.4.3
Cache-Through Access
When reading or writing a cache-through area, the cache is not accessed. Instead, the cache
address value is output to the internal address bus. For read operations, the read data output to the
internal data bus is fetched and output to the cache data bus, as shown in figure 8.9. The read of
the cache-through area is only performed on the address in question. For write operations, the
write data on the cache data bus is output to the internal data bus. Writes on the cache through area
are compared to the address tag; except for the fact that nothing is written to the data array, the
operation is the same as the write shown in figure 8.5.
EX
CPU
pipeline stage
I
φ
Cache
address bus
Cache
data bus
Internal
address bus
Internal
data bus
MA
WB
EX
MA
Address A
Address A
Address B
Address A
Address A
EX: Instruction execution
MA: Memory access
WB: Write-back
Figure 8.9 Reading Cache-Through Areas
8.4.4
The TAS Instruction
The TAS instruction reads data from memory, compares it to 0, reflects the result in the T bit of
the status register (SR), and sets the most significant bit to 1. It is an instruction that writes to the
same address. Accesses to the cache area are handled in the same way as ordinary data accesses.
8.4.5
Pseudo-LRU and Cache Replacement
When a cache miss occurs during a read, the data of the missed address is read from 1 line (16
bytes) of memory and replaced. It is therefore necessary to decide which of the four ways is to be
replaced. It can generally be expected that a way that has been infrequently used recently is also
unlikely to be used next. This algorithm for replacing ways is called the least recently used
replacement algorithm, or LRU. The hardware to implement it, however, is complex. For that
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...