Instruction Cache
R
PC ← 0x00000008
Instruction Cache
Overview
MicroBlaze may be used with an optional instruction cache for improved performance when executing code that resides outside the LMB address range.
The instruction cache has the following features:
•Direct mapped
•User selectable cacheable memory address range
•Configurable cache and tag size
•Caching over CacheLink (XCL) interface
•Option to use 4 or 8 word
•Cache on and off controlled using a bit in the MSR
•Optional WIC instruction to invalidate instruction cache lines
General Instruction Cache Functionality
When the instruction cache is used, the memory address space in split into two segments: a cacheable segment and a
Instruction Address Bits
0
Tag Address | Cache Address |
30 31
- -
Line Addr | Tag | Tag | Cache_Hit |
= | |||
| BRAM | Valid (word and line) | |
|
| ||
Word Addr | Instruction |
| Cache_instruction_data |
BRAM |
| ||
|
|
|
Figure 1-9: Instruction Cache Organization
The cacheable instruction address consists of two parts: the cache address, and the tag address. The MicroBlaze instruction cache can be configured from 2kB to 64 kB. This corresponds to a cache address of between 11 and 16 bits. The tag address together with the cache address should match the full address of cacheable memory.
MicroBlaze Processor Reference Guide | www.xilinx.com | 37 |
UG081 (v6.0) June 1, 2006 |
|