Specifications

Exception Handling
8
2015.05.14
NII5V2
Subscribe
Send Feedback
This chapter discusses how to write programs to handle exceptions in the Nios
®
II processor architecture.
Emphasis is placed on how to process hardware interrupt requests by registering a user-defined interrupt
service routine (ISR) with the hardware abstraction layer (HAL). This information applies to embedded
software projects created with the Nios II Software Build Tools (SBT), either in Eclipse or on the
command line.
For more information and low-level details about handling exceptions and hardware interrupts on the
Nios II architecture, refer to the "Programming Model" chapter.
Related Information
Programming Model
Nios II Exception Handling Overview
The Nios II processor provides the following exception types:
Hardware interrupts
Software exceptions, which fall into the following categories:
Unimplemented instructions
Software traps
Miscellaneous exceptions
The Nios II processor offers two distinct approaches to handling hardware interrupts:
The internal interrupt controller (IIC)
The external interrupt controller (EIC) interface
The interrupt controllers are discussed in detail in the “Interrupt Controllers” chapter.
Related Information
Interrupt Controllers on page 8-3
Exception Handling Terminology
The following list of HAL terms outlines basic exception handling concepts:
©
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
ISO
9001:2008
Registered
www.altera.com
101 Innovation Drive, San Jose, CA 95134