Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

Visible to Intel only — GUID: mci1741139909013

Ixiasoft

Document Table of Contents

4.3.11.1.4.3. Machine Trap-Vector Base-Address Register (mtvec)

The CLIC interrupt-handling mode is encoded as a new state in the existing mtvec WARL register, where mtvec.mode is 11, and mtvec.submode are zero. The trap vector base address is specified as the upper 26 bits of mtvec (base) with six lower zero bits appended, which constrains alignment on a 64-byte or larger power-of-two boundary.

Table 131.  CLIC mode mtvec register layout
31 6 5 2 1 0
Base (WARL) submode (Hardwired to 0) mode
Note: Altera recommends limiting the alignment of mtvec to 64-byte boundaries for processor system that implements both CLIC and CLINT mode.
Table 132.  Supported Vector Modes
mtvec.mode Modes Description
00 CLINT Direct mode

All traps set pc to mtvec[31:2].

Refer to Trap Controller (CLINT) chapter for more information.

01 CLINT Vectored mode

All exceptions set pc to mtvec[31:2].

All interrupts set pc to mtvec[31:2]+4*cause.

Refer to Trap Controller (CLINT) chapter for more information.

10 Reserved -
11 CLIC mode

All exceptions and software-vectored interrupts set pc to mtvec[31:6].

All hardware-vectored interrupts set pc to mtvec[31:6]+4*cause.