The present invention relates to an arbitration mechanism for packet transmission and is particularly but not exclusively concerned with packet transmission in a packet transmission network.
Computer systems and integrated circuit processors exist which implement transactions with the dispatch and receipts of packets. Request packets define an operation to be performed and response packets indicate that a request has been received. The integrated circuit processor can comprise a plurality of functional modules connected to a packet router for transmitting and receiving the request and response packets. In such a system, it is necessary to arbitrate between requests received from the functional modules for controlling the flow of packets on the packet router (whether request or response packets). Typically, multiple functional modules are able to access the same bus or the same part of the system which leads to competition for that bus or for the same destination or target modules. The complexity of the arbitration mechanism is a function of the number of devices in the system and the arbitration algorithm which is used.
As the size and clock frequency of such systems, in particular integrated systems, increases, and the complexity of the arbitration function increases, the time required to make an arbitration decision for accesses to resources such as the system bus or target modules becomes critical. In many systems, it is not possible to make an arbitration decision and effect a packet transfer in a single clock cycle. This leads to a drop in potential performance as gaps are inserted increasing the latency between a request for packet transfer being made and the packet transfer actually being implemented.
It is an aim of the present invention to reduce the impact of arbitration decision latency on a system.
According to one aspect of the present invention there is provided a computer system comprising: a plurality of functional modules interconnected via a packet router, each functional module having packet handling circuitry for generating and receiving packets conveyed by the packet router; and a routing control mechanism for controlling the flow of packets on the packet router, said routing control mechanism being connected to said functional modules and to said packet router, wherein each functional module is operable to generate to the routing control mechanism a transfer request to request transfer of a current packet and an arbitration request with a destination indicator identifying a destination of a later packet and wherein the routing control mechanism is operable to accept said arbitration request with the destination indicator of the later packet and to effect a routing decision relating to the arbitration request while implementing the transfer of the current packet requested by the transfer request.
In the described embodiment, the arbitration request relates to a packet issued two cycles after the current packet by the same functional module. That is, the arbitration unit effectively hides a latency of two decision cycles. However, a latency period of at least one cycle still represents a considerable advantage. That is, transfer of a current packet can be implemented while a subsequent arbitration decision is effected. There can be any suitable number of cycles in the latency period.
At least a set of said functional modules can act as initiator modules for generating request packets for implementing transactions, each request packet including the destination indicator. A further set of the functional modules can act as target modules for receiving said request packets and for issuing respective response packets. The response packets can be arbitrated in the same way as request packets with associated response transfer and response arbitration request signals. Each functional module can be operable to generate a grant signal indicating that it is in a state to receive a packet. That grant signal is used by the routing control mechanism to effect packet transfers.
The routing control mechanism is preferably operable to issue an arbitration grant signal indicating that it has committed an arbitration decision to await transfer. This acts as a handshake mechanism to indicate to the functional modules that an arbitration request has been granted and the system is committed to transferring that packet. This allows the functional module to begin negotiation for an arbitration decision for a subsequent packet, possibly before the transfer of the previous packet.
In the preferred embodiment, each packet has an address field identifying a destination module using the destination indicator and identifying an address location within the target module to which the packet is to be directed. The arbitration request is associated with the destination indicator to allow arbitration decisions to be made while the transfer request is associated with the location within the target module.
Another aspect of the invention provides a functional module for connection to a packet router and having packet handling circuitry for generating and receiving packets conveyed by the packet router, the functional module being operable to generate packet flow control signals including a transfer request requesting transfer of a current packet and an arbitration request signal with a destination indicator identifying a destination of a later packet, wherein the arbitration request signal is issued when the later packet is ready for transfer.
Another aspect of the invention provides a routing control mechanism for routing packets between a plurality of functional modules interconnected via a packet router, the routing mechanism comprising: an arbitration mechanism for effecting routing decisions for each packet for which a request signal is received; a decision queue for holding at least one decision which has been made by the arbitration mechanism; and a transfer mechanism for transferring packets relating to queued decisions to the packet router to implement a packet transfer, wherein the arbitration mechanism is operable to effect a routing decision for a later packet while a current packet is being transferred by the transfer mechanism onto the packet router.
Another aspect of the invention provides a plurality of functional modules interconnected via a packet router, each functional module having packet handling circuitry for generating and receiving packets conveyed by the packet router; and a routing control mechanism for controlling the flow of packets on the packet router, said routing control mechanism being connected to said functional modules and to said packet router, the routing control mechanism comprising: an arbitration mechanism for effecting routing decisions for each packet for which a request signal is received; a queue for holding at least one routing decision which has been made by the arbitration mechanism; and a transfer mechanism for transferring packets relating to queued decisions to the packet router to implement a packet transfer, wherein the arbitration mechanism is operable to effect a routing decision for a later packet while a current packet is being transferred by the transfer mechanism onto the packet router.
Another aspect of the invention provides a method of effecting pipelined routing decisions in an integrated circuit comprising a plurality of functional modules interconnected via a packet router wherein each functional module generates a transfer request for a current packet and an arbitration request with a destination indicator of a later packet, the method comprising: effecting a transfer of the current packet based on an earlier routing control decision while making a routing control decision in relation to the later packet.
For a better understanding of the present invention and to show how the same may be carried into effect reference will now be made by way of example to the accompanying drawings.
a and 7b are timing diagrams illustrating operation of the arbitration unit.
As shown most clearly in
In the example shown in
The CPU 12 can be operated in a conventional manner receiving instructions from a program memory and effecting data read or write operations with the cache 42 on-chip. Additionally external memory accesses for read or write operations may be made through the external memory interface 32 and bus connection 33 to the external memory 50. Each packet is constructed from a series of cells or tokens, the end of the packet being identified by an end of packet (eop) cell. Each packet cell comprises a number of fields which characterize the packet. Each packet is transmitted by a source module and is directed to a destination module. An initiator can issue request packets and act on response packets. A target can receive and act on requests and issue responses. Thus, a source module may be an initiator or a target depending on the nature of the packet. The source module uses its associated port 4 to transmit a packet onto the routing bus 15. The routing bus 15 arranges for the packet to be routed to the port 4 associated with the destination module. The destination module then receives that packet from its associated port. The source and destination modules can be the same.
A transaction is an exchange of packets that allows a module to access the state of another module. A transaction comprises the transfer of a request packet from a source module to a destination module, followed by the transfer of a response packet from that destination module (now acting as a responding module) back to the source module which made the original request. The request packet initiates a transaction and its contents determine the access to be made. The response packet completes the transaction and its contents indicate the result of the access. A response packet also indicates whether the request was valid or not. If the request was valid, a so-called ordinary response packet is sent. If the request was invalid, an error response packet is transmitted. Some modules act only as initiators and thus their packet handling circuitry 2 is capable only of the generation of request packets. Some modules act only as targets (e.g., module M4 in
The format of the multi-bit packets used on the routing bus 15 in the microcomputer are illustrated by way of example in
Any appropriate arbitration algorithm can be used by the arbitration unit 22 to control access to the bus by initiator and target modules. The arbitration unit determines if more than one initiator is requesting access to a routing resource/bus required to access a particular target or group of targets, which port gains access to the target resources. This can be done using a fixed priority size algorithm or a more complex algorithm such as least recently used. The precise algorithm which is used can be determined by a person skilled in the art for the particular implementation. The arbitration decision is made using the following information: initiators requesting a particular target resource, target availability, position in message and the arbitration algorithm which is selected. The arbitration unit also arbitrates for a routing resource to return responses to the initiator based on the following information: the target requesting the resource, initiator availability, location in message and the selected arbitration algorithm.
According to the embodiment of the invention described herein, the arbitration unit 22 is also capable of making an arbitration decision about transfers to be effected after the current transfer. It will be appreciated that, in the absence of the additional signals discussed later with reference to the preferred embodiment of the invention, the arbitration unit would determine a sequence of transfers responding to requests made to it. That is, it would queue requests for arbitration received from various modules attempting to access the bus, effect sequential arbitration decisions and then cause a packet transfer to be implemented following each arbitration decision. The embodiment described herein allows a module to request a deferred arbitration decision while the current transfer is occurring.
Before describing the arbitration mechanism, the control signals of
request (req) ready to send data.
This is driven by an initiator module (IM) and is used to indicate that it is ready to transfer a request or element of a request across the interface. If this signal is asserted the request content and framing signals are valid.
Initiators indicate they have data to send by asserting request and expect a grant in this or subsequent cycles to complete the transfer.
grant (gnt) ready to accept data.
This is driven by a target module (TM) and is used by the target to indicate it is ready to accept data. A data or cell transfer across the interface occurs when the initiator is ready to send and the target is ready to accept, i.e. both request and grant are asserted at a rising clock edge.
Targets indicate they are able to accept data by asserting grant and expect a request in this or subsequent cycles to complete the transfer.
end of packet (eop) final cell of packet.
This driven by the initiator and indicates this is the final cell of a request packet.
address (add) the transaction target address.
This holds the address of the location within the target module the operation will occur on. It is field 63 in
source (src) source identifier.
Identifies the source of the transaction to the system. It allows the system (and target modules) to associate a series of transactions with a specific source of data. It is used as the destination address of a response packet for the associated request.
response request (r_req) indicates a response cell is available.
An initiator should only commence a transfer if it is ready to accept the response packet.
response grant (r_gnt) indicates a response cell may be accepted.
response source (r_src) is a copy of the source identification field which is used as the destination indicator of the response packet.
next request (a_req) indicates the module is ready to start the next or subsequent request packet.
next grant (a_gnt) indicates the system will be ready to accept the next or subsequent request packet on completion of the current packet.
next address (a_add) is the address of the target module for the next or subsequent request, being the dest byte 73 of
next response request (ar_req) indicates the module is ready to start the next or subsequent response packet.
next response grant (ar_gnt) indicates the system is able to accept the next or subsequent response on completion of the current.
next response source (ar_src) the destination of the next or subsequent response packet, being the SRC byte 99 of
The latter six signals (a_req, a_gnt, a_add, ar_req, ar_gnt, ar_src) are used to create a path from the module to the arbitration unit 22 which allows information on a later transfer to be dealt with whilst the current transfer is being implemented. Thus, a module can hide the latency associated with the arbitration function by supplying information on the later transfer to be considered whilst the current transfer is being implemented.
The arbitration mechanism will now be described with reference to
While the transfer logic 19 is implementing a transfer, an arbitration decision can be effected by the decision logic 13 for a later packet. Thus, from the module's point of view, it can request the transfer of a packet by assertion of the request signal req and simultaneously or a number of cycles later request arbitration for a subsequent packet ready for transfer. From the point of view of the arbitration unit 22, it can deal with a transfer request and a request for an arbitration decision in each cycle, and in fact can make a number of sequential arbitration decisions which will be held in the queue 115 while the transfer is being effected. It is possible that a transfer of a packet for which an arbitration decision has been made will involve the assertion in multiple cycles of the request and grant signals, depending on the number of cells in the packet and the bus width.
Once a packet has been transferred, the decision relating to that packet is removed or retired from the queue. The queue additionally includes a mechanism to allow response packets to overtake request packets to avoid deadlock conditions where initiator modules cannot complete transactions because they are still awaiting return of a response packet.
a illustrates the effective transfer of packets from a destination to a source module across the routing bus 15. The request signal req indicates that a function module has requested a transfer, and the grant signal gnt indicates that the destination module is able to receive the transfer. The address signal 63 (add) indicates the location within the target module to which the packet is addressed. That is, it is the part of the address illustrated in
It will be appreciated that a transfer may involve multiple assertions of the request signal req until a transfer with eop asserted is made. However, it is only necessary to make a single arbitration decision per packet.
Although the sequence has been described for module M1 as though it is an initiator module making a request to transmit a request packet, a similar sequence of events takes place for the transmission of response packets. This involves the insertion of a response request signal r_req, together with transmission of the src byte indicating the destination of the response packet (being the initiator module). A response grant signal r_gnt is asserted by the initiator module when it is ready to receive a response. These signals are all omitted from
The present application is a continuation of U.S. patent application Ser. No. 09/411,429 entitled ARBITRATION MECHANISM FOR PACKET TRANSMISSION filed on Oct. 1, 1999 now U.S. Pat. No. 6,693,914.
Number | Name | Date | Kind |
---|---|---|---|
4814981 | Rubinfeld | Mar 1989 | A |
5251311 | Kasai | Oct 1993 | A |
5359592 | Corbalis et al. | Oct 1994 | A |
5386565 | Tanaka et al. | Jan 1995 | A |
5402416 | Cieslak et al. | Mar 1995 | A |
5423050 | Taylor et al. | Jun 1995 | A |
5434804 | Bock et al. | Jul 1995 | A |
5440705 | Wang et al. | Aug 1995 | A |
5448576 | Russell | Sep 1995 | A |
5452432 | Macachor | Sep 1995 | A |
5455936 | Maemura | Oct 1995 | A |
5479652 | Dreyer et al. | Dec 1995 | A |
5483518 | Whetsel | Jan 1996 | A |
5488688 | Gonzales et al. | Jan 1996 | A |
5530965 | Kawasaki et al. | Jun 1996 | A |
5570375 | Tsai et al. | Oct 1996 | A |
5590354 | Klapproth et al. | Dec 1996 | A |
5596734 | Ferra | Jan 1997 | A |
5598551 | Barajas et al. | Jan 1997 | A |
5608881 | Masumura et al. | Mar 1997 | A |
5613153 | Arimilli et al. | Mar 1997 | A |
5627842 | Brown et al. | May 1997 | A |
5640518 | Muhich et al. | Jun 1997 | A |
5657273 | Ayukawa et al. | Aug 1997 | A |
5682545 | Kawasaki et al. | Oct 1997 | A |
5704034 | Circello | Dec 1997 | A |
5708773 | Jeppesen, III et al. | Jan 1998 | A |
5724549 | Selgas et al. | Mar 1998 | A |
5737516 | Circello et al. | Apr 1998 | A |
5751621 | Arakawa | May 1998 | A |
5768152 | Battaline et al. | Jun 1998 | A |
5771240 | Tobin et al. | Jun 1998 | A |
5774701 | Matsul et al. | Jun 1998 | A |
5778237 | Yamamoto et al. | Jul 1998 | A |
5781558 | Inglis et al. | Jul 1998 | A |
5796978 | Yoshioka et al. | Aug 1998 | A |
5828825 | Eskandari et al. | Oct 1998 | A |
5832248 | Kishl et al. | Nov 1998 | A |
5835963 | Yoshioka et al. | Nov 1998 | A |
5848247 | Matsul et al. | Dec 1998 | A |
5860127 | Shimazaki et al. | Jan 1999 | A |
5862387 | Songer et al. | Jan 1999 | A |
5867726 | Ohsuga et al. | Feb 1999 | A |
5884092 | Kiuchi et al. | Mar 1999 | A |
5896550 | Wehunt et al. | Apr 1999 | A |
5918045 | Nishii et al. | Jun 1999 | A |
5930523 | Kawasaki et al. | Jul 1999 | A |
5930833 | Yoshioka et al. | Jul 1999 | A |
5944841 | Christie | Aug 1999 | A |
5950012 | Shiell et al. | Sep 1999 | A |
5953538 | Duncan et al. | Sep 1999 | A |
5956477 | Ranson et al. | Sep 1999 | A |
5978874 | Singhal et al. | Nov 1999 | A |
5978902 | Mann | Nov 1999 | A |
5983017 | Kemp et al. | Nov 1999 | A |
5983379 | Warren | Nov 1999 | A |
6282195 | Miller et al. | Aug 2001 | B1 |
6424658 | Mathur | Jul 2002 | B1 |
6483846 | Huang et al. | Nov 2002 | B1 |
6674750 | Castellano | Jan 2004 | B1 |
6904043 | Merchant et al. | Jun 2005 | B1 |
Number | Date | Country |
---|---|---|
0165600 | Nov 1991 | EP |
0 539 076 | Apr 1993 | EP |
0 550 223 | Jul 1993 | EP |
0636976 | Feb 1995 | EP |
0636978 | Feb 1995 | EP |
0652516 | Jun 1995 | EP |
0702239 | Mar 1996 | EP |
0720092 | Jul 1996 | EP |
0933926 | Aug 1999 | EP |
0945805 | Sep 1999 | EP |
0959411 | Nov 1999 | EP |
PCTJP9602819 | Sep 1996 | JP |
8320796 | Dec 1996 | JP |
8329687 | Dec 1996 | JP |
9212358 | Aug 1997 | JP |
9311786 | Dec 1997 | JP |
10106269 | Apr 1998 | JP |
10124484 | May 1998 | JP |
10177520 | Jun 1998 | JP |
Number | Date | Country | |
---|---|---|---|
20040160978 A1 | Aug 2004 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09411429 | Oct 1999 | US |
Child | 10780355 | US |