DISTRIBUTED-STRUCTURE CIRCUIT FOR ARBITRATING THE ACCESS REQUESTS TO THE BUS OF A MULTIPROCESSOR SYSTEM

Abstract: The arbitrating circuit presents a distributed structure and a binary-tree connection of the priority bus to all the parts forming the distributed structure. Said circuit effects an initialization procedure of the dynamic and distributed type, which does not require an external controller and assigns, as initial priority vector of each element, the vector present on the priority bus, emitted by the upstream arbiter and reduced by a binary unit: in addition, at each bus cycle, it cylically reassigns the priority to all the elements, by stopping there-assignment procedure when an element which has acquired the bus, requests it for more cycles.

Description: Distributed-Structure Circuit for Arbitrating the Access Requests to the Bus of a Multiprocessor System Description The present invention relates to arbitrating circuits for the bus assignment in multiprocessor systems and in particular it concerns a distributed-structure circuit for arbitrating the access requests to the bus of a mukiprocessor system. In the latest multiprocessors, the bus apt to interconnect the various ystem elements is requested to have higher and higher performances especially in terms of date exchange rate. Hence1 also the circuits apt to arbitrate the access requests to the bus muat be apt to handle said requests in short time periods, compatible with the operation time periods on the bus itself: an arbitration can be requested every 125 ns or even less. The choice of a distributed structure of the arbitration¯ circuit is in fact made to take into account these requirements; in addition it has the advantage over a centralized structure of not being strict but easy to reconfigure in case of failure of one or of a plurality of elements. Further characteristics such an arbitration circuit ought to have are: priority dynamic-re-assignment, so as to ensure an equal possibility of accessing the bus by all the elements; minimization of the number of wires composing the priority bus, i. e. the bus connecting all its parts; dynamic and distributed inizialization, i. e, the initial priority level of each element is to be computed, upon switching over, by the arbitration circuit itself1 withouttheneed ofpre- cabled data or data supplied from the outside, to increase the system flexibility without resorting to external controllers. In case the implementation of such a distributed structure is made by integrated circuits, one integrated circuit for each element, a further problem arises, consisting of the propagation delay of the signals chiefly through the portion of priority dynamic reassignment circuit. These problems are solved by the present invention of a distributed-structure arbitrating circuit, which uses a priority bus with connections of the binary tree type and composed of log2 n wires (the number of elements being equal to n), which carries out a dynamic and distributed inizialization procedure by assigning each element with an initial priority vector, given by the vector present on the priority bus reduced by a binary unit, and effects a priority dynamic re-assignment of the cyclic type by means of a logic subdivided into two levels which are function of the weight of the bits of the priority vectors and which are particularly suited to be integrated. It is a particular object of the present invention a distribut ed-structure arbitrating circuit as described in claim 1. These and other characteristics of the present invention will become clearer from the following description of a preferred embodiment thereof, given by way of example, and not in a limiting sense, in connection with the annexed drawings, in which: Fig. I shows an example of application of the distributed-structure arbitration circuit, provided by the invention, to a 32 - element multiprocessor system; Figure 2 shows the time trend of a number of signals of Fig. 1; Figure 3 shows the circuit scheme of block ARB1 of Fig. 1; Figure 4 shows the flow chart relating to the block UC1 of Fig. 3; Figure 5 shows the implementing scheme of blocks COMP and NP of Fig. 3. In Fig. 1 references MP1,.. . MP8 indicate eight elements of the multiprocessor system which are to access bus B, the system provides in the described example 32 elements, but the other elements have not been shown in Fig. 1 for simplicitv sake; References ....... ARB8 indicate eight equal arbitration circuits, one for each system element, which implement a distributed arbitration structure; 32 arbitration circuits are provided, but the other 24 circuits have not been shown in the figure. P denotes the priority bus composed of five wires PO, P4; the number of wires is equal to the logarithm to the base two of the number of elements. The number of the wire corresponds to the bit weight (the least significant bit is present on PO, whilst the most significant one is on P4). On bus P, at each cycle,the priority vector is present i. e. the binary coding of the adress of the element with the highest priority which has the right of accessing the bus B. The wires of bus P are connected to circuits ARB so as to realize a binary tree structure: wire Pt is connected to the corresporlg ing output of all the circuits ARB; wire P3 is subdivided into two parts: the first part is connected to the first 16 circuits ARB and the second part to the remaining 16 ARB; wire P2 is subdivided into 4 parts of which the first connected to ARB1,. . .AR1R8, the second to the subsequent eight, and so on; wire P1 is subdivided into eight part each connecting four successive circuits (the first part connects ARB1 ARB4 and so on); wire PO is subdivided into 16 parts each connecting two successive circuits (the first part connects ARB1 and ARB2, and so on). Each wire of bus P is also connected to a resistance RR which in turn is connected to ground. Each circuit ARB receives clock signal CK whose period is also the elementary time interval (hereinafter referred to as bus cycle) of acquisition of bus B by an element MP. All circuits ARB receive the reset signal RS whose active state causes the start of the inizialization procedure, which will be mentioned hereinafter; in addition each circuit ARB can emit a signal LK which is brought to all the other circuits ARB by means of the homonymous wire connected to the positive supply voltage through resistance RR. The logic value 0 on wire LK inhibits the priority reassignment procedure which will be described hereinafter; which can happen either during the inizialization procedure or when an element MP acquires bus B for more cycles. Signal IN1, which always carries the positive supply voltage value, when preceded by signal RS, starts the initialization procedure; when ARB1, whereto B1 is transferred, terminates its own initialization procedure, it will. generate signal IN2, which will start the corresponding procedure of ARB2 and so on up to the completion of the procedure concerning the last circuit ARB. Each arbitration circuit receives from the respective element MP, signal RQ (RQl for ARBI and so on) of access request to bus 3, and signal CN (CN1 for ARB1) of bus request for more cycles, and supplies the corresponding circuit MP with signal AK (AK1 for ARBl.. . )enablingthe access to bus B if it has won the contention procedure. An example of contention procedure will be now described, for the assignment of bus B, between two elements MPI and MP5, assuming that MOP 1 has higher priority than MP5 and that the initialization procedure is already over; reference will be made to Fig. 2. Fig. 2 shows the trend in time of clock signal CK of period T: at the instant tl MPl and MP5 request the access to the bus and hence set the respective signals Ral, RQ5 to the active state (logic level 1). In addition MP1 requests the access for two cycles and hence it sets also the signal CN1 to 1, while CN5 will remain at 0, because MP5 requests the bus for an only cycle. It is to be noted that at the beginning of each cycle, each circuit ARB modifies its own priority, according to the modalities described hereinafter: that is indicated in Fig. 2 with the transitions which take place on the priority bus P, unless signal LK is set,by one of the circuits MP, in the active state (logic level 0). At instant t2 bus B is free, so that, in the hypothesis MPl has higher priority than MP5, ARBlsetsto lthe enabling signal AKl which remains active for the number of cycles requested by MPI, that is up to the cycle next to the instant in which MP1 resets signal CN1 to 0 (in the example of Fig. 2 CN1 resets to 0 in t3 and AK1 in t4). In addition, upon bus acquisition, ARB1 sets signalLK to 0,up to the last but one acquired cycle (in the example, for the duration of a cycle, from t2 tot3), inhibiting then the procedure of priority reassignment which ought to have taken place in t3. Signal RQ1 remains at I till the end of the first cycle acquired by MP 1, i. e. up to t3. When MP1 releases bus B (instant t4), and assuming that no other element with higher priority has requested the bus, MOP 1 acquires the bus and ARDS sets signal ME5 to I for the next cycle, up to the instant t5, instant at which also RQ5 resets to 0. The algorithm is now described according to which each arbitration circuit recalculates the priority vector, i. e. the binary number expressing its own priority level, taking nto account that logical level 1 is considered as having higher priority than logic leveL 0. Reference P will denote the priority vector present at a determined instant on bus 0, r will denote the priority vector present at the same instant within each arbitrating logic, and d the future priority vector, i. e. the vector to be calculated. Each vector is composed of m bits (in the present example m = 5). The j-th bit of the respective priority vector (0 4 j = m-l) will be denoted by p(j), r(j), d(j). Each arbitration circuit examines vectors p and r, starting from the most significant bit, i. e. from j = m-l; if p(j)r (j), it sets d (j) = 0, going on towards the least significant positions till it finds a position for which p (j)*r (j); then for that position it sets d (j) = 1. For the successive positions it sets d (j) = r (j). By instance if p = 00101, r = 00011, then it will bed = 00111. As to the initialization procedure, when arbitration circuits ARB (Fig. I) receive reset signal RS, all their outputs on bus P are disabled and all the wires of bus P are then grounded through resistances RR, all of them assuming thus logic value 0. In Fig. 3 blocks COMP and NP implement the futurepriority vector computing circuit. Block COMP, consisting of an equality comparator, receL- ves bus P carrying vector p and bus R carrying vector r. When the two incoming buses carry equal values, COMP emits an equality signal EQ. Also block NP receives buses P and R and emits futurepriority vector d at the output on bls D. Only in presence of the enabling signal AB1, transmission circuit DR1 supplies register RGl with said vector d through bus D1; only in this case vector d becomes internal priority vector r for the subsequent comparison. Block NP implements the following Boolean equations: a (j) = p (j) XOR r (j) (for j = 4) d(j) = [ d(i+l) * p(j)# XOR r (j) (3 oj > 0) where XOR indicates the logic operation EX - OR and the logic operation AND. Block LD is a decrement logic which receives at the input bus P and supplies at the output on bus U the input binary value decremented by 1 (binary unit). The output value is the vector of initial priority i. Block LD is implemented by a PLA logic (Prograrrimed logic Array), and not by usual counters, since the time available to carry out the subtraction operation is very short, i. e. of the order of magnitude of the period of clock signal CK. The embodiment of block LD, once the function it has to carry out is known, is not a problem to the skilled in the art. The binary value present on bus U, only in presence of the enabling signal AB2, is supplied through transmission circuit DR2 and bus D1 to register RG1. Register RG1 always emits at the output on bus R, the values stored. Bus R is also connected to transmitting circuit DR3, which only when it receives the enabling signal AB3, sends the contents of register RG1 on bus P. Block UCl is the control unit realized by synthetizing a finite-state machine, by means of a PLA logic described by the flowchart of Fig. 4 described hereinafter. When UC 1 (Fig. 3) receives signal Ras, it sets itself in the state a (Fig. 4) in which it generates signal LK and loops in this state till it recognizes logic level 1 of signal IN1; upon this recogni tionit generates signal AB2 enabling the storage in RG1 (fig. 3) of the value, coming from LD, which is the initial priority value of element MP1 (Fig. 1). Then UC1 goes to state b (Fig. 4) in which it generates signal AB3, which allows the initial priority value to be sent over bus P, and then it generates signal IN2 which is sent to arbiter ARB2 (Fig. 1 ). Then UC1 goes to wait state c (Fig. 4), where it loops till when signal LK is reset to logic value 1, i.e. till when the initialization procedure of all the arbitrating circuits is over, each of these circuits starting its own procedure as soon as the upstream circuit procedure is over. Then the first circuit of the series, in our case ARB1, as soon as it receives the reset signal RS, will find at once signal IN1 at logic value I and will generate at once signal AB2; the vector of initial priority p , which will be sent on bus P, will be that previously present on P itself, i. e. the vector composed of all logic values 0 (as all circuits DR1 are still disabled) reduced by binary value 1, i. e. a vector composed of all logic values 1. The second circuit of the series i. e. ARB2, will go out of state a, only after receiving signal INZ, i. e. after ARB1 has sent on bus P its initial vector: that will be taken by ARB2 as an input value for the corresponding block LD, which value is to be reduced and sent to the corresponding register RG1. Thus the initialization procedure goes on till when the last circuit ARB goes out of corresponding state a, causing signal LK to be reset to value I. At this point control units UC of all the arbitration circuits go out, at the same time, of state c and go to subsequent state d, which is the first operating state. During the whole initialization procedure blocks LD and NP of each arbitration circuit continuously compute priority vectors which are sent on corresponding buses U and D. In state d UCI checks again whether LK is at 0: now however that can happen only if an element MP connected to another arbiter #as acquired bus B for more cycles. When LKis at 1, UC1 generates signal AB1 which enables the loading in RG1 of the last priority vector d computed by NP. Then if element MPI does not request the access to bus B, UCI returns to stated; if on the contrary the access is requested, and hence signal RQ1 is at 1, UCI generates signal AB3, allowing the value present on bus R to be transferred also onto bus P. Only at that instant UC1 considers the logic value of signal EQ emitted by COMP: if it is 0, it means that vectors p and r are different, and hence there is another element MP, with higher priority, which can acquire bus B, hence OC1 returns to state d; if the logic level of EQ is I, that means that vectors p and r are equal and MP 1 c an acquire bus B.can acquire bus B. Then UC1 goes to state e (Fig. 4) in which it holds bus B and generates signal AKI. If CN1 has logic level 1, UC1 sets to 0 signal LK, which inhibits further arbitrating operations, and loops in state e, if or when CN1 is reset to 0, UC1 sets LK to 1, then it generates the enabling signal AB1 and returns to state d. When desiring an integration of the whole arbitrating circuit ARB1, circuits COMP and NP can be implemented as shown in Fig. 5. Since both COMP and NP have the same inputs, composed of buses P and R, these two blocks may be considered as an only logic unit subdivided into two levels CON1 and CON2 which are only function of the bit weight of the two input buses. CON1 and CON2 are implemented by a PLA structure, which is within the capacity of the skilled in the art, once defined the Boolean equations implemented by NP. CON1 receives at the input wires P4, P3, P2 of bus P and wires R4, R3, R2 of bus R, i. e. the bits of two buses, whose weight is 4, 3, 2, and generates at the output a signal EQ1 indicating the equality of bits whose weight is 4, 3, 2, and the bits of vector d of future priority whose weight is 4, 3, 2 over wires D4, D3, D2 of bus D. All the signals at the output of CON1, and wires P1, PO of bus P and R1, RO of bus R (i. e. the bits of the two buses whose weight is 1 and 0) are connected to the inputs of CON2 which emits at the output a signal EQ denoting the equality among all the bits of the two buses P and R and the bits of vector d on bus D. completed by the remaining wires D1, DO corresponding to bits whose weight is 1, 0. The subdivision into CON1 and CON2 has been carried out to optimize the ratio between the occupied area in the integrated circuit and propagation time of the various signals through the blocks of Fig. 5, thus obtaining an area reduction of a factor nearly equal to seven, with respect to an-embodiment by means of a unique-level PLA structure. Variations and modifications may be given to the described embodiment, without departing from the scope of the invention.

Claims: Distributed-Structure Circuit for Arbitrating the Access Requests to the Bus of a Multiprocessor System CLAIMS 1. Circuit for arbitrating the access requests to a bus (B) by ele ments (MP1, MP2, ...) of a multiprocessor system, said circuit having a distributed structure composed of equal arbitrating de vices (ARB1, ARB2, ...), each connected to the corresponding ele ment and interconnected via a priority bus (P) having a binary tree structure, and for the initialization procedures connected in series, the available time for accessing the bus being subdi vided into successive cycles, characterized in that each of said arbitrating devices (ARB1) comprises: : - a comparator (COMP) which receives at the inputs said priority bus (P), on which there is present a binary-nu#nber forming a priority vector p, and a first internal bus (eel) carrying a binary number forming a present priority vector r, and which emits an equality signal (EQ) of data present on said input buses; - a computing circuit (NP) of the future priority which receives at the inputs Daid priority bus (P) and first internal bus (R) and emits on a second internal bus (D) a binary number, which forms a future priority vector d, computed starting from the most si gnificant position according to the following Boolean equations: : (I) d (j) = p (j) XOR r (j) (2! d (j) = [ d (J + 1) * p (i)j XOR r (j) where equation (1) is valid for the bits of the most significant position of the vectors, the equation (z) is valid for the bits of all the other positions, symbols d (3), p (j), r (j) indicate the bit having j -th weight of the respective vectors d, p, r, while thesymbolsXORand*indicate EX-OR and AND logic operations; - a first transmission circuit (dry) for sending on a fourth internal bus (D1) said future priority vector d present on said second in ternal bus (D) only when it receives a first enabling signal (AB1); ; - a decrement logic (LD) subtracting a fixed binary number from said priority vector p present on the priority bus (P) and obtaining and sending on a third internal bus (U) an initial priority vector i; - a second transmission circuit (DR2) sending on said fourth internal bus (D1) said initial-priority vector i present on said third internal bus (U) only when it receives a second enabling signal (AB2); an internal--register (RGl)memorizing and supplying on said first internal bus (R) the priority vector present on said fourth internal bus (Di); - a third transmission circuit (DR3), sending on said priority bus (P) the priority vector present on said first internal bus (R), only when it receives a third enabling signal (AB3); ; - a control logic (UC1) carrying out in sequence the following ope rations: when it receives a reset signal (RS), it emits aninhibition signal (LK) of the arbitrating procedures of± all the arbitrating devices for the subsequent cycles, and, if an initialization signal (IN1) emitted by the upstream arbitrating device is active, it emits said second (AB2) and then said third (AB3) enabling signal ard then an initialization signal (L+i2), towards the d#vnstream arbitrating device; when said inhibition signal (LK) is deactivat ed it emits said first enabling signal (AB1), and, if a signal of access request to the bus (B) coming from the respective element (MPl) is present, it emits said thira enabling signal (AB3); if it receives said equality signal (EQ) from said comparator (COMP) it emits towards the respective element (MPl)asignal (AK1) indicating the occurred bus acquisition;then if the element (MPl) 1aas sent a signal (CNl) of request of the bus (B) for a plurality of cycles, it emits said inhibition signal (LK) up to the last but one cycle requested, else it emits said first enabling signal (AB1). 2. Circuit for arbitrating according to claim 1, in which on said priority bus (P) logic level 1 is prevailing¯characterizedinthat said decrement logic (LD) subtracts binary value 1 from the bina ry number present at its input. 3. Circuit for arbitrating as in claim 1 or 2, characterized in that said comparator (COMP) and said computing circuit of the future priority (NP) form a logic circuit subdivided into two levels (CON1, CON2), the first level receiving and processing the most significant. bits of the input bus, and the second level the least significant bits. 4. Circuit for arbitrating as in claim 3, characterized in that, in case said vectors are composed of five bits, the first level (CON1) of said logic circuit receives at the input the bits of the three most significant positions of vectors T, p, and the second level (CON2) the bits of the two least significant positions.

Inventors: CAPIZZI, GIUSEPPE NICOLO, MELGARA, MARCELLO
Applicants: CSELT CENTRO STUDI E LABORATORI TELECOMUNICAZIONI S.P.A.
Application year: 1984
Main classification: G06F13
IPC codes: G06F13