Intel SA-1110 Food Processor User Manual


 
SA-1110 Developers Manual 49
Caches, Write Buffer, and Read Buffer
Note: The Dcaches operate with virtual addresses, so care must be taken to ensure that their contents
remain consistent with the virtual-to-physical mappings performed by the memory-management
unit. If the memory mappings are changed, the validity of the Dcaches must be ensured.
5.2.1 Cacheable Bit C
The cacheable bit determines whether, on load misses, the data being read should be placed in one
of the two data caches. Cache hits are not affected by the cacheable bit; if a data access hits in the
cache, the data is assumed to be valid and the load or store is performed. Typically, main memory is
marked as cacheable to improve system performance and I/O space as noncacheable to stop the
data from being stored in SA-1110's cache. For example, if the processor is polling a hardware flag
in I/O space, it is important that the processor is forced to read data from the external peripheral,
and not a copy of initial data held in the cache.
5.2.1.1 Cacheable Reads C=1
A linefetch of 8 words will be performed and it will be placed in a cache bank with a round-robin
replacement algorithm.
5.2.1.2 Noncacheable Reads C=0
An external memory access will be performed and the cache will not be written.
5.2.2 Bufferable Bit B
The bufferable bit does not affect writes that hit the Dcaches. If a store hits in the Dcaches, the store
is assumed to be bufferable. Write-backs of dirty lines are treated as bufferable writes. See the
Section 5.3, “Write Buffer (WB)” on page 5-51 for more information on the B bit.
Table 5-1 summarizes the effects of the B and C bits on the Dcaches.
Table 5-1. Effects of the Cacheable and Bufferable Bits on the Data Caches
Load Store
BC
Cache Hit Cache Miss Cache Hit Cache Miss
0 0 Deliver cache data. Load from memory.
No allocate.
Store to either cache.
Mark line dirty.
Store to memory.
No allocate.
0 1 Deliver cache data. Allocate to minicache. Store to either cache.
Mark line dirty.
Store to memory.
No allocate.
1 0 Deliver cache data. Load from memory.
No allocate.
Store to either cache.
Mark line dirty.
Store to memory.
No allocate.
1 1 Deliver cache data. Allocate to main data cache. Store to either cache.
Mark line dirty.
Store to memory.
No allocate.