Nios® V Processor Software Developer Handbook

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

9.3.2.4. Configuring CLIC Interrupt Trigger Mode

The CLIC implements configurable trigger mode based on trigger type and polarity. Note that the Nios V processor CLIC does not support hardware-vectored interrupts; thus, selective hardware vectoring is not included as a supported configuration.

Call alt_clic_set_trigger_mode() to configure the interrupt trigger mode:

int alt_clic_set_trigger_mode(alt_u32 irq, alt_clic_trigger_mode_t trigger_mode)

The function has the following parameters:
  • irq is the platform interrupt number for the device, as defined in system.h
  • trigger_mode is the preferred trigger mode defined in the alt_clic_trigger_mode_t enumeration.
    • ALT_CLIC_LOGIC_1_LEVEL_TRIGGER_MODE – Default trigger mode. CLIC captures “logic 1”-level as interrupt trigger.
    • ALT_CLIC_POSITIVE_EDGE_TRIGGER_MODE – CLIC captures positive-edge as interrupt trigger.
    • ALT_CLIC_LOGIC_0_LEVEL_TRIGGER_MODE – CLIC captures “logic 0”-level as interrupt trigger.
    • ALT_CLIC_NEGATIVE_EDGE_TRIGGER_MODE – CLIC captures negative-edge as interrupt trigger