Section 8 Cache
Rev. 2.00 Mar 09, 2006 page 371 of 906
REJ09B0292-0200
—
011
Entry
address
—
31
28
29
9
10
3
4
0
19
6
3
4
Tag address
—
Data
LRU
information
—
— V
31
9
10
3
4
2
0
19
6
3
1 1 2
—
LRU
information
—
31
9
10
3
4
0
22
6
4
Data
Tag address
011
Entry
address
—
— V
31
28
29
9
10
19
6
3
1 1 2
Address array read:
Address array write:
V: Valid bit
1
3
4
2
0
1
28
29
Address
Bit
Number of bits
Bit
Number of bits
Address
Bit
Number of bits
Bit
Number of bits
Figure 8.13 Address Array Access
8.5
Cache Use
8.5.1
Initialization
Cache memory is not initialized in a reset. Therefore, the cache must be initialized by software
before use. The cache is initialized by zeroizing all address array valid bits and LRU information.
The address array write function can be used to initialize each line, but it is simpler to initialize it
once by writing 1 to the CP bit in CCR. Figure 8.14 shows how to initialize the cache.
MOV.W #H'FE92, R1
MOV.B @R1, R0 ;
AND #H'FE, R0 ;
MOV.B #R0, @R1 ;
Cache disable
OR #H'10, R0
MOV.B R0, @R1 ;
Cache purge
OR #H'01, R0
MOV.B R0, R1 ;
Cache enable
Figure 8.14 Cache Initialization
Содержание 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 ...