Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

3.4.2.14. The mpuacc Register

The mpuacc register works in conjunction with the mpubase register to set and retrieve MPU region information and is only available in systems with an MPU. The mpuacc register consists of attributes that can be set or have been retrieved which define the MPU region. The mpuacc register only holds a portion of the attributes that define an MPU region. The remaining portion of the MPU region definition is held by the BASE field of the mpubase register.

A Platform Designer generation-time option controls whether the mpuacc register contains a MASK or LIMIT field.

Table 31.  mpuacc Control Register Fields for MASK Variation
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
MASK7
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MASK7   C PERM RD WR
Table 32.  mpuacc Control Register Fields for LIMIT Variation
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
LIMIT7
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
LIMIT7   C PERM RD WR
Table 33.  mpuacc Control Register Field Descriptions
Field Description Access Reset Available
MASK MASK specifies the size of the region. Read/Write 0 Only with MPU
LIMIT LIMIT specifies the upper address limit of the region. Read/Write 0 Only with MPU
C C is the data cacheable flag. C only applies to MPU data regions and determines the default cacheability of a data region. When C = 0, the data region is uncacheable. When C = 1, the data region is cacheable. Read/Write 0 Only with MPU
PERM PERM specifies the access permissions for the region. Read/Write 0 Only with MPU
RD RD is the read region flag. When RD = 1, wrctl instructions to the mpuacc register perform a read operation. Write 0 Only with MPU
WR WR is the write region flag. When WR = 1, wrctl instructions to the mpuacc register perform a write operation. Write 0 Only with MPU

The MASK and LIMIT fields are mutually exclusive. Refer to Table 31 and Table 32.

7 This field size is variable. Unused upper bits and unused lower bits must be written as zero.