User Manual
C166S V2
Interrupt and Exception Handling
User Manual
5-121
V 1.7, 2001-01
Figure 5-2
Interrupt Arbitration
The first arbitration stage compares the priority levels of interrupt request lines. The
priority level of each requestor consists of interrupt priority level and group priority level.
An interrupt priority level is programmed for each interrupt request line by the 4-bit bit
field ILVL of the respective xxIC register. The group priority level is programmed for each
interrupt request line by the 2-bit bit field GLVL—and, in the case of more than 64
interrupt nodes, by the extension bit GPX of the register xxIC. GPX and GLVL combined
form the 3-bit (extended) group priority level XGLVL, controlling up to eight interrupt sub-
priorities within one of the sixteen interrupt levels.
Note: All interrupt request sources that are enabled and programmed to the same
interrupt priority level (ILVL) must have different group priority levels.
Otherwise,
an incorrect interrupt vector may be generated.
The second arbitration stage compares the priority of the first stage winner with the
priority of OCDS service requests. C166S V2 OCDS service requests bypass the first
stage of arbitration and go directly to the CPU Action Control Unit. The CPU Action
Control Unit disregards the group priority level of interrupt/PEC requests and deals only
with interrupt priority levels (ILVL). For comparison with an OCDS service request priority
programmed with a 5-bit value, the 4-bit ILVL of the interrupt/PEC request is extended
to a 5-bit value with MSB=0. This means that any OCDS request with MSB=1 will always
Request
Lines
Arbitration
OCDS
or
OCE
CPU
Action
Control
CPU
Arbitration
PSW
PEC/
Interrupt
Handler
Hardware
Traps
CPU
Interrupt
Request
Lines
Interrupt
Arbitration
Stage 1:
Compared 4-bit ILVL+ 2/3-bit XGLVL
priority levels of interrupt sources
(64/128 priority levels)
xxxx (ILVL) +
x.xx (XGLVL)
Stage 2:
4-bit IRQ/PEC priority level
compared with
5-bit OCDS priority level
0xxxx
(ILVL
extended with
0 in MSB)
xxxxx
(OCDS service
request priority
level)
Stage 3:
5-bit request priority level
compared with
4-bit PSW priority level
xxxxx
(request
priority level)
0xxxx
(ILVL. PSW
extended with
0 in MSB)
OCDS break
request
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...