Network-on-chip communication method and device, computer equipment and storage medium
By assigning layer numbers and establishing connection relationships for the three-dimensional cross hypercube in the on-chip network, the data transmission path is optimized, the problem of high signal delay in the 3D NoC structure is solved, and communication efficiency and parallel processing capabilities are improved.
Patent Information
- Application Number
- CN202410977364.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-27
AI Technical Summary
When there are many nodes in the on-chip network, the signal delay is still high when using the existing 3D NoC structure for communication.
By assigning layer numbers to multiple three-dimensional cross hypercubes and establishing connection relationships between them, the target on-chip network topology is formed, and global links are used to connect different three-dimensional cross hypercubes to optimize data transmission paths and reduce communication delays.
It achieves lower signal delay, improves the overall transmission efficiency and parallel processing capabilities of the network, and reduces the complexity of the network structure and the difficulty of hardware implementation.
Smart Images

Figure CN118714019A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a network-on-chip communication method, device, computer equipment and storage medium. Background Art
[0002] With the development of large-scale integrated circuit technology, the requirements for communication efficiency and system real-time performance are getting higher and higher. Network on Chip (NoC) came into being and is widely used in the communication field.
[0003] In the related art, 3D NoC is formed by stacking NoC layers to shorten the length of key links and reduce signal delay.
[0004] However, when there are many nodes in the on-chip network, the signal delay is still high when the 3D NoC structure in the related art is used for communication. Summary of the invention
[0005] In view of this, the present invention provides a network-on-chip communication method, apparatus, computer device and storage medium to solve the problem that when there are many nodes in the network-on-chip and the 3D NoC structure in the related technology is used for communication, the signal delay is still high.
[0006] In a first aspect, the present invention provides a network-on-chip communication method, the method comprising:
[0007] Assigning layer numbers to a plurality of three-dimensional cross hypercubes; wherein the three-dimensional cross hypercube includes 8 routing nodes, a network diameter of 2, a connectivity of 3, each routing node is provided with a first routing number, and each routing node is connected via a local link;
[0008] According to the layer number of each three-dimensional cross hypercube, each three-dimensional cross hypercube is regarded as a layer, and a connection relationship between routing nodes on each three-dimensional cross hypercube is established to obtain a target on-chip network topology structure; wherein different three-dimensional cross hypercubes are connected by global links;
[0009] Obtaining a routing request of the target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request;
[0010] Determine the intermediate layer number and intermediate route number corresponding to the intermediate route node according to the source layer number, destination layer number, source route number and destination route number corresponding to the source route node and the destination route node;
[0011] According to the intermediate layer number and the intermediate routing number, the data packet sent by the source routing node is sent to the destination routing node through the intermediate routing node.
[0012] The on-chip network communication method provided in this embodiment assigns layer numbers to multiple three-dimensional cross hypercubes, establishes a connection relationship between routing nodes on each three-dimensional cross hypercube according to the layer number of each three-dimensional cross hypercube, and takes each three-dimensional cross hypercube as a layer to obtain a target on-chip network topology structure, and realizes the communication of data packets from the source routing node to the destination routing node based on the target on-chip network topology structure. Among them, the network diameter of the three-dimensional cross hypercube is 2, and the network diameter of the target on-chip network topology structure is 5. Compared with the 3D NoC structure in the related art, the network diameter is small, thereby ensuring a lower signal delay.
[0013] In an optional implementation, before assigning layer numbers to the multiple three-dimensional crossed hypercubes, the method further includes:
[0014] Based on the three-dimensional hypercube, the three-dimensional crossed hypercube is generated.
[0015] The on-chip network communication method provided in this embodiment helps to reduce the complexity of data transmission by generating a three-dimensional cross hypercube based on a three-dimensional hypercube.
[0016] In an optional implementation, generating the three-dimensional cross hypercube based on the three-dimensional hypercube includes:
[0017] Connecting the first routing node of the first two-dimensional hypercube with the first routing node of the second two-dimensional hypercube, connecting the second routing node of the first two-dimensional hypercube with the second routing node of the second two-dimensional hypercube, connecting the third routing node of the first two-dimensional hypercube with the third routing node of the second two-dimensional hypercube, and connecting the fourth routing node of the first two-dimensional hypercube with the fourth routing node of the second two-dimensional hypercube to generate the three-dimensional hypercube;
[0018] Crossing two parallel edges of a plane in the three-dimensional hypercube to obtain the three-dimensional crossed hypercube;
[0019] The two-dimensional hypercube includes four routing nodes, each routing node corresponds to a unique second routing number; a first preset identifier is added before the second routing number corresponding to the routing node of the first two-dimensional hypercube, and a second preset identifier is added before the second routing number corresponding to the routing node of the second two-dimensional hypercube, so as to generate a third routing number corresponding to each routing node in the three-dimensional hypercube;
[0020] The third routing number corresponding to each routing node in the three-dimensional hypercube is used as the first routing number corresponding to each routing node in the three-dimensional cross hypercube.
[0021] The on-chip network communication method provided in this embodiment generates a three-dimensional hypercube based on two two-dimensional hypercubes, connects the routing nodes in the first two-dimensional hypercube and the second two-dimensional hypercube using the above connection method to generate a three-dimensional hypercube, and then generates a three-dimensional cross hypercube. The data transmission path can be optimized, the communication delay can be reduced, and the overall transmission efficiency and parallel processing capability of the network can be improved.
[0022] In an optional implementation, the establishing of a connection relationship between routing nodes on each of the three-dimensional cross hypercubes includes:
[0023] For any routing node in the three-dimensional cross hypercube, the first routing number and layer number corresponding to the target routing node connected to the routing node are obtained according to the first routing number and layer number corresponding to the routing node, so as to establish a connection relationship between the routing node and the target routing node based on the first routing number and layer number corresponding to the target routing node.
[0024] The on-chip network communication method provided in this embodiment obtains a target routing node connected to any routing node according to the first routing number and layer number corresponding to the routing node, and then establishes a connection relationship between the routing node and the target routing node, so that any two three-dimensional cross hypercubes are connected by at least one global link, thereby achieving a network diameter of 5 for the target on-chip network topology structure. Compared with the 3D NoC structure in the related art, the network diameter is small, thereby ensuring a lower signal delay.
[0025] In an optional implementation, obtaining, according to the first routing number and the layer number corresponding to the routing node, the first routing number and the layer number corresponding to the target routing node connected to the routing node includes:
[0026] The first routing number and layer number corresponding to the target routing node are obtained by the following formula:
[0027]
[0028] p y =(q y +p x +001)mod 1001
[0029] Among them, q y is the first routing number corresponding to the target routing node, q x is the first routing number corresponding to the routing node, px is the layer number corresponding to the routing node, p y The layer number corresponding to the target routing node.
[0030] The on-chip network communication method provided in this embodiment can obtain the target routing node connected to any routing node by inputting the first routing number and layer number corresponding to any routing node into the above formula, thereby realizing the connection between any routing node and the corresponding target routing node, thereby ensuring the accuracy of the connection between any two three-dimensional cross hypercubes.
[0031] In an optional implementation, determining the intermediate layer number and the intermediate routing number corresponding to the intermediate routing node according to the source layer number, the destination layer number, the source routing number, and the destination routing number corresponding to the source routing node and the destination routing node includes:
[0032] The intermediate routing number corresponding to the intermediate routing node is determined by the following formula:
[0033] q m1 =(p s -p d +8)mod n
[0034] q m2 =q m1 ⊕000
[0035] Among them, q m1 is the first intermediate routing number corresponding to the first intermediate routing node, p s is the source layer number corresponding to the source routing node, p d is the destination layer number corresponding to the destination routing node, n is the number of layers of the target on-chip network topology, q m2 is the second intermediate routing number corresponding to the second intermediate routing node;
[0036] Determine the source layer number corresponding to the source routing node as the first intermediate layer number corresponding to the first intermediate routing node;
[0037] The destination layer number corresponding to the destination routing node is determined as the second intermediate layer number corresponding to the second intermediate routing node.
[0038] The on-chip network communication method provided in this embodiment determines the intermediate layer number and intermediate routing number corresponding to the intermediate routing node through the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node, so as to send the data packet sent by the source routing node to the destination routing node according to the intermediate routing node. The routing method is simple and reduces cost overhead.
[0039] In an optional implementation, the intermediate routing node includes a first intermediate routing node and a second intermediate routing node, and the sending of the data packet sent by the source routing node to the destination routing node through the intermediate routing node according to the intermediate layer number and the intermediate routing number includes:
[0040] Create and initialize a first shortest path routing node set;
[0041] Create and initialize a first priority queue, wherein the first priority queue is used to store all routing nodes of the layer where the source routing node is located and the distance values corresponding to the routing nodes;
[0042] Take out a first minimum routing node with the smallest distance value from the first priority queue, and add the first minimum routing node as a first shortest path routing node to the first shortest path routing node set;
[0043] Determine a plurality of first to-be-connected routing nodes connected to the current first shortest path routing node from the first priority queue;
[0044] For any first routing node to be connected, determining a first new distance value from the source routing node to the first routing node to be connected via the current first shortest path routing node;
[0045] Based on the first new distance value, updating the distance value corresponding to the first routing node to be connected in the first priority queue, and setting the predecessor routing node of the first routing node to be connected as the current first shortest path routing node;
[0046] Return to the step of taking out the first minimum routing node with the smallest distance value from the first priority queue until the first priority queue is empty or the first intermediate routing node is added to the first shortest path routing node set, so as to obtain the first shortest path from the source routing node to the first intermediate routing node;
[0047] Based on the first shortest path, sending the data packet sent by the source routing node to the first intermediate routing node;
[0048] Acquire a second shortest path from the first intermediate routing node to the second intermediate routing node;
[0049] Based on the second shortest path, sending the data packet sent by the source routing node from the first intermediate routing node to the second intermediate routing node;
[0050] Acquire a third shortest path from the second intermediate routing node to the destination routing node;
[0051] Based on the third shortest path, the data packet sent by the source routing node is sent from the second intermediate routing node to the destination routing node.
[0052] The on-chip network communication method provided in this embodiment can find the shortest path from the source routing node to each intermediate routing node and the destination routing node by continuously selecting the routing node with the smallest distance value from the priority queue and updating the distance value of the routing node to be connected and the predecessor routing node. This can improve the efficiency of data packet transmission and reduce transmission delay. In addition, the routing algorithm is simple and reduces cost overhead.
[0053] In a second aspect, the present invention provides an on-chip network communication device, the device comprising:
[0054] An allocation module, used for allocating layer numbers to a plurality of three-dimensional cross hypercubes; wherein the three-dimensional cross hypercube comprises 8 routing nodes, a network diameter of 2, a connectivity of 3, each routing node is provided with a first routing number, and each routing node is connected via a local link;
[0055] An establishment module is used to establish a connection relationship between routing nodes on each of the three-dimensional cross hypercubes according to the layer number of each of the three-dimensional cross hypercubes, with each of the three-dimensional cross hypercubes as a layer, so as to obtain a target on-chip network topology structure; wherein different three-dimensional cross hypercubes are connected by global links;
[0056] An acquisition module, configured to acquire a routing request of the target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request;
[0057] A determination module, used to determine the intermediate layer number and intermediate routing number corresponding to the intermediate routing node according to the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node;
[0058] The sending module is used to send the data packet sent by the source routing node to the destination routing node through the intermediate routing node according to the intermediate layer number and the intermediate routing number.
[0059] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the on-chip network communication method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0060] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the on-chip network communication method of the first aspect or any corresponding embodiment thereof.
[0061] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the on-chip network communication method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 is a flow chart of a network-on-chip communication method according to an embodiment of the present invention;
[0064] Figure 2 is a flow chart of another on-chip network communication method according to an embodiment of the present invention;
[0065] Figure 3 is a schematic diagram of the topological structure of a two-dimensional hypercube according to an embodiment of the present invention;
[0066] Figure 4 (a) is a schematic diagram of the topological structure of a three-dimensional hypercube according to an embodiment of the present invention;
[0067] Figure 4 (b) is a schematic diagram of the topological structure of a three-dimensional cross hypercube according to an embodiment of the present invention;
[0068] Figure 5 is a schematic diagram of a plane unfolding of a three-dimensional crossed hypercube according to an embodiment of the present invention;
[0069] Figure 6 is a schematic diagram of a topological structure of an 8×9 target on-chip network according to an embodiment of the present invention;
[0070] Figure 7 is a schematic diagram of another 8×9 target on-chip network topology structure according to an embodiment of the present invention;
[0071] Figure 8 is a schematic diagram of the shortest path of routing of an 8×9CHF network according to an embodiment of the present invention;
[0072] Fig. 9is a structural block diagram of an on-chip network communication device according to an embodiment of the present invention;
[0073] Fig.10 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0075] With the development of large-scale integrated circuit technology, the bus communication efficiency of the system on chip (SoC) based on the bus structure is low, which is difficult to meet the real-time requirements of the system. In order to solve the problems faced by SoC, NoC came into being and is widely used in the communication field.
[0076] NoC is a fully interconnected on-chip architecture that transmits data packets through the network on the NoC chip. Although NoC optimizes the scalability and parallel operation of SoC, it does not solve the problem of shortening physical connections and the resulting signal delay.
[0077] As chip integration continues to increase, it is difficult for 2D NoC to ensure that key components are adjacent to each other, shorten the length of critical paths, and reduce signal delays due to the limitations of two-dimensional layout conditions. In related technologies, three-dimensional (3D) NoCs are formed by stacking NoCs layer by layer to shorten the length of critical links and reduce signal delays.
[0078] Among them, 3D NoC combines NoC technology and 3D integration technology to achieve vertically integrated three-dimensional on-chip network by stacking chips layer by layer in the Z direction.
[0079] However, when there are many nodes in a three-dimensional on-chip network, the signal delay is still high when using the 3D NoC structure in the related art for communication.
[0080] An embodiment of the present invention provides an on-chip network communication method, which establishes a connection relationship between routing nodes on each three-dimensional cross hypercube by taking each three-dimensional cross hypercube as a layer to obtain a target on-chip network topology structure so as to achieve a smaller network diameter for the target on-chip network topology structure, thereby ensuring a lower signal delay effect when there are many nodes in the three-dimensional on-chip network.
[0081] According to an embodiment of the present invention, an embodiment of a network-on-chip communication method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0082] In this embodiment, a network-on-chip communication method is provided, which can be used in mobile terminals, such as servers, etc. Figure 1 is a flow chart of a network-on-chip communication method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0083] Step S101, assigning layer numbers to a plurality of three-dimensional crossed hypercubes.
[0084] The three-dimensional cross hypercube includes 8 routing nodes, the network diameter is 2, the connectivity is 3, each routing node is provided with a first routing number, and each routing node is connected by a local link. The network diameter is the longest shortest path length between any two routing nodes in a network.
[0085] The number of three-dimensional cross hypercubes needs to be determined according to different network scales. That is to say, the target on-chip network topology structure obtained in this embodiment is generated based on the three-dimensional cross hypercube, and the number of three-dimensional cross hypercubes included in the target on-chip network topology structure needs to select an appropriate number of layers according to different network scales.
[0086] It should be further explained that the layer number can be represented by four-bit binary. A unique layer number is assigned to each three-dimensional cross hypercube in the order of the size of the four-bit binary. For example, the layer number of the first three-dimensional cross hypercube is 0000, the layer number of the second three-dimensional cross hypercube is 0001, the layer number of the third three-dimensional cross hypercube is 0010, and so on.
[0087] Step S102 , according to the layer number of each three-dimensional cross hypercube, with each three-dimensional cross hypercube as a layer, establish a connection relationship between routing nodes on each three-dimensional cross hypercube to obtain a target on-chip network topology structure.
[0088] Among them, different three-dimensional cross hypercubes are connected by global links.
[0089] It should be noted that multiple three-dimensional cross hypercubes are connected in a fully connected manner, that is, any two three-dimensional cross hypercubes are connected via at least one global link.
[0090] According to the ascending order of the layer numbers of the three-dimensional cross hypercube, each three-dimensional cross hypercube is regarded as a layer, and the connection relationship between the routing nodes on each three-dimensional cross hypercube is established to obtain the target on-chip network topology structure.
[0091] The target on-chip network topology structure is a three-dimensional on-chip network topology structure, with a total of 8n routing nodes and n three-dimensional crossed hypercubes. The n three-dimensional crossed hypercubes are fully interconnected in accordance with the above steps S101 and S102 to form the target on-chip network topology structure proposed in this embodiment, that is, a layered interconnection topology structure based on a crossed hypercube (Crossed Hypercube Fly, referred to as CHF).
[0092] Step S103: obtaining a routing request of the target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request.
[0093] After obtaining the target on-chip network topology structure, the target on-chip network structure can be used for communication. The target on-chip network structure receives a routing request, that is, obtains the routing request of the target on-chip network topology structure, and obtains the source routing node and the destination routing node corresponding to the routing request by parsing the routing request.
[0094] Step S104, determining the intermediate layer number and intermediate routing number corresponding to the intermediate routing node according to the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node.
[0095] Among them, after determining the source routing node and the destination routing node, it is necessary to send the data packet sent by the source routing node to the destination routing node. This embodiment realizes the sending of the data packet by first sending the data packet sent by the source routing node to the intermediate routing node, and then sending it to the destination routing node by the intermediate routing node.
[0096] It should be noted that the intermediate layer number and intermediate route number corresponding to the intermediate routing node in the intermediate path are determined based on the source layer number and source route number corresponding to the source routing node and the destination layer number and destination route number corresponding to the destination routing node.
[0097] Step S105: according to the intermediate layer number and the intermediate routing number, the data packet sent by the source routing node is sent to the destination routing node through the intermediate routing node.
[0098] After the intermediate layer number and the intermediate route number of the intermediate route node are determined, the data packet sent by the source route node is sent to the destination route node through the intermediate route node according to the intermediate layer number and the intermediate route number to achieve communication.
[0099] The on-chip network communication method provided in this embodiment assigns layer numbers to multiple three-dimensional cross hypercubes, establishes a connection relationship between routing nodes on each three-dimensional cross hypercube according to the layer number of each three-dimensional cross hypercube, and takes each three-dimensional cross hypercube as a layer to obtain a target on-chip network topology structure, and realizes the communication of data packets from the source routing node to the destination routing node based on the target on-chip network topology structure. Among them, the network diameter of the three-dimensional cross hypercube is 2, and the network diameter of the target on-chip network topology structure is 5. Compared with the 3D NoC structure in the related art, the network diameter is small, thereby ensuring a lower signal delay.
[0100] In this embodiment, a network-on-chip communication method is provided, which can be used in mobile terminals, such as servers, etc. Figure 2 is a flow chart of a network-on-chip communication method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0101] Step S201: Generate a three-dimensional cross hypercube based on the three-dimensional hypercube.
[0102] Before assigning layer numbers to a plurality of three-dimensional crossed hypercubes, a three-dimensional crossed hypercube needs to be generated based on the three-dimensional hypercube.
[0103] Figure 3 Schematic diagram of the topological structure of a two-dimensional hypercube according to an embodiment of the present invention. Figure 3 As shown, a two-dimensional hypercube includes four routing nodes, each routing node corresponds to a unique second routing number. Figure 3 The routing number corresponding to each routing node is a two-bit binary number, which is 00, 01, 10, 11.
[0104] A three-dimensional hypercube is composed of two two-dimensional hypercubes connected according to certain connection rules. The specific connection rules can be found in the following step S2011.
[0105] Specifically, the above step S201 includes:
[0106] Step S2011, connect the first routing node of the first two-dimensional hypercube with the first routing node of the second two-dimensional hypercube, connect the second routing node of the first two-dimensional hypercube with the second routing node of the second two-dimensional hypercube, connect the third routing node of the first two-dimensional hypercube with the third routing node of the second two-dimensional hypercube, and connect the fourth routing node of the first two-dimensional hypercube with the fourth routing node of the second two-dimensional hypercube to generate a three-dimensional hypercube.
[0107] The third routing number corresponding to each routing node in the three-dimensional hypercube is generated by adding a first preset identifier before the second routing number corresponding to the routing node of the first two-dimensional hypercube and adding a second preset identifier before the second routing number corresponding to the routing node of the second two-dimensional hypercube.
[0108] The two-dimensional hypercube includes four routing nodes, and each routing node corresponds to a unique second routing number.
[0109] The second routing number corresponding to the first routing node of the first two-dimensional hypercube is the same as the second routing number corresponding to the first routing node of the second two-dimensional hypercube. The second routing number corresponding to the second routing node of the first two-dimensional hypercube is the same as the second routing number corresponding to the second routing node of the second two-dimensional hypercube. The second routing number corresponding to the third routing node of the first two-dimensional hypercube is the same as the second routing number corresponding to the third routing node of the second two-dimensional hypercube. The second routing number corresponding to the fourth routing node of the first two-dimensional hypercube is the same as the second routing number corresponding to the fourth routing node of the second two-dimensional hypercube.
[0110] It should be noted that Figure 4 (a) is a schematic diagram of the topological structure of a three-dimensional hypercube according to an embodiment of the present invention. Figure 4 As shown in (a), a three-dimensional hypercube is composed of two two-dimensional hypercubes connected according to a certain connection rule. The connection rule is: connect the routing nodes with the same second routing number in the two two-dimensional hypercubes, add 0 to the second routing number corresponding to all routing nodes in one of the two-dimensional hypercubes, and add 1 to the second routing number corresponding to all routing nodes in the other two-dimensional hypercube.
[0111] That is, the first routing node of the first two-dimensional hypercube may be 00, the second routing node of the first two-dimensional hypercube may be 10, the third routing node of the first two-dimensional hypercube may be 01, and the fourth routing node of the first two-dimensional hypercube may be 11. The first preset identifier may be 0, and the second preset identifier may be 1. Of course, the first preset identifier may also be 1, and the second preset identifier may be 0.
[0112] Among them, the connectivity of the routing nodes in the three-dimensional hypercube is 3, the network diameter is 3, there are 8 routing nodes and 12 edges.
[0113] Step S2012: cross two parallel edges of a plane in the three-dimensional hypercube to obtain a three-dimensional cross hypercube.
[0114] Step S2013: Use the third routing number corresponding to each routing node in the three-dimensional hypercube as the first routing number corresponding to each routing node in the three-dimensional cross hypercube.
[0115] The target on-chip network topology structure constructed in this embodiment uses a three-dimensional cross hypercube, which is a deformation of a three-dimensional hypercube. Figure 4 (b) is a schematic diagram of the topological structure of a three-dimensional cross hypercube according to an embodiment of the present invention. Figure 4 As shown in (b), a three-dimensional cross hypercube is obtained by changing the connection method of two edges of a three-dimensional hypercube. Assume that (x, y) represents that x and y are a pair of nodes, and the two nodes come from the same three-dimensional hypercube, and the two nodes are directly connected through a link. The three-dimensional cross hypercube is obtained by changing the connection method of {(x, y)|(001,011),(101,111)} in the three-dimensional hypercube to {(x, y)|(001,111),(011,101)}, that is, crossing two parallel edges of a plane in the three-dimensional hypercube. Among them, x and y belong to the same three-dimensional hypercube. Figure 5 FIG. 1 is a schematic diagram of a plane expansion of a three-dimensional cross hypercube according to an embodiment of the present invention. Figure 5 As shown, after the connection is performed in the above manner, the third routing number corresponding to each routing node in the three-dimensional hypercube is used as the first routing number corresponding to each routing node in the three-dimensional cross hypercube.
[0116] like Figure 4 As shown in (b), the three-dimensional cross hypercube has 8 vertices and 12 edges, the network diameter is 2, and the connectivity is 3. Each routing node is connected by a local link.
[0117] Since the three-dimensional cross hypercube and the three-dimensional hypercube have many similar properties, including a simple recursive structure, node degree, number of links, and the same number of routing nodes, but the network diameter of the three-dimensional cross hypercube is about half of that of the three-dimensional hypercube, this embodiment uses the three-dimensional cross hypercube as the minimum module of the target on-chip network topology.
[0118] Step S202: assigning layer numbers to a plurality of three-dimensional crossed hypercubes.
[0119] After generating a plurality of three-dimensional cross hypercubes, a unique layer number is assigned to each three-dimensional cross hypercube. Figure 68×9 is a schematic diagram of a target on-chip network topology structure according to an embodiment of the present invention. 8 is the number of routing nodes in each three-dimensional cross hypercube, and 9 is the number of three-dimensional cross hypercubes, that is, the number of layers of the target on-chip network topology structure. A unique layer number is assigned to each three-dimensional cross hypercube in a clockwise or counterclockwise order and in a four-bit binary order. Figure 6 Use clockwise order to allocate. Figure 6 As shown, the first three-dimensional crossed hypercube corresponds to Figure 6 The 0 in , corresponds to the layer number 0000. The second three-dimensional cross hypercube corresponds to Figure 6 The 1 in , the corresponding layer number is 0001. And so on, we get the layer numbers corresponding to the 9 three-dimensional cross hypercubes.
[0120] It should be noted that Figure 6 The cube module in is a three-dimensional crossed hypercube.
[0121] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0122] Step S203 , according to the layer number of each three-dimensional cross hypercube, with each three-dimensional cross hypercube as a layer, establish a connection relationship between routing nodes on each three-dimensional cross hypercube to obtain a target on-chip network topology structure.
[0123] Among them, any two three-dimensional cross hypercubes are connected by at least one global link. In this embodiment, any two three-dimensional cross hypercubes are connected by one global link for exemplary description, such as Figure 6 As shown, 8 global links are derived from each 3D cross hypercube structure and connected to other 8 3D cross hypercubes respectively to obtain the target on-chip network topology.
[0124] It should be noted that the routing nodes inside the three-dimensional cross hypercube are connected via local links, and the routing nodes inside different three-dimensional cross hypercubes are connected via global links.
[0125] Specifically, the above step S203 includes:
[0126] Step S2031, for any routing node in the three-dimensional cross hypercube, according to the first routing number and layer number corresponding to the routing node, obtain the first routing number and layer number corresponding to the target routing node connected to the routing node, so as to establish a connection relationship between the routing node and the target routing node based on the first routing number and layer number corresponding to the target routing node.
[0127] Among them, in order to determine how to perform inter-layer global link connection between any two three-dimensional cross hypercubes, for any routing node in any three-dimensional cross hypercube, according to the first routing number and layer number corresponding to the routing node, the first routing number and layer number corresponding to the target routing node connected to the routing node are obtained, so as to establish a connection relationship between the routing node and the target routing node based on the first routing number and layer number corresponding to the target routing node, thereby realizing inter-layer global link connection between different three-dimensional cross hypercubes.
[0128] Figure 7 FIG. 8 is a schematic diagram of an 8×9 target on-chip network topology structure according to an embodiment of the present invention. Exemplarily, after obtaining the connection relationship between each routing node and the target routing node, a connection is made according to the connection relationship to obtain the following: Figure 7 The target NoC topology is shown.
[0129] Among them, the characteristics of the hierarchical interconnection topology based on the cross hypercube are:
[0130] (1) The 8×n CHF network has 8×n routing nodes and 12×n local links;
[0131] (2) The diameter of the 8×n CHF network is 5;
[0132] (3) The connectivity of each node in the 8×n CHF network is or
[0133] It should be noted that the complexity of the interconnection network topology is related to the connectivity and the number of links. Table 1 shows the comparison between the CHF network and other networks.
[0134] Table 1
[0135]
[0136] Among them, 3D Mesh, i.e., 4×4×4Mesh, is widely used in three-dimensional on-chip networks because of its simple structure. As can be seen from Table 1, the connectivity of 4×4×4Mesh and 8×9CHF networks is not much different, and the number of links is the same. Therefore, the CHF interconnection network proposed in the embodiment of the present invention is easy to implement in hardware and has broad application prospects. Under the premise that the connectivity and the number of links are not much different, the CHF network can accommodate more nodes, and the network diameter is about half of that of the Mesh network. Therefore, the CHF network has a smaller delay, a stronger load capacity, and a better network performance.
[0137] It can be seen from Table 1 that when the nodes of the CHF interconnected network are slightly more than those of the 3D Torus, i.e., 4×4×4 Torus, and the hypercube network, i.e., 6-dimensional hypercube, the network diameter of the CHF network is smaller than that of the 3D Torus and hypercube network, which indicates that the CHF network has a smaller delay, and the connectivity and number of links are smaller than those of the 3D Torus and hypercube network, indicating that the CHF network can alleviate the problems of complex network structure and difficult wiring that are common in the three-dimensional on-chip network topology, and is easier to implement in hardware.
[0138] The three-dimensional dragonfly network topology (Dragonfly), i.e., 4×9×2 Dragonfly, has the advantages of small network diameter and good network scalability. However, in the application of large-scale on-chip networks, it requires full interconnection between groups in all dimensions, resulting in excessive connectivity, too many links, complex network structure, difficult wiring, and difficult hardware implementation. Therefore, compared with the Dragonfly network, the CHF network proposed in the present invention has the same network diameter and good network scalability as the three-dimensional Dragonfly, but with smaller connectivity and smaller number of links, and is easier to implement in hardware.
[0139] In summary, the performance of the cross-hypercube-based hierarchical interconnection network proposed in the embodiment of the present invention is better than the four network topologies in the table, and it combines the advantages of 3D Mesh and 3D Dragonfly, and has the advantages of small network delay, good network scalability, simple structure, and easy hardware implementation. With the continuous improvement of network delay performance requirements and the development of large-scale networks, CHF networks have broader application prospects.
[0140] Step S204, obtaining a routing request of the target on-chip network topology structure to determine the source routing node and the destination routing node corresponding to the routing request. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0141] Step S205, according to the source layer number, destination layer number, source route number and destination route number corresponding to the source route node and the destination route node, determine the intermediate layer number and intermediate route number corresponding to the intermediate route node. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0142] Step S206: According to the intermediate layer number and the intermediate routing number, the data packet sent by the source routing node is sent to the destination routing node through the intermediate routing node. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0143] The on-chip network communication method provided in this embodiment helps to reduce the complexity of data transmission by generating a three-dimensional cross hypercube based on a three-dimensional hypercube. A three-dimensional hypercube is generated based on two two-dimensional hypercubes, and the first two-dimensional hypercube is connected to the routing nodes in the second two-dimensional hypercube using the above connection method to generate a three-dimensional hypercube, and then a three-dimensional cross hypercube is generated. The data transmission path can be optimized, the communication delay can be reduced, and the overall transmission efficiency and parallel processing capability of the network can be improved.
[0144] In some optional implementations, the above step S2031 includes:
[0145] Step a1, obtain the first routing number and layer number corresponding to the target routing node by the following formula:
[0146]
[0147] p y =(q y +p x +001)mod 1001
[0148] Among them, q y is the first routing number corresponding to the target routing node, q x is the first routing number corresponding to the routing node, p x is the layer number corresponding to the routing node, p y The layer number corresponding to the target routing node.
[0149] It can be understood that the layer number is a four-bit binary number, and the first routing number is a three-bit binary number, so the routing node is represented by (p, q), where p is the layer number and q is the first routing number.
[0150] It should be noted that for routing nodes (p x ,q x ), q x XOR with 000 to get the first routing number q of the target routing node connected to this routing node y , the layer number p of the target routing node connected to this routing node y By y +p x +001) and perform a modulo operation to obtain the value.
[0151] The on-chip network communication method provided in this embodiment can obtain the target routing node connected to any routing node by inputting the first routing number and layer number corresponding to any routing node into the above formula, thereby realizing the connection between any routing node and the corresponding target routing node, thereby ensuring the accuracy of the connection between any two three-dimensional cross hypercubes.
[0152] In some optional implementations, the above step S205 includes:
[0153] Step b1, determine the intermediate routing number corresponding to the intermediate routing node by the following formula:
[0154] q m1 =(p s -p d +8)mod n
[0155] q m2 =q m1 ⊕000
[0156] Among them, q m1 is the first intermediate routing number corresponding to the first intermediate routing node, p s is the source layer number corresponding to the source routing node, p d is the destination layer number corresponding to the destination routing node, n is the number of layers in the target on-chip network topology, and q m2 is the second intermediate routing number corresponding to the second intermediate routing node.
[0157] Step b2: determining the source layer number corresponding to the source routing node as the first intermediate layer number corresponding to the first intermediate routing node.
[0158] Step b3: determine the destination layer number corresponding to the destination routing node as the second intermediate layer number corresponding to the second intermediate routing node.
[0159] The on-chip network communication method provided in this embodiment determines the intermediate layer number and intermediate routing number corresponding to the intermediate routing node through the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node, so as to send the data packet sent by the source routing node to the destination routing node according to the intermediate routing node. The routing method is simple and reduces cost overhead.
[0160] In some optional implementations, the intermediate routing node includes a first intermediate routing node and a second intermediate routing node, and the above step S206 includes:
[0161] Step c1, creating and initializing a first shortest path routing node set, wherein the first shortest path routing node set initially only includes source routing nodes.
[0162] Step c2, creating and initializing a first priority queue, wherein the first priority queue is used to store all routing nodes in the layer where the source routing node is located and the distance values corresponding to the routing nodes.
[0163] Among them, when the first priority queue is initialized, the distance value corresponding to the source routing node is 0, and the distance values corresponding to other routing nodes except the source routing node in the layer where the source routing node is located are infinite.
[0164] Step c3: taking out the first minimum routing node with the smallest distance value from the first priority queue, and adding the first minimum routing node as the first shortest path routing node to the first shortest path routing node set.
[0165] That is, the first minimum routing node with the smallest distance value in the first priority queue is added to the first shortest path routing node combination, and the first minimum routing node with the smallest distance value in the first priority queue is deleted.
[0166] Step c4: determining a plurality of first to-be-connected routing nodes connected to the current first shortest path routing node from the first priority queue.
[0167] Step c5: for any first routing node to be connected, determine a first new distance value from the source routing node to the first routing node to be connected via the current first shortest path routing node.
[0168] Step c6: based on the first new distance value, update the distance value corresponding to the first routing node to be connected in the first priority queue, and set the predecessor routing node of the first routing node to be connected as the current first shortest path routing node.
[0169] It should be noted that the current first shortest path routing node is the first shortest path routing node just added to the first shortest path routing node set.
[0170] Step c7, return to the step of taking out the first minimum routing node with the smallest distance value from the first priority queue, until the first priority queue is empty or the first intermediate routing node is added to the first shortest path routing node set, to obtain the first shortest path from the source routing node to the first intermediate routing node.
[0171] It can be understood that the first shortest path routing nodes put into the first shortest path routing node set are connected in sequence to form the first shortest path from the source routing node to the first intermediate routing node.
[0172] Step c8: Based on the first shortest path, the data packet sent by the source routing node is sent to the first intermediate routing node.
[0173] After the first shortest path is acquired, the data packet sent by the source routing node is sent to the first intermediate routing node in the order of the first shortest path.
[0174] Step c9: Obtain a second shortest path from the first intermediate routing node to the second intermediate routing node.
[0175] It can be understood that the manner of obtaining the second shortest path from the first intermediate routing node to the second intermediate routing node is similar to the manner of obtaining the first shortest path from the source routing node to the first intermediate routing node.
[0176] Specifically:
[0177] A second shortest path routing node set is created and initialized, wherein the second shortest path routing node set initially includes only the first intermediate routing node.
[0178] A second priority queue is created and initialized, wherein the second priority queue is used to store all routing nodes in the target on-chip network topology structure and distance values corresponding to the routing nodes.
[0179] When the second priority queue is initialized, the distance value corresponding to the first intermediate routing node is 0, and the distance values corresponding to other routing nodes except the first intermediate routing node in the target on-chip network topology structure are infinite.
[0180] The second minimum routing node with the smallest distance value is taken out from the second priority queue, and the second minimum routing node is added to the second shortest path routing node set as the second shortest path routing node.
[0181] A plurality of second to-be-connected routing nodes connected to the current second shortest path routing node are determined from the second priority queue.
[0182] For any second routing node to be connected, a second new distance value from the first intermediate routing node to the second routing node to be connected via the current second shortest path routing node is determined.
[0183] Based on the second new distance value, the distance value corresponding to the second routing node to be connected in the second priority queue is updated, and the predecessor routing node of the second routing node to be connected is set as the current second shortest path routing node.
[0184] It should be noted that the current second shortest path routing node is the second shortest path routing node just added to the second shortest path routing node set.
[0185] Return to the step of taking out the second minimum routing node with the smallest distance value from the second priority queue until the second priority queue is empty or the second intermediate routing node is added to the second shortest path routing node set to obtain the second shortest path from the first intermediate routing node to the second intermediate routing node.
[0186] It should be noted that the detailed description of each step is similar to the corresponding description of step c1 to step c7, and will not be repeated here.
[0187] Step c10: Based on the second shortest path, the data packet sent by the source routing node is sent from the first intermediate routing node to the second intermediate routing node.
[0188] After the second shortest path is determined, the data packet sent from the source routing node to the first intermediate routing node is sent from the first intermediate routing node to the second intermediate routing node according to the second shortest path.
[0189] Step c11, obtaining the third shortest path from the second intermediate routing node to the destination routing node.
[0190] It can be understood that the method of obtaining the third shortest path from the second intermediate routing node to the destination routing node is similar to the method of obtaining the first shortest path from the source routing node to the first intermediate routing node.
[0191] Specifically:
[0192] A third shortest path routing node set is created and initialized, wherein the third shortest path routing node set initially includes only the second intermediate routing node.
[0193] A third priority queue is created and initialized, wherein the third priority queue is used to store all routing nodes of the layer where the destination routing node is located and the distance values corresponding to the routing nodes.
[0194] When the third priority queue is initialized, the distance value corresponding to the second intermediate routing node is 0, and the distance values corresponding to other routing nodes in the layer where the destination routing node is located except the destination routing node are infinite.
[0195] A third minimum routing node with the smallest distance value is taken out from the third priority queue, and the third minimum routing node is added to the third shortest path routing node set as a third shortest path routing node.
[0196] A plurality of third to-be-connected routing nodes connected to the current third shortest path routing node are determined from the third priority queue.
[0197] For any third routing node to be connected, a third new distance value from the second intermediate routing node to the third routing node to be connected via the current third shortest path routing node is determined.
[0198] Based on the third new distance value, the distance value corresponding to the third routing node to be connected in the third priority queue is updated, and the predecessor routing node of the third routing node to be connected is set as the current third shortest path routing node.
[0199] It should be noted that the current third shortest path routing node is the third shortest path routing node just added to the third shortest path routing node set.
[0200] Return to the step of taking out the third minimum routing node with the smallest distance value from the third priority queue until the third priority queue is empty or the destination routing node is added to the third shortest path routing node set to obtain the third shortest path from the second intermediate routing node to the destination routing node.
[0201] It should be noted that the detailed description of each step is similar to the corresponding description of step c1 to step c7, and will not be repeated here.
[0202] Step c12: Based on the third shortest path, the data packet sent by the source routing node is sent from the second intermediate routing node to the destination routing node.
[0203] After the third shortest path is determined, the data packet sent from the source routing node to the second intermediate routing node is sent from the second intermediate routing node to the destination routing node according to the third shortest path.
[0204] The on-chip network communication method provided in this embodiment can find the shortest path from the source routing node to each intermediate routing node and the destination routing node by continuously selecting the routing node with the smallest distance value from the priority queue and updating the distance value of the routing node to be connected and the predecessor routing node. This can improve the efficiency of data packet transmission and reduce transmission delay. In addition, the routing algorithm is simple and reduces cost overhead.
[0205] In order to make the routing process of sending the data packet sent by the source routing node to the destination routing node clearer, an 8×9CHF network is taken as an example for explanation.
[0206] Let the source routing node be represented as (p s ,q s ), the destination routing node is represented as (p d ,q d ), the two routing nodes connected by the link between the layer where the source routing node is located and the layer where the destination routing node is located are (p s ,q m1 ) and (p d ,q m2 ). Using the hierarchical routing algorithm, the routing steps are divided into intra-layer routing and inter-layer routing.
[0207] Step 1: According to the source routing node (p s ,q s ) and the destination routing node (p d ,q d ), calculate q m1 and q m2 , the calculation formula is:
[0208] q m1 =(p s -pd +8) mod 9
[0209] q m2 =q m1 ⊕000
[0210] Step 2: Intra-layer routing:
[0211] From the source routing node (p s ,q s ), the shortest path routing algorithm of the cross hypercube is used, i.e., steps c1 to c7, to obtain the first shortest path, perform inter-layer routing, and finally transmit the message, i.e., the data packet, to the routing node (p) through one or two hops. s ,q m1 ).
[0212] Step 2: Inter-layer routing:
[0213] Use the shortest path routing algorithm to obtain the second shortest path and send the message from the routing node (p s ,q m1 ) is directly transmitted to the routing node (p d ,q m2 ).
[0214] Step 4: Intra-layer routing:
[0215] The same method as step 2 is used to convert the message from (p d ,q m2 ), through one or two hops, transmitted to the destination routing node (p d ,q d ). End the routing.
[0216] The routing algorithm used in this embodiment is the shortest path routing algorithm, which is simple and has low hardware overhead.
[0217] For further example, in an 8×9CHF network, it is necessary to send a message from a source routing node (p s ,q s )=(0001,101), transmitted to the destination routing node (p d ,q d )=(0110,011).
[0218] Step 1: According to the source routing node (p s ,q s )=(0001,101) and the destination routing node (p d ,q d )=(0110,011), calculate q m1 and q m2 , the calculation formula is:
[0219] q m1 =(p s -p d +8) mod 9
[0220] =(0001-0110+1000)mod 1001
[0221] =011
[0222] q m2 =q m1 ⊕000
[0223] =011⊕000
[0224] =100
[0225] The two routing nodes connected by the link between the layer where the source routing node is located and the layer where the destination routing node is located are (p s ,q m1 )=(0001,011) and (p d ,q m2 )=(0110,100).
[0226] Step 2: Intra-layer routing:
[0227] From the source routing node (p s ,q s )=(0001,101), uses the shortest path routing algorithm of the cross hypercube to perform inter-layer routing, and finally transmits the message to the routing node (0001,011) through one hop.
[0228] Step 2: Inter-layer routing:
[0229] Using the shortest path routing method, the message is transmitted directly from routing node (0001,011) to routing node (0110,100).
[0230] Step 4: Intra-layer routing:
[0231] The same method as step 2 is used to transmit the message from (0110,100) to the destination routing node (p d ,q d )=(0110,011). End the routing.
[0232] Figure 8 FIG. 8 is a schematic diagram of the shortest path of the routing of the 8×9CHF network according to an embodiment of the present invention. Figure 8 As shown, the hierarchical shortest path routing algorithm is used from the source routing node (0001, 101) to the destination routing node (0110, 011). The routing path length is 4 hops, and the transmission path of the message is:
[0233] (0001,101)→(0001,011)→(0110,100)→(0110,101)→(0110,011).
[0234] The network-on-chip communication method provided in this embodiment uses a three-dimensional cross hypercube as the layer of the network, so that the network has excellent performance in the number of nodes, number of links and connectivity of the three-dimensional cross hypercube. The full interconnection method is used between the layers, so that the network has a smaller network diameter and a small network delay. In summary, the hierarchical interconnection topology network based on the cross hypercube proposed by the present invention has the advantages of small network delay, good network scalability, low structural complexity, small link overhead, strong load capacity, and the ability to accommodate more routing nodes. The CHF network has a broader application prospect. The routing algorithm of the CHF network uses a hierarchical network shortest path routing algorithm, and the routing algorithm is simple, which reduces cost overhead.
[0235] In this embodiment, a network-on-chip communication device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0236] This embodiment provides a network-on-chip communication device, such as Fig. 9 As shown, including:
[0237] The allocation module 901 is used to allocate layer numbers to multiple three-dimensional cross hypercubes; wherein the three-dimensional cross hypercube includes 8 routing nodes, the network diameter is 2, the connectivity is 3, each routing node is provided with a first routing number, and each routing node is connected through a local link.
[0238] Establishing module 902, for establishing connection relationship between routing nodes on each three-dimensional cross hypercube according to the layer number of each three-dimensional cross hypercube, taking each three-dimensional cross hypercube as a layer, so as to obtain the target on-chip network topology structure; wherein different three-dimensional cross hypercubes are connected by global links.
[0239] The acquisition module 903 is used to acquire a routing request of a target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request.
[0240] The determination module 904 is used to determine the intermediate layer number and intermediate routing number corresponding to the intermediate routing node according to the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node.
[0241] The sending module 905 is used to send the data packet sent by the source routing node to the destination routing node through the intermediate routing node according to the intermediate layer number and the intermediate routing number.
[0242] In some optional implementations, the on-chip network communication device further includes:
[0243] The generation module is used to generate a three-dimensional crossed hypercube based on the three-dimensional hypercube.
[0244] In some optional implementations, the generation module includes:
[0245] A generation subunit is used to connect the first routing node of the first two-dimensional hypercube with the first routing node of the second two-dimensional hypercube, connect the second routing node of the first two-dimensional hypercube with the second routing node of the second two-dimensional hypercube, connect the third routing node of the first two-dimensional hypercube with the third routing node of the second two-dimensional hypercube, and connect the fourth routing node of the first two-dimensional hypercube with the fourth routing node of the second two-dimensional hypercube to generate a three-dimensional hypercube.
[0246] The cross processing unit is used to perform cross processing on two parallel edges of a plane in the three-dimensional hypercube to obtain a three-dimensional cross hypercube.
[0247] The two-dimensional hypercube includes four routing nodes, each routing node corresponds to a unique second routing number; a first preset identifier is added before the second routing number corresponding to the routing node of the first two-dimensional hypercube, and a second preset identifier is added before the second routing number corresponding to the routing node of the second two-dimensional hypercube to generate a third routing number corresponding to each routing node in the three-dimensional hypercube.
[0248] The first routing number determining unit is used to use the third routing number corresponding to each routing node in the three-dimensional hypercube as the first routing number corresponding to each routing node in the three-dimensional cross hypercube.
[0249] In some optional implementations, the establishing module 902 includes:
[0250] A subunit is established for obtaining, for any routing node in a three-dimensional cross hypercube, a first routing number and a layer number corresponding to a target routing node connected to the routing node according to the first routing number and the layer number corresponding to the routing node, so as to establish a connection relationship between the routing node and the target routing node based on the first routing number and the layer number corresponding to the target routing node.
[0251] In some optional embodiments, establishing a subunit includes:
[0252] The first establishing unit is used to obtain the first routing number and the layer number corresponding to the target routing node connected to the routing node according to the first routing number and the layer number corresponding to the routing node, including:
[0253] The first routing number and layer number corresponding to the target routing node are obtained by the following formula:
[0254] q y =q x ⊕000
[0255] p y =(q y +p x +001)mod 1001
[0256] Among them, q y is the first routing number corresponding to the target routing node, q x is the first routing number corresponding to the routing node, p x is the layer number corresponding to the routing node, p y The layer number corresponding to the target routing node.
[0257] In some optional implementations, the determining module 904 includes:
[0258] The first determining unit is used to determine the intermediate routing number corresponding to the intermediate routing node by using the following formula:
[0259] q m1 =(p s -p d +8)mod n
[0260] q m2 =q m1 ⊕000
[0261] Among them, q m1 is the first intermediate routing number corresponding to the first intermediate routing node, p s is the source layer number corresponding to the source routing node, p d is the destination layer number corresponding to the destination routing node, n is the number of layers in the target on-chip network topology, and q m2 is the second intermediate routing number corresponding to the second intermediate routing node.
[0262] The second determining unit is used to determine the source layer number corresponding to the source routing node as the first intermediate layer number corresponding to the first intermediate routing node.
[0263] The third determining unit is used to determine the destination layer number corresponding to the destination routing node as the second intermediate layer number corresponding to the second intermediate routing node.
[0264] In some optional implementations, the sending module 905 includes:
[0265] The first creation unit is used to create and initialize a first shortest path routing node set.
[0266] The second creation unit is used to create and initialize a first priority queue, wherein the first priority queue is used to store all routing nodes of the layer where the source routing node is located and the distance values corresponding to the routing nodes.
[0267] The first acquisition unit is used to take out a first minimum routing node with a minimum distance value from the first priority queue, and add the first minimum routing node as a first shortest path routing node to the first shortest path routing node set.
[0268] The fourth determining unit is used to determine, from the first priority queue, a plurality of first to-be-connected routing nodes connected to the current first shortest path routing node.
[0269] The fifth determining unit is used to determine, for any first routing node to be connected, a first new distance value from the source routing node to the first routing node to be connected via the current first shortest path routing node.
[0270] An updating unit is used to update the distance value corresponding to the first routing node to be connected in the first priority queue based on the first new distance value, and set the predecessor routing node of the first routing node to be connected as the current first shortest path routing node.
[0271] The return execution unit is used to return to the step of taking out the first minimum routing node with the smallest distance value from the first priority queue until the first priority queue is empty or the first intermediate routing node is added to the first shortest path routing node set to obtain the first shortest path from the source routing node to the first intermediate routing node.
[0272] The first sending unit is used to send the data packet sent by the source routing node to the first intermediate routing node based on the first shortest path.
[0273] The second acquisition unit is configured to acquire a second shortest path from the first intermediate routing node to the second intermediate routing node.
[0274] The second sending unit is used to send the data packet sent by the source routing node from the first intermediate routing node to the second intermediate routing node based on the second shortest path.
[0275] The third acquisition unit is used to acquire a third shortest path from the second intermediate routing node to the destination routing node.
[0276] The third sending unit is used to send the data packet sent by the source routing node from the second intermediate routing node to the destination routing node based on the third shortest path.
[0277] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0278] The on-chip network communication device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0279] The embodiment of the present invention also provides a computer device having the above Fig. 9 The on-chip network communication device is shown.
[0280] See also Fig.10 , Fig.10 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.10 As shown, the computer device includes: one or more processors 1001, memory 1002, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components utilize different buses to communicate with each other, and can be installed on a common mainboard or installed in other ways as required. The processor can process the instructions executed in the computer device, including instructions stored in the memory or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 1001 is taken as an example.
[0281] The processor 1001 may be a central processing unit, a network processor or a combination thereof. The processor 1001 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0282] The memory 1002 stores instructions executable by at least one processor 1001 so as to enable at least one processor 1001 to implement the method shown in the above embodiment.
[0283] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the processor 1001, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0284] The memory 1002 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 1002 may also include a combination of the above types of memory.
[0285] The computer device also includes a communication interface 1003, which is used for the computer device to communicate with other devices or a communication network.
[0286] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0287] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0288] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A network-on-chip communication method, characterized in that: The method comprises: Assigning layer numbers to a plurality of three-dimensional cross hypercubes; wherein the three-dimensional cross hypercube includes 8 routing nodes, a network diameter of 2, a connectivity of 3, each routing node is provided with a first routing number, and each routing node is connected via a local link; According to the layer number of each three-dimensional cross hypercube, each three-dimensional cross hypercube is regarded as a layer, and a connection relationship between routing nodes on each three-dimensional cross hypercube is established to obtain a target on-chip network topology structure; wherein different three-dimensional cross hypercubes are connected by global links; Obtaining a routing request of the target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request; Determine the intermediate layer number and intermediate route number corresponding to the intermediate route node according to the source layer number, destination layer number, source route number and destination route number corresponding to the source route node and the destination route node; According to the intermediate layer number and the intermediate routing number, the data packet sent by the source routing node is sent to the destination routing node through the intermediate routing node.
2. The method according to claim 1, characterized in that: Before assigning layer numbers to the plurality of three-dimensional crossed hypercubes, the method further comprises: Based on the three-dimensional hypercube, the three-dimensional crossed hypercube is generated.
3. The method according to claim 2, characterized in that The step of generating the three-dimensional cross hypercube based on the three-dimensional hypercube includes: Connecting the first routing node of the first two-dimensional hypercube with the first routing node of the second two-dimensional hypercube, connecting the second routing node of the first two-dimensional hypercube with the second routing node of the second two-dimensional hypercube, connecting the third routing node of the first two-dimensional hypercube with the third routing node of the second two-dimensional hypercube, and connecting the fourth routing node of the first two-dimensional hypercube with the fourth routing node of the second two-dimensional hypercube to generate the three-dimensional hypercube; Crossing two parallel edges of a plane in the three-dimensional hypercube to obtain the three-dimensional crossed hypercube; The two-dimensional hypercube includes four routing nodes, each routing node corresponds to a unique second routing number; a first preset identifier is added before the second routing number corresponding to the routing node of the first two-dimensional hypercube, and a second preset identifier is added before the second routing number corresponding to the routing node of the second two-dimensional hypercube, so as to generate a third routing number corresponding to each routing node in the three-dimensional hypercube; The third routing number corresponding to each routing node in the three-dimensional hypercube is used as the first routing number corresponding to each routing node in the three-dimensional cross hypercube.
4. The method according to claim 1, characterized in that: The establishing of the connection relationship between the routing nodes on each of the three-dimensional cross hypercubes includes: For any routing node in the three-dimensional cross hypercube, the first routing number and layer number corresponding to the target routing node connected to the routing node are obtained according to the first routing number and layer number corresponding to the routing node, so as to establish a connection relationship between the routing node and the target routing node based on the first routing number and layer number corresponding to the target routing node.
5. The method according to claim 4, characterized in that The obtaining, according to the first routing number and the layer number corresponding to the routing node, the first routing number and the layer number corresponding to the target routing node connected to the routing node comprises: The first routing number and layer number corresponding to the target routing node are obtained by the following formula: p y =(q y +p x +001)mod 1001 Among them, q y is the first routing number corresponding to the target routing node, q x is the first routing number corresponding to the routing node, p x is the layer number corresponding to the routing node, p y The layer number corresponding to the target routing node.
6. The method according to claim 1, characterized in that The determining of the intermediate layer number and the intermediate route number corresponding to the intermediate route node according to the source layer number, the destination layer number, the source route number and the destination route number corresponding to the source route node and the destination route node comprises: The intermediate routing number corresponding to the intermediate routing node is determined by the following formula: q m1 =(p s -p d +8)mod n Among them, q m1 is the first intermediate routing number corresponding to the first intermediate routing node, p s is the source layer number corresponding to the source routing node, p d is the destination layer number corresponding to the destination routing node, n is the number of layers of the target on-chip network topology, q m2 is the second intermediate routing number corresponding to the second intermediate routing node; Determine the source layer number corresponding to the source routing node as the first intermediate layer number corresponding to the first intermediate routing node; The destination layer number corresponding to the destination routing node is determined as the second intermediate layer number corresponding to the second intermediate routing node.
7. The method according to claim 1, characterized in that The intermediate routing node includes a first intermediate routing node and a second intermediate routing node, and the step of sending the data packet sent by the source routing node to the destination routing node through the intermediate routing node according to the intermediate layer number and the intermediate routing number includes: Create and initialize a first shortest path routing node set; Create and initialize a first priority queue, wherein the first priority queue is used to store all routing nodes of the layer where the source routing node is located and the distance values corresponding to the routing nodes; Take out a first minimum routing node with the smallest distance value from the first priority queue, and add the first minimum routing node as a first shortest path routing node to the first shortest path routing node set; Determine a plurality of first to-be-connected routing nodes connected to the current first shortest path routing node from the first priority queue; For any first routing node to be connected, determining a first new distance value from the source routing node to the first routing node to be connected via the current first shortest path routing node; Based on the first new distance value, updating the distance value corresponding to the first routing node to be connected in the first priority queue, and setting the predecessor routing node of the first routing node to be connected as the current first shortest path routing node; Return to the step of taking out the first minimum routing node with the smallest distance value from the first priority queue until the first priority queue is empty or the first intermediate routing node is added to the first shortest path routing node set, so as to obtain the first shortest path from the source routing node to the first intermediate routing node; Based on the first shortest path, sending the data packet sent by the source routing node to the first intermediate routing node; Acquire a second shortest path from the first intermediate routing node to the second intermediate routing node; Based on the second shortest path, sending the data packet sent by the source routing node from the first intermediate routing node to the second intermediate routing node; Acquire a third shortest path from the second intermediate routing node to the destination routing node; Based on the third shortest path, the data packet sent by the source routing node is sent from the second intermediate routing node to the destination routing node.
8. A network-on-chip communication device, characterized in that: The device comprises: An allocation module, used for allocating layer numbers to a plurality of three-dimensional cross hypercubes; wherein the three-dimensional cross hypercube comprises 8 routing nodes, a network diameter of 2, a connectivity of 3, each routing node is provided with a first routing number, and each routing node is connected via a local link; An establishment module is used to establish a connection relationship between routing nodes on each of the three-dimensional cross hypercubes according to the layer number of each of the three-dimensional cross hypercubes, with each of the three-dimensional cross hypercubes as a layer, so as to obtain a target on-chip network topology structure; wherein different three-dimensional cross hypercubes are connected by global links; An acquisition module, used to acquire a routing request of the target on-chip network topology structure to determine a source routing node and a destination routing node corresponding to the routing request; A determination module, used to determine the intermediate layer number and intermediate routing number corresponding to the intermediate routing node according to the source layer number, destination layer number, source routing number and destination routing number corresponding to the source routing node and the destination routing node; The sending module is used to send the data packet sent by the source routing node to the destination routing node through the intermediate routing node according to the intermediate layer number and the intermediate routing number.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the on-chip network communication method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the on-chip network communication method according to any one of claims 1 to 7.
Citation Information
Cited By
Routing method, communication network construction method, equipment, medium and product
CN118921317A
A routing method, communication network construction method, device, medium and product
CN118921317B
Routing path determination method and device, medium and product
CN119135593A
Construction method of network topology structure, data transmission method, electronic equipment and computer program product
CN119583353A
Method for constructing network topology structure, data transmission method, electronic device, and computer program product
CN119583353B
