Search

CN-122019455-A - Data transmission method, system, equipment and computer readable storage medium

CN122019455ACN 122019455 ACN122019455 ACN 122019455ACN-122019455-A

Abstract

The application discloses a data transmission method, a system, equipment and a computer readable storage medium, which relate to the technical field of network-on-chip, are applied to routing nodes of the network-on-chip, determine the data output direction of a previous node, analyze the data output direction, determine the direction opposite to the data output direction as a target virtual direction in response to the data output direction being a diagonal direction, receive data transmitted by the previous node through a virtual channel corresponding to the target virtual direction, receive the data transmitted by the previous node through a conventional channel of the routing node in response to the data output direction being a horizontal and vertical line direction, wherein the topology structure of the network-on-chip is a two-dimensional network structure, and the virtual channel is used for transmitting data in four directions of east, south, west and north. The hop count and the transmission delay of the nodes are reduced by 50%, the congestion condition of the nodes is reduced, and the system performance of the network-on-chip is improved.

Inventors

  • TAN MAOJU
  • ZHAN YONGZHENG
  • ZHANG LU

Assignees

  • 山东云海国创云计算装备产业创新中心有限公司

Dates

Publication Date
20260512
Application Date
20260129

Claims (10)

  1. 1. A method of data transmission, characterized in that it is applied to a routing node of a network on chip, comprising: determining the data output direction of the previous node; Analyzing the data output direction; In response to the data output direction being a diagonal direction, determining a direction opposite to the data output direction as a target virtual direction, and receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction; responding to the data output direction being the horizontal and vertical line direction, receiving the data transmitted by the previous node through the conventional channel of the routing node; The topology structure of the network on chip is a two-dimensional network structure, the virtual channel is used for transmitting data in four directions of northeast, southeast, northwest and southwest, and the conventional channel is used for transmitting data in four directions of east, southwest, west and northwest.
  2. 2. The method of claim 1, wherein the receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction comprises: detecting whether other virtual channels except the target virtual direction are enabled; Responding to the fact that other virtual channels except the target virtual direction are started, and after the other virtual channels except the target virtual direction are stopped, receiving data transmitted by a previous node through the virtual channel corresponding to the target virtual direction; And receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction in response to the fact that other virtual channels except the target virtual direction are not enabled.
  3. 3. The method according to claim 2, wherein receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction after the waiting for other virtual channels than the target virtual direction to be deactivated comprises: detecting whether other virtual channels except the target virtual direction are actively deactivated; And in response to actively disabling other virtual channels except the target virtual direction, and receiving data transmitted by a previous node through the virtual channel corresponding to the target virtual direction.
  4. 4. The method of claim 3, wherein after disabling other virtual channels other than the target virtual direction, further comprising: recording data transmission information of other virtual channels except the target virtual direction; and after receiving the data transmitted by the previous node, continuing to transmit the data according to the data transmission information.
  5. 5. The method as recited in claim 1, further comprising: Acquiring target data to be transmitted; Determining a destination node for receiving the target data; detecting whether the abscissa or the ordinate of the routing node is the same as that of the destination node; Transmitting the target data to the next node through a conventional channel of the routing node and disabling a virtual channel of the routing node in response to the fact that the abscissa of the routing node is the same as the abscissa of the destination node; And in response to the ordinate of the routing node being the same as the ordinate of the destination node, transmitting the target data to the next node through the conventional channel of the routing node, and disabling the virtual channel of the routing node.
  6. 6. The method of claim 5, wherein after detecting whether the abscissa or the ordinate of the routing node and the destination node are the same, further comprising: determining a target horizontal direction according to a difference value between the abscissa of the routing node and the abscissa of the destination node in response to the difference between the abscissa and the ordinate of the routing node and the destination node; Determining a next node of the routing node in the target horizontal direction as a first candidate node; detecting whether the first candidate node is congested; Transmitting the target data to the first candidate node through a conventional channel of the routing node and disabling a virtual channel of the routing node in response to the first candidate node being normal; And responding to the congestion of the first candidate node, determining a second candidate node on the diagonal line of the routing node according to the coordinate difference value between the routing node and the destination node, and transmitting the target data to the second candidate node through the virtual channel of the routing node.
  7. 7. The method of claim 6, wherein detecting whether the first candidate node is congested comprises: acquiring current performance data of a first candidate node, wherein the performance data comprises buffer occupancy rate and data packet processing rate; Determining that the current state of the first candidate node is normal in response to the value of the current performance data being less than or equal to a preset threshold; Determining that the current state of the first candidate node is congestion in response to the value of the current performance data being greater than the preset threshold; acquiring a history state of a first candidate node; predicting whether the first candidate node is continuously congested in a future set time according to the current state and the historical state; and responding to the continuous congestion of the first candidate node in the future set time, judging that the first candidate node is congested, and otherwise, judging that the first candidate node is normal.
  8. 8. A data transmission system, characterized by a routing node for a network on chip, comprising: The output direction determining module is used for determining the data output direction of the previous node; The analysis module is used for analyzing the data output direction; The virtual channel receiving module is used for responding to the data output direction being a diagonal direction, determining the direction opposite to the data output direction as a target virtual direction, and receiving the data transmitted by the previous node through a virtual channel corresponding to the target virtual direction; the conventional channel receiving module is used for receiving the data transmitted by the previous node through the conventional channel of the routing node in response to the data output direction being the horizontal-vertical line direction; The topology structure of the network on chip is a two-dimensional network structure, the virtual channel is used for transmitting data in four directions of northeast, southeast, northwest and southwest, and the conventional channel is used for transmitting data in four directions of east, southwest, west and northwest.
  9. 9. An electronic device, comprising: A memory for storing a computer program; Processor for implementing the steps of the data transmission method according to any one of claims 1 to 7 when executing said computer program.
  10. 10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the data transmission method according to any one of claims 1 to 7.

Description

Data transmission method, system, equipment and computer readable storage medium Technical Field The present application relates to the field of network on chip technology, and more particularly, to a data transmission method, system, device, and computer readable storage medium. Background Currently, central processors (Central Processing Unit, CPUs) may employ multi-core processor architectures, and as the number of cores increases, the need for inter-core scalable, low-latency, high-bandwidth communication structures increases. Based on this, network-on-Chip (NoC) as a communication architecture for aiding in realizing design isolation is becoming a technology for solving the performance bottleneck of the bus structure, which realizes the communication of each IP plug and play through a standard interface. Among existing network-on-chip routing algorithms, XY routing algorithms are widely used for their simplicity and efficiency. However, these algorithms generally only support data transmission in four directions, namely southeast, northwest and northwest, and lack of awareness of node congestion status, which easily causes congestion problems of some key nodes due to excessive traffic, and further affects the performance of the overall system. In summary, how to alleviate node congestion of the network on chip and improve system performance is a problem to be solved by those skilled in the art. Disclosure of Invention The application aims to provide a data transmission method which can solve the technical problems of how to relieve the node congestion of a network on chip and improve the system performance to a certain extent. The application also provides a data transmission system, electronic equipment and a computer readable storage medium. In order to achieve the above object, the present application provides the following technical solutions: A data transmission method is applied to a routing node of a network on chip, and comprises the following steps: determining the data output direction of the previous node; Analyzing the data output direction; In response to the data output direction being a diagonal direction, determining a direction opposite to the data output direction as a target virtual direction, and receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction; responding to the data output direction being the horizontal and vertical line direction, receiving the data transmitted by the previous node through the conventional channel of the routing node; The topology structure of the network on chip is a two-dimensional network structure, the virtual channel is used for transmitting data in four directions of northeast, southeast, northwest and southwest, and the conventional channel is used for transmitting data in four directions of east, southwest, west and northwest. In an exemplary embodiment, the receiving, through a virtual channel corresponding to the target virtual direction, data transmitted by a previous node includes: detecting whether other virtual channels except the target virtual direction are enabled; Responding to the fact that other virtual channels except the target virtual direction are started, and after the other virtual channels except the target virtual direction are stopped, receiving data transmitted by a previous node through the virtual channel corresponding to the target virtual direction; And receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction in response to the fact that other virtual channels except the target virtual direction are not enabled. In an exemplary embodiment, after the waiting for the other virtual channels except the target virtual direction to be deactivated, receiving data transmitted by a previous node through a virtual channel corresponding to the target virtual direction includes: detecting whether other virtual channels except the target virtual direction are actively deactivated; And in response to actively disabling other virtual channels except the target virtual direction, and receiving data transmitted by a previous node through the virtual channel corresponding to the target virtual direction. In an exemplary embodiment, after the disabling of the virtual channels other than the target virtual direction, the method further includes: recording data transmission information of other virtual channels except the target virtual direction; and after receiving the data transmitted by the previous node, continuing to transmit the data according to the data transmission information. In an exemplary embodiment, further comprising: Acquiring target data to be transmitted; Determining a destination node for receiving the target data; detecting whether the abscissa or the ordinate of the routing node is the same as that of the destination node; Transmitting the target data to the next node through a conventional channel o