1. Technical Field of the Present Invention
The present invention generally relates to integrated circuits and, more specifically, to the communication of data between cores that reside in an integrated circuit.
2. Description of Related Art
As manufacturing processes continue to become more complex and of smaller geometries, error-free communication of data between functional cores of an integrated circuit without introducing additional problems from noise, available space, and other similar issues is becoming increasingly difficult. Current methods for providing this communicated data use point-to-point or similar wiring techniques such as shared buses. Unfortunately, as integration density continues to increase, these techniques are becoming inefficient and prone to the introduction of errors.
It would, therefore, be a distinct advantage to have a method and apparatus that could transfer data from one core to another while reducing the issues typically associated with point-to-point wiring techniques and the like.
In one aspect, the present invention is a method of transmitting data in an integrated circuit. The method includes the steps of creating multiple cores that implement a desired function and creating multiple hubs that transmit data between the cores. The method further includes the step of creating a table that contains all valid path routings for data to travel from a source core of the multiple cores to a destination core of the multiple cores using one or more of the hubs. The method also includes the step of selecting one of the valid path routings for transmitting data from a first source core to a first destination core. In addition, the method also includes the step of transmitting the data according to the selected path routing from the first source core to the first destination core.
The present invention will be better understood and its advantages will become more apparent to those skilled in the art by reference to the following drawings, in conjunction with the accompanying specification, in which:
The present invention is a method and apparatus for transmitting data between cores in an integrated circuit using hubs/routers that are coupled one to another. The data is segmented into data packets and transmitted from a source core to a destination core. Each data packet includes a header for specifying its path route from the source core to the destination core and the time spent at hub/routers. This information is centrally maintained and updated in an arbiter that organizes the information according to source to destination path and time. Prior to transmitting data, the source core queries the arbiter to determine which of the available paths is appropriate for the transmission.
Reference now being made to
Each one of the hubs 1-8 is coupled to another hub 1-8 or core A-E in such a fashion so as to provide communication of data between cores A-E in accordance with transfer timing (e.g., synchronous or asynchronous) and design constraints. In addition, each of the hubs 1-8 and cores A-E communicate with the arbiter 108 using the arbiter bus 106 (each core A-E is coupled to the arbiter bus 106) as described in connection with
Reference now being made to
Prior to transmitting data packets, the source core will query the arbiter 108 for a routing path to the destination core (Steps 200-202). The arbiter 108 is responsible for storing the potential paths for transmission of data from any one of the cores A-E to another core A-E and updating the time it takes for the data to actually travel one of these paths in real time as explained in connection with
Based upon certain criteria such as time to reach the destination core and priority, the arbiter 108 upon receiving this request will return the routing path in the form of a header such as the example header 300 illustrated in
In the preferred embodiment of the present invention, as the data packet travels from one hub to another, the time spent at the hub is recorded in the header of the data packet. Alternatively, the total time it takes for the transmission of the data packet from the source core to the destination core can be stored on any other means for indicating the relative congestion of the routing path.
In accordance with the preferred embodiment of the present invention, the header 300 includes a time storage location with each hub designation. In this case, since the transmission of the header is just beginning, the time storage fields are blank or otherwise initialized.
Upon receiving the path route, the source core A, generates data packets containing the header 200 and transmits them to hub 1 (Steps 206-208) where they are further transmitted according to the indicated routing path.
Reference now being made to
Reference now being made to
The source to destination field indicates the source core and destination core. The path field indicates the hubs (i.e., routing path) that the data packets will take when being transmitted to the destination core. The time field indicates the last recorded amount of time that a data packet following the indicated routing path took to reach the destination core from the source core. The rank field is used for indicating the relative rank of this row in the table 600 when compared to other rows having the same source and destination combination. In lieu of a rank field, the table 600 could be indexed on the time and source to destination field.
The table 600 includes all combinations for hub routing for any source to any destination core (not shown). As the destination cores provide the header information to the arbiter 108, the arbiter 108 updates the matching record (row) to reflect the new time and reset the ranks accordingly.
As an example, the table 600 indicates that for source core A to destination core B the fastest routing path is hubs 1, 2, 3, 4, and 8 via its rank. As time progresses, the table 600 could be updated as indicated in
It should be noted that although the preferred embodiment uses a table with rows and columns, that any suitable data structure technique (e.g., link lists) could be used to track the fields noted above so that they can be accessed quickly and indexed appropriately.
The scheme used for determining which one of the path routing records to provide in response to a request for a particular source core and destination core can depend upon such things as hubs along the route path being available to transmit the packet data. If one or more of the hubs in the highest rank record for the route path indicate source to destination are unavailable, then the arbiter 108 selects the next highest rank record for this source to destination combination until it finds one that has the hubs available for this transaction.
The transmission of data packets from a source core to the indicated routing path provided by the arbiter 108 is explained below.
Reference now being made to
The receive/transfer unit 802 receives, stores and transmits data packets from other adjacent hubs and cores via receive and transmit data lines 806 and 808, respectively. Data packets are stored in the First In First Out (FIFO) memory mechanism as they are received and stored until they are either discarded or transmitted.
Control unit 804 manages the receipt and transmission of packet data by the receive/transfer unit 802 according to signals status/flush 804a, select hub 804c, select 804b, and hub status/flush 804d in accordance with the flow chart of
Reference now being made to
If there are insufficient resources the control unit 804 notifies the adjacent hub or source core that hub 6 is currently busy via hub status/flush signal 804d. If sufficient resources exist then the control unit 804 notifies the adjacent hub or source core to transmit data packets (Step 906)
In the preferred embodiment of the present invention, a hub or source core can simultaneously transmit multiple copies of the data when transmission is considered critical. When a hub or source core initiates multiple instantiations of the same data packets, unique identifiers are included in the header to indicate the instantiation to which the data packet belongs and that there are multiple instantiations. As a destination core receives a data packet, it records this information until the data transmission has been completed.
As explained below in connection with the receipt of data packets by a destination core, the destination core provides the headers of received data packets to the arbiter 108. The arbiter 108 tracks when multiple instances of the same data is being transmitted, and upon receiving header information on the data packets for the first instance to reach the destination core, the arbiter 108 informs all other hubs that are holding or transmitting the other instance(s) to flush their FIFOs of these redundant data packet instances via the status/flush signal 804a (Steps 906-908, and 918).
Received data packets are stored in the FIFO (Step 914). If the select hub signal 804c is still selected, then the source core or adjacent hub desires to send more packet data and the receipt of packet data proceeds back to step 302 and repeats the method from that point; otherwise, the receipt of the packet data ends (Step 918).
Reference now being made to
As previously discussed, the arbiter 108 can inform the hub that when it receives a certain data packet as identified with header information that the data packet should be transmitted to multiple adjacent hubs (Step 404).
The control unit 804 checks whether an adjacent hub is available for receipt of data packets by asserting the status/flush signal 804d (406-n). If the status/flush signal 804a indicates that the adjacent hub is available then the control unit 804 instructs the receive/transfer unit 802 to transmit the data packets in the FIFO (Steps 1012-1014).
If the status/flush signal 804a indicates that the adjacent hub is busy then the control unit 804 waits a predetermined period of time and attempts the transmission again (Step 1006)
It should be noted, that as the transmission of the data packets is proceeding that if this was part of a multiple instantiation that a flush signal can be received from the arbiter 108 via the status/flush signal 804a. If a flush signal is received the control unit 804 instructs the receive/transfer unit 802 to flush the indicated data packets stored in the FIFO.
It is thus believed that the operation and construction of the present invention will be apparent from the foregoing description. While the method and system shown and described has been characterized as being preferred, it will be readily apparent that various changes and/or modifications could be made without departing from the spirit and scope of the present invention as defined in the following claims.