Table 29.
config Control Register Field Descriptions
Field
Description
Access
Reset
Available
ANI
ANI
is the automatic nested interrupt mode bit. If
ANI
is set to zero,
the processor clears
status.PIE
on each interrupt, disabling fast
nested interrupts. If
ANI
is set to one, the processor keeps
status.PIE
set to one at the time of an interrupt, enabling fast
nested interrupts.
If the EIC interface and shadow register sets are not implemented in
the Nios II core,
ANI
always reads as zero, disabling fast nested
interrupts.
Read/Write
0
Only with the
EIC interface
and shadow
register sets
ECCEXE
ECCEX
is the ECC error exception enable bit. When
ECCEXE
= 1, the
Nios II processor generates ECC error exceptions.
Read/Write
0
Only with ECC
ECCEN
ECCEN
is the ECC enable bit. When
ECCEN
= 0, the Nios II processor
ignores all ECC errors. When
ECCEN
= 1, the Nios II processor
recovers all recoverable ECC errors.
Read/Write
0
Only with ECC
PE
PE
is the memory protection enable bit. When
PE
=1, the MPU is
enabled. When
PE
= 0, the MPU is disabled. In systems without an
MPU,
PE
is always zero.
Read/Write
0
Only with MPU
3.4.2.13. The mpubase Register
The
mpubase
register works in conjunction with the
mpuacc
register to set and
retrieve MPU region information and is only available in systems with an MPU.
Table 30.
mpubase Control Register Fields
Bit Fields
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
BASE
(
11
)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
BASE
(
11
)
0
INDEX
(10)
D
Table 31.
mpubase Control Register Field Descriptions
Field
Description
Access
Reset
Availabl
e
BASE
BASE
is the base memory address of the region identified by the
INDEX
and
D
fields.
Read/Write
0
Only
with
MPU
INDEX
INDEX
is the region index number.
Read/Write
0
Only
with
MPU
D
D
is the region access bit. When
D
=1,
INDEX
refers to a data region.
When
D
= 0,
INDEX
refers to an instruction region.
Read/Write
0
Only
with
MPU
(10)
This field size is variable. Unused upper bits must be written as zero.
(11)
This field size is variable. Unused upper bits and unused lower bits must be written as zero.
3. Programming Model
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
59