Specifications
Supervisor Mode..............................................................................................................................3-1
User Mode.........................................................................................................................................3-2
Memory Management Unit........................................................................................................................3-2
Recommended Usage......................................................................................................................3-2
Memory Management.....................................................................................................................3-3
Address Space and Memory Partitions.........................................................................................3-4
TLB Organization............................................................................................................................ 3-5
TLB Lookups.....................................................................................................................................3-7
Memory Protection Unit............................................................................................................................ 3-7
Memory Regions..............................................................................................................................3-8
Overlapping Regions....................................................................................................................... 3-9
Enabling the MPU........................................................................................................................... 3-9
Registers.........................................................................................................................................................3-9
General-Purpose Registers............................................................................................................3-10
Control Registers............................................................................................................................3-11
Shadow Register Sets..................................................................................................................... 3-29
Working with the MPU............................................................................................................................ 3-32
MPU Region Read and Write Operations..................................................................................3-32
MPU Initialization.........................................................................................................................3-33
Debugger Access............................................................................................................................ 3-33
Working with ECC....................................................................................................................................3-34
Enabling ECC.................................................................................................................................3-34
Handling ECC Errors....................................................................................................................3-34
Injecting ECC Errors.....................................................................................................................3-34
Exception Processing.................................................................................................................................3-36
Terminology................................................................................................................................... 3-36
Exception Overview.......................................................................................................................3-36
Exception Latency..........................................................................................................................3-39
Reset Exceptions.............................................................................................................................3-39
Break Exceptions............................................................................................................................3-40
Interrupt Exceptions......................................................................................................................3-41
Instruction-Related Exceptions................................................................................................... 3-44
Other Exceptions............................................................................................................................3-49
Exception Processing Flow...........................................................................................................3-49
Determining the Cause of Interrupt and Instruction-Related Exceptions............................3-53
Handling Nested Exceptions........................................................................................................3-54
Handling Nonmaskable Interrupts............................................................................................. 3-56
Masking and Disabling Exceptions.............................................................................................3-56
Memory and Peripheral Access............................................................................................................... 3-58
Cache Memory...............................................................................................................................3-58
Instruction Set Categories.........................................................................................................................3-60
Data Transfer Instructions........................................................................................................... 3-60
Arithmetic and Logical Instructions...........................................................................................3-61
Move Instructions..........................................................................................................................3-61
Comparison Instructions..............................................................................................................3-62
Shift and Rotate Instructions........................................................................................................3-62
Program Control Instructions......................................................................................................3-63
Other Control Instructions...........................................................................................................3-64
Custom Instructions......................................................................................................................3-65
TOC-3
Altera Corporation