Rev. 2.00, 09/03, page 101 of 690
4.3
Operation
4.3.1
Searching the Cache
If the cache is enabled (the CE bit in CCR1 = 1), whenever instructions or data in spaces P0, P1,
P3, and U0 are accessed the cache will be searched to see if the desired instruction or data is in the
cache. Figure 4.2 illustrates the method by which the cache is searched. The cache is a physical
cache and holds physical addresses in its address section. The following will be described for the
32-kbyte mode as an example.
Entries are selected using bits 12 to 4 of the address (virtual) of the access to memory and the tag
address of that entry is read. The virtual address (bits 31 to 10) of the access to memory and the
physical address (tag address) read from the address array are compared. The address comparison
uses all four ways. When the comparison shows a match and the selected entry is valid (V = 1), a
cache hit occurs. When the comparison does not show a match or the selected entry is not valid (V
= 0), a cache miss occurs. Figure 4.2 shows a hit on way 1.
0
1
511
V U Tag address
LW0
LW1
LW2
LW3
Ways 0 to 3
Ways 0 to 3
31
13 12
4 3 2 1 0
Virtual address
CMP0 CMP1 CMP2 CMP3
Physical address
CMP0: Comparison circuit 0
CMP1: Comparison circuit 1
CMP2: Comparison circuit 2
CMP3: Comparison circuit 3
Hit signal 1
Entry selection
Longword (LW) selection
MMU
Figure 4.2 Cache Search Scheme
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...