Download LEON2 Processor User`s Manual

Transcript
- 39 -
LEON2 XST User’s Manual
7.3.2 Control registers
The operation of the secondary interrupt controller is programmed through the following
registers:
31
0
IMASK[31:0]
Figure 13: Secondary interrupt mask register
• [31:0]: Interrupt mask - indicates whether an interrupt is masked (IMASK[n]=0) or enabled
(IMASK[n]=1).
31
0
IPEND[31:0]
Figure 14: Secondary interrupt pending register
• [31:0]: Interrupt pending - indicates whether an interrupt is pending (IPEND[n]=1).
31
5
IP
RESERVED
4
0
IRL[4:0]
Figure 15: Secondary interrupt status register
• [4:0]: Interrupt request level - indicates the highest unmasked pending interrupt.
• [5]: Interrupt pending - if set, then IRL is valid. If cleared, no unmasked interrupt is pending.
31
0
ICLEAR[31:0]
Figure 16: Secondary interrupt clear register
• [31:0]: Interrupt clear - if written with a ‘1’, will clear the corresponding bit(s) in the interrupt
pending register.
GAISLER RESEARCH