English
Language : 

HD6417727BP160CV Datasheet, PDF (216/1098 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family/ SH7700 Series
Section 5 Cache
In the address field, specify the entry address selecting the entry (bits 11 to 4), W for selecting the
way (bits 12 and 11: in normal mode (8-kbyte cache), 00 is way 0, 01 is way 1, 10 is way 2, and
11 is way 3), and H'F0 to indicate address array access (bits 31 to 24).
When writing, specify bit 3 as the A bit. The A bit indicates whether addresses are compared
during writing. When the A bit is 1, the addresses of four entries selected by the entry addresses
are compared to the addresses to be written into the address array specified in the data field.
Writing takes place to the way that has a hit. When a miss occurs, nothing is written to the address
array and no operation occurs. The way number (W) specified in bits 12 and 11 is not used. When
the A bit is 0, it is written to the entry selected with the entry address and way number without
comparing addresses. The address specified by bits 31 to 10 in the data specification in figure 5.6
(1), address array access, is a logical address. When the MMU is enabled, the address is translated
into a physical address, then the physical address is used in comparing addresses when the A bit is
1. The physical address is written into the address array.
When reading, the address tag, V bit, U bit, and LRU bits of the entry specified by the entry
address and way number (W) are read using the data format shown in figure 5.6 without
comparing addresses. To invalidate a specific entry, specify the entry by its entry address and way
number, and write 0 to its V bit. To invalidate only an entry for an address to be invalidated,
specify 1 for the A bit.
When an entry for which 0 is written to the V bit has a U bit set to 1, it will be written back. This
allows coherency to be achieved between the external memory and cache by invalidating the
entry. However, when 0 is written to the V bit, 0 must also be written to the U bit of that entry.
In the SH7727, the upper 3 bits of the 32-bit physical address are treated as a shadow field (see
section 12, Bus State Controller (BSC)). Therefore, when a cache miss occurs, 0 is stored in the
upper 3 bits of the address array address tag.
When using an MOV instruction to modify the address array directly, a nonzero value must not be
written to the upper 3 bits of the address tag.
5.4.2 Data Array
The data array is mapped onto H'F1000000 to H'F1FFFFFF. To access a data array, the 32-bit
address field (for read/write accesses) and 32-bit data field (for write accesses) must be specified.
The address field specifies information for selecting the entry to be accessed; the data field
specifies the longword data to be written to the data array ((2) in figure 5.6).
Rev.6.00 Mar. 27, 2009 Page 158 of 1036
REJ09B0254-0600