Nios II Classic Processor Reference Guide

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

3.7.10.1. With Extra Exception Information

When you have included the extra exception information in your Nios II system, the CAUSE field of the exception register contains a code for the highest-priority exception occurring at the time and the BADDR field of the badaddr register contains the byte instruction address or data address for certain exceptions.

Refer to the Nios II Exceptions table for more information in the Exception Overview section.

Note: External interrupts do not set exception.CAUSE.

To determine the cause of an exception, simply read the cause of the exception from exception.CAUSE and then transfer control to the appropriate exception routine.

Note: Extra exception information is always enabled in Nios II systems containing an MMU or MPU.