Table 18:
mcause
Exception Codes
Interrupt Exception Codes
0
3
Breakpoint
0
4
Load address misaligned
0
5
Load access fault
0
6
Store/AMO address misaligned
0
7
Store/AMO access fault
0
8–10
Reserved
0
11
Environment call from M-mode
0
≥ 12
Reserved
8.4
Interrupt Priorities
Individual priorities of global interrupts are determined by the PLIC, as discussed in Chapter 10.
FE310-G000 interrupts are prioritized as follows, in decreasing order of priority:
• Machine external interrupts
• Machine software interrupts
• Machine timer interrupts
8.5
Interrupt Latency
Interrupt latency for the FE310-G000 is 4 cycles, as counted by the numbers of cycles it takes
from signaling of the interrupt to the hart to the first instruction fetch of the handler.
Global interrupts routed through the PLIC incur additional latency of 3 cycles where the PLIC is
clocked by
coreClk
. This means that the total latency, in cycles, for a global interrupt is: 4 + 3.
This is a best case cycle count and assumes the handler is cached or located in ITIM. It does
not take into account additional latency from a peripheral source.
Chapter 8 Interrupts
SiFive FE310-G000 Manual: v3p2
© SiFive, Inc.
Page 39