Download GRLIB IP Core User`s Manual

Transcript
COBHAM GAISLER
793
GRIP
66.2.4 Interrupt broadcasting
The Broadcast Register is activated when the generic ncpu is > 1. An incoming irq that has its bit set
in the Broadcast Register is propagated to the force register of all CPUs instead of to the Pending
Register. This can be used to implement a timer that fires to all CPUs with that same irq.
66.2.5 Interrupt (re)map functionality
The interrupt controller can optionally be implemented (as an alternative to the two-interrupt levels
scheme) with functionality to allow dynamic remapping between bus interrupt lines and interrupt controller interrupt lines. If the design includes this functionality then switch-logic will be placed on the
incoming interrupt vector from the AMBA bus before the IRQ pending register. The Interrupt map
registers will be available starting at offset 0x300 from the interrupt controller's base address.
The interrupt map registers contain one field for each bus interrupt line in the system. The value
within this field determines to which interrupt controller line the bus interrupt line is connected. In
case several bus interrupt lines are mapped to the same controller interrupt line (several fields in the
Interrupt map registers have the same value) then the bus interrupt lines will be OR:ed together.
Note that if bus interrupt line X is remapped to controller interrupt line Y then bit Y of the pending
register will be set when a peripheral asserts interrupt X. Remapping interrupt lines via the Interrupt
map registers has the same effect as changing the interrupt assignments in the RTL code.
66.3
Registers
The core is controlled through registers mapped into APB address space. The number of implemented
registers depends on the number of processor in the multiprocessor system.
Table 1034.Interrupt Controller registers
APB address offset
Register
0x00
Interrupt level register
0x04
Interrupt pending register
0x08
Interrupt force register (NCPU = 0)
0x0C
Interrupt clear register
0x10
Multiprocessor status register
0x14
Broadcast register
0x40
Processor interrupt mask register
0x44
Processor 1 interrupt mask register
0x40 + 4 * n
Processor n interrupt mask register
0x80
Processor interrupt force register
0x84
Processor 1 interrupt force register
0x80 + 4 * n
Processor n interrupt force register
0xC0
Processor extended interrupt acknowledge register
0xC4
Processor 1 extended interrupt acknowledge register
0xC0 + 4 * n
Processor n extended interrupt acknowledge register
0x300 + 0x4 * n
Interrupt map register n
Table 1035. Interrupt Level Register
31
16 15
RESERVED
31:16
Reserved
1
IL[15:1]
0
R