Motorola MCF5282, MCF5281 user manual Cache Configuration as Defined by CACR31, 23

Models: MCF5282 MCF5281

1 816
Download 816 pages 28.97 Kb
Page 134
Image 134

Cache Programming Model

 

 

Table 4-4. CACR Field Descriptions (continued)

 

 

 

Bits

Name

Description

 

 

 

3–2

Reserved, should be cleared.

 

 

 

1–0

CLNF

Cache line fill. These bits control the size of the memory request the cache issues to the bus controller

 

 

for different initial instruction line access offsets. See Table 4-7for external fetch size based on miss

 

 

address and CLNF.

 

 

 

Table 4-5shows the relationship between CACR bits 31, 23, and 22 and the cache configuration.

Table 4-5. Cache Configuration as Defined by CACR[31, 23, 22]

CACR[31]

CACR[23]

CACR[22]

Configuration

Description

 

 

 

 

 

0

x

x

N/A

Cache is completely disabled

 

 

 

 

 

1

0

0

Split Instruction/

1 KByte direct-mapped instruction cache (uses lower half

 

 

 

Data Cache

of tag and storage arrays) and 1 KByte direct-mapped

 

 

 

 

write-through data cache (uses upper half of tag and storage

 

 

 

 

arrays)

 

 

 

 

 

1

0

1

Instruction Cache

2 KByte direct-mapped instruction cache (uses all of tag

 

 

 

 

and storage arrays)

 

 

 

 

 

1

1

0

Data Cache

2 KByte direct-mapped write-through data cache (uses all

 

 

 

 

of tag and storage arrays)

 

 

 

 

 

Table 4-6shows the relationship between CACR bits 23, 22, 21 and 20 and setting the cache invalidate all bit.

Table 4-6. Cache Invalidate All as Defined by CACR[23, 22, 21, 20]

CACR[23]

CACR[22]

CACR[21]

CACR[20]

Configuration

Operation

 

 

 

 

 

 

0

0

0

0

Split Instruction/

Invalidate all entries in both 1 KByte instruction

 

 

 

 

Data Cache

cache and 1 KByte data cache

 

 

 

 

 

 

0

0

0

1

Split Instruction/

Invalidate only 1 KByte data cache

 

 

 

 

Data Cache

 

 

 

 

 

 

 

0

0

1

0

Split Instruction

Invalidate only 1 KByte instruction cache

 

 

 

 

Data Cache

 

 

 

 

 

 

 

0

0

1

1

Split Instruction/

No invalidate

 

 

 

 

Data Cache

 

 

 

 

 

 

 

1

0

x

x

Instruction Cache

Invalidate 2 KByte instruction cache

 

 

 

 

 

 

0

1

x

x

Data Cache

Invalidate 2 KByte data cache

 

 

 

 

 

 

4-10

MCF5282 User’s Manual

MOTOROLA

Page 134
Image 134
Motorola MCF5282, MCF5281 Cache Configuration as Defined by CACR31, 23, Cache Invalidate All as Defined by CACR23, 22, 21