Data routing method and device, computer equipment, storage medium and program product

By identifying the target subnetwork in the on-chip network and combining it with the XY and YX routing algorithms, the problem of data routing requirements between multiple hosts is solved, achieving independence of the subnetwork and improving network reliability.

CN118784549APending Publication Date: 2024-10-15SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410954273.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult for existing on-chip network routing algorithms to identify and independently manage subnetworks between multiple hosts, resulting in the inability to meet the data routing requirements between dual hosts or even multiple hosts in a mesh topology.

Method used

By detecting the transmission request of the target data, the target sub-network of the current node in the target topological network is determined, and the routing direction is determined based on the difference between the current node coordinates and the target node coordinates. The combination of the XY routing algorithm and the YX routing algorithm is used to avoid Use routing nodes of other subnetworks to achieve relative independence between subnetworks.

Benefits of technology

It achieves relative independence between different sub-networks in the mesh on-chip network, meets the data routing requirements of dual hosts or even multiple hosts, reduces the occurrence of deadlocks, and improves network reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784549A_ABST
    Figure CN118784549A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a data routing method and device, computer equipment, a storage medium and a program product, and the method comprises the steps: determining a target sub-network corresponding to a current coordinate node in a target topology network after a transmission request for target data is detected, the target topological network is used for indicating the network structure of the NoC, and the target sub-network comprises routing nodes distributed for a computer system corresponding to the target data; comparing the current node coordinate of the target data with the target node coordinate to obtain a comparison result; and determining a target routing direction matched with the comparison result in the preset routing directions, and transmitting the target data according to the target routing direction. According to the method, the routing nodes among different sub-networks in the target topology network can be distinguished, so that the different sub-networks are relatively independent, and the data routing requirements of double hosts and even multiple hosts are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data routing method, device, computer equipment, storage medium and program product. Background Art

[0002] Network-on-chip (NoC) is a new communication method for system-on-chip (SoC) and a major component of multi-core technology. The NoC method brings a new on-chip communication method that significantly outperforms the performance of traditional bus systems.

[0003] like Figure 1 As shown in the figure, it is a 4×4 two-dimensional mesh on-chip network topology. In the figure, R represents the router, which arbitrates the flow of data and determines the transmission path of the data packet in the routing network; IP represents the source node, which can send and receive data. The lines in the figure are all bidirectional lines, that is, full-duplex. Each router uses a link to connect to a source node. The routing node and the source node, and the routing node and the routing node are connected by two independent and unidirectional links.

[0004] In actual networks, the value of N can be arbitrarily large, as long as each routing node is connected to a target node. However, as N increases, the diameter and scale of the network also increase, which will have a great impact on the network's latency, power consumption and other performance. Routing algorithms generally refer to the transmission of data between routers R. When the network topology is determined, the routing algorithm determines the transmission path of the message packet in the network. The routing algorithm can select the intermediate nodes that need to be routed based on the target node and the target node.

[0005] However, for mesh topologies that support dual or even multi-hosts, the sub-networks controlled by multiple hosts need to be independent of each other, that is, there is no need for data interaction. However, the routing nodes between different sub-networks are often not identified in the relevant routing algorithms, and the dual or even multi-host data routing requirements cannot be met. Summary of the invention

[0006] In view of this, the present invention provides a data routing method, apparatus, computer equipment, storage medium and program product.

[0007] In a first aspect, the present invention provides a data routing method, the method comprising:

[0008] After detecting a transmission request for target data, determining a target sub-network corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate a network structure of the NoC topology network on a chip, and the target sub-network includes a routing node allocated to a computer system corresponding to the target data;

[0009] Comparing the current node coordinates of the target data with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request;

[0010] A target routing direction matching the comparison result is determined in the preset routing directions, and the target data is transmitted according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target sub-network.

[0011] In an optional implementation, the current node coordinates where the target data is located are compared with the target node coordinates to obtain a comparison result, including:

[0012] Subtract the horizontal coordinates of the current node coordinates from the target node coordinates to obtain the horizontal coordinate difference;

[0013] Subtract the ordinates of the current node coordinates from the target node coordinates to obtain the ordinate difference;

[0014] The comparison result is determined based on the difference between the horizontal and vertical coordinates.

[0015] In an embodiment of the present invention, a comparison result can be determined based on the horizontal coordinate difference and the vertical coordinate difference between the current node coordinates and the target node coordinates, so as to determine the transmission distance between the current routing node and the target routing node based on the comparison result, thereby providing a technical basis for determining a matching target routing direction based on the comparison result.

[0016] In an optional implementation, the preset routing direction includes a horizontal coordinate direction and a vertical coordinate direction;

[0017] Determine the target routing direction that matches the comparison result in the preset routing directions, including:

[0018] Obtaining a sequence value of the target subnetwork in the target topology network, wherein the sequence value is used to indicate a position of the target subnetwork in the target topology network;

[0019] The routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value is determined in the preset routing direction, and the target routing direction is determined according to the routing order.

[0020] In an embodiment of the present invention, a combination of the XY routing algorithm and the YX routing algorithm can be used to route subnetworks located at different locations in the target topology network, thereby avoiding the use of routing nodes in the remaining subnetworks when routing the target subnetwork, achieving relative independence between different subnetworks, and meeting dual-host or even multi-host data routing requirements.

[0021] In an optional implementation, the comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate;

[0022] Determine the routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value in the preset routing direction, and determine the target routing direction according to the routing order, including:

[0023] When the sequence value is a first type identifier, determining whether the horizontal coordinate difference is zero, wherein the first type identifier is used to indicate that the sequence value is an odd number;

[0024] If not, the routing order is determined such that the abscissa direction precedes the ordinate direction when the ordinate difference is a positive number, and the routing order is determined such that the ordinate direction precedes the abscissa direction when the ordinate difference is a negative number;

[0025] If so, the ordinate direction is determined as the target routing direction.

[0026] In an embodiment of the present invention, a combination of the XY routing algorithm and the YX routing algorithm can be used to route subnetworks located at different locations in the target topology network, thereby avoiding the use of routing nodes in the remaining subnetworks when routing the target subnetwork, achieving relative independence between different subnetworks, and meeting dual-host or even multi-host data routing requirements.

[0027] In an optional implementation, the comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate;

[0028] Determining the routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value in the preset routing direction, and determining the target routing direction according to the routing order, further comprising:

[0029] When the sequence value is a second type identifier, determining whether the horizontal coordinate difference is zero, wherein the second type identifier is used to indicate that the sequence value is an even number;

[0030] If not, the routing order is determined such that the ordinate direction precedes the abscissa direction when the ordinate difference is a positive number, and the routing order is determined such that the abscissa direction precedes the ordinate direction when the ordinate difference is a negative number;

[0031] If so, the ordinate direction is determined as the target routing direction.

[0032] In an embodiment of the present invention, a combination of the XY routing algorithm and the YX routing algorithm can be used to route subnetworks located at different locations in the target topology network, thereby avoiding the use of routing nodes in the remaining subnetworks when routing the target subnetwork, achieving relative independence between different subnetworks, and meeting dual-host or even multi-host data routing requirements.

[0033] In an optional implementation, transmitting target data according to the target routing direction includes:

[0034] Based on the routing order indicated by the preset routing direction, the target data is transmitted along the horizontal coordinate direction and the vertical coordinate direction respectively until the horizontal coordinate difference and the vertical coordinate difference are both zero.

[0035] In the embodiment of the present invention, a combination of an XY routing algorithm and a YX routing algorithm may be used during data transmission, thereby reducing the occurrence of deadlock in the target topology network and improving the reliability of the mesh network on chip.

[0036] In an optional implementation, based on the routing order indicated by the preset routing direction, the target data is transmitted along the horizontal coordinate direction and the vertical coordinate direction respectively until the horizontal coordinate difference and the vertical coordinate difference are both zero, including:

[0037] When the priority routing in the horizontal coordinate direction is determined based on the routing order, the target data is transmitted based on the horizontal coordinate direction, and when the horizontal coordinate difference is zero, the target data is transmitted based on the vertical coordinate direction until the vertical coordinate difference is zero; or when the priority routing in the vertical coordinate direction is determined based on the routing order, the target data is transmitted based on the vertical coordinate direction, and when the vertical coordinate difference is zero, the target data is transmitted based on the horizontal coordinate direction until the horizontal coordinate differences are all zero.

[0038] In the embodiment of the present invention, a combination of an XY routing algorithm and a YX routing algorithm may be used during data transmission, thereby reducing the occurrence of deadlock in the target topology network and improving the reliability of the mesh network on chip.

[0039] In an optional embodiment, the method further includes:

[0040] Upon detecting an allocation instruction to the computer system, obtaining an allocation amount;

[0041] In the target topology network, routing nodes that satisfy the allocated quantity are allocated to the computer system to obtain a target subnetwork.

[0042] In an embodiment of the present invention, full-duplex connections can be used between routing nodes in a mesh network-on-chip, so that sub-networks can be flexibly divided for different hosts in a multi-host architecture, thereby increasing the scope of application of the present invention and improving the user experience.

[0043] In an optional implementation, allocating routing nodes that satisfy the allocated quantity to the computer system in the target topology network to obtain the target subnetwork includes:

[0044] Determining a target row in the target topology network that includes a total number of routing nodes that matches the allocated number;

[0045] Determine the target subnetwork based on the target row.

[0046] In an embodiment of the present invention, full-duplex connections can be used between routing nodes in a mesh network-on-chip, so that sub-networks can be flexibly divided for different hosts in a multi-host architecture, thereby increasing the scope of application of the present invention and improving the user experience.

[0047] In an optional embodiment, the method further includes:

[0048] When the total number of routing nodes included in the target row is less than the allocated number, determining adjacent rows of the target row in the target topological network;

[0049] At least some of the routing nodes are allocated to the computer system in the target row until the total number of routing nodes allocated to the computer system meets the allocated quantity.

[0050] In an embodiment of the present invention, full-duplex connections can be used between routing nodes in a mesh network-on-chip, so that sub-networks can be flexibly divided for different hosts in a multi-host architecture, thereby increasing the scope of application of the present invention and improving the user experience.

[0051] In an optional embodiment, the method further includes:

[0052] When a node adjustment instruction for the computer system is detected, determining a routing node to be confirmed indicated by the node adjustment instruction;

[0053] Based on the node coordinates of the routing node to be confirmed, determining whether the position of the routing node to be confirmed satisfies a preset geometric shape, wherein the preset geometric shape is used to indicate a geometric shape pre-set for the target subnetwork;

[0054] If yes, adjust the target sub-network according to the routing node to be confirmed;

[0055] If not, the routing node to be confirmed is re-determined in the target topology network until the position of the routing node to be confirmed satisfies the preset geometric shape.

[0056] In an embodiment of the present invention, preset geometric shapes can be set for subnetworks with odd sequence values ​​and subnetworks with even sequence values, respectively, to provide a basis for the data routing method combining the XY routing algorithm with the YX routing algorithm in the present invention, thereby adapting to the target topology network of a multi-host architecture.

[0057] In a second aspect, the present invention provides a data routing device, the device comprising:

[0058] A determination module, configured to determine, after detecting a transmission request for target data, a target subnetwork corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate a network structure of a topology network on a chip NoC, and the target subnetwork includes a routing node allocated to a computer system corresponding to the target data;

[0059] A comparison module, used for comparing the current node coordinates with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the first routing node used to transmit the target data;

[0060] A transmission module is used to determine a target routing direction that matches the comparison result in preset routing directions, and transmit the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target subnetwork.

[0061] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the data routing method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0062] 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 data routing method of the first aspect or any corresponding embodiment thereof.

[0063] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the data routing method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 It is a 4×4 two-dimensional mesh on-chip network topology;

[0066] Figure 2 It is a schematic diagram of the topology of a dual-host 5*5 two-dimensional mesh network;

[0067] Figure 3a is a data routing diagram of the first sub-network in the target topology network;

[0068] Figure 3b is a data routing diagram of the second sub-network in the target topology network;

[0069] Figure 4 is a flow chart of a data routing method according to an embodiment of the present invention;

[0070] Figure 5 is a flow chart of another data routing method according to an embodiment of the present invention;

[0071] Figure 6 is a flow chart of another data routing method according to an embodiment of the present invention;

[0072] Figure 7a is a data routing diagram of a first sub-network according to an embodiment of the present invention;

[0073] Figure 7b is a data routing diagram of a second sub-network according to an embodiment of the present invention;

[0074] Figure 8a This is a schematic diagram of the clockwise deadlock generated by ring topology 1;

[0075] Figure 8b This is a schematic diagram of the counterclockwise deadlock generated by ring topology 1;

[0076] Figure 8c is a schematic diagram of a path of a corresponding transmission request in the ring topology 1 of an embodiment of the present invention;

[0077] Fig. 9 is a structural block diagram of a data routing device according to an embodiment of the present invention;

[0078] 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

[0079] 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.

[0080] In conjunction with the application scenarios on which the execution of the data routing method depends, the application scenarios are described here.

[0081] Network-on-chip (NoC) is a new communication method for system-on-chip (SoC) and is a major component of multi-core technology. The NoC method brings a new on-chip communication method that significantly outperforms the performance of traditional bus systems.

[0082] like Figure 1 As shown in the figure, it is a 4×4 two-dimensional mesh on-chip network topology. In the figure, R represents the router, which arbitrates the flow of data and determines the transmission path of the data packet in the routing network; IP represents the source node, which can send and receive data. The lines in the figure are all bidirectional lines, that is, full-duplex. Each router uses a link to connect to a source node. The routing node and the source node, and the routing node and the routing node are connected by two independent and unidirectional links.

[0083] In actual networks, the value of N can be arbitrarily large, as long as each routing node is connected to a target node. However, as N increases, the diameter and scale of the network also increase, which will have a great impact on the network's latency, power consumption and other performance. Routing algorithms generally refer to the transmission of data between routers R. When the network topology is determined, the routing algorithm determines the transmission path of the message packet in the network. The routing algorithm can select the intermediate nodes that need to be routed based on the target node and the target node.

[0084] However, for mesh topologies that support dual or even multi-hosts, the sub-networks controlled by multiple hosts need to be independent of each other, that is, there is no need for data interaction. However, the routing nodes between different sub-networks are often not identified in the relevant routing algorithms, and the dual or even multi-host data routing requirements cannot be met.

[0085] For example, in the relevant routing algorithms, the XY routing algorithm can usually be used, such as Figure 2The figure shows a schematic diagram of the topology of a dual-host 5*5 two-dimensional mesh network, where when the routing node (0, 2) of the first sub-network transmits a data packet to the routing node (3, 0), if the XY routing algorithm is used, the transmission path is: (0, 2) -> (1, 2) -> (2, 2) -> (3, 2) -> (3, 1) -> (3, 0). Figure 3a As shown, routing nodes (2, 2) and (3, 2) belong to the second sub-network, that is, the routing nodes and paths of the second sub-network are used when transmitting data within the first sub-network, occupying the routing resources of the second sub-network. It should be understood that when routing node (4, 0) of the first sub-network transmits a data packet to routing node (1, 2), the situation is similar to that when routing node (0, 2) transmits a data packet to routing node (3, 0), and will not be repeated here.

[0086] For example, Figure 3b As shown in FIG, when the routing node (3, 2) of the second sub-network transmits a data packet to the routing node (0, 4), its transmission path is: (3, 2) -> (2, 2) -> (1, 2) -> (0, 2) -> (0, 3) -> (0, 4), as shown in FIG. Figure 6 As shown, routing nodes (0, 2) and (1, 2) belong to the first sub-network, that is, the routing nodes and paths of the first sub-network are used when transmitting data within the second sub-network, occupying the routing resources of the first sub-network. In addition, when routing node (1, 4) of the second sub-network transmits a data packet to routing node (4, 2), the situation is similar to that of routing node (3, 2) transmitting a data packet to routing node (0, 4), and will not be repeated here.

[0087] Based on this, an embodiment of the present invention provides a data routing method. First, after detecting a transmission request for target data, determine the target subnetwork corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate the network structure of the on-chip topology network NoC, and the target subnetwork contains routing nodes allocated to the computer system corresponding to the target data, and compare the current node coordinates of the target data with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request. Then, determine the target routing direction that matches the comparison result in the preset routing direction, and transmit the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target subnetwork, thereby distinguishing the routing nodes between different subnetworks in the target topology network, thereby achieving relative independence between different subnetworks, and meeting the dual-host or even multi-host data routing requirements.

[0088] According to an embodiment of the present invention, a data routing method embodiment 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.

[0089] In this embodiment, a data routing method is provided, which can be used in the above mesh network on chip. Figure 4 is a flow chart of a data routing method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0090] Step S401, after detecting a transmission request for target data, determine the target subnetwork corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate the network structure of the on-chip topology network NoC, and the target subnetwork includes routing nodes allocated to the computer system corresponding to the target data.

[0091] In an embodiment of the present invention, the schematic diagram of the target topology network can be as follows: Figure 2 As shown in , the present invention supports a multi-host system, so two hosts (hosts are the above-mentioned computer systems) are linked in the target topology network, host 1 corresponds to the first sub-network, and host 2 corresponds to the second sub-network. Here, the first sub-network and the second sub-network are independent of each other and no data transmission is performed.

[0092] Depend on Figure 2 It can be seen that the above target topology network is a two-dimensional network, in which each routing node can be represented by a two-dimensional coordinate (x, y), based on which the current node coordinates of the current routing node where the target data is located during the transmission process can be obtained, so as to determine the target sub-network corresponding to the current coordinate node in the target topology network according to the current node coordinates. In addition, the target host that issues the above transmission request can also be detected, and the target sub-network corresponding to the target host can be determined in the target topology network.

[0093] Step S402, comparing the current node coordinates where the target data is located with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request.

[0094] In the embodiment of the present invention, the coordinates (x D ,y D ), the comparison result can be used to indicate the distance between the current routing node and the destination routing node. For example, the comparison result can include the coordinate difference between the current node coordinates and the destination node coordinates.

[0095] Step S403, determining a target routing direction that matches the comparison result in the preset routing directions, and transmitting the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target sub-network.

[0096] In the embodiment of the present invention, considering that the target topology network is a two-dimensional topology structure, the preset routing direction may include a horizontal coordinate direction and a vertical coordinate direction, and the comparison result may be used to indicate the horizontal coordinate distance and the vertical coordinate distance between the current node coordinate and the target node coordinate, respectively. Therefore, the target routing direction may be determined for the target data in the preset routing direction based on the comparison result, so as to transmit the target data to the destination routing node based on the target routing direction in response to the transmission request.

[0097] For example, if the horizontal coordinate distance between the current node coordinates and the target node coordinates is determined to be zero based on the above comparison results, the vertical coordinate direction can be determined as the target routing direction. On the contrary, if the vertical coordinate distance between the current node coordinates and the target node coordinates is determined to be zero based on the comparison results, the horizontal coordinate direction can be determined as the target routing direction. In addition, if the horizontal and vertical coordinate distances between the current node coordinates and the target node coordinates are not zero, then both the horizontal and vertical coordinate directions can be determined as the target routing direction.

[0098] It should be understood that when the target routing direction includes the horizontal coordinate direction and the vertical coordinate direction, the routing algorithms that can be selected include the XY routing algorithm and the YX routing algorithm. Among them, the XY routing algorithm is used to indicate that the target data is first transmitted along the horizontal coordinate direction, and when the horizontal coordinate distance is zero, the target data is transmitted along the vertical coordinate direction until the vertical coordinate distance is zero. On the contrary, the YX routing algorithm is used to indicate that the target data is first transmitted along the vertical coordinate direction, and when the vertical coordinate distance is zero, the target data is transmitted along the horizontal coordinate direction until the horizontal coordinate distance is zero.

[0099] In specific implementation, the corresponding routing algorithm can be selected in combination with the target subnetwork corresponding to the target data and the current routing system, so that the target data will not occupy routing nodes in other subnetworks in the target topology network during transmission, thereby achieving isolation of subnetworks in the target topology network.

[0100] It can be known from the above description that in an embodiment of the present invention, first, after detecting a transmission request for target data, the target subnetwork corresponding to the current coordinate node in the target topology network is determined, wherein the target topology network is used to indicate the network structure of the on-chip topology network NoC, and the target subnetwork contains routing nodes allocated to the computer system corresponding to the target data, and the current node coordinates of the target data are compared with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request. Then, a target routing direction matching the comparison result is determined in the preset routing direction, and the target data is transmitted according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-assigned to the target subnetwork, thereby distinguishing the routing nodes between different subnetworks in the target topology network, thereby achieving relative independence between different subnetworks, and meeting the dual-host or even multi-host data routing requirements.

[0101] In this embodiment, another data routing method is provided, which can be used in the above mesh network on chip. Figure 5 is a flow chart of another data routing method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0102] Step S501, after detecting a transmission request for target data, determine the target sub-network corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate the network structure of the NoC topology network on a chip, and the target sub-network includes a routing node allocated to the computer system corresponding to the target data. For details, please refer to Figure 4 Step S401 of the illustrated embodiment will not be described in detail here.

[0103] Step S502, comparing the current node coordinates where the target data is located with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request.

[0104] Specifically, the above step S502 includes:

[0105] Step S5021, subtract the horizontal coordinates of the current node coordinates and the target node coordinates to obtain the horizontal coordinate difference.

[0106] Step S5022, subtract the ordinates of the current node coordinates and the target node coordinates to obtain a ordinate difference.

[0107] Step S5023, determining the comparison result according to the horizontal coordinate difference and the vertical coordinate difference.

[0108] In the embodiment of the present invention, the transmission request can be used to indicate the starting point and the end point of the target data transmission, wherein the starting point is the source routing node S and the end point is the destination routing node D. Here, the source routing coordinates of the source routing node S can be expressed as (x S ,y S ), the target routing coordinates of the destination routing node D can be expressed as (x D ,y D ), the current node coordinates of the current routing node can be expressed as (x now ,y now ).

[0109] Based on this, the above horizontal coordinate difference can be expressed as Δx now =x D -x now , the above vertical coordinate difference can be expressed as Δy now =y D -y now The comparison result determined by the difference between the horizontal coordinate and the vertical coordinate can be expressed as (Δx now , Δy now )=(x D -x now ,y D -y now ).

[0110] Step S503, determining a target routing direction that matches the comparison result in the preset routing directions, and transmitting the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-assigned to the target sub-network. Figure 4 Step S403 of the illustrated embodiment will not be described in detail here.

[0111] In an embodiment of the present invention, a comparison result can be determined based on the horizontal coordinate difference and the vertical coordinate difference between the current node coordinates and the target node coordinates, so as to determine the transmission distance between the current routing node and the target routing node based on the comparison result, thereby providing a technical basis for determining a matching target routing direction based on the comparison result.

[0112] In this embodiment, another data routing method is provided, which can be used in the above mesh network on chip. Figure 6 is a flow chart of another data routing method according to an embodiment of the present invention. Figure 6 As shown, the process includes the following steps:

[0113] Step S601, after detecting a transmission request for target data, determine the target sub-network corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate the network structure of the NoC topology network on a chip, and the target sub-network includes a routing node allocated to the computer system corresponding to the target data. For details, please refer to Figure 4 Step S401 of the illustrated embodiment will not be described in detail here.

[0114] Step S602: Compare the current node coordinates of the target data with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request. Figure 4 Step S402 of the illustrated embodiment will not be described in detail here.

[0115] Step S603, determining a target routing direction that matches the comparison result in the preset routing directions, and transmitting the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target sub-network.

[0116] Specifically, the preset routing direction includes a horizontal coordinate direction and a vertical coordinate direction, and the step S603 includes:

[0117] Step S6031, obtaining a sequence value of the target sub-network in the target topology network, wherein the sequence value is used to indicate a position of the target sub-network in the target topology network.

[0118] Step S6032, determining the routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value in the preset routing direction, and determining the target routing direction according to the routing order.

[0119] In the embodiment of the present invention, if the target network includes a total of n rows of routing nodes, the subnetworks can be sorted in the target network in the order from row x=0 to row x=n to obtain a subnetwork sequence. Figure 2 For example, the sequence value corresponding to the first sub-network may be 1, and the sequence value corresponding to the second sub-network may be 2.

[0120] It should be understood that since different subnetworks are located in different positions in the target topology network, the corresponding routing algorithms are different, and the method of determining the target routing direction according to the routing algorithm is also different. Here, the above routing order is used to indicate the priority of the horizontal and vertical coordinate directions in different routing algorithms.

[0121] Specifically, as can be seen from the above, the horizontal coordinate difference and the vertical coordinate difference between the current node coordinate and the target node coordinate, then, the above step S6032, determines the routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value in the preset routing direction, and determines the target routing direction according to the routing order, including:

[0122] Step a1, when the sequence value is a first type identifier, determine whether the horizontal coordinate difference is zero, wherein the first type identifier is used to indicate that the sequence value is an odd number, if not, execute step a2, if yes, execute step a3.

[0123] Step a2, when the ordinate difference is a positive number, the routing order is determined such that the abscissa direction precedes the ordinate direction, and when the ordinate difference is a negative number, the routing order is determined such that the ordinate direction precedes the abscissa direction.

[0124] Step a3: determine the ordinate direction as the target routing direction.

[0125] In the embodiment of the present invention, when the sequence value is a first type identifier, for example, the first sub-network with a sequence value of 1, the following routing rules may be set:

[0126] Routing rule 1: When the horizontal coordinate difference is positive (i.e. Δx now >0), the target data can only be transmitted in the direction of increasing horizontal coordinates (hereinafter referred to as X direction). On the contrary, when the horizontal coordinate difference is negative (i.e. Δx now <0), the target data can only be transmitted in the direction of decreasing horizontal coordinates in X. Similarly, when the vertical coordinate difference is positive (i.e. Δy now >0), the target data can only be transmitted in the direction of increasing ordinate in the ordinate direction (hereinafter referred to as Y direction). On the contrary, when the ordinate difference is positive (i.e. Δy now <0), the target data can only be transmitted in the direction of decreasing ordinate in the Y direction. Therefore, according to the limitation of routing rule 1, the target data is routed toward the target routing node in both the X and Y directions during the transmission process, and there is no route that deviates from the target routing node, that is, it always follows the shortest path.

[0127] Routing rule 2: When the horizontal coordinate difference is not 0 (i.e. Δx now ≠0), under the premise of satisfying routing rule 1, when the vertical coordinate difference is a positive number (i.e. Δy now >0), the above XY routing algorithm can be used, that is, the routing order is determined as the horizontal axis direction before the vertical axis direction. In addition, when the vertical axis difference is a positive number (i.e., Δy now <0), the above-mentioned YX routing algorithm can be used, that is, the routing order is determined as the ordinate direction precedes the abscissa direction.

[0128] Routing rule three: When Δx now =0, routing is performed according to the above routing rule 1.

[0129] Routing rule 4: When Δy now =0, routing is performed according to the above routing rule 1.

[0130] For example, when routing node (0, 2) in the first sub-network transmits a data packet to routing node (3, 0), the above-mentioned routing rules 1, 2 and 4 are followed to obtain the following: Figure 7a The target transmission path shown is: (0, 2) -> (0, 1) -> (0, 0) -> (1, 0) -> (2, 0) -> (3, 0). In addition, as Figure 7a As shown, when routing node (4,0) of the first sub-network transmits a data packet to routing node (1,2), the situation is similar to that when routing node (0,2) transmits a data packet to routing node (3,0), and will not be described in detail here.

[0131] In addition, the above step S6032 also includes:

[0132] Step b1, when the sequence value is a second type identifier, determining whether the horizontal coordinate difference is zero, wherein the second type identifier is used to indicate that the sequence value is an even number.

[0133] Step b2, when the ordinate difference is a positive number, the routing order is determined such that the ordinate direction precedes the abscissa direction, and when the ordinate difference is a negative number, the routing order is determined such that the abscissa direction precedes the ordinate direction.

[0134] Step b3, determining the vertical coordinate direction as the target routing direction.

[0135] In the embodiment of the present invention, when the sequence value is a second type identifier, for example, the second sub-network with a sequence value of 2, the following routing rules may be set:

[0136] Routing rule 5: When the horizontal coordinate difference is not 0 (i.e. Δx now ≠0), under the premise of satisfying routing rule 1, when the vertical coordinate difference is a positive number (i.e. Δy now >0), the above YX routing algorithm can be used, that is, the routing order is determined as the ordinate direction before the abscissa direction. In addition, when the ordinate difference is a positive number (i.e., Δy now <0), the above XY routing algorithm can be used, that is, the routing order is determined as the horizontal coordinate direction precedes the vertical coordinate direction.

[0137] For example, when routing node (1, 4) in the second sub-network transmits a data packet to routing node (4, 2), the above-mentioned routing rules 1, 3 and 5 are followed to obtain the following: Figure 7b The target transmission path shown is: (1, 4) -> (2, 4) -> (3, 4) -> (4, 4) -> (4, 3) -> (4, 2). In addition, as Figure 7b As shown, when routing node (3, 2) of the second sub-network transmits a data packet to routing node (0, 4), the situation is similar to that when routing node (1, 4) transmits a data packet to routing node (4, 2), and will not be described in detail here.

[0138] In an embodiment of the present invention, a combination of the XY routing algorithm and the YX routing algorithm can be used to route subnetworks located at different locations in the target topology network, thereby avoiding the use of routing nodes in the remaining subnetworks when routing the target subnetwork, achieving relative independence between different subnetworks, and meeting dual-host or even multi-host data routing requirements.

[0139] In some optional implementations, the above step S403 includes:

[0140] Based on the routing order indicated by the preset routing direction, the target data is transmitted along the horizontal coordinate direction and the vertical coordinate direction respectively until the horizontal coordinate difference value and the vertical coordinate difference value are both zero.

[0141] In the embodiment of the present invention, whether the above-mentioned XY routing algorithm or the YX routing algorithm, both are first transmitted in one direction to make the upper coordinate of the direction zero, and then transmitted in the other direction, so that the target data can be transmitted along the outer edge of the sub-network and avoid passing through routing nodes in other sub-networks.

[0142] Specifically, the above step S403 also includes:

[0143] When the priority routing in the horizontal coordinate direction is determined based on the routing order, the target data is transmitted based on the horizontal coordinate direction, and when the horizontal coordinate difference is zero, the target data is transmitted based on the vertical coordinate direction until the vertical coordinate difference is zero; or when the priority routing in the vertical coordinate direction is determined based on the routing order, the target data is transmitted based on the vertical coordinate direction, and when the vertical coordinate difference is zero, the target data is transmitted based on the horizontal coordinate direction until the horizontal coordinate differences are all zero.

[0144] In an embodiment of the present invention, the routing order of the priority routing in the horizontal axis direction is the above-mentioned XY routing algorithm, and the routing order of the priority routing in the vertical axis direction is the above-mentioned YX routing algorithm. The present invention can effectively reduce the occurrence of deadlock in the target topology network by combining the XY routing algorithm with the YX routing algorithm.

[0145] For example, for a two-dimensional target topology network, since the target topology network contains a ring structure, such as Figure 2 A ring topology 1 is formed by the routing nodes (2, 3), (3, 3), (2, 2), and (3, 2) of the second child nodes.

[0146] In the embodiment of the present invention, in any closed square ring topology, multi-hop routing initiated by nodes in the routing structure in the same direction may form a closed loop, resulting in a deadlock. Figure 8a The diagram shows a clockwise deadlock generated by the above ring topology 1, wherein each node in the ring topology 1 has initiated a clockwise two-hop transmission request, and at this time, the first-hop path is locked. For example, the routing node (2, 2) has initiated a transmission request to route data to the routing node (3, 3), and at this time, the first-hop path (2, 2) -> (2, 3) of the transmission request is locked. Similarly, each path in the ring topology 1 is locked, so the second-hop routing of each routing node in the ring topology 1 cannot be executed, resulting in a deadlock. It should be understood that the solid line in the figure is the first-hop path, and the dotted line is the second-hop path.

[0147] For example, Figure 8b The figure shows a schematic diagram of the counterclockwise deadlock generated in the above-mentioned ring topology 1, wherein each node in the ring topology 1 has initiated a counterclockwise two-hop transmission request, and at this time the first-hop path has been locked, resulting in each path in the ring topology 1 being locked. Therefore, the second-hop routing of each routing node in the ring topology 1 cannot be executed, resulting in a deadlock.

[0148] However, the present invention adopts a combination of the XY routing algorithm and the YX routing algorithm, so that no closed loop is generated in the ring topology, reducing the occurrence of deadlock. Figure 8c The figure shows a schematic diagram of the path of the corresponding transmission request in the ring topology 1 of the present invention, wherein, for the transmission request initiated by the routing node (3, 3) to route data to the routing node (2, 2), (Δx now , Δy now )=(1,1),Δx now ≠0. According to the above routing rule 3, in Δy now <0, the XY routing algorithm is used to first transmit data along the path (3, 3) -> (2, 3) in the X direction, and then transmit data along the path (2, 3) -> (2, 2) in the Y direction according to the above routing rule 4.

[0149] In the embodiment of the present invention, a combination of an XY routing algorithm and a YX routing algorithm may be used during data transmission, thereby reducing the occurrence of deadlock in the target topology network and improving the reliability of the mesh network on chip.

[0150] In some optional embodiments, the above Figure 4 The corresponding embodiments also include:

[0151] S11, when an allocation instruction for the computer system is detected, obtaining an allocation quantity.

[0152] S12, allocating routing nodes that satisfy the allocated quantity to the computer system in the target topology network to obtain a target sub-network.

[0153] In the embodiment of the present invention, it can be seen from the above that the routing nodes in the mesh network on chip are all full-duplex connected, which also means that routing nodes can be arbitrarily allocated to each host in the target topology network without affecting the communication effect in each sub-network.

[0154] Based on this, computing resources, such as routing nodes in the target topology network, can be allocated to the host through allocation instructions. Here, an allocation instruction can be generated according to the allocation number of routing nodes set for the host, and in response to the allocation instruction, a target subnetwork that meets the allocation number is allocated to the host in the target topology network.

[0155] Specifically, the above step S12 allocates routing nodes that meet the allocated number to the computer system in the target topology network to obtain the target sub-network, including:

[0156] Step c1, determining a target row in the target topology network including a total number of routing nodes that matches the allocated number.

[0157] Step c2, determining the target subnetwork according to the target row.

[0158] In the embodiment of the present invention, if the routing nodes in the target topology network form an M×N matrix, where M is the number of rows and N is the number of columns, then when the number of routing nodes allocated to the host is A, the number of routing node rows allocated to the host is X=A / N, where X<M.

[0159] Next, when it is detected that there are idle routing nodes to be allocated in the target topology network, adjacent X rows of routing nodes can be selected from the idle routing nodes as the target sub-network. Specifically, the method of determining the target sub-network according to the target row is as follows:

[0160] Step d1, when the total number of routing nodes included in the target row is less than the allocated number, determining adjacent rows of the target row in the target topological network.

[0161] Step d2, allocating at least some routing nodes to the computer system in the target row until the total number of routing nodes allocated to the computer system meets the allocated quantity.

[0162] In the embodiment of the present invention, when X is not an integer value, X is rounded, that is, the decimal places are discarded, to obtain the target row. Next, the difference between the total number of routing nodes in the target row and the allocated number can be calculated, and at least part of the routing nodes that meet the difference can be allocated to the host in the adjacent rows of the target row.

[0163] For example, Figure 2 Take the target topology network in as an example, where M=5, N=5, if X=2, and the difference between the total number of routing nodes in the target row and the number of assigned nodes is 2, then the target row can be row y=0 and row y=1, and the adjacent row can be row y=2. In the adjacent row, 2 routing nodes can be assigned to the host in the preset direction (i.e., the direction in which x increases), i.e. Figure 2 The routing nodes (0, 2) and the routing nodes (1, 2) in are connected so that the total number of routing nodes allocated to the host is equal to the allocated number.

[0164] It should be understood that when the sequence value of the subnetwork corresponding to the host is an even number, such as the above Figure 2 For the second sub-network in FIG. 1 , the preset direction when performing routing node division in adjacent rows may be a direction in which x decreases.

[0165] In an embodiment of the present invention, full-duplex connections can be used between routing nodes in a mesh network-on-chip, so that sub-networks can be flexibly divided for different hosts in a multi-host architecture, thereby increasing the scope of application of the present invention and improving the user experience.

[0166] In some optional embodiments, the above Figure 4 The corresponding embodiments also include:

[0167] Step S21, when a node adjustment instruction for a computer system is detected, determining a routing node to be confirmed indicated by the node adjustment instruction.

[0168] Step S22, based on the node coordinates of the routing node to be confirmed, determine whether the position of the routing node to be confirmed satisfies a preset geometric shape, wherein the preset geometric shape is used to indicate a geometric shape pre-set for the target subnetwork. If so, execute step S23, if not, execute step S24.

[0169] Step S23: adjusting the target sub-network according to the routing node to be confirmed.

[0170] Step S24, re-determining the routing node to be confirmed in the target topology network until the position of the routing node to be confirmed satisfies a preset geometric shape.

[0171] In the embodiment of the present invention, in order to provide a basis for the data routing method combining the XY routing algorithm and the YX routing algorithm in the present invention, the topological shape of the subnetwork in the target topological network can be limited by a preset geometric shape, wherein the topological shape corresponding to the subnetwork with an odd sequence value can be Figure 2 The first sub-network corresponds to a positive staircase or rectangle, and the topological shape corresponding to the sub-network with an even sequence value can be Figure 2 The inverted staircase or rectangle corresponding to the second sub-network.

[0172] When determining whether the position of the above-mentioned routing node to be confirmed satisfies the preset geometric shape, the corresponding preset shape can be obtained based on the sequence value of the sub-network corresponding to the node to be determined, and whether the position of the node to be confirmed satisfies the preset geometric shape can be determined based on the node coordinates of the routing node to be confirmed.

[0173] Specifically, it can be determined whether the y value of the node coordinate of the routing node to be confirmed exceeds the range of the preset geometric shape. If so, the routing node to be confirmed is reselected according to the range of the preset geometric shape. If not, the routing node to be selected is allocated to the target subnetwork.

[0174] In an embodiment of the present invention, preset geometric shapes can be set for subnetworks with odd sequence values ​​and subnetworks with even sequence values, respectively, to provide a basis for the data routing method combining the XY routing algorithm with the YX routing algorithm in the present invention, thereby adapting to the target topology network of a multi-host architecture.

[0175] In summary, in an embodiment of the present invention, first, after detecting a transmission request for target data, determine the target subnetwork corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate the network structure of the on-chip topology network NoC, and the target subnetwork contains routing nodes allocated to the computer system corresponding to the target data, and compare the current node coordinates of the target data with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request. Then, determine the target routing direction that matches the comparison result in the preset routing direction, and transmit the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-assigned to the target subnetwork, thereby distinguishing the routing nodes between different subnetworks in the target topology network, and then achieving relative independence between different subnetworks, meeting the dual-host or even multi-host data routing requirements.

[0176] In this embodiment, a data routing device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements 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.

[0177] This embodiment provides a data routing device, such as Fig. 9 As shown, including:

[0178] The determination module 901 is used to determine the target sub-network corresponding to the current coordinate node in the target topology network after detecting the transmission request for the target data, wherein the target topology network is used to indicate the network structure of the on-chip topology network NoC, and the target sub-network includes the routing node allocated to the computer system corresponding to the target data;

[0179] A comparison module 902 is used to compare the current node coordinates with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the first routing node used to transmit the target data;

[0180] The transmission module 903 is used to determine a target routing direction that matches the comparison result in the preset routing directions, and transmit the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target subnetwork.

[0181] In some optional implementations, the comparison module 902 is further configured to:

[0182] Subtract the horizontal coordinates of the current node coordinates from the target node coordinates to obtain the horizontal coordinate difference;

[0183] Subtract the ordinates of the current node coordinates from the target node coordinates to obtain the ordinate difference;

[0184] The comparison result is determined based on the difference between the horizontal and vertical coordinates.

[0185] In some optional implementations, the preset routing direction includes a horizontal coordinate direction and a vertical coordinate direction; the transmission module 903 is further used to:

[0186] Obtaining a sequence value of the target subnetwork in the target topology network, wherein the sequence value is used to indicate a position of the target subnetwork in the target topology network;

[0187] The routing order of the horizontal coordinate direction and the vertical coordinate direction matching the sequence value is determined in the preset routing direction, and the target routing direction is determined according to the routing order.

[0188] In some optional implementations, the comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate; the transmission module 903 is further used to:

[0189] When the sequence value is a first type identifier, determining whether the horizontal coordinate difference is zero, wherein the first type identifier is used to indicate that the sequence value is an odd number;

[0190] If not, the routing order is determined such that the abscissa direction precedes the ordinate direction when the ordinate difference is a positive number, and the routing order is determined such that the ordinate direction precedes the abscissa direction when the ordinate difference is a negative number;

[0191] If so, the ordinate direction is determined as the target routing direction.

[0192] In some optional implementations, the comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate; the transmission module 903 is further used to:

[0193] When the sequence value is a second type identifier, determining whether the horizontal coordinate difference is zero, wherein the second type identifier is used to indicate that the sequence value is an even number;

[0194] If not, the routing order is determined such that the ordinate direction precedes the abscissa direction when the ordinate difference is a positive number, and the routing order is determined such that the abscissa direction precedes the ordinate direction when the ordinate difference is a negative number;

[0195] If so, the ordinate direction is determined as the target routing direction.

[0196] In some optional implementations, the comparison module 902 is further configured to:

[0197] Based on the routing order indicated by the preset routing direction, the target data is transmitted along the horizontal coordinate direction and the vertical coordinate direction respectively until the horizontal coordinate difference and the vertical coordinate difference are both zero.

[0198] In some optional implementations, the comparison module 902 is further configured to:

[0199] When the priority routing in the horizontal coordinate direction is determined based on the routing order, the target data is transmitted based on the horizontal coordinate direction, and when the horizontal coordinate difference is zero, the target data is transmitted based on the vertical coordinate direction until the vertical coordinate difference is zero; or when the priority routing in the vertical coordinate direction is determined based on the routing order, the target data is transmitted based on the vertical coordinate direction, and when the vertical coordinate difference is zero, the target data is transmitted based on the horizontal coordinate direction until the horizontal coordinate differences are all zero.

[0200] In some optional embodiments, the device is also used for:

[0201] Upon detecting an allocation instruction to the computer system, obtaining an allocation amount;

[0202] In the target topology network, routing nodes that satisfy the allocated quantity are allocated to the computer system to obtain a target subnetwork.

[0203] In some optional embodiments, the device is also used for:

[0204] Determine the target row in the target topology network that contains the total number of routing nodes that matches the allocated number;

[0205] Determine the target subnetwork based on the target row.

[0206] In some optional embodiments, the device is also used for:

[0207] When the total number of routing nodes included in the target row is less than the allocated number, determining adjacent rows of the target row in the target topological network;

[0208] At least some of the routing nodes are allocated to the computer system in the target row until the total number of routing nodes allocated to the computer system meets the allocated quantity.

[0209] In some optional embodiments, the device is also used for:

[0210] When a node adjustment instruction for the computer system is detected, determining a routing node to be confirmed indicated by the node adjustment instruction;

[0211] Based on the node coordinates of the routing node to be confirmed, determining whether the position of the routing node to be confirmed satisfies a preset geometric shape, wherein the preset geometric shape is used to indicate a geometric shape pre-set for the target subnetwork;

[0212] If yes, adjust the target sub-network according to the routing node to be confirmed;

[0213] If not, the routing node to be confirmed is re-determined in the target topology network until the position of the routing node to be confirmed satisfies the preset geometric shape.

[0214] 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.

[0215] The data routing 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.

[0216] The embodiment of the present invention also provides a computer device having the above Fig. 9 The data routing device shown.

[0217] 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 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in 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 some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 10 is taken as an example.

[0218] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 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.

[0219] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0220] The memory 20 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 20 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 20 may optionally include a memory remotely arranged relative to the processor 10, 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.

[0221] The memory 20 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 20 may also include a combination of the above types of memory.

[0222] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0223] 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.

[0224] 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.

[0225] 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 data routing method, characterized in that: The method comprises: After detecting a transmission request for target data, determining a target subnetwork corresponding to the current coordinate node in the target topology network, wherein the target topology network is used to indicate a network structure of a topology network on a chip NoC, and the target subnetwork includes a routing node allocated to a computer system corresponding to the target data; Comparing the current node coordinates of the target data with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the destination routing node corresponding to the transmission request; A target routing direction matching the comparison result is determined in preset routing directions, and the target data is transmitted according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target subnetwork.

2. The method according to claim 1, characterized in that The comparing the current node coordinates based on the target data with the target node coordinates to obtain a comparison result includes: Subtracting the horizontal coordinates of the current node coordinates from the horizontal coordinates of the target node coordinates to obtain a horizontal coordinate difference; Subtracting the ordinates of the current node coordinates from the target node coordinates to obtain a ordinate difference; A comparison result is determined according to the horizontal coordinate difference and the vertical coordinate difference.

3. The method according to claim 1, characterized in that The preset routing direction includes a horizontal coordinate direction and a vertical coordinate direction; The determining of a target routing direction matching the comparison result in the preset routing directions includes: Acquire a sequence value of the target subnetwork in the target topology network, wherein the sequence value is used to indicate a position of the target subnetwork in the target topology network; A routing order of a horizontal coordinate direction and a vertical coordinate direction matching the sequence value is determined in the preset routing direction, and the target routing direction is determined according to the routing order.

4. The method according to claim 3, characterized in that The comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate; The determining of a routing order of a horizontal coordinate direction and a vertical coordinate direction matching the sequence value in a preset routing direction, and determining the target routing direction according to the routing order, includes: When the sequence value is a first type identifier, determining whether the horizontal coordinate difference is zero, wherein the first type identifier is used to indicate that the sequence value is an odd number; If not, when the ordinate difference is a positive number, the routing order is determined such that the abscissa direction precedes the ordinate direction, and when the ordinate difference is a negative number, the routing order is determined such that the ordinate direction precedes the abscissa direction; If so, the ordinate direction is determined as the target routing direction.

5. The method according to claim 3, characterized in that: The comparison result includes: a horizontal coordinate difference and a vertical coordinate difference between the current node coordinate and the target node coordinate; The step of determining a routing order of a horizontal coordinate direction and a vertical coordinate direction that match the sequence value in the preset routing direction, and determining the target routing direction according to the routing order, further includes: When the sequence value is a second type identifier, determining whether the horizontal coordinate difference is zero, wherein the second type identifier is used to indicate that the sequence value is an even number; If not, when the ordinate difference is a positive number, the routing order is determined such that the ordinate direction precedes the abscissa direction, and when the ordinate difference is a negative number, the routing order is determined such that the abscissa direction precedes the ordinate direction; If so, the ordinate direction is determined as the target routing direction.

6. The method according to claim 2, characterized in that The transmitting the target data according to the target routing direction comprises: Based on the routing order indicated by the preset routing direction, the target data is transmitted along the horizontal coordinate direction and the vertical coordinate direction respectively until the horizontal coordinate difference value and the vertical coordinate difference value are both zero.

7. The method according to claim 6, characterized in that The step of transmitting the target data in the horizontal and vertical directions respectively based on the routing order indicated by the preset routing direction until the horizontal and vertical coordinate differences are both zero includes: When the horizontal coordinate priority route is determined based on the routing order, the target data is transmitted based on the horizontal coordinate direction, and when the horizontal coordinate difference is zero, the target data is transmitted based on the vertical coordinate direction until the vertical coordinate difference is zero; or When the priority route in the ordinate direction is determined based on the routing order, the target data is transmitted based on the ordinate direction, and when the ordinate difference is zero, the target data is transmitted based on the abscissa direction until the abscissa differences are all zero.

8. The method according to claim 1, characterized in that The method further comprises: When an allocation instruction for the computer system is detected, obtaining an allocation quantity; In the target topology network, routing nodes satisfying the allocated quantity are allocated to the computer system to obtain a target sub-network.

9. The method according to claim 8, characterized in that The step of allocating routing nodes satisfying the allocated quantity to the computer system in the target topology network to obtain a target subnetwork includes: Determining a target row in the target topology network that includes a total number of routing nodes that matches the allocated number; A target subnetwork is determined according to the target row.

10. The method according to claim 9, characterized in that The method further comprises: When the total number of routing nodes included in the target row is less than the allocated number, determining adjacent rows of the target row in the target topological network; At least some of the routing nodes are allocated to the computer system in the target row until the total number of routing nodes allocated to the computer system meets the allocated number.

11. The method according to claim 1, characterized in that: The method further comprises: When a node adjustment instruction for the computer system is detected, determining a routing node to be confirmed indicated by the node adjustment instruction; Based on the node coordinates of the routing node to be confirmed, determining whether the position of the routing node to be confirmed satisfies a preset geometric shape, wherein the preset geometric shape is used to indicate the geometric shape pre-set for the target subnetwork; If so, adjusting the target subnetwork according to the routing node to be confirmed; If not, the routing node to be confirmed is re-determined in the target topology network until the position of the routing node to be confirmed satisfies a preset geometric shape.

12. A data routing device, characterized in that: The device comprises: A determination module, configured to determine, after detecting a transmission request for target data, a target subnetwork corresponding to a current coordinate node in the target topology network, wherein the target topology network is used to indicate a network structure of a topology network on a chip NoC, and the target subnetwork includes a routing node allocated to a computer system corresponding to the target data; A comparison module, used for comparing the current node coordinates with the target node coordinates to obtain a comparison result, wherein the target node coordinates are the coordinates of the first routing node used to transmit the target data; A transmission module is used to determine a target routing direction that matches the comparison result in preset routing directions, and transmit the target data according to the target routing direction, wherein the preset routing direction includes at least one routing direction pre-allocated to the target subnetwork.

13. 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 data routing method according to any one of claims 1 to 11 by executing the computer instructions.

14. 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 data routing method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the data routing method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Data packet transmission method and device, electronic equipment, storage medium and program product

    CN122621561A