Table 65.
Cache Physical Byte Address Fields
Bit Fields
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
tag
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
offset
5.2.3.2.1. Instruction Cache
The instruction cache memory has the following characteristics:
•
Direct-mapped cache implementation.
•
32 bytes (8 words) per cache line.
•
The instruction master port reads an entire cache line at a time from memory, and
issues one read per clock cycle.
•
Critical word first.
•
Virtually-indexed, physically-tagged, when MMU present.
The size of the tag field depends on the size of the cache memory and the physical
address size. The size of the line field depends only on the size of the cache memory.
The offset field is always five bits (i.e., a 32-byte line). The maximum instruction byte
address size is 31 bits in systems without an MMU present. In systems with an MMU,
the maximum instruction byte address size is 32 bits and the tag field always includes
all the bits of the physical frame number (PFN).
The instruction cache is optional. However, excluding instruction cache from the
Nios II/f core requires that the core include at least one tightly-coupled instruction
memory.
5.2.3.2.2. Data Cache
•
Direct-mapped cache implementation
•
Line size of 32-bytes
•
The data master port reads an entire cache line at a time from memory, and
issues one read per clock cycle.
•
Write-back
•
Write-allocate (i.e., on a store instruction, a cache miss allocates the line for that
address)
•
Virtually-indexed, physically-tagged, when MMU present
The size of the tag field depends on the size of the cache memory and the physical
address size. The size of the line field depends only on the size of the cache memory.
The size of the offset field depends on the line size. Line sizes of 32 bytes have offset
widths of 5-bits. The maximum data byte address size is 31 bits in systems without an
MMU present. In systems with an MMU, the maximum data byte address size is 32
bits and the tag field always includes all the bits of the PFN.
The data cache is optional. If the data cache is excluded from the core, the data
master port can also be excluded.
5. Nios II Core Implementation Details
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
126