Instruction Cache - Motorola MC68030 User Manual

Enhanced 32-811 microprocessor
Hide thumbs Also See for MC68030:
Table of Contents

Advertisement

An external access is defined as " cac hable" for either the instruction or data
cache when all the following conditions apply:
• The cache is enabled with the appropriate bit in the CACR set.
• The CDIS signal is negated.
• The CIIN signal is negated for the access.
• The ClOUT signal is negated for the access.
• The MMU validates the access.
Because both the data and instruction caches are referenced by logical ad-
dresses, they should be flushed during a task switch or at any time the logical-
to-physical address mapping changes, including when the MMU is first en-
abled. In addition, if a page descriptor is currently marked as valid and is
later changed to the invalid type (due to a context switch or a page replace-
ment operation) entries in the on-chip instruction or data cache correspond-
ing to the physical page must be first cleared (invalidated). Otherwise, if on-
chip cache entries are valid for pages with descriptors in memory marked
invalid, processor operation is unpredictable.
Data read and write accesses to the same address should also have consistent
cachability status to ensure that the data in the cache remains consistent
with external memory. For example, if ClOUT is negated for read accesses
within a page and the MMU configuration is changed so that ClOUT is sub-
sequently asserted for write accesses within the same page, those write
accesses do not update data in the cache, and stale data may result. Similarly,
when the MMU maps multiple logical addresses to the same physical ad-
dress, all accesses to those logical addresses should have the same cacha-
bility status.
6.1.1 Instruction Cache
6-4
The instruction cache is organized with a line size of four long words, as
shown in Figure
6~2.
Each of these long words is considered a separate cache
entry as each has a separate valid bit. All four entries in a line have the same
tag address. Burst filling all four long words can be advantageous when the
time spent in filling the line is not long relative to the equivalent bus-cycle
time for four nonburst long-word accesses, because of the probability that
the contents of memory adjacent to or close to a referenced operand or
instruction is also required by subsequent accesses. Dynamic RAMs sup-
porting fast access modes (page, nibble, or static column) are easily em-
ployed to support the MC68030 burst mode.
MC68030 USER'S MANUAL
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents