
4/29/2020
Godson 3A2000 / 3B2000 Processor User Manual
36
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
IP0
IP1
IP2
IP3
IP0
IP1
IP2
IP3
IP1
IP2
IP3
can
Match
Set
in
Break
road
by
INTn0
INTn1
INTn2
INTn3
PCI INTn0
PCI INTn1
PCI INTn2
PCI INTn3
MT-0 INT
MT-1 INT
LPC INT
DDR2-0 INT
DDR2-1 INT
Barrier INT
Thsens INT
PCI perr & serr
CORE 1
CORE 2
CORE 3
Figure 7-1 Loongson 3A2000 processor interrupt routing diagram
Interrupt related configuration registers are used to control the corresponding interrupt lines in the form of bits.
See Table 7-1 for sexual configuration. The interrupt enable (Enable) configuration has three registers: Intenset, Intenclr and
Inten. Intenset sets the interrupt enable, and the interrupt corresponding to the bit written to 1 in the Intenset register is enabled. Intenclr
The clear interrupt is enabled, and the interrupt corresponding to the bit written in the Intenclr register is cleared. Inten register reads the current interrupt
Enabled situation. The interrupt signal in the form of pulse (such as PCI_SERR) is selected by the Intedge configuration register, write 1
40
Page 45
Godson 3A2000 / 3B2000 Processor User Manual Part 1
Display pulse trigger, write 0 to indicate level trigger. The interrupt handler can clear the pulse record through the corresponding bit of Intenclr
record.
Table 7-1 Interrupt Control Register
Bit field
Access properties / default
Intedge
Inten
Intenset
Intenclr
Interrupt source
3: 0
RW / 0
R / 0
W / 0
W / 0
Sys_int0-3
7: 4
RO / 0
R / 0
RW / 0
RW / 0
PCI_INTn
8
RO / 0
R / 0
RW / 0
RW / 0
Matrix_int0
9
RO / 1
R / 0
RW / 0
RW / 0
Matrix_int1
10
RO / 1
R / 0
RW / 0
RW / 0
Lpc
12: 11
RW / 0
Keep
Keep
Keep
Mc0-1
13
RW / 0
R / 0
RW / 0
RW / 0
Barrier
14
RW / 0
R / 0
RW / 0
RW / 0
Thsens int
15
RW / 0
R / 0
RW / 0
RW / 0
Pci_perr
23: 16
RW / 0
R / 0
RW / 0
RW / 0
HT0 int0-7
31: 24
RW / 0
R / 0
RW / 0
RW / 0
HT1 int0-7
Table 7-2 IO Control Register Address
name
Address offset
description
Intisr
0x3ff01420
32-bit interrupt status register
Inten
0x3ff01424
32-bit interrupt enable status register