Altera Nios II User Manual page 135

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

Chapter 5: Nios II Core Implementation Details
Nios II/f Core
Bursting
When the data cache is enabled, you can enable bursting on the data master port.
Consult the documentation for memory devices connected to the data master port to
determine whether bursting can improve performance.
Tightly-Coupled Memory
The Nios II/f core provides optional tightly-coupled memory interfaces for both
instructions and data. A Nios II/f core can use up to four each of instruction and data
tightly-coupled memories. When a tightly-coupled memory interface is enabled, the
Nios II core includes an additional memory interface master port. Each
tightly-coupled memory interface must connect directly to exactly one memory slave
port.
When tightly-coupled memory is present, the Nios II core decodes addresses
internally to determine if requested instructions or data reside in tightly-coupled
memory. If the address resides in tightly-coupled memory, the Nios II core fetches the
instruction or data through the tightly-coupled memory interface. Software accesses
tightly-coupled memory with the usual load and store instructions, such as ldw or
ldwio.
Accessing tightly-coupled memory bypasses cache memory. The processor core
functions as if cache were not present for the address span of the tightly-coupled
memory. Instructions for managing cache, such as initd and flushd, do not affect the
tightly-coupled memory, even if the instruction specifies an address in
tightly-coupled memory.
When the MMU is present, tightly-coupled memories are always mapped into the
kernel partition and can only be accessed in supervisor mode.
Memory Management Unit
The Nios II/f core provides options to improve the performance of the Nios II MMU.
f
For information about the MMU architecture, refer to the
of the Nios II Processor Reference Handbook.
Micro Translation Lookaside Buffers
The translation lookaside buffer (TLB) consists of one main TLB stored in on-chip
RAM and two separate micro TLBs (μTLB) for instructions (μITLB) and data (μDTLB)
stored in LE-based registers.
The μTLBs have a configurable number of entries and are fully associative. The
default configuration has 6 μDTLB entries and 4 μITLB entries. The hardware chooses
the least-recently used μTLB entry when loading a new entry.
The μTLBs are not visible to software. They act as an inclusive cache of the main TLB.
The processor firsts look for a hit in the μTLB. If it misses, it then looks for a hit in the
main TLB. If the main TLB misses, the processor takes an exception. If the main TLB
hits, the TLB entry is copied into the μTLB for future accesses.
The hardware automatically flushes the μTLB on each TLB write operation and on a
wrctl to the tlbmisc register in case the process identifier (PID) has changed.
February 2014 Altera Corporation
Programming Model
chapter
Nios II Processor Reference Handbook
5–9

Advertisement

Table of Contents
loading

Table of Contents