Chip-to-chip network router supporting on-network computing and on-network data packet processing method

By designing an inter-core network router that supports on-network computing in a multi-core integrated system, and using the parsing unit, dedicated buffer and on-network computing processing unit for data packet merging processing, the low efficiency of inter-core communication and data packet processing are solved. The problem of non-simultaneous arrivals is eliminated, enabling efficient packet forwarding and neural network training.

CN116155801BActive Publication Date: 2024-09-17SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310010674.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2024-09-17
Estimated Expiration
2043-01-05

AI Technical Summary

Technical Problem

In multi-core integrated systems, inter-core communication efficiency is low and delays are long, resulting in network congestion. Existing network computing methods are not suitable for multi-core integrated systems, and due to incomplete synchronization between cores, data packets are difficult to The computing nodes are reached at the same time, resulting in low computing efficiency on the network.

Method used

An inter-core network router that supports on-line computing is designed, including an input port, a parsing unit, a control unit, a dedicated buffer, an on-line computing processing unit, a routing calculation unit, a crossbar switch and a crossbar switch arbiter. By parsing data The packet identification bit and sequence number value are merged, and the XY routing algorithm and priority arbitration policy are used to realize the merging and forwarding of data packets.

Benefits of technology

It effectively reduces the communication load of the interconnection network between cores, reduces network latency, improves communication performance, and transfers the data packet aggregation task to the router, reducing the workload of computing cores and improving the efficiency of neural network training. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155801B
    Figure CN116155801B
Patent Text Reader

Abstract

The present invention discloses an inter-chip network router supporting on-network computing and an on-network data packet processing method for a multi-chip integrated system. By adding a parsing unit, a dedicated buffer and an on-network computing processing unit to the inter-chip network router for the first time, the inter-chip network router can perform on-network computing operations on the data packets being forwarded. And a new data packet format is defined to cooperate with the parsing unit and the on-network computing processing unit. In addition, a method for processing data packets on the network based on the inter-chip network router is proposed, which can merge multiple data packets into a new data packet, thereby greatly reducing the number of data packets in the network. The present invention enables the interconnected network of the multi-chip integrated system to have computing and processing capabilities, and can aggregate data packets transmitted in the network, thereby reducing the traffic load in the network and reducing network transmission delays.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multi-chip integrated circuits, and in particular to an inter-chip network router supporting on-network computing and an on-network processing method for data packets. Background Art

[0002] The multi-chip integrated system is a system chip that integrates some chips that realize specific functions into specific functions through advanced packaging technology. The multi-chip integrated system has a better manufacturing yield than the traditional single-chip integrated system. The multi-chip integrated system can be used for distributed training of large-scale neural networks, distributing input data and model weights to different chips for parallel training. During the training process, all chips need to update parameters synchronously, so it is necessary to summarize (Reduce) the training gradients of all chips, thereby generating a large amount of summary communication traffic in the chip interconnection network. Due to the low efficiency of inter-chip communication, long delay of cross-chip communication, and large scale of communication traffic, the total communication volume can reach hundreds to thousands of gigabytes, which can easily cause congestion in the chip interconnection network and reduce network performance. Therefore, an on-network computing design is proposed in the multi-chip interconnection network, and the gradient data packets are merged during network transmission to reduce network traffic. The existing on-network computing methods are basically proposed for large computing clusters, which are not suitable for multi-chip integrated systems, because the network computing design for large cluster communication equipment does not have hardware area restrictions, while the network equipment design for multi-chip integrated systems is limited by chip area. Secondly, in a multi-chip integrated system, the operations between the chiplets may not be completely synchronized, so each chiplet may not send out a gradient data packet at the same time, which makes it difficult for the data packets that need to be calculated on the network between the chiplets to arrive at the on-line computing node at the same time, resulting in a decrease in the data packet merging rate. The existing technical methods do not take this feature of the multi-chip integrated system into consideration, resulting in low efficiency in the implementation of the on-line computing method. Summary of the invention

[0003] The purpose of the present invention is to solve the above defects in the prior art and to provide an inter-chip network router supporting on-network computing and an on-network processing method for data packets.

[0004] The purpose of the present invention can be achieved by adopting the following technical solutions:

[0005] A chiplet-to-chiplet network router supporting on-network computing, the chiplet-to-chiplet network router comprising N input ports, N parsing units, 1 control unit, 1 dedicated buffer, 1 on-network computing processing unit, N+1 routing computing units, 1 cross switch, 1 cross switch arbiter and N output ports, each input port is respectively connected in series with 1 parsing unit and 1 routing computing unit, wherein:

[0006] The N input ports include a local input port and other direction input ports. The local input port is connected to the local core particle through the network interface NI, and the other direction input ports are connected to the output port of the upstream router through the network link. Each input port has M input buffers. The input port is used to receive data packets sent from the upstream router or injected from the network interface. After receiving, the data packets are temporarily stored in the input buffer, and the first data packet in the input buffer is passed to the parsing unit for parsing, wherein the data packet includes a source address, a destination address, a network computing identification bit, a data packet sequence number value and a data part;

[0007] Each parsing unit receives the data packet transmitted by the input buffer of the corresponding connected input port, and reads the network calculation identification bit and the data packet sequence number value of the data packet. If the value of the network calculation identification bit is 0, it indicates that the data packet does not need to be calculated on the network, and the parsing unit transmits the data packet to the routing calculation unit; if the value of the network calculation identification bit is 1, it indicates that the data packet needs to be calculated on the network, and the parsing unit needs to pass the sequence number value of the data packet to the control unit for judgment;

[0008] The control unit is used to control the parsing unit and the dedicated buffer. The control unit receives the sequence number values ​​of the data packets transmitted from the N parsing units, compares them with the sequence number values ​​maintained by the current multi-chip integrated system, and sends control signals to the N parsing units and the dedicated buffer in combination with the arrival of the data packets with the same sequence number value.

[0009] The dedicated buffer is used to receive data packets that need to be calculated on the network and are transmitted from the N parsing units, and cache these data packets;

[0010] The on-line computing processing unit receives data packets from the dedicated buffer or N parsing units, performs on-line computing processing on these data packets, and transmits the processed data packets to the routing computing unit;

[0011] N+1 routing calculation units receive data packets from the corresponding N parsing units or network computing processing units, perform routing calculation on the data packets, and transmit the data packets to the crossbar switch. Each routing calculation unit reads the destination address and network computing flag in the header of the data packet, and calculates the output port number of the data packet through the XY routing algorithm. The XY routing algorithm can refer to the document "Du Jiaqin, Comparison of NOC Routing Algorithms Based on 2D MESH [J], Electronic Technology, 2012, 39(03): 9-11+13". The input of the routing algorithm is the current address and destination address of the data packet. By comparing the coordinates of the above two address locations, the output port number of the data packet is obtained, and the port number and the value of the network computing flag are transmitted to the crossbar switch arbitrator;

[0012] The crossbar switch arbiter receives the output port number and the value of the network calculation identification bit of each data packet from the N+1 routing calculation units, calculates the priority of these data packets in using the crossbar switch, selects the data packet with the highest priority to use the crossbar switch first, and sends the selection result as an arbitration signal to the crossbar switch;

[0013] The cross switch receives data packets from N+1 routing calculation units respectively, and receives arbitration signals from the cross switch arbiter, selects a data packet transmitted by a routing calculation unit according to the arbitration signal, and transmits the data packet to a corresponding output port;

[0014] N output ports receive data packets transmitted by the crossbar switch, add the data packets to the output queue, and output the data packets to the downstream router or local chip according to the first-come-first-served principle.

[0015] The above disclosed inter-chip network router adds a parsing unit, a dedicated buffer and an on-line computing processing unit for the first time, so that the inter-chip network router can perform on-line computing operations on the data packets being forwarded, and defines a new data packet format to cooperate with the parsing unit and the on-line computing processing unit.

[0016] Furthermore, the source address in the data packet indicates which core in the network generates the data packet, the destination address indicates which core in the network receives the data packet, the network calculation identification bit is used to distinguish whether the data packet needs to be calculated on the network, the data packet sequence number value indicates the injection order of the data packet, and the data part is the specific data content to be transmitted by the data packet. The data packet is structurally divided into the first flit, the body flit and the tail flit. The above-mentioned source address, destination address, network calculation identification bit and data packet sequence number value are all located in the first flit of the data packet, and the data part is located in the body and tail flit of the data packet. The source address helps the router identify the source of the data packet to ensure that the router correctly processes the received data packet; the destination address is used as the input of the routing algorithm in the data packet forwarding stage; the network calculation identification bit is used to classify the data packet, and the network calculation identification bit of the data packet that does not need to be calculated on the network is set to 0 to prevent the data packet from being transmitted to the on-line calculation processing unit, thereby speeding up the forwarding speed of the data packet; the data packet sequence number value is used to indicate to the router which data packets can be merged, and only data packets with the same sequence number can be processed on the network, that is, data packet merging, and the sequence number value can avoid incorrect merging of data packets.

[0017] Furthermore, the on-line computing processing unit includes T data buffers, 1 first microchip register, 1 floating-point adder group and R splicing units, the floating-point adder group is composed of F floating-point adders, wherein the working process of the on-line computing processing unit is as follows: all input data packets to be processed are truncated into two parts, the first part is the first microchip of the data packet, and the second part is the data part of the data packet, the first microchip is temporarily stored in the first microchip register, and the data part is stored in T data buffers; the data part in the data buffer is moved into the floating-point adder group, the floating-point adder group extracts the value of the data part, and the values ​​are moved into different floating-point adder input ports respectively, the floating-point adder performs floating-point addition calculation on the value to obtain the calculation result, and the calculation result is rewritten into the data part of the data packet, and then the first microchip and the newly obtained data part in the first microchip register are moved to the splicing unit, and the splicing unit splices the first microchip and the newly obtained data part into a new data packet.

[0018] The data buffer is used to cache the data packets to be processed and increase the throughput of the on-line computing processing unit; the first microchip register is used to temporarily store the first microchip of the data packet to ensure that the header information of the data packet is correct; the floating-point adder group is a tree-like adder array composed of F floating-point adders, which can add the values ​​of the data part of multiple data packets at the same time; the splicing unit is used to splice the first microchip and data part of the data packet to obtain a complete data packet to continue the subsequent forwarding process.

[0019] Furthermore, the cross switch arbiter includes a network computing identification unit, a status register, a priority calculation unit and a decision unit, wherein the working process of the cross switch arbiter is as follows: the network computing identification unit receives the network computing identification bit value input from N+1 routing computing units, and judges whether the corresponding data packet is a network computing data packet based on the value, and stores the network computing judgment result in the status register; then the output port number of each data packet input from the N+1 routing computing units is stored in the status register, and the output buffer occupancy rate of the corresponding output port is also stored in the status register; the priority calculation unit reads the output port number, the network computing judgment result, and the output buffer occupancy rate of each data packet from the status register, calculates the cross switch usage priority of each data packet in combination with the polling priority strategy, and transmits the priority value to the decision unit, the decision unit compares the cross switch usage priority of each data packet, arbitrates the cross switch usage right to the data packet with the highest priority, and transmits the arbitration signal to the cross switch.

[0020] The network computing identification unit is used to determine whether the arbitrated data packet is a network computing data packet, and set a higher priority for the network computing data packet, thereby improving the aggregation efficiency of the network computing data packet; the status register is used to temporarily store the status information of each data packet, including the network computing judgment result, the output port number, and the output buffer occupancy rate of the output port. The above status information serves as the input information of the priority calculation unit; the priority calculation unit arbitrates the data packets requesting the same output port respectively, sets a higher priority for the data packets that need to be calculated on the network, and sets a higher priority for the data packets with low occupancy rate of the requested output port buffer, thereby playing a role in alleviating network congestion.

[0021] The second object of the present invention can be achieved by adopting the following technical solutions:

[0022] A method for processing data packets on the network based on an inter-chiplet network router, the method comprising the following steps:

[0023] S1. When a data packet enters the chiplet network router from N input ports, it is first temporarily stored in the input buffer of the N input ports. The input buffer of the N input ports simultaneously transmits the first data packet in the input buffer to the corresponding parsing unit for parsing;

[0024] S2, N parsing units receive the data packet transmitted by the input buffer of the corresponding input port, and read the network calculation identification bit and the data packet sequence number value of the data packet. If the value of the network calculation identification bit is 0, it indicates that the data packet does not need to be calculated on the network. The parsing unit transmits the data packet to the routing calculation unit and jumps to step S5 for execution. If the value of the network calculation identification bit is 1, it indicates that the data packet needs to be calculated on the network. The parsing unit transmits the sequence number value of the data packet to the control unit for judgment, and then executes step S3;

[0025] S3, the control unit receives the data packet sequence number values ​​transmitted by N parsing units, and compares them with the system sequence number value maintained by the current multi-chip integrated system. If the data packet sequence number value is less than the system sequence number value, the control unit sends a control signal to the corresponding parsing unit, instructing the parsing unit to transmit the data packet to the routing calculation unit, and jumps to step S5 to execute; if the data packet sequence number value is greater than the system sequence number value, the control unit sends a control signal to the dedicated buffer, instructing the dedicated buffer to move all existing data packets therein into the on-line computing processing unit, and at the same time, the control unit also needs to send a control signal to the corresponding parsing unit, instructing the corresponding parsing unit to move the new data packet into the dedicated buffer for processing; if the data packet sequence number value is equal to the system sequence number value, it is necessary to further check whether the current dedicated buffer is empty, if the dedicated buffer is empty, If the buffer is empty, check whether all the data packets of the current sequence number value have arrived. If all have arrived, send a control signal to all parsing units to instruct the parsing units to move these data packets directly into the online computing processing unit for calculation, execute step S4, and update the system sequence number value. If not all have arrived, send a control signal to the corresponding parsing unit to instruct the parsing unit to move the arrived data packets into the dedicated buffer for waiting for processing. If the dedicated buffer is not empty, move the data packets into the dedicated buffer, and check whether all the data packets in the dedicated buffer have arrived. If all have arrived, the control unit sends a control signal to the dedicated buffer to instruct it to move the data packets in the buffer into the online computing processing unit for processing, execute step S4, and update the system sequence number value. If not all have arrived, do nothing;

[0026] S4. When a batch of data packets enter the online computing processing unit, the batch of data packets are first cut into two parts. The first part is the first microchip of the data packet, and the second part is the data part of the data packet. The first microchip is temporarily stored in the first microchip register, and the data part is stored in the data buffer. When the floating-point adder group is idle, the data part in the data buffer is moved into the floating-point adder group. The floating-point adder group extracts the value of the data part, adds the values, and rewrites the operation result into the data part to obtain a new data part. Then, the first microchip and the new data part in the first microchip register are moved to the splicing unit. The splicing unit splices them into a new data packet, and transmits the new data packet to the corresponding routing computing unit.

[0027] S5. After the data packet enters the corresponding routing calculation unit, the routing calculation unit reads the destination address and network calculation identification bit of the data packet, calculates the output port number of the data packet using the XY routing algorithm, and transmits the output port number and the value of the network calculation identification bit of the data packet to the crossbar switch arbitrator, and transmits the data packet to the crossbar switch at the same time;

[0028] S6. The crossbar switch arbiter receives the output port number and the value of the network calculation identification bit of each data packet from the N+1 routing calculation units. The network calculation identification unit receives the network calculation identification bit value input from the routing calculation unit, and judges whether the corresponding data packet is a network calculation data packet according to the value, and stores the network calculation judgment result in the status register; then, the output port number of each data packet input from the routing calculation unit is stored in the status register, and the output buffer occupancy rate of the corresponding output port is also stored in the status register;

[0029] S7, the priority calculation unit reads the output port number of each data packet, the network calculation result, and the output buffer occupancy rate of the output port from the status register, calculates the crossbar switch usage priority of each data packet in combination with the polling priority strategy, and transmits the priority value to the decision unit, which compares the crossbar switch usage priorities of each data packet, arbitrates the crossbar switch usage right to the data packet with the highest priority, and transmits the arbitration signal to the crossbar switch;

[0030] S8, the crossbar switch receives data packets from N+1 routing calculation units and receives an arbitration signal from the crossbar switch arbiter, selects a data packet transmitted by a routing calculation unit according to the arbitration signal and transmits the data packet to a corresponding output port;

[0031] S9, N output ports receive data packets transmitted by the cross switch, and add the data packets to the output queue, and output the data packets to the downstream router or local core according to the first-in-first-out principle. Further, in the step S3, if the sequence number value of the data packet is less than the system sequence number value, the control unit sends a control signal to the parsing unit, instructing the parsing unit to transmit the data packet to the routing calculation unit. When the sequence number value of the data packet is less than the system sequence number value, it means that the data packet arrives later than other data packets with the same sequence number value. Therefore, even if the data packet is a data packet that needs to be calculated on the network, it does not need to be calculated on the network again, and directly enters the routing calculation unit for forwarding. This operation can avoid the incorrect merging of data packets. If the sequence number value of the data packet is greater than the system sequence number value, the control unit sends a control signal to the dedicated buffer, instructing the dedicated buffer to move all the data packets therein into the online computing processing unit for processing. This operation can avoid the data packets in the dedicated buffer from waiting indefinitely.

[0032] Furthermore, in step S5, the routing calculation unit uses an XY routing algorithm to calculate the output port number of the data packet. The XY routing algorithm is a deterministic routing algorithm, that is, according to the relative relationship between the destination location and the current location, the data packet is first forwarded by column and then by row. This routing algorithm can ensure that the network system does not deadlock.

[0033] Furthermore, the specific calculation method of the priority in step S7 is: define W A , P R, W C Three variables, W A Indicates whether the data packet needs to be calculated on the network. If it needs to be calculated on the network, W A The value of is set to 1; otherwise, W A The value of P is set to 0. R Indicates the polling priority of the data packet. The value set is {1,2,3,4,5}. The higher the polling priority, the higher the P R The larger the value, the higher the polling priority. C Indicates the congestion of the output port requested by the data packet, that is, the occupancy rate of the output buffer. The occupancy rate is divided into three levels: 0-30%, 30%-60%, and 60%-100%. C The corresponding value of is {3,2,1}. Then W A , P R , W C are converted into binary values, where W A Occupies 1 bit, P R Occupies 3 bits, W C It occupies 2 bits, and the three binary values ​​are concatenated in order from high to low to form a new binary number, which is the priority value of the data packet.

[0034] The above-mentioned data packet processing method on the network can effectively merge and process network computing data packets in the router, add and merge the data contents of multiple data packets, and "combine" multiple data packets into a new data packet, thereby greatly reducing the traffic load in the network and reducing network delay. The method uses a dedicated buffer to cache some of the data packets that have arrived, and the data packets that have arrived can wait for the data packets that have not arrived in the dedicated buffer, thereby improving the rate of data packet aggregation. During the communication process, network computing data packets will compete with ordinary data packets for network resources, such as cross switches. Network computing data packets will fail to arrive at the computing node on time and merge with other data packets due to resource preemption, thereby reducing the efficiency of data packet aggregation. The cross switch arbitration step in the above-mentioned steps S6 and S7 is based on the principle of giving priority to network computing, and combined with the congestion control of network traffic, it can effectively improve the efficiency of network computing.

[0035] Compared with the prior art, the present invention has the following advantages and effects:

[0036] 1. The inter-chip-particle network router supporting on-network computing and the on-network data packet processing method proposed in the present invention can enable the inter-chip-particle network router to have computing functions, and can merge multiple data packets entering the router into one data packet, thereby reducing the number of data packets in the inter-chip-particle interconnection network, that is, reducing the communication load of the inter-chip-particle interconnection network, and reducing the communication delay of the network, avoiding network congestion, and improving the communication performance of the inter-chip-particle interconnection network.

[0037] 2. The present invention transfers the data packet aggregation task to the inter-core network router, which reduces the workload of the computing core particles and enables the computing core particles to have more computing resources to calculate other tasks in the neural network training process, thereby reducing the total time consumption of the neural network training task.

[0038] 3. The microstructure design proposed in the present invention occupies a small area, which does not exceed 10% of the area of ​​the original inter-chip network router, and meets the area restriction requirements of a single chip. Therefore, the microstructure design supporting on-network computing proposed in the present invention is different from the existing on-network computing design and can be applied to multi-chip integrated systems.

[0039] 4. The present invention has good versatility. In the same inter-chip network router, different data packets will go through different processing stages. Even if there are data packets that need to be calculated on the network and data packets that do not need to be calculated on the network in the multi-chip interconnection network, the inter-chip network router can correctly complete the data packet forwarding and data packet aggregation tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0041] Figure 1 It is a diagram of the architecture of the multi-chip integrated system proposed in the present invention;

[0042] Figure 2 It is a micro-structure diagram of the inter-chip network router supporting the on-network computing function proposed in the present invention;

[0043] Figure 3 is a functional structure diagram of a crossbar switch arbitrator in the present invention;

[0044] Figure 4 It is a flow chart of the method for processing data packets on the network in the present invention. DETAILED DESCRIPTION

[0045] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Example 1

[0047] This embodiment proposes a chiplet network router that supports on-net computing in a multi-chiplet integrated system consisting of 25 chips. The chiplet interconnection network topology of the multi-chiplet integrated system adopts a mesh network structure. The architecture diagram of the multi-chiplet integrated system is shown in FIG. Figure 1 shown.

[0048] The microstructure of the chiplet network router that supports on-net computing is as follows Figure 2 As shown, it includes the connection relationship between components. The main function of this router is to complete the forwarding of data packets and on-network computing tasks in the inter-chip interconnection network of the multi-chip integrated system. The data packet of the inter-chip interconnection network includes the source address, the destination address, the network computing identification bit, the data packet sequence number value and the data part. The source address indicates which chip in the network generates the data packet, and the destination address indicates which chip in the network receives the data packet. The network computing identification bit is used to distinguish whether the data packet needs to be calculated on the network. The data packet sequence number value indicates the injection order of the data packet, and the data part is the specific communication content to be transmitted by the data packet. Forwarding refers to the transmission of a data packet from one inter-chip network router to the next inter-chip network router according to the destination address of the data packet. On-network computing refers to the process of forwarding data packets, adding the data parts of multiple data packets with the same data packet sequence number value to obtain the calculation result, and generating a new data packet including the calculation result for forwarding, and discarding other data packets involved in the calculation. Figure 1In the inter-chip interconnection network shown, there are 9 inter-chip network routers connected to at most 4 other inter-chip network routers. The components of these 9 inter-chip network routers include 5 input ports, 5 parsing units, 1 control unit, 1 dedicated buffer, 1 on-network computing processing unit, 6 routing computing units, 1 cross switch, 1 cross switch arbiter and 5 output ports; there are 12 inter-chip network routers connected to at most 3 other inter-chip network routers. The components of these 8 inter-chip network routers include 4 input ports , 4 parsing units, 1 control unit, 1 dedicated buffer, 1 on-network computing processing unit, 5 routing computing units, 1 cross switch, 1 cross switch arbitrator and 4 output ports; a total of 4 inter-chip network routers are connected to at most 2 other inter-chip network routers, and the components of these 4 inter-chip network routers include 3 input ports, 3 parsing units, 1 control unit, 1 dedicated buffer, 1 on-network computing processing unit, 4 routing computing units, 1 cross switch, 1 cross switch arbitrator and 3 output ports. The specific functions of each component are as follows:

[0049] One input port is connected to the local chiplet, and the other input ports are connected to the output ports of the upstream inter-chiplet network router. The input port receives data packets transmitted from the output port of the upstream inter-chiplet network router or data packets injected by the local chiplet, and uses a queue with a length of 32 bytes to cache the data packets, waiting for the parsing unit to parse them; wherein the data packet includes a source address, a destination address, a network computing identification bit, a data packet sequence number value and a data part.

[0050] The parsing unit receives the data packet transmitted from the input buffer of the input port, and reads the network calculation identification bit and the data packet sequence number value of the data packet. If the value of the network calculation identification bit is 0, it indicates that the data packet does not need to be calculated on the network, and the parsing unit transmits the data packet to the routing calculation unit; if the value of the network calculation identification bit is 1, it indicates that the data packet needs to be calculated on the network, and the parsing unit needs to pass the sequence number value of the data packet to the control unit for judgment.

[0051] The control unit controls the parsing unit and the dedicated buffer. The control unit receives the data packet sequence number value transmitted by the parsing unit, compares it with the current system sequence number value, and sends a control signal to the parsing unit and the dedicated buffer in combination with the arrival of data packets with the same sequence number value. The dedicated buffer receives data packets that need to be calculated on the network and are transmitted from the parsing unit, and caches these data packets.

[0052] The on-line computing processing unit receives data packets from the dedicated buffer or the parsing unit, and performs on-line computing on these data packets. The on-line computing processing unit includes 1 data buffer, 1 first microchip register, 1 floating-point adder group (composed of 4 floating-point adders), and 2 splicing units. The processing process of on-line computing is as follows: all input data packets to be processed are cut into two parts, the first part is the first microchip of the data packet, and the second part is the remaining part of the data packet, that is, the data part. The first microchip is temporarily stored in the first microchip register, and the data part is stored in the data buffer; the data part in the data buffer is moved into the floating-point adder group, and the data parts are added to obtain a new data part; then the first microchip in the first microchip register and the new data part are moved to the splicing unit, and the splicing unit splices them into a new data packet.

[0053] The routing calculation unit receives the data packet from the parsing unit or the network calculation processing unit, performs routing calculation on the data packet, and transmits the data packet to the crossbar switch. The routing calculation unit reads the destination address and network calculation identification bit of the first flit of the data packet, calculates the output port number of the data packet through the XY routing algorithm, and passes the output port number and the value of the network calculation identification bit to the crossbar switch arbitrator.

[0054] The crossbar switch arbiter receives the output port number and the value of the network calculation identification bit of each data packet from the routing calculation unit, calculates the priority of these data packets using the crossbar switch, selects the data packet with the highest priority to use the crossbar switch first, and sends the selection result as an arbitration signal to the crossbar switch. The structure diagram of the crossbar switch arbiter is shown in the figure. Figure 3 As shown. The crossbar switch receives data packets from the routing calculation unit and receives the arbitration signal of the crossbar switch arbiter. According to the arbitration signal, it selects a data packet transmitted by the routing calculation unit and transmits the data packet to the corresponding output port. The output port receives the data packet transmitted by the crossbar switch, adds the data packet to the output queue, and outputs the data packet to the downstream router or local chip according to the first-come-first-served principle.

[0055] According to the hardware simulation results, the chiplet network router occupies an area of ​​70902.3 μm in 45 nm process. 2 , of which the in-network computing unit occupies 7348μm 2 , which is about 10% of the area of ​​the inter-chiplet network router.

[0056] Now assume that there are four data packets, denoted as data packet E1, data packet E2, data packet E3, and data packet E5. Data packet E1 is composed of Figure 1The core particle in the second row and second column of the packet is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (2, 2) and the destination address is recorded as (3, 3). Assume that the network computing flag is 1, the data packet sequence number is 56, and the data portion is 200.5. Data packet E2 is composed of Figure 1 The core particle in the first row and third column of the packet is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (1, 3) and the destination address is recorded as (3, 3). Assume that the network computing flag is 1, the data packet sequence number is 56, and the data portion is 390.5. Data packet E3 is composed of Figure 1 The core particle in the second row and fourth column of the packet needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (2, 4), the destination address is recorded as (3, 3), the network computing flag is set to 1, the data packet sequence number is 56, and the data portion is 99.5; the data packet E5 is generated by Figure 1 The core particle in the first row and third column is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (1, 3), the destination address is recorded as (3, 3), the network computing identification bit is set to 0, and the data part is 101.5.

[0057] According to the XY routing algorithm, data packets E1, E2, E3 and E5 will pass through the inter-chip network router in the second row and third column during forwarding. Assuming that data packets E1, E2 and E3 arrive at the router at the same time, and data packet E5 arrives at the router one cycle later, the processing flow of data packets E1, E2, E3 and E5 in the router is as follows: Figure 4 As shown, the specific process includes the following steps:

[0058] P1, data packet E1 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the second row and second column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0059] P2, data packet E2 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the first row and third column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0060] P3, data packet E3 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the second row and fourth column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0061] P4, after data packet E1 enters the parsing unit, the parsing unit reads the network calculation identification bit value of the data packet as 1, determines that the data packet needs to be calculated on the network, and reads the sequence number value of the data packet as 56, and passes the value to the control unit for judgment;

[0062] The processing operations of P5, data packets E2 and E3 are the same as the operations on data packet E1 described in P4;

[0063] P6. The control unit receives the data packet sequence number values ​​transmitted by the above three parsing units, and the values ​​are all 56. Assuming that the current system sequence number value is 56, the data packet sequence number values ​​of data packet E1, data packet E2, and data packet E3 are the same as the system sequence number value. The control unit further checks whether the dedicated buffer is idle. Assuming that the current dedicated buffer is idle and the router knows that all current data packets have arrived, the control unit sends a control signal to the parsing unit, instructing each parsing unit to directly move data packet E1, data packet E2, and data packet E3 into the on-line computing processing unit for calculation;

[0064] P7, data packet E1, data packet E2 and data packet E3 enter the online computing processing unit in sequence. After entering the unit, data packet E1 is cut into two parts. The first part is the first microchip of the data packet, and the second part is the body microchip and tail microchip of the data packet, that is, the data part, with a value of 200.5. The first microchip is temporarily stored in the first microchip register, and the data part is stored in the data buffer; data packets E2 and E3 are also processed in the same way. After processing, assuming that the current floating-point adder group is idle, the data parts of data packets E1, E2 and E3 are moved into the floating-point adder group in sequence. The adder group can perform addition calculations on these three data at the same time. The result after calculation is 690.5. The calculated data part is spliced ​​with the first first microchip in the first microchip register to form a new complete data packet, recorded as E4, and the remaining first microchips are discarded. Data packet E4 will be passed to the routing calculation unit;

[0065] P8, data packet E5 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the first row and third column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0066] P9, after data packet E5 enters the parsing unit, the parsing unit reads the network calculation identification bit value of the data packet as 0, determines that the data packet does not need to be calculated on the network, and then passes the data packet E5 to the routing calculation unit;

[0067] P10, after data packet E4 enters the routing calculation unit, the routing calculation unit reads the destination address of the data packet as (3, 3), and reads the value of its network calculation flag as 1. According to the XY routing algorithm, the output port of data packet E4 is calculated to be the output port connected to the inter-chip network router in the third row and third column, and the port number is recorded as S. The port number and the value of the network calculation flag are transmitted to the crossbar switch arbiter, and the data packet E4 is transmitted to the crossbar switch at the same time;

[0068] P11, after data packet E5 enters the routing calculation unit, the routing calculation unit reads the destination address of the data packet as (3, 3), and reads the value of its network calculation flag as 0. According to the XY routing algorithm, the output port of data packet E4 is calculated to be the output port connected to the inter-chip network router in the third row and third column, and the port number is also S. The port number and the value of the network calculation flag are transmitted to the crossbar switch arbiter, and the data packet E5 is transmitted to the crossbar switch at the same time;

[0069] P12, the crossbar switch arbiter receives the output port numbers and the network calculation identification bit value of the data packets E4 and E5 from the routing calculation unit, the network calculation identification unit receives the network calculation identification bit value input from the routing calculation unit, and judges that the data packet E4 is a network calculation data packet and the data packet E5 is a non-network calculation data packet according to the value, and stores the judgment result in the status register, and at the same time stores the output port number S of the data packet E4 and the data packet E5 and the output buffer occupancy rate of the port in the status register;

[0070] P13, the priority calculation unit reads the output port number, network calculation result, and output buffer occupancy rate of data packets E4 and E5 from the status register, and calculates the crossbar switch usage priority of data packets E4 and E5 respectively. The priority calculation process of data packet E4 is: variable W A Indicates whether the data packet needs to be calculated on the network, so the W of data packet E4 A The value is 1; variable P R Indicates the polling priority of the data packet. Assuming that the polling priority of the current data packet E4 is 3, then the P of data packet E4 is R The value is 3; variable W C Indicates the output buffer occupancy rate of the output port requested by the data packet. Assuming that the current output buffer occupancy rate of port S is 50%, then W C The value of W is 2; A , P R , W C are converted into binary values, where W A Occupies 1 bit, P R Occupies 3 bits, W COccupies 2 bits, and the three binary values ​​are sequentially concatenated from high to low into a 6-bit binary number, which is the priority value of the data packet. Therefore, the priority value of data packet E4 is 101110;

[0071] P14. According to the method described in step P13, the calculation result of the priority value of data packet E5 is 010010;

[0072] P15, the priority calculation unit transmits the priority calculation results of data packet E4 and data packet E5 to the decision unit, and the decision unit compares the two and finds that the priority value of data packet E4 is higher than the priority value of data packet E5, so the right to use the crossbar switch is arbitrated to data packet E4, and data packet E5 will participate in the next round of arbitration in the same way. The crossbar switch arbitrator transmits the arbitration signal to the crossbar switch;

[0073] P16, the crossbar switch receives data packets E4 and E5 from the routing calculation unit, and receives the arbitration signal of the crossbar switch arbiter, selects data packet E4 according to the arbitration signal, and transmits the data packet to the corresponding output port S;

[0074] P17, after the next round of arbitration, the crossbar switch selects data packet E5 according to the arbitration signal and transmits the data packet to the corresponding output port S;

[0075] P18, output port S receives data packets E4 and E5 transmitted by the crossbar switch in sequence, adds data packets E4 and E5 to the output queue in order, and outputs the data packets to the inter-chip network router in the third row and third column according to the first-in-first-out principle;

[0076] At this point, the on-network computing process of data packets E1, E2, and E3 in the inter-chip network router in the second row and third column has ended, and data packets E1, E2, and E3 are merged into data packet E4, and the number of data packets in the multi-chip interconnection network has been reduced by 2. In addition, the non-network computing data packet E5 has also completed the forwarding process, which shows that even if there are data packets that need to be calculated on the network and data packets that do not need to be calculated on the network at the same time in the system, the inter-chip network router can correctly complete the forwarding and on-network computing tasks.

[0077] Example 2

[0078] This embodiment is based on the inter-chip-grain network router supporting on-network computing disclosed in Embodiment 1. Under the same system architecture, this embodiment describes the working process of the on-network data packet processing method based on the inter-chip-grain network router supporting on-network computing under complex circumstances.

[0079] Now assume that there are three data packets, denoted as data packet H1, data packet H2, and data packet H3. Data packet H1 is composed of Figure 1 The core particle in the second row and second column of the packet is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (2, 2) and the destination address is recorded as (3, 3). Assume that the network computing flag is 1, the data packet sequence number is 101, and the data part is 100.5. Data packet H2 is composed of Figure 1 The core particle in the first row and third column of the packet is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (1, 3) and the destination address is recorded as (3, 3). Assume that the network computing flag is 1, the data packet sequence number is 101, and the data portion is 290.5. Data packet H3 is composed of Figure 1 The core particle in the second row and fourth column is generated and needs to be sent to the core particle in the third row and third column. Therefore, the source address is recorded as (2, 4) and the destination address is recorded as (3, 3). Assume that the network computing identification bit is 1, the data packet sequence number value is 101, and the data part is 70.5.

[0080] According to the XY routing algorithm, data packets H1, H2, and H3 will all pass through the inter-chiplet network router in the second row and third column during forwarding. Assuming that data packets H1 and H2 arrive at the router at the same time, and data packet H3 arrives at the router one cycle later, the processing of data packets H1, H2, and H3 in the router includes the following steps:

[0081] W1, data packet H1 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the second row and second column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0082] W2, data packet H2 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the first row and third column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0083] W3, after data packet H1 enters the parsing unit, the parsing unit reads the network calculation identification bit value of the data packet as 1, determines that the data packet needs to be calculated on the network, and reads the sequence number value of the data packet as 101, and passes the value to the control unit for judgment;

[0084] W4, the processing operation of the data packet H2 is the same as the operation on the data packet H1 described in W3;

[0085] W5. The control unit receives the data packet sequence number values ​​transmitted by the above two parsing units, and the values ​​are both 101. Assuming that the current system sequence number value is 101, the data packet sequence number values ​​of data packets H1 and H2 are the same as the system sequence number value. The control unit further checks whether the dedicated buffer is idle. Assuming that the current dedicated buffer is idle, it is necessary to check whether all the data packets with the current sequence number value have arrived. Assuming that the router knows that when data packets H1, H2 and H3 have all arrived, they are all arrived. At this time, only data packets H1 and H2 have arrived. At this time, the control unit sends a control signal to the parsing unit, instructing each parsing unit to move data packets H1 and H2 into the dedicated buffer for waiting;

[0086] W6, data packet H3 enters the inter-chip network router in the second row and third column, and is first temporarily stored in the input buffer of the input port connected to the output port of the inter-chip network router in the second row and fourth column, and the input buffer simultaneously passes the first data packet in it to the parsing unit for parsing;

[0087] W7, after data packet H3 enters the parsing unit, the parsing unit reads the network calculation identification bit value of the data packet as 1, determines that the data packet needs to be calculated on the network, and reads the sequence number value of the data packet as 101, and passes the value to the control unit for judgment;

[0088] W8. The control unit receives the data packet sequence number value transmitted by the above-mentioned parsing unit, and the value is 101. The current system sequence number value is also 101, so the data packet sequence number value of data packet H3 is the same as the system sequence number value. The control unit further checks whether the dedicated buffer is idle. Since data packets H1 and H2 have entered the dedicated buffer, the dedicated buffer is not idle at this time. The control unit sends a control signal to the parsing unit, instructing the parsing unit to move data packet H3 into the dedicated buffer. After H3 enters the dedicated buffer, the control unit further checks whether all the data packets in the dedicated buffer have arrived. At this time, the check result is that all the data packets with the data packet sequence number value of 101 have arrived. At this time, the control unit sends a control signal to the dedicated buffer, instructing it to move data packets H1, H2 and H3 into the online computing processing unit for processing;

[0089] W9, data packet H1, data packet H2 and data packet H3 enter the online computing processing unit in sequence. The processing process of data packet H1, data packet H2 and data packet H3 in the online computing processing unit can refer to step P7 in Example 1. The new data packet obtained by merging data packet H1, data packet H2 and data packet H3 is recorded as H4. The data part value of data packet H4 is 461.5. Data packet H4 is transferred to the routing computing unit.

[0090] W10, after data packet H4 enters the routing calculation unit, the routing calculation unit reads the destination address of the data packet as (3, 3), and reads the value of its network calculation flag as 1. According to the XY routing algorithm, the output port of data packet H4 is calculated to be the output port connected to the inter-chip network router in the third row and third column, and the port number is recorded as Q. The output port number and the value of the network calculation flag are transmitted to the crossbar switch arbiter, and the data packet H4 is transmitted to the crossbar switch at the same time;

[0091] W11, the crossbar switch arbiter receives the output port number of the data packet H4 and the value of the network calculation identification bit from the routing calculation unit. The specific arbitration process can refer to steps P12-P15 in Example 1;

[0092] W12, the crossbar switch receives the data packet H4 from the routing calculation unit and receives the arbitration signal of the crossbar switch arbiter, selects the data packet H4 according to the arbitration signal, and transmits the data packet to the corresponding output port Q;

[0093] W13, output port Q receives data packet H4 transmitted by the crossbar switch, adds data packet H4 to the output queue, and outputs the data packet to the router in the third row and third column according to the first-in-first-out principle;

[0094] At this point, the on-line computing process of data packets H1, H2 and H3 in the inter-chip network router in the second row and third column is completed, and data packets H1, H2 and H3 are merged into data packet H4, and the number of data packets in the multi-chip interconnection network is reduced by 2. In this embodiment, data packets H1 and H2 arrive before data packet H3, and data packets H1 and H2 can be temporarily stored in a dedicated buffer to wait for data packet H3. This design can solve the problem of data packets arriving at different times in the multi-chip interconnection network and improve the efficiency of data packet on-line computing.

[0095] The normalized data results of the method on the simulation experiment platform are shown in Table 1. The benchmark method refers to the test on the original network simulation system, which does not apply any optimization method; the proposed method refers to the application of the on-line computing processing method proposed by the present invention on the basis of the original network simulation system.

[0096] Table 1. Normalized data results of the packet processing method in the simulation experiment platform

[0097] Baseline method (normalized results) Proposed method (normalized results) Average traffic load (MB / s) 1 0.47 Average network latency (ns) 1 0.40 Training task duration (s) 1 0.71

[0098] The average traffic load of the network simulation system using the proposed method is reduced by 53% compared with the average traffic load of the network simulation system using the benchmark method. The average network delay of the network simulation system using the proposed method is reduced by 60% compared with the average network delay of the network simulation system using the benchmark method. The training task time is experimentally tested by training the CNN model Resnet 50 as an example. The training task time includes the time for the core particle to process the computing task and the time for the interconnection network communication between the core particles. The time for the core particle to process the computing task is obtained by the core particle computing simulation platform, and the time for the interconnection network communication between the core particles is obtained by the network simulation system. The proposed method is applied to the network simulation system. The final test result shows that the training task time using the proposed method is reduced by 29% compared with the training task time using the benchmark method.

[0099] The above experimental results show that the inter-chip network router design supporting on-network computing and the on-network data packet processing method proposed in the present invention can effectively reduce the traffic load and network delay of the inter-chip interconnection network, and can accelerate the training process of the neural network.

[0100] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A chiplet-to-chiplet network router supporting on-network computing for a multi-chiplet integrated system, characterized in that: The chiplet network router includes N input ports, N parsing units, 1 control unit, 1 dedicated buffer, 1 on-line computing processing unit, N+1 routing computing units, 1 cross switch, 1 cross switch arbiter and N output ports, each input port is respectively connected in series with 1 parsing unit and 1 routing computing unit, wherein: The N input ports include a local input port and other direction input ports. The local input port is connected to the local core particle through the network interface NI, and the other direction input ports are connected to the output port of the upstream router through the network link. Each input port has M input buffers. The input port is used to receive data packets sent from the upstream router or injected from the network interface. After receiving, the data packets are temporarily stored in the input buffer, and the first data packet in the input buffer is passed to the parsing unit for parsing, wherein the data packet includes a source address, a destination address, a network computing identification bit, a data packet sequence number value and a data part; Each parsing unit receives the data packet transmitted by the input buffer of the corresponding connected input port, and reads the network calculation identification bit and the data packet sequence number value of the data packet. If the value of the network calculation identification bit is 0, it indicates that the data packet does not need to be calculated on the network, and the parsing unit transmits the data packet to the routing calculation unit; if the value of the network calculation identification bit is 1, it indicates that the data packet needs to be calculated on the network, and the parsing unit needs to pass the sequence number value of the data packet to the control unit for judgment; The control unit is used to control the parsing unit and the dedicated buffer. The control unit receives the sequence number values ​​of the data packets transmitted from the N parsing units, compares them with the sequence number values ​​maintained by the current multi-chip integrated system, and sends control signals to the N parsing units and the dedicated buffer in combination with the arrival of the data packets with the same sequence number value. The dedicated buffer is used to receive data packets that need to be calculated on the network and are transmitted from the N parsing units, and cache these data packets; The on-line computing processing unit receives data packets from the dedicated buffer or N parsing units, performs on-line computing processing on these data packets, and transmits the processed data packets to the routing computing unit; N+1 routing calculation units receive data packets from the correspondingly connected N parsing units or network computing processing units, perform routing calculation on the data packets, and transmit the data packets to the crossbar switch. Each routing calculation unit reads the destination address and network computing flag of the data packet header, and calculates the output port number of the data packet through the XY routing algorithm. The input of the XY routing algorithm is the current address and destination address of the data packet. The output port number of the data packet is obtained by comparing the coordinates of the above two address positions. The N+1 routing calculation units then transmit the corresponding output port number and the value of the network computing flag to the crossbar switch arbitrator. The crossbar switch arbiter receives the output port number and the value of the network calculation identification bit of each data packet from the N+1 routing calculation units, calculates the priority of these data packets in using the crossbar switch, selects the data packet with the highest priority to use the crossbar switch first, and sends the selection result as an arbitration signal to the crossbar switch; The cross switch receives data packets from N+1 routing calculation units respectively, and receives arbitration signals from the cross switch arbiter, selects a data packet transmitted by a routing calculation unit according to the arbitration signal, and transmits the data packet to a corresponding output port; N output ports receive data packets transmitted by the crossbar switch, add the data packets to the output queue, and output the data packets to the downstream router or local chip according to the first-come-first-served principle.

2. The chiplet-to-chiplet network router supporting on-net computing according to claim 1, characterized in that: The source address in the data packet indicates which core in the network generated the data packet, the destination address indicates which core in the network received the data packet, the network calculation identification bit is used to distinguish whether the data packet needs to be calculated on the network, the data packet sequence number value indicates the injection order of the data packet, and the data part is the specific data content to be transmitted by the data packet.

3. The chiplet-to-chiplet network router supporting on-net computing according to claim 1, characterized in that: The on-line computing processing unit includes T data buffers, 1 first microchip register, 1 floating-point adder group and R splicing units, wherein the floating-point adder group is composed of F floating-point adders, wherein the working process of the on-line computing processing unit is as follows: all input data packets to be processed are cut into two parts, the first part is the first microchip of the data packet, and the second part is the data part of the data packet, the first microchip is temporarily stored in the first microchip register, and the data part is stored in T data buffers; the data part in the data buffer is moved into the floating-point adder group, the floating-point adder group extracts the value of the data part, and the values ​​are moved into different floating-point adder input ports respectively, the floating-point adder performs floating-point addition calculation on the value to obtain the calculation result, and the calculation result is rewritten into the data part of the data packet, and then the first microchip in the first microchip register and the newly obtained data part are moved to the splicing unit, and the splicing unit splices the first microchip and the newly obtained data part into a new data packet.

4. The chiplet-to-chiplet network router supporting on-net computing according to claim 1, characterized in that: The cross switch arbiter includes a network computing identification unit, a status register, a priority calculation unit and a decision unit, wherein the working process of the cross switch arbiter is as follows: the network computing identification unit receives the network computing identification bit value input from N+1 routing computing units, and judges whether the corresponding data packet is a network computing data packet according to the value, and stores the network computing judgment result in the status register; then the output port number of each data packet input from the N+1 routing computing units is stored in the status register, and the output buffer occupancy rate of the corresponding output port is also stored in the status register; the priority calculation unit reads the output port number, the network computing judgment result, and the output buffer occupancy rate of each data packet from the status register, calculates the cross switch usage priority of each data packet in combination with the polling priority strategy, and transmits the priority value to the decision unit, the decision unit compares the cross switch usage priority of each data packet, arbitrates the cross switch usage right to the data packet with the highest priority, and transmits the arbitration signal to the cross switch.

5. A method for processing data packets on-line based on a chiplet network router supporting on-line computing according to any one of claims 1 to 4, characterized in that: The method for processing data packets on the network comprises the following steps: S1. When a data packet enters the chiplet network router from N input ports, it is first temporarily stored in the input buffer of the N input ports. The input buffer of the N input ports simultaneously transmits the first data packet in the input buffer to the corresponding parsing unit for parsing; S2, N parsing units receive the data packet transmitted by the input buffer of the corresponding input port, and read the network calculation identification bit and the data packet sequence number value of the data packet. If the value of the network calculation identification bit is 0, it indicates that the data packet does not need to be calculated on the network. The parsing unit transmits the data packet to the routing calculation unit and jumps to step S5 for execution. If the value of the network calculation identification bit is 1, it indicates that the data packet needs to be calculated on the network. The parsing unit transmits the sequence number value of the data packet to the control unit for judgment, and then executes step S3; S3, the control unit receives the data packet sequence number values ​​transmitted by N parsing units, and compares them with the system sequence number value maintained by the current multi-chip integrated system. If the data packet sequence number value is less than the system sequence number value, the control unit sends a control signal to the corresponding parsing unit, instructing the parsing unit to transmit the data packet to the routing calculation unit, and jumps to step S5 to execute; if the data packet sequence number value is greater than the system sequence number value, the control unit sends a control signal to the dedicated buffer, instructing the dedicated buffer to move all existing data packets therein into the on-line computing processing unit, and at the same time, the control unit also needs to send a control signal to the corresponding parsing unit, instructing the corresponding parsing unit to move the new data packet into the dedicated buffer for processing; if the data packet sequence number value is equal to the system sequence number value, it is necessary to further check whether the current dedicated buffer is empty, if the dedicated buffer is empty, If the buffer is empty, check whether all the data packets of the current sequence number value have arrived. If all have arrived, send a control signal to all parsing units to instruct the parsing units to move these data packets directly into the online computing processing unit for calculation, execute step S4, and update the system sequence number value. If not all have arrived, send a control signal to the corresponding parsing unit to instruct the parsing unit to move the arrived data packets into the dedicated buffer for waiting for processing. If the dedicated buffer is not empty, move the data packets into the dedicated buffer, and check whether all the data packets in the dedicated buffer have arrived. If all have arrived, the control unit sends a control signal to the dedicated buffer to instruct it to move the data packets in the buffer into the online computing processing unit for processing, execute step S4, and update the system sequence number value. If not all have arrived, do nothing; S4. When a batch of data packets enter the online computing processing unit, the batch of data packets are first cut into two parts. The first part is the first microchip of the data packet, and the second part is the data part of the data packet. The first microchip is temporarily stored in the first microchip register, and the data part is stored in the data buffer. When the floating-point adder group is idle, the data part in the data buffer is moved into the floating-point adder group. The floating-point adder group extracts the value of the data part, adds the values, and rewrites the operation result into the data part to obtain a new data part. Then, the first microchip and the new data part in the first microchip register are moved to the splicing unit. The splicing unit splices them into a new data packet, and transmits the new data packet to the corresponding routing computing unit. S5. After the data packet enters the corresponding routing calculation unit, the routing calculation unit reads the destination address and network calculation identification bit of the data packet, uses the XY routing algorithm to calculate the output port number of the data packet, and transmits the output port number and the value of the network calculation identification bit of the data packet to the cross switch arbitrator, and transmits the data packet to the cross switch at the same time; S6. The cross switch arbitrator receives the output port number and the value of the network calculation identification bit of each data packet from N+1 routing calculation units, and the network calculation identification unit receives the network calculation identification bit value input from the routing calculation unit, and determines whether the corresponding data packet is a network calculation data packet based on the value, and stores the network calculation determination result in the status register; then, the output port number of each data packet input from the routing calculation unit is stored in the status register, and the output buffer occupancy rate of the corresponding output port is also stored in the status register; S7, the priority calculation unit reads the output port number of each data packet, the network calculation result, and the output buffer occupancy rate of the output port from the status register, calculates the crossbar switch usage priority of each data packet in combination with the polling priority strategy, and transmits the priority value to the decision unit, which compares the crossbar switch usage priorities of each data packet, arbitrates the crossbar switch usage right to the data packet with the highest priority, and transmits the arbitration signal to the crossbar switch; S8. The cross switch receives data packets from N+1 routing calculation units and receives the arbitration signal of the cross switch arbiter. It selects a data packet transmitted by a routing calculation unit according to the arbitration signal and transmits the data packet to the corresponding output port. S9. N output ports receive data packets transmitted by the cross switch, add the data packets to the output queue, and output the data packets to the downstream router or local chip according to the first-in-first-out principle.

6. The method for processing data packets on-net by a chiplet-to-chiplet network router supporting on-net computing according to claim 5, characterized in that: In step S5, the routing calculation unit calculates the output port number of the data packet using the XY routing algorithm. The XY routing algorithm is a deterministic routing algorithm, that is, according to the relative relationship between the destination location and the current location, the data packet is forwarded by column first and then by row.

7. The method for processing data packets on-network of an inter-chiplet network router supporting on-network computing according to claim 5, characterized in that: The specific calculation method of the priority in step S7 is: define W A , P R , W C Three variables, W A Indicates whether the data packet needs to be calculated on the network. If it needs to be calculated on the network, W A The value of is set to 1; otherwise, W A The value of P is set to 0; R Indicates the polling priority of the data packet. The value set is {1,2,3,4,5}. The higher the polling priority, the higher the P R The larger the value, the higher the polling priority is. C Indicates the congestion of the output port requested by the data packet, that is, the occupancy rate of the output buffer. The occupancy rate is divided into three levels: 0-30%, 30%-60%, and 60%-100%. C The corresponding value is {3,2,1}, and then W A , P R , W C are converted into binary values, where W A Occupies 1 bit, P R Occupies 3 bits, W C It occupies 2 bits, and the three binary values ​​are concatenated in order from high to low into a binary number, which is the priority value of the data packet.