Xilinx EDK 8.2i manual Overview, General Instruction Cache Functionality, Bram

Models: EDK 8.2i

1 148
Download 148 pages 28.91 Kb
Page 37
Image 37

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 (1-way associative)

User selectable cacheable memory address range

Configurable cache and tag size

Caching over CacheLink (XCL) interface

Option to use 4 or 8 word cache-line

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 non-cacheable segment. The cacheable segment is determined by two parameters: C_ICACHE_BASEADDR and C_ICACHE_HIGHADDR. All addresses within this range correspond to the cacheable address segment. All other addresses are non-cacheable.

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

1-800-255-7778

 

Page 37
Image 37
Xilinx EDK 8.2i manual Overview, General Instruction Cache Functionality, Bram