Arbitration system for bus requestors with deadlock prevention

Information

  • Patent Grant
  • 5706446
  • Patent Number
    5,706,446
  • Date Filed
    Tuesday, November 12, 1996
    28 years ago
  • Date Issued
    Tuesday, January 6, 1998
    26 years ago
Abstract
An arbitration logic system in a system control module regulates access to a common system bus as provided by a state machine which toggles access priority between two or more resource modules while preventing deadlock contention between two requesting modules while insuring that no module will be starved or denied access even though all the resource modules are contending for bus access. Any continuous deprivation or starvation of a module for bus access is prevented, in addition to any deadlock situations which are also prevented. This occurs by allowing retrying modules to request the bus at a temporarily higher priority and limiting the number of retries that any given requesting module is permitted to have.
Description

FIELD OF THE INVENTION
This disclosure is related to computer systems where a number of resource modules seek the availability of a system bus which is monitored by an arbitration system to determine allocation of bus access.
CROSS-REFERENCES TO RELATED PATENTS
This disclosure is related to U.S. Pat. No. 5,442,754 entitled "Receiving Control Logic System for Dual Bus Network" which is included herein by reference.
BACKGROUND OF THE INVENTION
Present-day computer systems generally use a plurality of resources such as a central processing module, an input/output module, a main memory module and sometimes other functional modules. Quite often there is a interconnecting communication system designated as a system bus which becomes a shared resource used for transferring data between the various resource modules.
Since the system bus is only a single shared resource among various resource modules, then there is a question of access to uses of the system bus among the various competing devices. It is necessary that no one particular resource module monopolize the system bus and that there must be some system of fair allocation for bus usage among the various resource modules so that no one particular resource module is starved out of usage of the system bus.
As a result, certain types of arbitration systems or arbitration circuitry have been developed in order to allocate bus usage among the competing resource modules. Some systems use a straight priority scheme wherein the various resource modules are given priority levels which gives them priority of access to the system bus.
There are other types of arbitration schemes such as a "round-robin" scheme in which all of the requestors or resource modules are given the same priority level but alternated in sequence for access to the bus.
The presently described arbitration logic system provides logic that can choose among three basic resource modules or requestors as to which one will be provided the use of a shared system bus at any given point in time. This arbitration logic operates to prevent any deadlock conditions or starvation conditions which would deny access to one or more of the resource modules.
Arbitration systems are also closely linked to certain types of problems which occur such as "deadlock" problems where two requesting modules can cause each other to get into a state or condition where neither of the modules can finish its operating task. Other situations occur designated as "starvation" of a resource module, where the particular resource module cannot finish its operative task due to conditions that occur in the system.
The presently described system functions to insure equitable arrangements for bus access among competing resource modules requesting access time to use a commonly-shared bus.
SUMMARY OF THE INVENTION
A computer system having a system bus which connects a system control module, a central processing module and an input/output module so that an arbitration means will insure the optimum use of the system bus means among the requesting modules of the central processing module, the input/output module and the system control module.
An arbitration logic system is provided that can choose among the three requestors and decide as to which one can use the shared bus at a given point in time. Among the three bus requestors, there is always one which is given a higher priority than the others. A state machine is used to determine which of the particular modules is to be given the higher priority at any given point in time.
Further, there is provided a counting means which counts the number of retry operations that any given requesting module can have in order to enable it to complete its operative cycle of action. This counting system also prevents a condition of "deadlock" where two or more requesting modules are operative to prevent each of them from completing each one of its operative requesting cycles.
The arbitration logic system also insures that no one particular module will be locked-out or starved out due to the higher priority of the other competing resource modules.
A state machine operates to toggle the priority between the central processing module and the input/output module. After initialization, the input/output module is first given the higher priority, but after it completes an operation (OP), the central processing module will get the higher priority on the next cycle.





BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a computer system, together with its arbitration architecture designated as a "one-by" system;
FIG. 2 is a block diagram of a computer system designated as a "two-by" system, where two computer systems are coupled to each other to operate as a single overall system;
FIG. 3A is a block diagram of a single shared system bus having two requestors;
FIG. 3B is a block diagram of a shared single bus also having two requestors which are different requestors;
FIG. 3C is a block diagram showing the configuration of a shared system bus working with three requestors;
FIG. 4A is a block diagram of the arbitration logic located in the system control module;
FIG. 4B is a state machine sequence drawing indicating the activity of the arbitration state machine;
FIG. 4C is a state machine sequence drawing of the retry counter state machine;
FIG. 5 is a typical timing grant showing how the central processing module is enabled for being granted access to the system bus;
FIG. 6 is drawing by which it is illustrated how a starvation condition can occur for a resource module such as the input/output module, IOM.





DESCRIPTION OF PREFERRED EMBODIMENT
FIG. 1 is a block diagram illustration of a computer system designated as having an architecture of "one-by" in which three resource modules are used to share a common system bus 22. The three resource modules which share the system bus 22 are indicated as the central processing module CPM 40, the input/output module IOM 60 and the system control module SCM 20. The system control module is seen to have a main memory module 10.
The central processing module 40 and the input/output module 60 both send and receive system commands on the system bus 22. These may include read operations and write operations to the memory 10 or the passing of messages between the two modules CPM 40 and IOM 60.
The system control module SCM 20 does not send commands on the system bus 22, however it must receive all memory operation requests and then forward the addresses and data between the system bus 22 and the main memory 10.
The system control module 20 also provides the logic that determines which particular module may be allowed to broadcast its command onto the system bus 22 at any given time. This is generally designated as the BUS-GRANT.
The arbitration logic 24 in the system control module 20 is often referred to as the bus arbiter.
Before a resource module can broadcast a command to the system, it must first activate a Bus Request signal (BREQ) in order to notify the arbiter logic 24 that a need to use the system bus 22 is imminent. The central processing module 40 and the input/output module 60 each have dedicated request lines shown as CPM-BREQ-B 42 and the IOM-BREQ-B 62, respectively shown in FIG. 1.
If the system bus (SBUS 22) is "not busy", and only one resource module is requesting the system bus 22, then that resource module will be granted the bus during the next clock cycle.
Each resource module also has dedicated bus grant lines seen as CPM-BGNT-B 44 and IOM-BGNT-B 64 also seen in FIG. 1. If the system bus 22 is currently being used for data transfer by a module, then it is currently designated as "busy" and then any other module which is making a bus request must wait until the system bus SBUS 22 is no longer busy, and then this resource module will be the next module to be granted the use of this system bus 22.
The use of the system bus arbiter logic 24 involves considerable more complexity in systems that can couple modules that reside in two different back planes. This type of connected system is referred to as a "two-by" system which is seen in its complete configuration of FIG. 2, and can have up to two central processing modules CPM's and two input/output modules IOM's.
In order to facilitate communication between two back planes 5A and 5B, FIG. 2, it was necessary to introduce a new module designated as the Bus Exchange Module 50, or BEM. The bus exchange module BEM 50 has been provided with three major functions. These include:
(a) passing a message from a CPM 40.sub.a or IOM 60.sub.a in one back plane (5A) to a CPM 40.sub.b or IOM 60.sub.b in the other back plane (5B). Thus, in FIG. 2, the first back plane is designated as 5A and constitutes a partition "0" while the second back plane 5B constitutes the partition "1".
(b) allowing a CPM or an IOM in one back plane
5A to access main memory 10b in the other back plane 5B, or this can be a vice-versa situation where a CPM or IOM in backplane 5B is allowed to access main memory 10a in the other backplane 5A.
(c) permitting communication to the CPM 40.sub.a when it must invalidate a cache memory in 40.sub.a due to a Write operation issued by a processor (either the CPM 40.sub.b or the IOM 60.sub.b) in the other back plane 5B.
Referring to FIG. 2, there is seen a block diagram of a "two-by" system with three bus requestors on each of the two back planes such as 5A and 5B. It will be seen that each system bus 22.sub.a and 22.sub.b has its own arbiter 24.sub.a and 24.sub.b residing on the respective SCM modules 20.sub.a and 20.sub.b in the particular given partition "0" and partition "1".
Now, with the introduction of a third bus requestor such as the BEM 50.sub.a and 50.sub.b, there are three more situations required for the arbitration logic 24.sub.a and 24.sub.b to handle that complicate the situation. Thus, the arbitration logic 24 must now be capable of handling the following:
Case 1: If the system bus 22 is not busy and two or more modules "simultaneously" are issuing bus requests, then specialized handling is necessary.
Case 2: If one module is using the SBUS 22 and the other two modules simultaneously request use of the system bus 22, then this situation must be handled. In this situation, there can be two competing module requestors concurrently working on retry operations.
Case 3: If one resource module is using the SBUS 22 (S.sub.-- BUSY.sub.-- B) and a second resource module makes a bus request (BREQ.sub.-- B), but before the first module is finished, the third module also makes a bus request, then this situation must be handled.
With these various case situations in mind, the arbitration logic of the presently described system must handle each of these cases in a fair and equitable marmer and further operate such that one of the resource modules will have a higher priority than the others in these situations at any given point in time. These operations will be indicated in detail hereinafter.
The presently disclosed arbiter logic design is capable of handling the situation where there are two requestors in a "one-by" configuration and also all of the possible types of "two-by" configurations. These configurations are indicated in FIGS. 3A, 3B, and 3C. Thus, FIG. 3A shows the system bus configuration with two requestors designated as the CPM 40 and the BEM 50. FIG. 3B shows the configuration of the commonly shared system bus having two requestors which are the IOM 60 and the BEM 50. FIG. 3C shows the situation of the commonly shared system bus 22 having three requestors, that is to say, the IOM 60, the CPM 40 and the BEM 50. It will be noted that each of the BEM 50 bus exchange modules receives an input from the other system bus while the system control modules 20 provide an output to the other system bus. Further, it should be noted that in all of the "two-by" configurations, a bus exchange module BEM 50 must be present in each of the two partitions, that is to say, partition 5A and 5B (FIG. 2).
In regard to arbitration procedures, the described system provides the following functions.
(i) The arbiter logic 24, FIG. 4A, must grant the system bus SBUS 22 to one particular module if one or more modules are requesting use of the system bus at a time when the system bus is "not busy".
(ii) If the SBUS 22 is "busy" when a bus request is made, the bus grant (BGNT) access occurs at one clock after the Bus Busy (BUSY-B) signal is deactivated.
(iii) The Bus Grant (BGNT) must originate from a flip-flop to meet the set-up time requirements on each module. In combinatorial notation the symbol:=designates a flip-flop output.
(iv) The arbiter logic 24 must give the bus exchange module (BEM) 50 the "highest" priority such that, in the case of multiple simultaneous bus requests, so that the BEM 50 will be granted the bus first.
Also, if another resource module is requesting the bus while the bus is still "busy", and the BEM 50 makes a subsequent bus request while the other module is still waiting, then the BEM 50 will be "next in line" to use the bus, even though its bus request was made at a later time.
(v) There must be an operational function to prevent starvation of a particular resource module to insure that the module has a fair chance for bus access without being completely locked out
(vi) The system must operate to prevent a "deadlock" condition such as when two resource modules are in "retrying" conditional trying to contact each other on an indefinite basis.
It may be noted that the bus exchange module BEM 50 is assigned the highest priority in order to process invalidation commands (to cache memory) as quickly as possible.
FIG. 4A shows the elements of the bus arbitration logic 24 as including an arbiter state machine 24A which interrelates with the retry counter state machine 24R and the bus interface logic 24B.
The bus interface logic 24B is seen to receive inputs of bus requests (BREQ) from the CPM 40, the IOM 60 and the BEM 50 after which it can provide a bus grant (GRANT) to either one of the CPM, the IOM or the BEM.
The arbiter state machine 24A provides arbitration state condition signals on bus lines 24.sub.sb to the bus interface logic 24B and on 24.sub.sr to the retry counter state machine 24R. The retry counter state machine 24R outputs "counter-state" signals via lines 24.sub.c to the arbiter state machine 24A as indicated in FIG. 4C which shows the incrementation of count signals.
The arbiter state machine 24A keeps track, as seen in FIG. 4B, of which module (IOM, CPM) has priority, for system bus access, at any given point in time. It also controls those situations where a requesting module such as the IOM or CPM, may have its bus request "retried" for a number of retry cycles.
The retry counter state machine 24R counts the number of consecutive times (N) that a module (CPM, IOM) has had its request for bus access retried.
The bus interface logic 24B (FIG. 4A) senses the bus request signals and, based on the state information from the arbiter state machine 24A, will issue the bus grant (GRANT) to the appropriate requesting module.
The logic equations under which the bus interface logic functions are shown below:
No.sub.-- Gnt.sub.-- B:=(Cpm.sub.-- Bgnt.sub.-- B=IOM.sub.-- Bgnt.sub.-- B*Bem.sub.-- Gnt.sub.-- B)
Bem.sub.-- Gnt.sub.-- B:=(Bem.sub.-- Breq.sub.-- B+En.sub.-- BemReq.sub.-- B+/S.sub.-- Busy.sub.-- B++/No.sub.-- Gnt.sub.-- B+/Cpm.sub.-- Bgnt.sub.-- B+/IOM.sub.-- Bgnt.sub.-- B
Cpm.sub.-- Bgnt.sub.-- B:=(/S.sub.-- Busy.sub.-- B+Cpm.sub.-- Breq.sub.-- B+En.sub.-- CpmReq.sub.-- B+/No.sub.-- Gnt.sub.-- B+/Bem.sub.-- Gnt.sub.-- B+/IOM.sub.-- Bgnt.sub.-- B+/(Bem.sub.-- Breq.sub.-- B+En.sub.-- BemReq.sub.-- B)+(/IOM.sub.-- Breq.sub.-- B*/En.sub.-- IOMReq.sub.-- B*State0)+State1+State2+State3)
IOM.sub.-- Bgnt.sub.-- B:=(/S.sub.-- BuSy.sub.-- B+IOM.sub.-- Breq.sub.-- B+En.sub.-- IOMReq.sub.-- B+/No.sub.-- Gnt.sub.-- B+/Cpm.sub.-- Bgnt.sub.-- B+/Bem.sub.-- Gnt.sub.-- B+/(Bem.sub.-- Breq.sub.-- B+En.sub.-- BemReq.sub.-- B)+(/Cpm.sub.-- Breq.sub.-- B*/En.sub.-- CpmReq.sub.-- B * State4)+State5+State6+State7)
Note: In these equations the following notations are indicated:
+=OR operator
*=AND operator
En=enable
:=designates FF output
/=inversion operation
In regard to the arbitration logic 24 of FIGS. 1 and 2, and in regard to the functioning of the arbitration state machine 24A shown in FIG. 4B, it will be seen that several components are used to provide the arbitration logic 24. These consist of:
(a) an arbiter state machine 24A which cycles through eight state conditions.
(b) a three-bit counter in state machine 24R (FIG. 4A) which is used to count RETRY conditions.
(c) three bus request input signals (CPM.sub.-- BREQ.sub.-- B, BEM.sub.-- BREQ.sub.-- B, IOM.sub.-- BREQ.sub.-- B) as input to the arbitration logic modules 24a, 24b, FIG. 2.
(d) three input signals involving three bus request enable signals as input to the arbitration logic 24.sub.a, 24.sub.b. These involve switches which can be set by software routines in order to "disable" a module by not allowing the arbiter logic 24 to grant bus access to that module.
(e) an input signal to the arbitration logic units 24a, 24b which indicates that the SBUS 22a, 22b FIG. 2, is busy, that is, SBUS.sub.-- BUSY.
(f) an input signal on line 24.sub.i, FIG. 4A, to the arbitration logic 24 which is designated as the SBUS Retry input signal.
(g) the bus interface logic 24B of arbitration logic 24 having three bus grant output signals, CPM.sub.-- GRANT, IOM.sub.-- GRANT, BEM.sub.-- GRANT (FIG. 4A).
FIG. 4B is a state diagram indicating the various state conditions operative in the arbitration state machine 24A. The designations IOM or CPM within each of the state circles identifies the module which has the bus access priority in that particular state. The active flows shown between the various state conditions of state "0" through state "7" handle the contention between the central processing module CPM 40 and the input/output module IOM 60. This is so since the bus exchange module BEM 50 is always given a higher priority than either of the other two modules CPM and IOM and thus, the BEM 50 will be granted first priority to the system bus 22 during any of the states if the BEM is requesting the system bus 22 and the bus is "not busy". The equation which is used for granting the system bus 22 to the bus exchange module BEM 50 is shown in equation EQ1:
EQ1:
BEM.sub.-- Bgnt.sub.-- B:=(Bem.sub.-- BreqFF.sub.-- B+En.sub.-- BEMReq.sub.-- B+/S.sub.-- Busy.sub.-- B +/NO.sub.-- Gnt.sub.-- B) +/CPM.sub.-- Bgnt.sub.-- B +/IOM.sub.-- Bgnt.sub.-- B
Since the system bus grant is generated by a flip-flop, the "bus grant" signal will become active on the next rising clock edge after the system bus 22 is "not busy" and the request enable signal is active and the BEM 50 has its request active and that the following conditions do not apply:
Condition 1: The bus grant flip-flop was "not set" for the CPM 40 or the IOM 60 on the previous rising clock edge. This is illustrated by the timing diagram of FIG. 5. If the signal S-BUSY-B becomes inactive at clock period number 2, (that is to say the bus is no longer busy), then the signal CPM-BGNT-B will be activated on clock period number 3, because the signal CPM-BREQ-B is the only active bus request.
However, if the signal BEM-BREQ-B becomes active in clock period number 3, the BEM 50 must not be granted in clock period number 4. Either one of the signals CPM-BGNT-B or IOM-BGNT-B must prevent the BEM 50 grant of a bus access because the signal S-BUSY-B will not become active due to the CPM grant until at least some period of time in clock number 4, which is already too late to prevent a grant to some other module in the clock number 4 period.
Condition No. 2: The signal NO-GNT-B must not be active. This is a safeguard in case the signal S-BUSY-B becomes active too late in clock number 4 or is even delayed until clock number 5. The no grant signal is shown in the last (bottom line) of FIG.5.
If the bus exchange module BEM 50 is not requesting the system bus 22, then the current state of the state machine as illustrated in FIG. 4B will determine whether the CPM 40 or the IOM 60 will be granted access to the system bus SBUS 22.
As seen in FIG. 4B, the arbitration state machine is initialized to begin in state "0". In this state, if the IOM bus request beats or ties "in time" the CPM bus request, then the IOM will be granted access to the system bus 22. After the IOM has completed its operation cycle, the system will then "toggle" the priority to the CPM. The equation used to grant the system bus to the IOM 60 is shown as EQ2:
EQ2:
IOM.sub.-- BGNT.sub.-- B:=(/S.sub.-- Busy.sub.-- B+IOM.sub.-- BreqFF.sub.-- B+En.sub.-- IOMReq.sub.-- B +/No.sub.-- Gnt.sub.-- B)+/CPM.sub.-- Bgnt.sub.-- B+/BEM.sub.-- Bgnt.sub.-- B+/(BEM.sub.-- BreqFF.sub.-- B+En.sub.-- BEMReq.sub.-- B)+(/CPM.sub.-- BreqFF.sub.-- B*/En.sub.-- CPMReq.sub.-- .sub.-- B*State4)+State5+State6+State7)
Then, after the system bus is granted to the IOM 60, the state machine will proceed to "state 1" where it will wait for one of the following conditions to occur:
State 1 Condition 1: If S-BUSY-B becomes inactive (that is to say, the system bus busy signal becomes inactive) this means that the IOM 60 has completed its operation. This will then cause the state machine to proceed to state 4 where the CPM will get its next chance to control the system bus SBUS 22 if its bus request precedes or "ties in time" the next IOM bus request.
State 1 Condition 2: A Retry is detected on the system bus 22. This detection can occur for one of the following reasons:
(a) A message command is retried by the bus exchange module BEM 50 because it has not yet finished processing the previous message transfer.
(b) A memory write request is retried by the BEM 50 because it cannot process the invalidation command to its local CPM at the present time period.
(c) A memory write command by the IOM 60 is retried by the CPM because the CPM 40 cannot handle the address of the operation to place it into its invalidation queue (of the cache memory) at the present time moment.
(d) A message command is retried by the central processing module CPM 40 because the CPM must first gain control of the system bus (SBUS 22) to send out the command before it can receive the message.
The above case 2(a) (of state 1 condition 2) is relatively easy to handle since the BEM 50 has the highest priority, and it will be able to quickly process the previous message so that it does not need to continuously retry the new command. Further, since message commands are relatively rare, the BEM 50 will not generally be expected to become swamped with messages from another module, so the BEM 50 can process the retried message in a relatively short period of time and thereby prevent any starvation conditions from occurring.
On the other hand, there is some potential for a "starvation condition" to arise in cases of 2(c) and 2(d). FIG. 6 is a drawing providing an example of how an input/output module, such as IOM 60.sub.a, can be indefinitely prevented (starved) from completing a "write operation."
First, in FIG. 6 it will be seen that the central processing module CPM 40.sub.a is controlling the system bus 22.sub.a (FIG. 2) with an overwrite operation in an attempt to reach the CPM 40.sub.b cache, during clocks 1 through 6. While this is occurring, the other system bus SBUS 22.sub.b (FIG. 2) in the domain 1 of partition 5B, is busy with a write operation from CPM 40.sub.b attempting to reach the CPM 40.sub.a during clocks 4 through 9.
Regarding cases 2(b) and 2(c) above, there is thus a potential for a starvation condition to arise. FIG. 6 will indicate an example of how the input/output module IOM 60.sub.a can be indefinitely prevented from completing its Write operation.
At first the central processing module CPM 40.sub.a (FIG. 2) will be seen to control the system bus 22.sub.a with an overwrite operation attempting to reach CPM 40.sub.b in clocks 1 through 6, indicated at the left edge of FIG. 6.
While this is occurring, the other system bus 22.sub.b in domain partition 1 (5B of FIG. 2) is still busy with a CPM 40.sub.b Write operation seeking to reach CPM 40.sub.a during clocks 4 through 9.
A bus exchange module BEM 50.sub.a queues up the Write address from CPM 40.sub.b and sends an invalidation command to the CPM 40.sub.a on the system bus SBUS 22.sub.a during clocks 8 through 13.
The bus exchange module BEM 50.sub.b in the domain partition 1 (SB, FIG. 2) queues up to the address of the CPM 40.sub.a Write operation, but then it (BEM 50.sub.b) has to wait before it can send the invalidation command to the CPM 40.sub.b on the system bus 22.sub.b since 22.sub.b is busy.
While the system bus 22.sub.b is waiting, then the other system bus 22.sub.a becomes free again and the input/output module IOM 60.sub.a may now attempt a memory write operation to reach to the CPM 40.sub.b cache, starting at clock 15.
However, since the BEM 50.sub.b has not yet sent the "previous" invalidation command to the CPM 40.sub.b, it then has no place to store the address received from the IOM 60.sub.a overwrite, since the BEM 50.sub.b only has a short queue that is one level deep. Thus, this will cause the BEM 50.sub.b to work on "retry" operations on clock 16.
Under these conditions, the request cycles can repeat themselves again indefinitely if both of the central processing modules CPM 40.sub.a and CPM 40.sub.b are both doing bursts of consecutive writes. In this type of situation where both CPMs are active, this will eventually "starve" the input/output module IOM 60.sub.a in this particular situation.
This, of course, is a condition which must be avoided and thus the present arbitration logic system 24 will prevent such a situation from occurring by giving a requesting module that has just been retried, a temporary higher priority of operations until it has completed its operation.
On the other hand, if a module had been given too high a priority, a "deadlock" condition, such as that mentioned earlier in case 2(b) above, can occur. In this situation, if the retried module is "always" given the higher priority, then the system can never resolve the case where the retry is caused by a module that needs to gain access to a system bus 22 to alleviate the condition where it caused the retry in the first place.
The solution to this type of unwanted problem is indicated in the arbitration state diagram of FIG. 4B. If the input/output module IOM 60 has already gained access to the system bus SBUS 22, the state machine will move to state 1, where it waits for the requested operation to complete or else enable a "retry" to recur.
If a retry does occur, then the state machine will move to state 2, where it will wait for the "bus busy" signal to become "inactive" which then signals the official end of the operation which has just been retried. When this occurs, the 3-bit counter, designated as the "retry" counter (FIG. 4C), will be incremented and the state machine will then move to state 3 (FIG. 4B).
The retry counter (24C) keeps track of how many times a articular operation has been retried. For the first seven times that an operation is retried, that particular resource module will be given a "second highest priority" for access to the system bus 22 (since the BEM will always have to priority). It will be seen, however, that the BM 50 will still have the highest priority even in this situation.
Thus, the module which has just retried its operation for seven times and has been given the second highest priority (after the BEM) will operate to lock out the other module temporarily from access to the system bus 22. Thus, it can be seen from the arbitration state 3 (FIG. 4B), this CPM 40 can never be granted access to the system bus 22. This is so since the BEM 50 has the top or highest priority and the module doing the seven retries has been given the second highest priority. Then, this leaves the other or third module being temporarily locked off of the system bus 22, that is to say the processor module CPM 40.sub.a. Thus, from state 3, the CPM 40.sub.b can never be granted access to the system bus 22.
In FIG. 4B, once the state machine enters state 3, the arbiter logic will wait for the IOM 60 to re-request the system bus 22 and once the IOM gets the Bus Grant, the state machine returns to state 1. At this point, the cycle from state 1 to state 2 to state 3 will be broken in one of two ways:
(a) The operation finally completes without being retried.
(b) The operation is retried for the eighth time.
In both of these cases the arbitration state machine proceeds to state 4 where the CPM 40 can then be allowed to use the SBUS 22 and the retry counter is cleared to "0".
The reason for this course of events occurring for the second case (b) above, is to prevent the possible deadlock condition mentioned previously under Case 2(d).
If the IOM 60 is constantly being retried by the CPM 40 because the CPM 40 must gain control of the system bus 22 before it can allow an operation by the IOM 60 to be completed, the transition to state 4 will then make this possible. As a result of this algorithm, it is possible to allow a retried module to temporarily gain a higher priority in order to prevent starvation, but still allow for a way to eventually discontinue that advantage so that there is no occurrence of a deadlock condition.
Described herein has been a system which shares access and usage of a single system bus means in which a system control module provides an arbitration logic system which enables the optimum operation for access to the system bus by three different resource modules designated as the central processing module, the input/output module and the bus exchange module.
While the bus exchange module is given the highest priority, conditions can occur where one of the resource modules can be put in a condition of starvation and non-access to the system bus. Other conditions can occur where a "deadlock" situation occurs such that two resource modules which are requesting access to each other can be locked-up and never complete their cycles of operation.
The present arbitration system in the system control module provides for an arbitration state machine system which handles and resolves any problems that might occur in terms of resource module starvation for access to the bus and in terms of the prevention of deadlock between contending modules for access to the bus.
Claims
  • 1. In a network wherein a first, second, and third digital resource module share a common system bus whose access is regulated by an arbitration logic means, an arbitration logic bus access system comprising:
  • (a) said first resource module constituting a Central Processing Module, CPM, connected to a common system bus and including:
  • (a1) means to request bus access from said arbitration logic means;
  • (a2) means to receive a bus grant signal from said arbitration logic means;
  • (b) said second resource module constituting an Input/Output Module, IOM, connected to said common system bus and including:
  • (b1) means to request bus access from said arbitration logic means;
  • (b2) means to receive a bus grant signal from said arbitration logic means;
  • (c) said third resource module constituting a Bus Exchange Module (BEM) connected to said common system bus and having bus access priority over said CPM and IOM except during periods when temporary priority is granted to said IOM and CPM in periods when said BEM is inactive and not requesting bus access;
  • (d) said arbitration logic means including:
  • (d1) an arbiter state machine for sequencing bus access priority signals when said BEM is not requesting bus access, to said IOM on a first series of four consecutive incremental states and sequencing bus access priority to said CPM on a second series of four consecutive incremental states including:
  • (d1a) retry counter state machine means including:
  • (i) means to enable multiple retries, during said first series of four consecutive incremental states, of bus access requests for said IOM when said common bus is busy including:
  • (ia) means to transfer bus access to said CPM after said IQM has gained bus access and completed a data transfer cycle;
  • (ii) means to enable multiple retries, during said second series of four consecutive incremental states, of bus access requests for said CPM when said common bus is busy including:
  • (iia) means to transfer bus access to said IOM after said CPM has gained bus access and completed a data transfer cycle;
  • (d1b) bus interface logic means for receiving bus access requests from said first, second and third resource modules including:
  • (i) means to grant bus access according to said sequencing bus access priority signals;
  • (ii) means for disabling any selected one of said first, second or third resource module from acquiring bus access said means including:
  • (iia) selective programming commands which cause said arbiter state machine to deny bus access to a selected BEM, IOM, or CPM.
  • 2. An arbitration logic system for allocating priority of access to a commonly shared system bus comprising:
  • (a) a common system bus connecting a Central Processing Module, CPM, an Input/Output Module, IOM, a Bus Exchange Module, BEM, and a system control module;
  • (b) said system control module including an arbitration logic means to receive bus access requests and to selectively grant bus access requests, said arbitration logic means including:
  • (b1) bus interface logic means for receiving bus requests and granting bus requests under control of an arbiter state machine, said bus interface logic means including:
  • (i) means to selectively disable a bus access request from said CPM, said IOM or said BEM said means including:
  • (ia) programmed commands for setting a switch in said arbitration logic means to deny bus access to a selected BEM, IOM or CPM;
  • (b2) said arbiter state machine normally granting priority to said requesting BEM except during an incomplete bus access request by said IOM or CPM after said BEM has completed a bus request cycle and is in an inactive period, and including:
  • (b2a) means to grant a temporary first priority for each one of 7 retry cycles to said IOM when said IOM has an incomplete bus access cycle;
  • (b2b) means to grant a temporary first priority for 7 retries to said CPM when said IOM has unsuccessfully tried 7 times for bus access;
  • (b3) a retry counter state machine for counting the unsuccessful retries for bus access that have been tried by a requesting IOM or CPM and for signaling said arbiter state machine when 7 retries have been effectuated.
Parent Case Info

This is a continuation of application Ser. No. 08/443,973 filed on May 18, 1995 now abandoned.

US Referenced Citations (9)
Number Name Date Kind
4472787 Busby Sep 1984
4785394 Fischer Nov 1988
4897786 Pimm et al. Jan 1990
5067071 Schanin et al. Nov 1991
5203007 Gallagher Apr 1993
5386517 Sheth et al. Jan 1995
5418914 Heil et al. May 1995
5469553 Patrick Nov 1995
5471590 Melo et al. Nov 1995
Continuations (1)
Number Date Country
Parent 443973 May 1995