Table 27:
PLIC Interrupt Threshold Register
PLIC Interrupt Priority Threshold Register (
threshold
)
Base Address
0x0C20_0000
[2:0]
Threshold
RW
X
Sets the priority threshold
[31:3]
Reserved
RO
0
10.7
Interrupt Claim Process
A FE310-G000 hart can perform an interrupt claim by reading the
claim/complete
register
(Table 28), which returns the ID of the highest-priority pending interrupt or zero if there is no
pending interrupt. A successful claim also atomically clears the corresponding pending bit on
the interrupt source.
A FE310-G000 hart can perform a claim at any time, even if the MEIP bit in its
mip
(Table 16)
register is not set.
The claim operation is not affected by the setting of the priority threshold register.
10.8
Interrupt Completion
A FE310-G000 hart signals it has completed executing an interrupt handler by writing the inter-
rupt ID it received from the claim to the
claim/complete
register (Table 28). The PLIC does not
check whether the completion ID is the same as the last claim ID for that target. If the comple-
tion ID does not match an interrupt source that is currently enabled for the target, the completion
is silently ignored.
Chapter 10 Platform-Level Interrupt Controller (PLIC)
SiFive FE310-G000 Manual: v3p2
© SiFive, Inc.
Page 47