Motorola DSP56305 Manuel d'utilisateur Page 67

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 112
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 66
5-6 Optimizing DSP56300/DSP56600 Applications MOTOROLA
Instruction Cache and Memory Features
The Instruction Cache
Notes:
1. Disabling the cache controller and enabling it again
implicitly flushes the cache. Data stored in the cache prior to
its activation cannot be accessed as “hits”. A program section
cannot be copied into the cacheable array for use as cached
instructions.
2. The user should refrain from using old data from the
cacheable array after the cache is disabled.
5.1.3 Cache Burst Mode
A cache miss usually results in a single external memory read. The
fetched word is passed to execution and also written into the cache.
When the Burst mode is enabled (BE bit in the OMR is set), a cache
miss may initiate up to four consecutive external memory reads.
The instructions that are fetched are stored into the cache in their
appropriate locations. Only the instruction that caused the miss is
executed. The program continues to execute and normally fetches
the next instruction. This instruction may now be in the cache (as a
result of the previous burst), and therefore it will be a cache hit.
The instructions that were fetched during the burst cause the
regular wait states as defined for that type of access. The Burst
mode is intended for working with DRAM external memory, where
an out-of-page access causes more wait states than an in-page
access. In an application that uses the same DRAM for both data
and program memory, the program's serial flow of fetches will be
interleaved with data accesses. Usually the program fetch after a
data access will be out-of-page, even if it is in the same page as the
previous instruction. When using the Burst mode, instructions
fetched during a burst will all be in the same page, and so the total
program stall will be lower.
The number of program words that are brought in a burst depends
only on the value of the last two bits of the address that caused the
cache miss. If the value of those bits is “00”, then four consecutive
words will be fetched, with the last bits of the addresses being “11”,
“10”, “01” and “00” (the instruction that caused the miss). For a miss
on an address with “01” LS bits, three words will be fetched (“11”,
“10”, “01”). For “10” only two words will be fetched (“11” and
“10”), and for an address with “11” LS bits, only the word that
caused the miss will be fetched. This mechanism is basically not
Vue de la page 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 111 112

Commentaires sur ces manuels

Pas de commentaire