PLIC
More info
- Type
- Interrupt controller (specification)
- Owner
- RISC-V International
- Spec
- riscv-plic-spec
RISC-V's Platform-Level Interrupt Controller, which gathers interrupts from peripherals and hands them out to the cores.
A RISC-V hart on its own only knows three local interrupt sources: timer, software and "external". Everything from a UART, GPIO or network controller goes through the PLIC, which gives each source a priority and each core a threshold. When an interrupt arrives the core reads a claim register to get the source number; when the handler is done it writes the number back to complete. The spec allows 1023 sources, and it was already in place in SiFive's early chips.
The design is deliberately spare: no hardware nesting and no per-source vector table as in Arm's NVIC. That's fine for Linux but costs latency in hard real-time work, and in 2023 the Advanced Interrupt Architecture, with APLIC and message-signalled interrupts, was ratified as its successor. Even so, the PLIC lives on in practically every RISC-V board you can buy.