Nios® V Processor Software Developer Handbook

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

9.2.1.2.4. Exception Dispatcher

The exceptions dispatcher checks for a registered hardware exception handler.
  • If a hardware exception handler is registered, the exception dispatcher calls it, then restores context and returns.
  • If no hardware exception handler is registered,
    • If processor debug module is enabled, the processor enters Debug Mode using the ebreak instruction. Allowing the debugger to take control.
    • If there is no debug module, the processor enters an infinite loop.
Figure 19. Exception Dispatcher

For more information on registering a hardware exception handler, refer to the Hardware Exception Handler chapter.

For more information about the RISCV-based processor EBREAK instruction, refer to the The RISC-V Instruction Set Manual in RISC-V International website.