A data interaction method and system of a chip interconnection network

By adding data sharing, communication, and time synchronization modules to the chip interconnect network and switch, the compatibility and time synchronization issues between the NoC and Switch heterogeneous simulation frameworks were resolved, achieving efficient data interaction and accurate simulation results, and shortening the iteration cycle of chip design.

CN123178334APending Publication Date: 2026-11-27RONGGUANG INFORMATION TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611252517.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing heterogeneous simulation schemes for NoC and Switch in chip design suffer from poor framework adaptability, low simulation efficiency, and inconsistent time progression control, resulting in inaccurate simulation results and long iteration cycles.

Method used

A data sharing communication module and a time synchronization module are added inside the chip interconnect network and the chip-to-chip switch. The state control and clock synchronization of the data interaction process are realized through shared memory and barrier waiting mechanism, ensuring that each participant executes the subsequent process only after the data interaction is completed.

Benefits of technology

It improves the accuracy of data processing results and simulation efficiency, reduces development workload, and shortens the iteration cycle of chip design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178334A_ABST
    Figure CN123178334A_ABST
Patent Text Reader

Abstract

A data interaction method and system of a chip interconnection network. The method executed by a first chip comprises: the first chip writes target data into a shared memory region corresponding to an inter-chip switch, and triggers a first barrier wait, the first barrier wait being used for a time synchronization module to determine whether to start executing a step of setting a data processing completion flag according to data interaction completion states of all interaction participants; the first chip triggers a second barrier wait, and when the number of second barrier waits of all data interaction participants reaches a set value, the first chip executes a subsequent process. The method of the present application implements that each chip and the inter-chip switch participating in data interaction need to execute their respective processes when the number of barrier waits reaches the set value, implements clock forced alignment, so that the processing result of the data can accurately reflect the real sequence behavior of the dynamic interaction between the chips and the inter-chip switch, and the accuracy of the data processing result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of chip design and implementation, and in particular to a data interaction method and system for chip interconnect networks. Background Technology

[0002] With the rapid development of large-scale artificial intelligence models, distributed training at the kilo-scale (i.e., using thousands of computing cards simultaneously for collaborative training) has become the industry norm. Such training tasks typically involve models with tens to trillions of parameters, placing extremely high demands on the efficiency of interconnectivity and communication of computing resources. To meet this requirement, chip manufacturers, when designing System-on-Chip (SoC) for large-scale training, typically employ a heterogeneous interconnect architecture of NoC (NoC) and inter-chip switches to achieve efficient data transmission between the core, storage, and network interfaces.

[0003] Due to the heterogeneity of NoC and Switch, existing simulation solutions face significant challenges in terms of framework adaptability, simulation efficiency, and time progression control, becoming a key bottleneck restricting the efficiency of chip design iteration. Summary of the Invention

[0004] To address the problems existing in the prior art, embodiments of this specification provide a data interaction method and system for a chip interconnect network. A data sharing communication module is added to both the chip interconnect network and the inter-chip switch to manage data read / write operations between the chip interconnect network, the inter-chip switch, and shared memory. A time synchronization module is also added to manage the global shared memory area and inter-process barriers, and to maintain the topology mapping relationship between the chip interconnect network and the inter-chip switch ports.

[0005] The specific technical solutions of the embodiments in this specification are as follows: On one hand, embodiments of this specification provide a data interaction method for a chip interconnect network, the method comprising: The first chip writes the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait. The first barrier wait is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag according to the data interaction completion status of all interactive participants. The first chip triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the first chip executes the subsequent process.

[0006] Furthermore, the first chip writing the target data into the shared memory area corresponding to the inter-chip switch further includes: The first chip writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch through the data sending port. The first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

[0007] Furthermore, the subsequent processes executed by the first chip include: The first chip reads data from its corresponding shared memory area and determines whether the read data is a response message from the second chip to the target data. If so, it sets its own data interaction completion status.

[0008] Furthermore, the first chip reading data from its corresponding shared memory region further includes: The first chip reads the data from the shared memory area corresponding to its own data receiving port, and the data receiving port of the first chip is associated with the first data sending port of the inter-chip switch.

[0009] Furthermore, the method also includes: The first chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the first chip performs resource reclamation.

[0010] Based on the same inventive concept, embodiments of this specification also provide a data interaction method for a chip interconnect network, applied to an inter-chip switch, the method comprising: The inter-chip switch triggers a first barrier wait, which is used by the time synchronization module to determine whether to start executing the step of setting a data processing completion flag based on the data interaction completion status of all interactive participants. The inter-chip switch triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the inter-chip switch reads the target data from its corresponding shared memory area. The target data is written by the first chip.

[0011] Furthermore, the process of the inter-chip switch reading target data from its corresponding shared memory region further includes: The inter-chip switch reads the target data from the shared memory area corresponding to its own first data receiving port, and the first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

[0012] Furthermore, after the inter-chip switch reads the target data from its corresponding shared memory region, the method further includes: The inter-chip switch writes the target data into the shared memory area corresponding to the second chip and triggers the first barrier wait.

[0013] Furthermore, the process of the inter-chip switch writing the target data into the shared memory area corresponding to the second chip further includes: The inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, and the data receiving port of the second chip is associated with the second data sending port of the inter-chip switch.

[0014] Furthermore, after the inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, the method further includes: The inter-chip switch triggers the first barrier and waits; The inter-chip switch triggers the second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the inter-chip switch reads the response message of the target data from the shared memory area corresponding to its own second data receiving port. The response message is written by the second chip to the shared memory area corresponding to the second data receiving port of the inter-chip switch through the second chip's data sending port.

[0015] Furthermore, after the inter-chip switch reads the response message of the target data from the shared memory area corresponding to its own second data receiving port, the method further includes: The inter-chip switch writes the response message to the shared memory area corresponding to the data receiving port of the first chip through the first data sending port, and triggers the first barrier wait. The data receiving port of the first chip is associated with the first data sending port of the inter-chip switch.

[0016] Furthermore, the method also includes: If the data processing completion flag of the inter-chip switch monitoring time synchronization module is set, the inter-chip switch will reclaim resources.

[0017] Based on the same inventive concept, embodiments of this specification also provide a data interaction method for a chip interconnect network, applied to a second chip, the method comprising: The second chip triggers the first barrier wait, which is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag based on the data interaction completion status of all interactive participants; The second chip triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the second chip reads the target data from its corresponding shared memory area. The target data is written by the inter-chip switch.

[0018] Furthermore, the second chip reading the target data from its corresponding shared memory region further includes: The second chip reads the target data from the shared memory area corresponding to its own data receiving port, and the second chip's own data receiving port is associated with the second data sending port of the inter-chip switch.

[0019] Furthermore, after the second chip reads the target data from its corresponding shared memory region, the method further includes: The second chip writes the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait.

[0020] Furthermore, the second chip writing the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch further includes: The second chip writes the response message to the shared memory area corresponding to the second data receiving port of the inter-chip switch through its own data sending port. The second data receiving port of the inter-chip switch is associated with the data sending port of the second chip.

[0021] Furthermore, the method also includes: The second chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the second chip performs resource reclamation.

[0022] Based on the same inventive concept, embodiments of this specification also provide a data interaction system for a chip interconnect network, the system including a first chip, an inter-chip switch, a second chip, and a time synchronization module; The first chip writes the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait and the second barrier wait. The inter-chip switch triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the inter-chip switch reads the target data from its corresponding shared memory area. The inter-chip switch writes the target data into the shared memory area corresponding to the second chip and triggers the first barrier to wait. The first chip triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the second chip reads the target data from its corresponding shared memory area.

[0023] Furthermore, after the second chip reads the target data from its corresponding shared memory area, it writes the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait. The inter-chip switch triggers a first barrier wait and a second barrier wait; The first chip triggers a first barrier wait and a second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the inter-chip switch reads the response message from its corresponding shared memory area. The inter-chip switch writes the response message into the corresponding shared memory area of ​​the first chip and triggers the first barrier wait and the second barrier wait. The first chip triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the first chip reads data from its corresponding shared memory area and determines whether the read data is the response message corresponding to the target data. If so, it sets its own data interaction completion status.

[0024] Furthermore, the first chip writing the target data into the shared memory area corresponding to the inter-chip switch further includes: The first chip writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch through the data sending port. The first data receiving port of the inter-chip switch is associated with the data sending port of the first chip. The inter-chip switch further includes reading target data from its corresponding shared memory region, including: The inter-chip switch reads the target data from the shared memory area corresponding to its own first data receiving port; The inter-chip switch further includes writing the target data into the shared memory area corresponding to the second chip by: The inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, and the data receiving port of the second chip is associated with the second data sending port of the inter-chip switch. The second chip reads target data from its corresponding shared memory region, which further includes: The second chip reads the target data from the shared memory area corresponding to its own data receiving port.

[0025] Furthermore, the second chip writing the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch further includes: The second chip writes the response message into the shared memory area corresponding to the second data receiving port of the inter-chip switch through its own data sending port. The second data receiving port of the inter-chip switch is associated with the data sending port of the second chip. The inter-chip switch reading the response message from its corresponding shared memory region further includes: The inter-chip switch reads the response message from the shared memory area corresponding to its own second data receiving port; The process of the inter-chip switch writing the response message to the corresponding shared memory area of ​​the first chip further includes: The inter-chip switch writes the response message to the shared memory area corresponding to the data receiving port of the first chip through the first data sending port, and the data receiving port of the first chip is associated with the first data sending port of the inter-chip switch. Reading data from the shared memory region corresponding to the first chip itself further includes: The first chip reads the data from the shared memory area corresponding to its own data receiving port.

[0026] Furthermore, the first chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the first chip performs resource reclamation. If the data processing completion flag of the inter-chip switch monitoring time synchronization module is set, the inter-chip switch will reclaim resources. The second chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the second chip performs resource reclamation. The time synchronization module performs resource reclamation after setting the data processing completion flag.

[0027] On the other hand, embodiments of this specification also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0028] On the other hand, embodiments of this specification also provide a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method.

[0029] This embodiment of the specification sets a data processing completion flag through a time synchronization module, thereby achieving state control of the data interaction process. Asynchronous data exchange is achieved through chip switches. By using first and second barrier waiting mechanisms, each chip and chip switch participating in the data interaction can only execute its respective processing when the number of barrier waiting times reaches a set value. This enforces clock alignment among the participating chips and chip switches, ensuring that the data processing results accurately reflect the true sequence behavior of the dynamic interactions between chips and chip switches, thus improving the accuracy of the data processing results. Furthermore, this embodiment of the specification abandons the method of compiling and linking chips and chip switches as libraries in the same program, thereby improving data interaction and processing efficiency. In addition, the method of this embodiment of the specification, through standardized data interfaces using shared memory, can reduce the development workload of intermediate scripts, lower development difficulty, and shorten the iteration cycle of chip design. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 The diagram shown is a first flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification. Figure 2 The diagram shown is a second flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification. Figure 3 The diagram shown is a third flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification. Figure 4 The diagram shown is a structural schematic of a data interaction system for a chip interconnect network according to an embodiment of this specification. Figure 5 The diagram shown is a structural schematic of the computer device in an embodiment of this specification.

[0032] [Explanation of Figure Markers]: 401, First Chip; 402. Inter-chip switch; 403, Second chip; 404, Time Synchronization Module; 502. Computer equipment; 504, Processor; 506. Memory; 508. Drive mechanism; 510. Input / output module; 512. Input devices; 514. Output devices; 516. Presentation equipment; 518. Graphical User Interface; 520. Network interface; 522. Communication link; 524. Communication bus. Detailed Implementation

[0033] The technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this specification, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the embodiments of this specification.

[0034] It should be noted that the terms "first," "second," etc., in the description, claims, and accompanying drawings of the embodiments herein are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, apparatus, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0035] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of this specification all comply with the relevant provisions of national laws and regulations.

[0036] It should be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, they do not mean that the applicant has used or necessarily used the solution.

[0037] The inventors discovered in their research that existing simulation solutions for the NoC+Switch architecture employ a split simulation framework. Its core features include independent simulation toolchains and manual interface adaptation. The independent simulation toolchain uses a NoC simulator developed based on Gem5 to simulate on-chip communication behavior, including routing algorithms and flow control. It uses a discrete-time simulator (Sparta) to model the off-chip switching behavior of the Switch, generating communication data streams through a predefined topology. Manual interface adaptation refers to converting the NoC simulator's output data (such as a flow matrix) into the Switch simulator's input format using manually written intermediate scripts, relying on static configuration files (such as XML-formatted node mapping tables) to define the interconnection between the NoC and Switch. Therefore, the existing technology is a split, semi-automatic simulation solution that connects two independent simulation tools (NoC simulator and Switch simulator) through manually written interfaces and scripts. This solution suffers from poor simulation framework adaptability, leading to low development efficiency. Because the NoC and Switch simulators come from different toolchains, their design intentions and internal data models are drastically different, preventing direct communication between them. These scripts are highly dependent on the specific configuration of the current simulation (such as topology and traffic model), making them difficult to reuse in new development projects. This results in a large amount of repetitive development work, including interface incompatibility and poor middleware universality. Whenever a new chip interconnect topology or switch architecture needs to be verified, not only must the switch emulator's configuration file be modified, but data conversion scripts and node mapping relationships usually also need to be rewritten or redeveloped. Interface adaptation is complex and difficult, extending the chip design iteration cycle and leading to high costs when compatible with new topologies. Furthermore, the NoC emulator and the switch emulator, as two independent processes, typically use their own time-based mechanisms. Data exchange via IPC is inherently fragmented and makes it difficult to achieve fine-grained global event synchronization. This is because the accessibility of NoC to Switch interfaces can be many-to-many, and the behavior of each interconnected interface at the same point in time may not be the same. If semaphores are not used to control IPC, the simulation results may not accurately reflect the true timing behavior of the dynamic interaction between NoC and Switch, affecting the accuracy of the simulation results. The simplest way to solve the problem of asynchronous time progression is to compile and link NoC and Switch as libraries in the same program, which will inevitably lead to the slow operation of the complete simulation software.

[0038] This specification addresses the technical shortcomings of existing split-type NoC+Switch simulation solutions by proposing the following technical problems to be solved: 1. The problem of poor adaptability of heterogeneous simulation frameworks: Solve the problem of redundant interface development caused by incompatibility of data models from different toolchains; Eliminate the development pain point of needing to simultaneously modify the conversion script and mapping file when changing the topology; Avoid strong middleware dependencies on specific simulation scenarios and achieve zero script modification when configuration changes occur; 2. Precision defects caused by asynchronous time progression: Overcome the problem of inaccurate timestamps for discrete events caused by process-based IPC communication; To resolve timing distortion issues related to NoC routing latency and Switch queue scheduling during cross-emulator interactions; Eliminate dynamic traffic response simulation bias caused by offline data exchange; 3. The contradiction between simulation efficiency and accuracy is difficult to balance: Overcome the performance bottleneck in single-process simulation mode and the mutual exclusion dilemma of asynchronous timing in multi-process simulation; Optimize the computational overhead caused by frequent cross-tool data exchange when performing large-scale topology simulations; It provides a dynamically adjustable time-adjustable granularity control mechanism to adapt to different precision requirements.

[0039] Specifically, the embodiments of this specification propose a data interaction method for chip interconnect networks. Figure 1 The diagram shown is a schematic flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification, applied to a first chip (corresponding to a first NoC). The order of steps listed in the embodiment is merely one possible execution order among many steps and does not represent the only possible execution order. In actual system or device products, the method can be executed sequentially or in parallel according to the embodiment or the accompanying drawings. Specifically, as shown... Figure 1 As shown, the method may include: Step 101: The first chip writes the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait. The first barrier wait is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag according to the data interaction completion status of all interactive participants. Step 102: The first chip triggers the second barrier wait. When the number of second barrier waits of all data interaction participants reaches the set value, the first chip executes the subsequent process.

[0040] In the embodiments of this specification, during the process of sending data from the first NoC to the second NoC via shared memory, the chip-to-chip switch (Switch) handles the exchange. The first NoC writes the target data to be sent into the shared memory area corresponding to the Switch and triggers the first barrier wait (barrier_wait). barrier_wait indicates that the first NoC has written the target data into the shared memory area corresponding to the Switch and can proceed to the next step, but it needs to wait for all parties involved in this data interaction to enter barrier_wait. That is, when all parties involved in this data interaction have completed the current step and can proceed to the next step, all parties simultaneously begin to execute the next task.

[0041] The method described in this specification introduces a time synchronization module (TimeSync) to manage the data interaction process. Because during data interaction, each party may need to request certain resources, and shared memory also needs to temporarily store the interacted data, the TimeSync in this specification sets a data processing completion flag based on the data interaction completion status of all participating parties when all parties (including TimeSync itself) trigger a barrier_wait. Specifically, TimeSync determines whether the data interaction completion status of all participating parties is set; if so, it indicates that data processing is complete, and TimeSync sets the data processing completion flag. Each party monitors whether the data processing completion flag is set; if so, each party performs its own resource reclamation, and TimeSync reclaims the corresponding resources in shared memory.

[0042] If the data interaction completion status of any party is not set, it means that the data interaction processing of that party has not been completed, and TimeSync will not set the data processing completion flag.

[0043] Therefore, during the data interaction process, when the first NoC writes the target data into the shared memory area corresponding to the Switch and triggers the first barrier wait, the second barrier wait is automatically triggered. And when all data interaction participants have triggered the second barrier wait (that is, the number of second barrier waits of all data interaction participants reaches the set value), the first NoC executes the subsequent process. The subsequent process may include the first NoC receiving data, the first NoC sending other data, etc. The received data may be the data sent by other NoCs to the first NoC or the response message corresponding to the data sent by the first NoC to other NoCs.

[0044] In this embodiment of the specification, to address the development pain point of needing to simultaneously modify the conversion script and mapping file when eliminating topology changes, this embodiment introduces a key-value mapping table to achieve the effect of configuration-based adaptation. The key-value mapping table records a one-to-one correspondence between the ports of the NoC and the ports of the Switch. Therefore, according to one embodiment of this specification, the first chip writing the target data into the shared memory area corresponding to the inter-chip switch further includes: The first chip writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch through the data sending port. The first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

[0045] Specifically, when NoC writes data to the shared memory area corresponding to Switch, it only needs to determine the port on which NoC sends the data, and then determine the data receiving port of Switch corresponding to the data sending port. NoC then writes the data to the shared memory area corresponding to the data receiving port.

[0046] In subsequent cycles (which may be the next cycle immediately after or a cycle several cycles later), the Switch reads the target data written by the first NoC from its own shared memory region. Specifically, as Figure 2 The diagram shown is a second flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification. Applied to a Switch, it may include the following steps: Step 201: The inter-chip switch triggers the first barrier wait, which is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag based on the data interaction completion status of all interactive participants; Step 202: The inter-chip switch triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the inter-chip switch reads the target data from its corresponding shared memory area. The target data is written by the first chip.

[0047] In the embodiments of this specification, for the target data written by the first NoC, the Switch first triggers a first barrier wait (barrier_wait) during the period of reading the target data from the shared memory. The function of the first barrier wait is the same as the function of the first barrier wait triggered when the first NoC writes data to the Switch. Both are for TimeSync to determine whether to start the step of setting the data processing completion flag according to the data interaction completion status of all interactive participants.

[0048] Then, the Switch automatically triggers a second barrier wait (barrier_wait). Once all data interaction participants have triggered the second barrier wait (i.e., the number of second barrier waits reaches a set value), the Switch reads the target data written by the first NoC from its corresponding shared memory area. After reading the target data, the Switch internally executes a process to determine which NoC the target data should be sent to (i.e., the target data forwarding process). For example, if the target data contains information about the source NoC and the destination NoC, the Switch forwards the target data based on this information.

[0049] In this embodiment of the specification, the inter-chip switch reading target data from its corresponding shared memory region further includes: The inter-chip switch reads the target data from the shared memory area corresponding to its own first data receiving port, and the first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

[0050] This can be understood as a one-to-one correspondence between the Switch's data receiving port and the NoC's data sending port. The Switch knows which NoC wrote the data in the first receiving port through which data sending port, which facilitates the forwarding of subsequent response messages.

[0051] Then, in the subsequent cycle (which may be the next cycle immediately after or a cycle several cycles later), the Switch writes the target data into the shared memory area corresponding to the destination NoC (i.e., the second NoC). At this time, the process of the Switch, as the data sender, writing the target data into the shared memory area corresponding to the second NoC is similar to the process of the first NoC writing the target data into the shared memory corresponding to the Switch. After writing the target data into the corresponding shared memory, the first barrier wait is triggered. The function of the first barrier wait in this cycle is the same as the function of the first barrier wait mentioned above, and will not be repeated here.

[0052] In this embodiment of the specification, the process of the inter-chip switch writing the target data into the shared memory region corresponding to the second chip further includes: The inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, and the data receiving port of the second chip is associated with the second data sending port of the inter-chip switch.

[0053] Then the Switch automatically triggers the second barrier wait, and when the number of second barrier waits of all data interaction participants reaches the set value, the Switch executes the subsequent process, such as reading data written by other NoCs from its own shared memory or reading other data written by the first NoC.

[0054] In subsequent cycles (which may be the next cycle immediately after or a cycle several cycles later), the second NoC reads the target data from its own shared memory, specifically, as follows: Figure 3 The diagram shown is a third flowchart of a data interaction method for a chip interconnect network according to an embodiment of this specification. Applied to a second NoC, it may include the following steps: Step 301: The second chip triggers the first barrier wait, which is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag based on the data interaction completion status of all interactive participants; Step 302: The second chip triggers the second barrier wait. When the number of second barrier waits of all data interaction participants reaches the set value, the second chip reads the target data from its corresponding shared memory area. The target data is written by the inter-chip switch.

[0055] In the embodiments of this specification, for the target data written by the Switch, the second NoC first triggers a first barrier wait (barrier_wait) during the period of reading the target data from shared memory. The function of the first barrier wait is the same as the first barrier wait triggered when the first NoC writes data to the Switch and the first barrier wait triggered when the Switch writes data to the second NoC. Both are for TimeSync to determine whether to start the step of setting the data processing completion flag according to the data interaction completion status of all interactive participants.

[0056] Then the second NoC automatically triggers the second barrier wait (barrier_wait). When all data interaction participants trigger the second barrier wait (i.e., the number of second barrier waits reaches the set value), the second NoC reads the target data written by the Switch from its corresponding shared memory area. Specifically, the second chip reads the target data from the shared memory area corresponding to its own data receiving port. The data receiving port of the second chip is associated with the second data sending port of the inter-chip switch.

[0057] After reading the target data, the second NoC executes the target data processing flow internally and sends a response message to the first NoC indicating that the target data has been successfully received. The response message is then sent to the first NoC via a switch.

[0058] In a subsequent cycle (which may be the next cycle immediately after or a cycle several cycles later), the second NoC writes the response message to the shared memory area corresponding to the Switch. Specifically, the second chip writes the response message to the shared memory area corresponding to the second data receiving port of the inter-chip switch through its own data sending port. The second data receiving port of the inter-chip switch is associated with the data sending port of the second chip. At this time, the process of the second NoC, as the data sender, writing the response message to the shared memory area corresponding to the Switch is similar to the process of the first NoC writing the target data to the shared memory area corresponding to the Switch and the Switch writing the target data to the shared memory area corresponding to the second NoC. After writing the target data to the corresponding shared memory, a first barrier wait is triggered. The function of the first barrier wait in this cycle is the same as the function of the first barrier wait mentioned above, and will not be repeated here.

[0059] At this point, the interaction between the second NoC and the target data is complete, and the second NoC can set its own data interaction completion status.

[0060] After the second NoC triggers the first barrier wait, it automatically triggers the second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the second NoC executes subsequent processes, such as reading data written by other switches from its own shared memory or reading other data written by that switch.

[0061] In subsequent cycles (which may be the next cycle immediately after or a cycle several cycles later), the Switch reads the response message written by the second NoC from its own shared memory area. Specifically, the inter-chip switch reads the response message of the target data from the shared memory area corresponding to its own second data receiving port. Then, the Switch internally executes a process to determine which NoC the response message should be sent to (i.e., the response message forwarding process). For example, if the response message contains the source NoC and the destination NoC, the Switch forwards the response message based on this information.

[0062] Then, in a subsequent cycle (which may be the next cycle immediately after or a cycle several cycles later), the Switch writes the response message to the shared memory area corresponding to the first NoC. Specifically, the inter-chip switch writes the response message to the shared memory area corresponding to the data receiving port of the first chip through the first data sending port. At this point, the Switch's interaction with the target data is complete, and the Switch can set its own data interaction completion status.

[0063] In a subsequent cycle (which may be the next cycle immediately after it or a cycle several cycles later), the first NoC reads the response message from its own shared memory. Specifically, the first chip reads the data from the shared memory area corresponding to its own data receiving port. The data receiving port of the first chip is associated with the first data sending port of the inter-chip switch. At this point, the interaction of the first NoC with the target data is complete, and the first NoC can set its own data interaction completion status.

[0064] In subsequent cycles, when the number of people waiting at the first barrier reaches a set value, the time synchronization module obtains the data interaction completion status of all data interaction participants. At this time, the data interaction completion status of the first NoC, the second NoC, and the Switch are all set. Therefore, the time synchronization module sets the data processing completion flag corresponding to the target data and reclaims the shared memory resources. When the first NoC, the second NoC, and the Switch detect that the data processing completion flag corresponding to the target data is set, they reclaim their own resources for the target data interaction process.

[0065] It should be noted that the above embodiments only illustrate data interaction between one NoC and another NoC. In addition to this scenario, multiple NoCs and Switches that complete the same task can be used as participants as needed. The data interaction process between these participants is carried out through the first barrier waiting and the second barrier waiting. Only when the data interaction completion status of these participants is set, it indicates that the processing of the task by these NoCs has been completed. Only then will the time synchronization module set the data processing completion flag of the task. Then, each NoC, Switch and the time synchronization module will perform their respective resource reclamation work for the task.

[0066] It should be noted that TimeSync is also a participant in the interaction of the target data. Therefore, after TimeSync performs the step of setting the data processing completion flag based on the data interaction completion status of all participants, it will also trigger the first barrier wait, and then automatically trigger the second barrier wait. This will not be described in detail in the embodiments of this specification.

[0067] This embodiment of the specification sets a data processing completion flag through a time synchronization module, thereby achieving state control of the data interaction process. Asynchronous data exchange is achieved through chip switches. By using first and second barrier waiting mechanisms, each chip and chip switch participating in the data interaction can only execute its respective processing when the number of barrier waiting times reaches a set value. This enforces clock alignment among the participating chips and chip switches, ensuring that the data processing results accurately reflect the true sequence behavior of the dynamic interactions between chips and chip switches, thus improving the accuracy of the data processing results. Furthermore, this embodiment of the specification abandons the method of compiling and linking chips and chip switches as libraries in the same program, thereby improving data interaction and processing efficiency. In addition, the method of this embodiment of the specification, through standardized data interfaces using shared memory, can reduce the development workload of intermediate scripts, lower development difficulty, and shorten the iteration cycle of chip design.

[0068] Based on the same inventive concept, embodiments of this specification also provide a data interaction system for a chip interconnect network, such as... Figure 4 The diagram shown is a structural schematic of a data interaction system for a chip interconnect network according to an embodiment of this specification. The data interaction system for the chip interconnect network includes a first chip 401, an inter-chip switch 402, a second chip 403, and a time synchronization module 404. The first chip 401 writes the target data into the shared memory area corresponding to the inter-chip switch 402, and triggers the first barrier wait and the second barrier wait. The inter-chip switch 402 triggers a first barrier wait and a second barrier wait; The second chip 403 triggers the first barrier wait and the second barrier wait; The time synchronization module 404 triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module 404 sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the inter-chip switch 402 reads the target data from its corresponding shared memory area. The inter-chip switch 402 writes the target data into the shared memory area corresponding to the second chip 403 and triggers the first barrier to wait. The first chip 401 triggers the first barrier wait and the second barrier wait; The second chip 403 triggers the first barrier wait and the second barrier wait; The time synchronization module 404 triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module 404 sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the second chip 403 reads the target data from its corresponding shared memory area.

[0069] Furthermore, after reading the target data from its corresponding shared memory area, the second chip 403 writes the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch 402 and triggers the first barrier wait. The inter-chip switch 402 triggers a first barrier wait and a second barrier wait; The first chip 401 triggers the first barrier wait and the second barrier wait; The time synchronization module 404 triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module 404 sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barrier waiting times for all data interaction participants reaches a set value, the inter-chip switch 402 reads the response message from its corresponding shared memory area. The inter-chip switch 402 writes the response message into the corresponding shared memory area of ​​the first chip 401 and triggers the first barrier wait and the second barrier wait. The first chip 401 triggers the first barrier wait and the second barrier wait; The second chip 403 triggers the first barrier wait and the second barrier wait; The time synchronization module 404 triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module 404 sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the first chip 401 reads data from its corresponding shared memory area and determines whether the read data is the response message corresponding to the target data. If so, it sets its own data interaction completion status.

[0070] Furthermore, the first chip 401 writing the target data into the shared memory area corresponding to the inter-chip switch 402 further includes: The first chip 401 writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch 402 through the data sending port. The first data receiving port of the inter-chip switch 402 is associated with the data sending port of the first chip 401. The inter-chip switch 402 further includes reading target data from its corresponding shared memory region, including: The inter-chip switch 402 reads the target data from the shared memory area corresponding to its own first data receiving port; The inter-chip switch 402 further includes writing the target data into the shared memory area corresponding to the second chip 403 by the following: The inter-chip switch 402 writes the target data to the shared memory area corresponding to the data receiving port of the second chip 403 through the second data sending port, and the data receiving port of the second chip 403 is associated with the second data sending port of the inter-chip switch 402. The second chip 403 further includes reading target data from its corresponding shared memory region, including: The second chip 403 reads the target data from the shared memory area corresponding to its own data receiving port.

[0071] Furthermore, the second chip 403 writing the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch 402 further includes: The second chip 403 writes the response message into the shared memory area corresponding to the second data receiving port of the inter-chip switch 402 through its own data sending port. The second data receiving port of the inter-chip switch 402 is associated with the data sending port of the second chip 403. The inter-chip switch 402 further includes reading the response message from its corresponding shared memory region, including: The inter-chip switch 402 reads the response message from the shared memory area corresponding to its own second data receiving port; The inter-chip switch 402 further includes writing the response message into the corresponding shared memory area of ​​the first chip 401, including: The inter-chip switch 402 writes the response message to the shared memory area corresponding to the data receiving port of the first chip 401 through the first data sending port, and the data receiving port of the first chip 401 is associated with the first data sending port of the inter-chip switch 402. Reading data from the shared memory region corresponding to the first chip 401 itself further includes: The first chip 401 reads the data from the shared memory area corresponding to its own data receiving port.

[0072] Furthermore, the first chip 401 monitors whether the data processing completion flag of the time synchronization module 404 is set. If so, the first chip 401 performs resource reclamation. If the data processing completion flag of the time synchronization module 404 is set, the inter-chip switch 402 monitors whether it is set. If it is, the inter-chip switch 402 performs resource reclamation. The second chip 403 monitors whether the data processing completion flag of the time synchronization module 404 is set. If so, the second chip 403 performs resource reclamation. The time synchronization module 404 performs resource reclamation after setting the data processing completion flag.

[0073] It should be noted that the writing of target data (or response message) into the shared memory area of ​​the corresponding party and the reading of the target data (or response message) from the shared memory area by the party may not be completed in two adjacent cycles. The cycle interval between writing and reading the target data (or response message) can be set according to the system's latency requirements. This specification does not impose any restrictions on the embodiments.

[0074] The beneficial effects obtained by the above-described device are the same as those obtained by the above-described method, and will not be described in detail in the embodiments of this specification.

[0075] like Figure 5As shown, a computer device provided in this embodiment can be used to execute the methods described herein. The computer device 502 may include one or more processors 504, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 502 may also include any memory 506 for storing information of any kind, such as code, settings, data, etc. Without limitation, for example, memory 506 may include any type of RAM, any type of ROM, flash memory, hard disk, optical disk, etc. More generally, any memory can use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 502. In one case, when processor 504 executes associated instructions stored in any memory or combination of memories, the computer device 502 may perform any operation of the associated instructions. The computer device 502 also includes one or more drive mechanisms 508 for interacting with any memory, such as hard disk drive mechanisms, optical disk drive mechanisms, etc.

[0076] Computer device 502 may also include an input / output module 510 (I / O) for receiving various inputs (via input device 512) and providing various outputs (via output device 514). A specific output mechanism may include a presentation device 516 and an associated graphical user interface (GUI) 518. In other embodiments, the input / output module 510 (I / O), input device 512, and output device 514 may be omitted, and the device may function solely as a computer device within a network. Computer device 502 may also include one or more network interfaces 520 for exchanging data with other devices via one or more communication links 522. One or more communication buses 524 couple the components described above together.

[0077] Communication link 522 can be implemented in any way, such as via a local area network, a wide area network (e.g., the Internet), a point-to-point connection, or any combination thereof. Communication link 522 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., governed by any protocol or combination of protocols.

[0078] This specification also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0079] This specification also provides computer-readable instructions, wherein when a processor executes the instructions, the program therein causes the processor to perform the above-described method.

[0080] It should be understood that in the various embodiments of this specification, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this specification.

[0081] It should also be understood that, in the embodiments of this specification, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the embodiments of this specification, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0082] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments in this specification.

[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0084] In the embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces, devices, or units, or they may be electrical, mechanical, or other forms of connection.

[0085] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments described in this specification, depending on actual needs.

[0086] Furthermore, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0087] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this specification, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0088] This specification describes the principles and implementation methods of the embodiments using specific examples. The above descriptions of the embodiments are only for the purpose of helping to understand the methods and core ideas of the embodiments in this specification. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the embodiments in this specification. Therefore, the content of this specification should not be construed as a limitation on the embodiments in this specification.

Claims

1. A data interaction method for a chip interconnect network, characterized in that, Applied to a first chip, the method includes: The first chip writes the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait. The first barrier wait is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag according to the data interaction completion status of all interactive participants. The first chip triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the first chip executes the subsequent process.

2. The method according to claim 1, characterized in that, The first chip writes the target data into the shared memory area corresponding to the inter-chip switch, which further includes: The first chip writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch through the data sending port. The first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

3. The method according to claim 1, characterized in that, The subsequent processes executed by the first chip include: The first chip reads data from its corresponding shared memory area and determines whether the read data is a response message from the second chip to the target data. If so, it sets its own data interaction completion status.

4. The method according to claim 3, characterized in that, The first chip reading data from its corresponding shared memory region further includes: The first chip reads the data from the shared memory area corresponding to its own data receiving port, and the data receiving port of the first chip is associated with the first data sending port of the inter-chip switch.

5. The method according to claim 1, characterized in that, The method further includes: The first chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the first chip performs resource reclamation.

6. A data interaction method for a chip interconnect network, characterized in that, Applied to inter-chip switches, the method includes: The inter-chip switch triggers a first barrier wait, which is used by the time synchronization module to determine whether to start executing the step of setting a data processing completion flag based on the data interaction completion status of all interactive participants. The inter-chip switch triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the inter-chip switch reads the target data from its corresponding shared memory area. The target data is written by the first chip.

7. The method according to claim 6, characterized in that, The inter-chip switch further includes reading target data from its corresponding shared memory region, including: The inter-chip switch reads the target data from the shared memory area corresponding to its own first data receiving port, and the first data receiving port of the inter-chip switch is associated with the data sending port of the first chip.

8. The method according to claim 6, characterized in that, After the inter-chip switch reads the target data from its corresponding shared memory region, the method further includes: The inter-chip switch writes the target data into the shared memory area corresponding to the second chip and triggers the first barrier wait.

9. The method according to claim 8, characterized in that, The inter-chip switch further includes writing the target data into the shared memory area corresponding to the second chip by: The inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, and the data receiving port of the second chip is associated with the second data sending port of the inter-chip switch.

10. The method according to claim 9, characterized in that, After the inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, the method further includes: The inter-chip switch triggers the first barrier and waits; The inter-chip switch triggers the second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the inter-chip switch reads the response message of the target data from the shared memory area corresponding to its own second data receiving port. The response message is written by the second chip to the shared memory area corresponding to the second data receiving port of the inter-chip switch through the data sending port of the second chip.

11. The method according to claim 10, characterized in that, After the inter-chip switch reads the response message of the target data from the shared memory area corresponding to its second data receiving port, the method further includes: The inter-chip switch writes the response message to the shared memory area corresponding to the data receiving port of the first chip through the first data sending port, and triggers the first barrier wait. The data receiving port of the first chip is associated with the first data sending port of the inter-chip switch.

12. The method according to claim 6, characterized in that, The method further includes: If the data processing completion flag of the inter-chip switch monitoring time synchronization module is set, the inter-chip switch will reclaim resources.

13. A data interaction method for a chip interconnect network, characterized in that, Applied to a second chip, the method includes: The second chip triggers the first barrier wait, which is used by the time synchronization module to determine whether to start the step of setting the data processing completion flag based on the data interaction completion status of all interactive participants; The second chip triggers a second barrier wait. When the number of second barrier waits of all data interaction participants reaches a set value, the second chip reads the target data from its corresponding shared memory area. The target data is written by the inter-chip switch.

14. The method according to claim 13, characterized in that, The second chip reads target data from its corresponding shared memory region, which further includes: The second chip reads the target data from the shared memory area corresponding to its own data receiving port, and the second chip's own data receiving port is associated with the second data sending port of the inter-chip switch.

15. The method according to claim 13, characterized in that, After the second chip reads the target data from its corresponding shared memory region, the method further includes: The second chip writes the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait.

16. The method according to claim 15, characterized in that, The second chip writes the response message corresponding to the target data to the shared memory area corresponding to the inter-chip switch, which further includes: The second chip writes the response message to the shared memory area corresponding to the second data receiving port of the inter-chip switch through its own data sending port. The second data receiving port of the inter-chip switch is associated with the data sending port of the second chip.

17. The method according to claim 13, characterized in that, The method further includes: The second chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the second chip performs resource reclamation.

18. A data interaction system for a chip interconnect network, characterized in that, The system includes a first chip, an inter-chip switch, a second chip, and a time synchronization module; The first chip writes the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait and the second barrier wait. The inter-chip switch triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the inter-chip switch reads the target data from its corresponding shared memory area. The inter-chip switch writes the target data into the shared memory area corresponding to the second chip and triggers the first barrier to wait. The first chip triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the second chip reads the target data from its corresponding shared memory area.

19. The system according to claim 18, characterized in that, After the second chip reads the target data from its corresponding shared memory area, it writes the response message corresponding to the target data into the shared memory area corresponding to the inter-chip switch and triggers the first barrier wait. The inter-chip switch triggers a first barrier wait and a second barrier wait; The first chip triggers a first barrier wait and a second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the inter-chip switch reads the response message from its corresponding shared memory area. The inter-chip switch writes the response message into the corresponding shared memory area of ​​the first chip and triggers the first barrier wait and the second barrier wait. The first chip triggers a first barrier wait and a second barrier wait; The second chip triggers the first barrier wait and the second barrier wait; The time synchronization module triggers the first barrier waiting; When the number of first barrier waiting times for all data interaction participants reaches a set value, the time synchronization module sets a data processing completion flag based on the data interaction completion status of all interaction participants and triggers the second barrier waiting. When the number of second barriers waiting for all data interaction participants reaches a set value, the first chip reads data from its corresponding shared memory area and determines whether the read data is the response message corresponding to the target data. If so, it sets its own data interaction completion status.

20. The system according to claim 18, characterized in that, The first chip writes the target data into the shared memory area corresponding to the inter-chip switch, which further includes: The first chip writes the target data to the shared memory area corresponding to the first data receiving port of the inter-chip switch through the data sending port. The first data receiving port of the inter-chip switch is associated with the data sending port of the first chip. The inter-chip switch further includes reading target data from its corresponding shared memory region, including: The inter-chip switch reads the target data from the shared memory area corresponding to its own first data receiving port; The inter-chip switch further includes writing the target data into the shared memory area corresponding to the second chip by: The inter-chip switch writes the target data to the shared memory area corresponding to the data receiving port of the second chip through the second data sending port, and the data receiving port of the second chip is associated with the second data sending port of the inter-chip switch. The second chip reads target data from its corresponding shared memory region, which further includes: The second chip reads the target data from the shared memory area corresponding to its own data receiving port.

21. The system according to claim 19, characterized in that, The second chip writes the response message corresponding to the target data to the shared memory area corresponding to the inter-chip switch, which further includes: The second chip writes the response message into the shared memory area corresponding to the second data receiving port of the inter-chip switch through its own data sending port. The second data receiving port of the inter-chip switch is associated with the data sending port of the second chip. The inter-chip switch reading the response message from its corresponding shared memory region further includes: The inter-chip switch reads the response message from the shared memory area corresponding to its own second data receiving port; The process of the inter-chip switch writing the response message to the corresponding shared memory area of ​​the first chip further includes: The inter-chip switch writes the response message to the shared memory area corresponding to the data receiving port of the first chip through the first data sending port, and the data receiving port of the first chip is associated with the first data sending port of the inter-chip switch. Reading data from the shared memory region corresponding to the first chip itself further includes: The first chip reads the data from the shared memory area corresponding to its own data receiving port.

22. The system according to claim 18, characterized in that, The first chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the first chip performs resource reclamation. If the data processing completion flag of the inter-chip switch monitoring time synchronization module is set, the inter-chip switch will reclaim resources. The second chip monitors whether the data processing completion flag of the time synchronization module is set. If so, the second chip performs resource reclamation. The time synchronization module performs resource reclamation after setting the data processing completion flag.

23. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 17.

24. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method of any one of claims 1 to 17.