Arbitration Process; Controlling The Number Of Arbitration Cycles - Infineon Technologies TC1728 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

13.4

Arbitration Process

The arbitration process implemented in the TC1728 uses a number of arbitration cycles
to determine the pending interrupt request with the highest priority number, SRPN. In
each of these cycles, two bits of the SRPNs of all pending service requests are
compared against each other. The sequence starts with the high-order bits of the SRPNs
and works downwards, such that in the last cycle, bits [1:0] of the SRPNs are compared.
Thus, to perform an arbitration through all 8 bits of an SRPN, four arbitration cycles are
required. There are two factors determining the duration of the arbitration process:
Number of arbitration cycles, and
Duration of arbitration cycles.
Both of these can be controlled by the user.
13.4.1

Controlling the Number of Arbitration Cycles

In a real-time system where responsiveness is critical, arbitration must be as fast as
possible. However, to maintain flexibility, the TC1728 system is designed to have a large
range of service priorities. If not all priorities are needed in a system, arbitration can be
accelerated by not examining all the bits used to identify all 255 unique priorities.
For instance, if a 6-bit number is enough to identify all priority numbers used in a system
(meaning that bits [7:6] of all SRPNs are always 0), it is not necessary to perform
arbitration on these two bits. Three arbitration cycles will be enough to find the highest
number in bits [5:0] of the SRPNs of all pending requests. Similarly, the number of
arbitration cycles can be reduced to two if only bits [3:0] are used in all SRPNs, and the
number of arbitration cycles can be reduced to one cycle if only bits [1:0] are used.
The ICR.CARBCYC bit field controls the number of cycles in the arbitration process. Its
default value is 0, which selects four arbitration cycles.
arbitration cycle control.
Table 13-1
Arbitration Cycle Control
Number of Arbitration Cycles
ICR.CARBCYC
Relevant bits of the SRPNs
Range of priority numbers covered
Note: If less than four arbitration cycles are selected, the corresponding upper bits of the
SRPNs are not examined, even if they do not contain zeros.
User's Manual
Interrupt, V1.4
Table 13-1
4
3
00
01
B
B
[7:0]
[5:0]
1..255
1..63
13-12
TC1728
Interrupt System
gives the options for
2
1
10
11
B
B
[3:0]
[1:0]
1..15
1..3
V1.0, 2011-12

Advertisement

Table of Contents
loading

Table of Contents