Zen Peripherals · Interrupt Architecture · brief · 2026-11-04

The standard RISC-V interrupt and timer complex, dropped into your SoC

The Zen Interrupt Controller is the platform interrupt stack a RISC-V hart expects, delivered as two independent, composable sub-blocks: a PLIC that prioritizes and routes external device interrupts to one or more harts, and a CLINT that supplies the machine timer and per-hart software interrupts (IPIs). Standard memory maps keep existing PLIC/CLINT-aware firmware, bootloaders, and kernels broadly portable. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.

1. The controller in one paragraph

The Zen Interrupt Controller gives a RISC-V design the two interrupt facilities every hart assumes. The PLIC (Platform-Level Interrupt Controller) aggregates external device lines — UART, SPI, I2C, Ethernet, DMA, and the rest — captures each on its rising edge, gates it by a per-source priority and a per-context enable + threshold, arbitrates the highest-priority eligible source, and presents it to a hart over an atomic claim/complete handshake. The CLINT (Core-Local Interruptor) supplies the other half: a single free-running 64-bit machine timer, a per-hart compare that fires the timer interrupt, and a per-hart software interrupt bit for inter-processor signalling. The two sub-blocks are independent and relocatable — instantiate one, the other, or both — and each ships with APB4 and AXI4-Lite frontends for direct SoC attach.

32 → 1023PLIC interrupt sources (default → max)
1–7per-source priority levels (0 disables)
64-bitfree-running machine timer (mtime)
APB4 / AXI4-Litedrop-in host frontends
interrupt controller device sourcesup to 1023 lines PLICprioritize + route CLINTtimer + software IRQ hartsmeip / mtip / msip edge IRQs ext IRQ timer / sw IRQ
Figure 1. The controller sits between device interrupt sources and the harts: the PLIC prioritizes and routes external device interrupts; the CLINT drives per-hart timer and software interrupts. Each sub-block attaches over APB4 or AXI4-Lite.
Two blocks, use either or both. The PLIC and CLINT are fully independent and relocatable in the SoC map — take only the machine timer, only external routing, or the complete pair. Each sub-block carries its own APB4 and AXI4-Lite frontend.
One disclosed addressing deviation. The PLIC's claim/complete interrupt IDs are 1-based while its priority and enable registers are 0-based, so interrupt ID 1's priority sits at the base offset rather than one word above it. Firmware written to the exact standard map is off-by-one on priority/enable addressing; account for it in the SoC map, or request the spec-aligned variant.

2. What it is, at a glance

ElementDetailDefaultStatus
PLIC interrupt sourcesconfigurable, edge-captured device lines32exists
PLIC sources (max)upper bound on source count1023exists
PLIC contexts (targets)per-hart / per-privilege interrupt targets2exists
PLIC contexts (max)upper bound on context count15872exists
Per-source prioritylevels 1–7; 0 disables the source—exists
Claim / completeatomic handshake: read claims, write completes—exists
CLINT machine timerfree-running 64-bit mtime, shared across harts—exists
CLINT timer compareper-hart 64-bit compare; IRQ while mtime ≥ compare—exists
CLINT software interruptper-hart pending bit for inter-processor IPIs—exists
CLINT hartsconfigurable hart count1 (max 4095)exists
Host frontendsAPB4 and AXI4-Lite wrappers, both sub-blocks—exists
Post-synthesis fmax / timingfunctional sign-off shipped; timing closure downstreamTBCTBC

Sources: Zen Interrupt Controller product datasheet; as-built RTL.

3. How a client uses it

  1. Instantiate the PLIC, the CLINT, or both; pick an APB4 or AXI4-Lite frontend per sub-block and place each in its own SoC address window.
  2. Wire sources and harts — tie device interrupt lines into the PLIC inputs and route each sub-block's outputs onto the hart's external (meip/seip), timer (mtip), and software (msip) lines.
  3. Service external interrupts — set per-source priority and per-context enable + threshold; on the external line, read the context claim register to atomically claim the top pending source, service it, then write the same ID back to complete.
  4. Run the scheduler tick and IPIs — program mtimecmp = mtime + interval for a periodic timer interrupt, re-arming each tick; raise a software interrupt on another hart by writing its msip bit, cleared by the target.

4. Verification & provenance

Sources: Zen Interrupt Controller product datasheet; as-built RTL.