FLAG-CONTROLLED ARBITRATION OF REQUESTING AGENTS

Abstract: A method and a system are provided for servicing a plurality of agents requesting access to a bus. The agents are arranged in a hierarchical order of groups, each having first and second pairs of the agents. Within each group, flags are set to indicate which pair was last serviced and which agent in each pair was last serviced.

Description: Flag-controlled arbitration of requesting agents BACKGROUND OF THE INVENTION 1. Field of the Invention The mvention relates to arbitration in a digital system and, in particular, to control of access to a bus by a plurality of requesting agents. 2. Description of Related Art Arbitration schemes for controlling fair access of a plurality of agents to a bus are known. For example, U.S. Patent 5485586 proposes queuing requests for access to a bus and then granting access in the order dictated by the queued requests. While maintaining fairness is an important function of arbitration, it is also desirable that arbitration be done as simply and expeditiously as is practical. It is also advantageous if the arbitration scheme employed is capable of ensuring that access be granted within minimum time periods, e.g. fairness intervals, that may be specified for certain high-speed applications. As used herein, a "fairness interval" is the time needed for all agents which are actually requesting access to the bus to be granted such access. For example, the IEEE 1394 High Performance Serial Bus Standard requires that, after receipt of a packet of information, if there is a need to retransmit the packet this must be done within four fairness intervals. In systems where access is granted in the order of queued requests, this requirement will not necessarily be met, but will depend on the order in which the requests are queued. In other words, the meeting of minimum-time-period requirements for access may be unpredictable. The IEEE 1394 Standard is particularly useful for high performance bus interconnection of computer peripherals and consumer electronics, and especially for the transmission of high-speed digital audio and video data over a bus. SUMMARY OF THE INVENTION It is an object of the invention to effect arbitration in a predictable and expeditious manner. It is another object of the invention to provide the capability of ensuring bus access to each of a plurality of requesting agents within a specified minimum time period. In accordance with the invention, a plurality of agents requesting access to a bus are serviced by: • providing a communication path for accepting requests from first and second pairs of requesting agents; • providing an indication of which of the requesting agents in the first pair was last considered for access to the bus; • providing an indication of which of the requesting agents in the second pair was last considered for access to the bus; • providing an indication of which of the pairs of requesting agents was last considered for access to the bus; • granting access to the requesting agents currently requesting access in accordance with the priority: • in the pair not last considered for access, the requesting agent not last considered for access; • in the pair not last considered for access, the requesting agent last considered for access; • in the pair last considered for access, the requesting agent not last considered for access; • in the pair last considered for access, the requesting agent last considered for access. This approach of granting access automatically adapts to the number of agents that are actually making requests. As will be explained in detail, it also provides the capability of expanding arbitration to any number of requesting agents. BRIEF DESCRIPTION OF THE DRAWING Figure 1 is a block diagram of an exemplary digital system with which the invention may be utilized. Figures 2 through 5 are schematic diagrams illustrating arbitration in exemplary request situations. Figure 6 is a flow chart illustrating an exemplary arbitration method in accordance with the invention. Figure 7 is a schematic diagram showing applicability of the invention to a variable number of requestor agents. DESCRIPTION OF THE PREFERRED EMBODIMENTS Figure 1 generally illustrates an exemplary embodiment of one digital system with which the invention can be used. The system includes a first pair of requesting agents t and r, a second pair of requesting agents d and p, a bus B, and an arbiter 10 for controlling access of the requesting agents to the bus. A number of exemplary requested agents Al, A2, A3, ... An are coupled to the bus B. In this embodiment, the requesting agents t,r,d,p are coupled to the arbiter 10 indirectly via a requesting agent controller 12 to provide a path for making requests. Specifically, the first pair of requesting agents t and r are coupled to a first pair of controller ports 121 A and 121B, respectively, the second pair of requesting agents d and p are coupled to a second pair of controller ports 122 A and 122B, respectively, and the controller 12 is coupled to the arbiter 10. Alternative configurations are also possible, which permit the arbiter and the requesting agent controller to cooperatively control access of the requesting agents to the bus. For example, a second bus, isolated from the bus B, could be provided and the requesting agents, the requesting agent controller and the arbiter could all be coupled to the second bus for direct communication with each other. As another example, the arbiter 10 may be coupled to the requesting agents t,r,d,p through the controller 12, as shown in Figure 1, and also through direct lines (not shown) to the requesting agents. The requesting agents t,r,d,p comprise any agents which have the capability of controllably communicating information to requested agents coupled to a bus. Typical examples include devices such as FIFOs, DRAMs and video cameras. The requested agents A1,A2,A3, ... An, comprise any agents which are capable of being communicated with via an arbiter, e.g. FIFOs and DRAMS. The requesting agent controller 12 manages the flow of information from the requesting agents t,r,d,p to the arbiter 10. For example, if one of the requesting agents is a FIFO, the controller would continually effect updating of pointers designating locations in the FIFO where information should be written into or retrieved from. The controller 12 also monitors the state of completion of each transmission from the requesting agents to the bus. The controller may also perform functions to facilitate unique requirements of the digital system. For example, if the bus B is operating in accordance with the IEEE 1394 Standard, whenever the bus is unavailable, the controller may temporarily store information that is to be transmitted over the bus. The arbiter 10 detects requests for access to the bus B by the requesting agents t,r,d,p, sets flags indicating which pair of the requesting agents, and which agent in each pair, were last considered for access to the bus and, on the basis of these flags, decides which of the requesting agents will be given access to the bus next. Granting of access is made in accordance with the priority: • in the pair not last considered for access, the requesting agent not last considered for access; • in the pair not last considered for access, the requesting agent last considered for access; • in the pair last considered for access, the requesting agent not last considered for access; • in the pair last considered for access, the requesting agent last considered for access. Figures 2, 3, 4 and 5 illustrate the order in which access to the bus is granted in four different situations, i.e.: • All four of the agents t,r,d,p are requesting access (Fig. 2). • Only agents r,d, and p (both from one pair and only one of the other pair) are requesting access (Fig. 3). • Only agents r and d (one from each pair) are requesting access (Fig. 4). • Only agents t and r (both from one pair, none from the other) are requesting access (Fig. 5). All other possible situations are similar to those shown in Figures 3, 4 and 5. That is: • Figure 3 can be adapted to represent the situations where agent r, d or p is the only agent not requesting access to the bus. • Figure 4 can be adapted to represent the situation where only agents t and p are requesting access. • Figure 5 can be adapted to represent the situation where only agents d and p are requesting access. Note that the dashed boxes in Figures 3, 4 and 5 indicate either the situation where the agent it represents is not currently requesting access or no such agent is currently connected to the system. In either case, such agent will be treated as an existing agent which is not requesting. An embodiment of a method for granting access to requesting agents in accordance with the invention is depicted in the flow diagram provided in Figures 6 A through 6J. As is shown in Figure 6 A, the arbiter 10 begins the method by waiting for a power on reset (POR) command at Al. When this command is detected at A2, the arbiter initializes the system at A2.1 by setting and resetting predetermined flags indicating the last- serviced status of the agents. This establishes the initial priorities of access to the bus by the agents. Specifically, the arbiter sets one flag which is provided to indicate which pair of agents (tr or dp) was serviced last (i.e., last considered for access to the bus B), sets one flag in each pair which is provided to indicate which agent in the pair was serviced last, and resets corresponding flags for the other pair of agents and the other agents in the pairs. In the example depicted, the arbiter: • sets flag dp, indicating that dp is the last pair of agents that was serviced; • resets flag tr, indicating that tr is not the last pair that was serviced; • sets flags r and d, indicating that these are the last agents that were serviced in the pairs tr and dp, respectively; • resets flags t and p, indicating that these are not the last agents that were serviced in the pairs tr and dp, respectively. After initializing the system, the arbiter goes into a start service state at A3 and then detects at decision A4 whether all of the agents d,p,t,r are requesting access to the bus B. If NO, it goes to decision Bl (Fig. 6B). If YES, however, the arbiter goes to decision A5 and detects whether dp is the last pair that was serviced. If decision A5 is YES, the arbiter goes to decision A6 and detects whether agent r is the last of pair tr that was serviced. If decision A6 is YES, the arbiter: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed (i.e. agent t has completed its transmission to the bus B); and • when the service to agent t has been completed, returns to the start service state at A3. If decision A6 is NO, the arbiter: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed (i.e. agent r has completed its transmission to the bus B); and • when the service to agent r has been completed, returns to the start service state at A3. If decision A5 was NO, the arbiter goes to decision A5.1 and detects whether agent d is the last of the pair dp that was serviced. If decision A5.1 is YES, the arbiter: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed (i.e. agent p has completed its transmission to the bus B); and • when the service to agent p has been completed, returns to the start service state at A3. If decision A4 is NO, the arbiter: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed (i.e. agent d has completed its transmission to the bus B); and • when the service to agent d has been completed, returns to the start service state at A3. Whenever decision A4 is NO, the arbiter goes down the priority of decision chain: • B 1 : Are agents d,p,r all requesting access? (See Fig. 6B.) • Cl : Are agents d,p,t all requesting access? (See Fig. 6C.) • Dl : Are agents p,t,r all requesting access? (See Fig. 6D.) • El : Are agents d,t,r all requesting access? (See Fig. 6E.) • FI : Are agents d,p both requesting access? (See Fig. 6F.) • Gl : Are agents t,r both requesting access? (See Fig. 6G.) • HI : Are agents p,r both requesting access? (See Fig. 6H.) • II : Are agents p,t both requesting access? (See Fig. 61.) • Jl : Is pair tr or pair dp requesting access? (See Fig. 6J.) until it detects a request. If no requests are detected, the arbiter returns to the start service state A3. Figure 6B illustrates a subroutine beginning at the decision Bl, where the arbiter detects whether all of the agents d,p,r are requesting access to the bus B. If NO, it goes to decision Cl (FIG. 6C). If YES, however, the arbiter goes to decision B2 and detects whether dp is the last pair that was serviced. If decision B2 is YES, the arbiter: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision B2 is NO, the arbiter goes to decision B3 and detects whether agent d is the last of pair dp that was serviced. If decision B3 is YES, the arbiter: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. If decision B3 is NO, the arbiter: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. Figure 6C illustrates a subroutine beginning at the decision Cl, where the arbiter detects whether all of the agents d,p,t are requesting access to the bus B. If NO, it goes to decision Dl (FIG. 6D). If YES, however, the arbiter goes to decision C2 and detects whether dp is the last pair that was serviced. If decision C2 is YES, the arbiter: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision C2 is NO, the arbiter goes to decision C3 and detects whether agent d is the last of pair dp that was serviced. If decision C3 is YES, the arbiter: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. If decision C3 is NO, the arbiter: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. Figure 6D illustrates a subroutine beginning at the decision Dl, where the arbiter detects whether all of the agents p,t,r are requesting access to the bus B. If NO, it goes to decision El (FIG. 6E). If YES, however, the arbiter goes to decision D2 and detects whether tr is the last pair that was serviced. If decision D2 is YES, the arbiter: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. If decision D2 is NO, the arbiter goes to decision D3 and detects whether agent r is the last of pair tr that was serviced. If decision D3 is YES, the arbiter: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision D3 is NO, the arbiter: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. Figure 6E illustrates a subroutine beginning at the decision El, where the arbiter detects whether all of the agents d,t,r are requesting access to the bus B. If NO, it goes to decision FI (FIG. 6F). If YES, however, the arbiter goes to decision E2 and detects whether tr is the last pair that was serviced. If decision E2 is YES, the arbiter: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. If decision E2 is NO, the arbiter goes to decision E3 and detects whether agent r is the last of pair tr that was serviced. If decision E3 is YES, the arbiter: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision E3 is NO, the arbiter: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. Figure 6F illustrates a subroutine beginning at the decision FI, where the arbiter detects whether both of the agents d,p are requesting access to the bus B. If NO, it goes to decision F3 and detects whether both of agents t,r are requesting access to the bus B. If NO, it goes to decision Gl (FIG. 6G). If decision FI is YES, the arbiter goes to decision F2 and detects whether agent p is the last of pair dp that was serviced. If decision F2 is YES, it: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. If decision F2 is NO, it: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. If decision F3 is YES, the arbiter goes to decision F4 and detects whether agent r is the last of pair tr that was serviced. If decision F4 is YES, it: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision F4 is NO, the arbiter: grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. Figure 6G illustrates a subroutine beginning at the decision Gl, where the arbiter detects whether both of the agents t,r are requesting access to the bus B. If NO, it goes to decision G3 and detects whether both of agents d,t are requesting access to the bus B. If NO, it goes to decision HI (FIG. 6H). • If decision Gl is YES, the arbiter goes to decision G2 and detects whether agent r is the last of pair tr that was serviced. If decision G2 is YES, it: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. Ifdecision G2 is NO, it: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. If decision G3 is YES, the arbiter goes to decision G4 and detects whether agent t is the last of pair dt that was serviced. If decision G4 is NO, it: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision G4 is YES, the arbiter: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. Figure 6H illustrates a subroutine beginning at the decision HI, where the arbiter detects whether both of the agents p,r are requesting access to the bus B. If NO, it goes to decision H3 and detects whether both of agents d,r are requesting access to the bus B. If NO, it goes to decision II (FIG. 61). If decision HI is YES, the arbiter goes to decision H2 and detects whether agent r is the last of pair pr that was serviced. Ifdecision H2 is NO, it: • grants access to agent r; resets flags t and dp, indicating that agent t and pair dp were not serviced last; sets flags r and tr, indicating that agent r and pair tr were serviced last; goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. Ifdecision H2 is YES, it: grants access to agent p; resets flags d and tr, indicating that agent d and pair tr were not serviced last; sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and when the service to agent p has been completed, returns to the start service state at A3. If decision H3 is YES, the arbiter goes to decision H4 and detects whether agent r is the last of pair dr that was serviced. If decision H4 is YES, it: • grants access to agent d; resets flags p and tr, indicating that agent p and pair tr were not serviced last; sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. If decision H4 is NO, the arbiter: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. Figure 61 illustrates a subroutine beginning at the decision II, where the arbiter detects whether both of the agents p,t are requesting access to the bus B. If NO, it goes to decision Jl (FIG. 6J). If YES, however, the arbiter goes to decision 12 and detects whether agent t is the last of agents p,t that was serviced. If decision 12 is NO, it: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. Ifdecision I2 is YES, it: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. Figure 6J illustrates a subroutine beginning at the decision Jl, where the arbiter detects whether pair tr or pair dp is requesting access to the bus B. If NO, the arbiter returns to the start service state at A3. If decision Jl is YES, the arbiter goes to decision J2 and detects whether agent d is requesting access. If YES, it: • grants access to agent d; • resets flags p and tr, indicating that agent p and pair tr were not serviced last; • sets flags d and dp, indicating that agent d and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent d has been completed; and • when the service to agent d has been completed, returns to the start service state at A3. If decision J2 is NO, the arbiter goes to decision J3 and detects whether agent r is requesting access. If YES, it: • grants access to agent r; • resets flags t and dp, indicating that agent t and pair dp were not serviced last; • sets flags r and tr, indicating that agent r and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent r has been completed; and • when the service to agent r has been completed, returns to the start service state at A3. If decision J3 is NO, the arbiter goes to decision J4 and detects whether agent t is requesting access. If YES, it: • grants access to agent t; • resets flags r and dp, indicating that agent r and pair dp were not serviced last; • sets flags t and tr, indicating that agent t and pair tr were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent t has been completed; and • when the service to agent t has been completed, returns to the start service state at A3. If decision J4 is NO, the arbiter goes to decision J5 and detects whether agent p is requesting access. If YES, it: • grants access to agent p; • resets flags d and tr, indicating that agent d and pair tr were not serviced last; • sets flags p and dp, indicating that agent p and pair dp were serviced last; • goes into a wait mode at A3.1 until it detects, at decision A3.2, when the service to agent p has been completed; and • when the service to agent p has been completed, returns to the start service state at A3. If decision J5 is NO, the arbiter returns to the start service state at A3. Figure 7 illustrates how a system employing arbitration methods in accordance with the invention can be expanded to any number of requesting agents. In particular, Figures 7 A, 7B, 7C, and 7D collectively show an example of the priority of servicing up to 28 requesting agents, coupled to the controller 12 shown in Figure 1. As in Figures 3 through 5, each of the dashed boxes represents either an agent which is not currently requesting access or an agent which is not actually connected to the system. Each of the agents is assigned a hierarchical designation which defines its priority of servicing. In this particular example, there are three hierarchical levels: • a primary level, having the requesting agents t,r,d,p; • a secondary level, having the requesting agents tι,t 2 ,rι,r 2 ,dι,d 2 ,pι,p 2 ; and • a tertiary level, having the requesting agents tl.l-tl.2,t2.1,t2.2,ri.l>rι.2»r2.l,r2.2,dι.ι,dι.2,d2. 1 ,d2.2.Pl.l,Pl.2»p2.1-p2Λ- Utilizing the flow chart of Figure 6, groups of these agents will be sequentially serviced in the order: group t,r,d,p; group tι,r ! ,dι,pι; group t2,r 2 ,d 2 ,p2; • group tι.ι,rι.ι,d u ,Pι.ι; group t 1 .2,r 1 . 2 ,dι.2,pι.2; group t2.ι,r 2 .ι,d 2 .ιp2.ι; group t 2 .2,r2.2,d2.2-P2.2- In order to implement servicing in this order, a set of flags (e.g. one for each group) may be utilized to keep track of which group was serviced last. Note that the priorities of service of individual agents can be changed simply by changing their heirarchical designations. The sequence in which the agents in each of the groups of Figure 7 are granted access, in accordance with the preferred embodiment, can be determined by referring to a whichever one of Figures 2 through 5 corresponds to the comparable request situation. Specifically: • In the single group t,r,d,p of the primary level, all four of these agents are requesting. This corresponds to the situation shown in Figure 2, and these requesting agents will be granted access in the order determined by Figure 6A of the flow chart. Then the first group of the secondary level will be serviced. • In the first group tι,rι,dι,pι of the secondary level, all four of these agents are requesting. This also corresponds to the situation shown in Figure 2, and these requesting agents will be granted access in the order determined by Figure 6A of the flow chart. Then the second group of the secondary level will be serviced. • In the second group t 2 ,r 2 ,d 2 ,p 2 of the secondary level, all four of these agents are also requesting. This again corresponds to the situation shown in Figure 2, and these requesting agents will be granted access in the order determined by Figure 6A of the flow chart. Then the first group of the tertiary level will be serviced. • In the first group tu,ru . di.i,Pi.i of the tertiary level, only the agents tu and di.i are requesting. This corresponds substantially to the situation shown in Figure 4, and these requesting agents will be granted access in the order determined by Figure 6G of the flow chart. Then the second group of the tertiary level will be serviced. • In the second group tι.2,rι.2,dι.2.Pι.2 of the tertiary level, only the agents tι.2 and pι.2 are requesting. This corresponds substantially to the situation shown in Figure 4, and these agents will be granted access in the order determined by Figure 61 of the flow chart. Then the third group of the tertiary level will be serviced. • In the third group -2.ι,r 2 .ι,d 2 .ι,p 2 .ι of the tertiary level, only the agents d 2 .ι and p 2. ι are requesting. This corresponds inversely to the situation shown in Figure 5, and the agents will be granted access in the order determined by Figure 6F of the flow chart. Then the fourth group of the tertiary level will be serviced. • In the fourth group t 2 . 2 ,r 2 . 2 ,d2.2,P2.2 of the tertiary level, only the agents t 2 .2 and d2. 2 are requesting. This corresponds substantially to the situation shown in Figure 4, and the agents will be granted access in the order determined by Figure 6G of the flow chart. Then the servicing process will be repeated by returning to the single group of the primary level.

Claims: CLAIMS: 1. A method of servicing a plurality of agents requesting access to a bus (B), said method comprising: a. providing a communication path for accepting requests from first (tr) and second (dp) pairs of requesting agents; b. providing an indication of which of the requesting agents (t,r) in the first pair was last considered for access to the bus; c. providing an indication of which of the requesting agents (d,p) in the second pair was last considered for access to the bus; d. providing an indication of which of the pairs of requesting agents was last considered for access to the bus; e. granting access to the requesting agents currently requesting access in accordance with the priority: i. in the pair not last considered for access, the requesting agent not last considered for access; ii. in the pair not last considered for access, the requesting agent last considered for access; iii. in the pair last considered for access, the requesting agent not last considered for access; iv. in the pair last considered for access, the requesting agent last considered for access. 2. A method as in claim 1 where a missing one of the requesting agents is treated as an agent not requesting access. 3. A method as in claim 1 where communication paths are provided for a plurality of groups of requesting agents, each of said groups comprising first and second pairs of said requesting agents. 4. A method as in claim 3 where the groups are serviced in a predetermined hierarchical order. 5. A system for servicing a plurality of agents requesting access to a bus (B), said system comprising: a. communication path for accepting requests from first (tr) and second (dp) pairs of requesting agents; b. means for providing an indication of which of the requesting agents (t,r) in the first pair was last considered for access to the bus; c. means for providing an indication of which of the requesting agents (d,p) in the second pair was last considered for access to the bus; d. means for providing an indication of which of the pairs of requesting agents was last considered for access to the bus; e. means for granting access to the requesting agents currently requesting access in accordance with the priority: i. in the pair not last considered for access, the requesting agent not last considered for access; ii. in the pair not last considered for access, the requesting agent last considered for access; iii. in the pair last considered for access, the requesting agent not last considered for access; iv. in the pair last considered for access, the requesting agent last considered for access. 6. A system as in claim 5 where a missing one of the requesting agents is treated as an agent not requesting access. 7. A system as in claim 5 where communication paths are provided for a plurality of groups of requesting agents, each of said groups comprising first and second pairs of said requesting agents. 8. A system as in claim 7 where the groups are serviced in a predetermined hierarchical order.

Inventors: SINGH ALOK, SINGH, ALOK
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 2000
Main classification: G06F13
IPC codes: G06F13, G06F15, H04L12