Nios® V Processor Software Developer Handbook

ID 743810
Date 10/06/2025
Public
Document Table of Contents

9.1. Nios® V Processor Trap Handling Overview

The Nios® V processor provides the following trap types:
  • Platform interrupts
  • Software interrupts
  • Timer interrupts
  • Hardware exceptions

The Nios® V processor offers the CLINT or CLIC architecture to handle traps, and shadow registers to optimize interrupt response time. The interrupt controllers are discussed in detail in the Hardware Interrupt Controllers chapter, while shadow register is in the Shadow Register chapter.

Altera recommends the following design considerations:
  1. Select a suitable processor variants.
    Table 38.  Trap Handling Micro-architecture across Processor
    Processor Variant Trap Handling Micro-architecture
    Interrupt Mode Shadow Register
    Nios® V/c None None
    Nios® V/m—Non-pipelined CLINT-Direct only None
    Nios® V/m—Pipelined
    • CLINT-Direct
    • CLINT-Vectored
    None
    Nios® V/g
    • CLINT-Direct
    • CLINT-Vectored
    • CLIC
    Optional
  2. If you are applying Altera-supported OS in BSP Editor, take note on the firmware enablement with respect to specific trap handling feature combinations.
    Table 39.   Altera-supported Firmaware Enablement
    Interrupt Mode Shadow Register
    Without With
    CLINT-Direct
    • Altera HAL
    • MicroC/OS-II
    • FreeRTOS
    • Altera HAL
    • FreeRTOS
    CLINT-Vectored Altera HAL None
    CLIC Altera HAL Altera HAL