Table 25:
PLIC Interrupt Source Mapping
Source Start
Source End
Source
35
35
QSPI0
36
36
SPI1
37
37
SPI2
38
41
PWM0
42
45
PWM1
46
49
PWM2
50
50
I2C
51
51
AON Watchdog
52
52
AON RTC
Each PLIC interrupt source can be assigned a priority by writing to its 32-bit memory-mapped
priority
register. The FE310-G003 supports 7 levels of priority. A priority value of 0 is
reserved to mean "never interrupt" and effectively disables the interrupt. Priority 1 is the lowest
active priority, and priority 7 is the highest. Ties between global interrupts of the same priority
are broken by the Interrupt ID; interrupts with the lowest ID have the highest effective priority.
See Table 26 for the detailed register description.
Table 26:
PLIC Interrupt Priority Registers
PLIC Interrupt Priority Register (
priority
)
Base Address
0x0C0 4 × Interrupt ID
Bits
Field Name
Attr.
Rst.
Description
[2:0]
Priority
RW
X
Sets the priority for a given global inter-
rupt.
[31:3]
Reserved
RO
0
The current status of the interrupt source pending bits in the PLIC core can be read from the
pending array, organized as 2 words of 32 bits. The pending bit for interrupt ID
is stored in bit
of word
. As such, the FE310-G003 has 2 interrupt pending registers. Bit
0 of word 0, which represents the non-existent interrupt source 0, is hardwired to zero.
Chapter 10 Platform-Level Interrupt Controller (PLIC)
FE310-G003 Manual
© SiFive, Inc.
Page 48
Содержание FE310-G003
Страница 1: ...SiFive FE310 G003 Manual v1p1 SiFive Inc ...