Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

Visible to Intel only — GUID: nmp1741137386824

Ixiasoft

Document Table of Contents

4.3.11.1.2.2. Read/Write clicintctl[i] and clicintattr[i]

Based on the value of miselect register (Base value of 0x1000):

  • The mireg register represents the clicintctl of four interrupts, which controls their respective CLIC level and priority.
  • The mireg2 register represents the clicintattr of four interrupts, which controls their respective CLIC polarity and trigger.
Table 125.   clicintctl and clicintattr Access using Indirect CSRs
miselect Register Bit Fields Description
0x1000 + index mireg 7:0 clicintctl of interrupt { index*4 + 0 }
15:8 clicintctl of interrupt { index*4 + 1 }
23:16 clicintctl of interrupt { index*4 + 2 }
31:24 clicintctl of interrupt { index*4 + 3 }
mireg2 7:0 clicintattr of interrupt { index*4 + 0 }
15:8 clicintattr of interrupt { index*4 + 1 }
23:16 clicintattr of interrupt { index*4 + 2 }
31:24 clicintattr of interrupt { index*4 + 3 }

To configure Interrupt 7 (Machine Timer Interrupt), index equals to 1

  • miselect equals to 0x1001.
  • mireg[31:24] holds the clicintctl of Interrupt 7.
  • mireg2[31:24] holds the clicintattr of Interrupt 7.

To configure Interrupt 40 (Platform Interrupt 25), index equals to 10

  • miselect equals to 0x100A.
  • mireg[7:0] holds the clicintctl of Interrupt 40.
  • mireg2[7:0] holds the clicintattr of Interrupt 40.