
Introduction
13
Instruction Cache
SPRU630C
1.2.1
How the I-Cache Uses the Fetch Address
Figure 3 and Table 1 describe how the I-Cache uses the fetch address for the
2-way cache.
Figure 3.
Fetch Address Fields for the 2-Way Cache
23
13 12
4
3
2
1
0
Tag
Index (set)
Offset
Byte
11 bits
9 bits
2 bits
2 bits
Table 1.
Fetch Address Field Descriptions for the 2-Way Cache
Bit
Field
Description
23
−
13
Tag
Whenever a line of the 2-way cache is loaded from external memory, the tag
portion of the fetch address is stored with the line (in the tag array). During an
instruction presence check, the I-Cache uses the Index field to find the
addressed set and then compares both tags in the set with the tag portion of the
fetch address.
12
−
4
Index
This 9-bit value references one of the 512 sets of the 2-way cache. As shown in
Figure 2 (page 12), each set has two lines.
3
−
2
Offset
When the I-Cache must read a 32-bit word from one of the lines of the 2-way
cache, the offset field indicates which of the four 32-bit words in the line should
be read.
1
−
0
Byte
This field is not used by the I-Cache but is the part of the fetch address that
indicates the specific byte being addressed.
1.2.2
Instruction Presence Check and the Corresponding I-Cache Response
As mentioned earlier, when a fetch request arrives, the I-Cache performs an
instruction presence check to determine whether the 32-bit requested word is
available in the I-Cache. During the instruction presence check, the I-Cache
performs these two operations on the 2-way cache:
1) Compares the tag portion of the fetch address with the tag in the data array
at the location referenced by the Index portion of the fetch address.
2) Checks the line valid bit at the referenced location, to determine whether
the line associated with the tag is valid.
If the tag comparison fails and/or the line valid bit is 0, this qualifies as a
miss
.
If the instruction presence check finds a tag match and the line valid bit is 1,
this qualifies as a
hit
. Table 2 summarizes the possible presence check and
the corresponding I-Cache responses. Whenever a line in the I-Cache must
be loaded from external memory the I-Cache uses the line load process
described in section 1.2.3.
Содержание TMS320VC5501
Страница 1: ...TMS320VC5501 5502 DSP Instruction Cache Reference Guide SPRU630C June 2004 ...
Страница 6: ...6 Instruction Cache SPRU630C This page is intentionally left blank ...
Страница 26: ...Instruction Cache 26 SPRU630C This page is intentionally left blank ...
Страница 28: ...Instruction Cache 28 SPRU630C This page is intentionally left blank ...