Texas Instruments TMS320C6000 Reference Manual page 56

Chip support library api
Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

CACHE
Return Value
Description
Example
4-8
Returns old cache mode; will be one of the following:
OldMode
CACHE_0KSRAM
CACHE_16KSRAM
CACHE_32KSRAM
CACHE_48KSRAM
CACHE_64KSRAM
CACHE_0KCACHE
CACHE_16KCACHE
CACHE_32KCACHE
CACHE_48KCACHE
CACHE_64KCACHE
Sets the mode of the L2 cache. There are three conditions that may
occur as a result of changing cache modes:
1. A decrease in cache size
2. An increase in cache size
3. No change in cache size
If the cache size decreases, all of L2 is flushed; then the mode is
changed. If the cache size increases, the part of SRAM that is about to
be turned into cache is flushed out of L1; then the mode is changed.
Nothing happens when there is no change.
Increasing cache size means that some of the SRAM is lost. If you have
data in SRAM that you do not want lost, you must preserve it yourself
before changing cache modes.
Some of the cache modes are identical. For example, on the '6211
there are 64K-bytes of L2; hence, CACHE_16KSRAM is equivalent to
CACHE_48KCACHE. However, if the L2 size changes on a future device,
this will not be the case.
Note: This function does nothing on devices without L2 cache.
CACHE_L2MODE OldMode;
OldMode = CACHE_SetL2Mode(CACHE_32KCACHE);

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Table of Contents