Modularized multi-core deadlock solution method and system based on bypass

By adopting the bypass routing mechanism and the method of reserving output ports for forward-looking signals in the 2.5D multi-core system, the cross-core deadlock problem is solved, efficient network transmission and modular design are achieved, and the multi-core architecture is supported. flexibility and reusability.

CN118535519APending Publication Date: 2024-08-23NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410477258.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technologies have deadlock problems in 2.5D multi-core systems, especially cross-core deadlocks, which are difficult to effectively solve in modular design. Moreover, existing methods limit network performance, increase overhead, and cannot support multi-core architectures. flexibility and reusability.

Method used

A modular multi-core deadlock solution based on bypass is adopted. By polling the border router in a time slice rotation within each core, the blocking packet bypass mechanism is triggered, and the look-ahead signal is used to reserve the output port to build a bypass. Route routing to ensure that the data packets forwarded upward by the intermediary layer reach the destination node, avoiding circular dependence on cross-core resources.

Benefits of technology

It achieves a deadlock-free multi-core system design, supports the path diversity of cross-core data packet routing, improves the network transmission rate, and does not require additional buffers or synchronization protocols, meeting modular design requirements and ensuring Flexibility and reusability of core particles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535519A
    Figure CN118535519A
Patent Text Reader

Abstract

The invention discloses a modularized multi-chip deadlock solution method and system based on a bypass, and the method comprises the steps: carrying out the polling of each boundary router in each chip in a time slice rotation manner, and carrying out the processing of the time slice of the boundary router when the time slice of the boundary router arrives, and switching the polling boundary router based on the core grain internal time slice to trigger a blocking packet bypass mechanism, reserving an output port between the boundary router and the target router by using a look-ahead signal to construct a bypass, and reserving a network interface and backspacing mechanism when a bypass packet pops up. The invention aims to solve the problem of deadlock-free realization of a bypass-based multi-core-particle modular design requirement of a multi-core-particle architecture under 2.5 D packaging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of deadlock-free design of on-chip networks of multi-core systems, and in particular to a bypass-based modular multi-core deadlock solution method and system. Background Art

[0002] In recent years, with the slowdown of Moore's Law and the complexity of chip functions, the cost of chips is increasing significantly. First, completing the design of all functional units of a chip under the most advanced process greatly increases the design cost; second, more functional units and larger on-chip storage will lead to an increase in the area of ​​the chip, which in turn leads to a decrease in chip yield and an increase in chip production costs. Under increasingly complex process technologies, the cost of large-scale system-on-chip (SoC) continues to rise, which is a motivation for the design of chiplet-based system-on-chip. This concept decomposes the traditional monolithic chip into several smaller chips, each with lower development costs, easier to reuse between multiple products, and can be implemented using the most appropriate process technology. In a modular chiplet-based system, each chiplet can be designed independently of the SoC and can be reused in different SoCs to form a modular SoC.

[0003] As an emerging packaging technology, 2.5D integration based on interposers is widely used in multi-chip systems. 2.5D packaging achieves high-density line connection of multiple chips by laying the die on a silicon interposer with through-silicon vias (TSV). The interposer is a silicon substrate made of silicon and organic materials, which is the channel for transmitting electrical signals between multi-chip modules in advanced packaging. With the help of 2.5D advanced packaging technology, designers can integrate CPU, GPU, memory and I / O on the same substrate, which can shorten the distance between modules and ensure transmission bandwidth. Doing so not only saves energy and cost, but also improves computing efficiency and provides greater design flexibility.

[0004] Deadlock is a deadlock caused by circular dependencies of resources in the network. If measures are not taken to avoid or resolve the deadlock problem, the correctness of the system cannot be guaranteed. Figure 1 The figure is a schematic diagram of a new deadlock (cross-chip deadlock) scenario in a 2.5D multi-chip integrated system. The two parallelograms on the upper side of the figure represent two chips, where a represents a border router, b represents a chip router, c represents an intermediate layer router, and d represents a schematic diagram of a cross-chip deadlock. Due to the cross-chip deadlock, the data across the chips is circulated without an exit condition, that is, a deadlock occurs. Figure 2As shown, routing in a 2.5D multi-chiplet integrated system includes intra-chiplet routing and cross-chiplet routing.

[0005] In-core data packets refer to data packets whose source node and destination node are located in the same core, and the routing of such data packets follows the in-core routing algorithm. Cross-core data packets refer to data packets whose source node and destination node are located on different cores, and the routing of such data packets can be divided into three sections: source node to source core boundary router, intermediate layer routing, and destination core boundary router to destination node. Among them, the first section follows the source core routing rule, the second section follows the intermediate layer routing rule, and the third section follows the destination core routing rule. This embodiment is based on the discovery that the cross-core deadlock dependency must contain at least one data packet forwarded upward by the intermediate layer, and a bypass is constructed in the third section of routing to ensure that the data packet forwarded upward by the intermediate layer can reach the destination node. There are already many research results on deadlock problems in traditional 2D packaging, and these methods can be roughly divided into deadlock avoidance and deadlock recovery. The main methods for deadlock avoidance are: Dally theory of constructing a loop-free channel dependency graph (Channel Dependency Graph, CDG); Duato theory of maintaining a loop-free escape channel (Escape VC); bubble flow control of maintaining a bubble buffer in the network, etc. The main methods of deadlock recovery are: deflection slice-based method; SPIN that coordinates the synchronous movement of data packets along the deadlock loop; DRAIN that periodically forces the movement of data packets along a predetermined path; SWAP that exchanges blocked packets in situ to break the deadlock, etc.

[0006] Chiplet technology decomposes a single chip into multiple independently designed and produced chiplets and then integrates them together, which brings new challenges to on-chip network design. The first and most important challenge is the new deadlock problem caused by cross-chip traffic. Even if the traditional 2D deadlock-free method is used in each chiplet and the interposer to ensure that no deadlock occurs, after multiple chiplets are integrated together through the interposer, deadlock resource dependencies across chiplets may still occur in the entire system. This deadlock problem is difficult to perceive and solve when a single chiplet is designed independently, because the rest of the system is unknown at this time. In addition, in order to ensure the reusability of chiplets in different systems, each chiplet should be able to complete the design when the information of the rest of the system is unknown, that is, to meet the modular design requirements of the multi-chiplet architecture.

[0007] The design for deadlock problem under traditional 2D packaging cannot support the modular design requirements under multi-chip architecture. In recent years, some solutions have been proposed to address the new deadlock problem brought by multi-chip integration. These solutions can also be divided into two categories: deadlock avoidance and deadlock recovery. Deadlock avoidance methods include: MTR (see reference: Yin J, Lin Z, Kayiran O, et al. Modular routing design for chiplet-based systems[C] / / 2018 ACM / IEEE45th Annual International Symposium on Computer Architecture (ISCA). IEEE, 2018: 726-738.) imposes steering restrictions on border routers to build a global loop-free channel dependency graph; RC (see reference: Majumder P, Kim S, Huang J, et al. Remote control: A simple deadlockavoidance scheme for modular systems-on-chip[J]. IEEE Transactions onComputers, 2020, 70(11): 1928-1941.) adds a dedicated buffer for cross-chiplet traffic on the border router; DeFT (see reference: Taheri E, Pasricha S, Nikdast M. DeFT: A Deadlock-Free andFault-Tolerant Routing Algorithm for 2.5 D Chiplet Networks[C] / / 2022 Design,Automation&Test in Europe Conference&Exhibition (DATE). IEEE, 2022: 1047-1052.) Use virtual network allocation to isolate traffic entering and leaving the chiplet to avoid loop resource dependencies.The main deadlock recovery methods are: UPP (see reference: Wu Y, Wang L, Wang X, et al. Upward packet popupfor deadlock freedom in modular chiplet-based systems[C] / / 2022 IEEEInternational Symposium on HighPerformance Computer Architecture (HPCA).IEEE, 2022: 986-1000.) completes deadlock recovery through timeout deadlock detection and signal handshake-based synchronization protocol.

[0008] However, the existing deadlock-free designs for 2.5D multi-chip systems have the problems of limiting network performance and high overhead: MTR uses an enumeration algorithm to calculate the steering restrictions offline. The high complexity of the algorithm limits the scalability of the system, and the path diversity is sacrificed after the steering restrictions are applied; RC adds additional dedicated buffers, which greatly increases the area overhead of the border router, and when injecting cross-chip traffic, it is necessary to apply for the idle dedicated buffer of the border router first, which increases the delay of cross-chip packets. At the same time, the cross-chip packets waiting for the application approval will be stranded in the network interface (NI) injection queue, blocking the normal injection of subsequent packets; the DeFT method uses virtual network allocation to achieve cross-chip traffic isolation, which requires at least 2VCs in the network. At the same time, the virtual network allocation rules also limit the conditions for packet forwarding, thereby increasing the delay overhead; the UPP method needs to add a complex deadlock recovery mechanism, and the false positives and hysteresis of deadlock detection will have a great impact on network performance. In addition, the existing deadlock-free designs for 2.5D multi-chip systems generally have the problem of limiting the selection of border routers for cross-chip packets. Cross-chip packet routing can be divided into three sections: source node to source chip border router, intermediate layer routing, and destination chip border router to destination node. It involves two border router selections, namely the source chip border router and the destination chip border router. Previous designs generally have the problem of limiting the selection of these two border routers: the permission network in RC statically binds each chip router to a specific border router, so that this chip router can only send cross-chip packets through this border router, which limits the selection of the first border router; MTR needs to impose steering restrictions on the border router, which has an impact on the chip router sending and receiving cross-chip packets, thereby limiting the selection of the border router twice; UPP needs to statically bind the chip router to the border router to ensure that there will be no conflict in the handshake signal transmission before deadlock recovery, which limits the selection of the second border router. The restriction on the selection of border routers will sacrifice the path diversity of cross-chip packet transmission, and is not conducive to load balancing between border routers. In addition, when a link or node fails in the network, some nodes in the network may be unreachable, causing the entire system to crash. Summary of the invention

[0009] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a bypass-based modular multi-chip deadlock solution and system are provided. The present invention aims to solve the deadlock-free problem of the multi-chip architecture under 2.5D packaging based on bypass to meet the multi-chip modular design requirements.

[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is: A bypass-based modular multi-chip deadlock solution includes polling each border router in a time slice rotation manner within each chip, and the processing of the border router when the time slice arrives includes: S1, determine whether there is a blocking packet forwarded upward by the intermediate layer whose blocking time exceeds the threshold in the buffer, if so, jump to step S2; otherwise, determine whether there is a rolled back upgrade package in the injection queue of the network interface, if so, jump to step S4, if there is no rolled back upgrade package, no action is taken in this time slice, end and exit; S2, sets the blocked packet in the buffer as an upgrade packet, pops it out of the buffer and routes it down along the bypass; S3, determining whether there is a rolled-back upgrade package in the injection queue of the network interface, if yes, injecting it from the injection queue of the network interface into the buffer where the blocking packet is ejected, if no, returning credit to the upstream router; S4, building a bypass downward for the upgrade package to utilize the bypass routing to the destination network interface; S5, judging whether the pop-up queue of the destination network interface is full, if not, judging that the bypass routing of the upgrade package has been completed, the current time slice ends and exits; otherwise, making a reservation in the pop-up queue of the destination network interface, and then returning to the original border router along the bypass to cache in the injection queue of the network interface of the original border router; S6, determine whether the injection queue of the network interface of the original border router is full. If so, discard the head data packet of the injection queue to cache the rolled-back upgrade package. Otherwise, directly cache the rolled-back upgrade package. This time slice ends and exits.

[0011] Optionally, when rotating the time slice among multiple border routers on the same core particle, the length of the time slice used is K≥2×d, where d is the longest path length reachable by the border router.

[0012] Optionally, constructing a bypass downward for the upgrade package in step S4 refers to using a forward-looking signal to reserve an output port of the next-hop router applied for by the next-hop router.

[0013] Optionally, after discarding the head data packet of the injection queue in step S6, it also includes: after the operation of discarding the head data packet of the injection queue causes the transaction corresponding to the data packet to be unable to be completed and is perceived by the upper-layer source node corresponding to the data packet through the missing status processing register MSHRs, the source node corresponding to the data packet perceives the discard operation of the data packet, regenerates the transaction corresponding to the data packet and injects the request into the network again.

[0014] Optionally, the injection queue is a buffer located in a network interface.

[0015] Optionally, the pop-up queue is a buffer located in a network interface.

[0016] In addition, the present invention also provides a modular multi-chip microprocessor, including multiple chips and a silicon interposer with through silicon vias, and the bare chips of the multiple chips are laid flat on the silicon interposer with through silicon vias to realize the interconnection of the multiple chips, and the modular multi-chip microprocessor is programmed or configured to execute the bypass-based modular multi-chip deadlock solution.

[0017] In addition, the present invention also provides an electronic device, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is the modular multi-core microprocessor.

[0018] In addition, the present invention also provides a computer-readable storage medium, in which a computer program / instruction is stored. The computer program / instruction is programmed or configured to execute the bypass-based modular multi-core deadlock solution through a processor.

[0019] In addition, the present invention also provides a computer program product, including a computer program / instruction, which is programmed or configured to execute the bypass-based modular multi-chip deadlock solution through a processor.

[0020] Compared with the prior art, the present invention mainly has the following advantages: 1. The bypass-based modular multi-chip deadlock solution of the present invention has no restrictions on the routing design and the number of virtual channels inside each chip and the intermediate layer, and does not require the addition of additional buffers and synchronization protocols.

[0021] 2. The bypass-based modular multi-chip deadlock solution of the present invention has no restrictions on the selection of two boundary routers in cross-chip data packet routing, thereby ensuring the path diversity of cross-chip data packet transmission.

[0022] 3. When the network configuration is the same, the present invention achieves a better network transmission rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 Schematic diagram of a new deadlock scenario in a 2.5D multi-chip integrated system in the prior art.

[0024] Figure 2 The figure is a schematic diagram of intra-chiplet and inter-chiplet data packet transmission in the prior art.

[0025] Figure 3 Schematic diagram of the process of the embodiment of the present invention.

[0026] Figure 4 This is an example schematic diagram of setting the blocked package b as the upgrade package u and popping it to the bypass in an embodiment of the present invention.

[0027] Figure 5 This is an example schematic diagram of bypassing the upgrade package u to the destination node and popping it out in an embodiment of the present invention.

[0028] Figure 6 This is an exemplary schematic diagram of returning the upgrade package u to the original border router along the bypass path in an embodiment of the present invention.

[0029] Figure 7 This is an example schematic diagram of using the upgrade package u rolled back in the previous time slice as the new upgrade package u' in the current time slice in an embodiment of the present invention.

[0030] Figure 8 Schematic diagram of bypass construction in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The bypass-based modular multi-chip deadlock solution of this embodiment assumes that each chip and the routing inside the intermediate layer are deadlock-free, and the deadlock in the system can only occur in the cross-chip scenario. The key to the bypass-based modular multi-chip deadlock solution of this embodiment is to use the chip internal time slice switching to poll the border router to trigger the blocking packet bypass mechanism, and to reserve the output port between the border router and the destination router using the forward signal to build the bypass and reserve the network interface and fallback mechanism when the bypass packet pops up, so as to provide a bypass-based deadlock-free solution that meets the modular design requirements of multi-chips for the multi-chip architecture under 2.5D packaging. The flow control strategy used is virtual cut-through flow control (Virtual Cut-Through, VCT), and the depth of the virtual channel is sufficient to cache the longest data packet in the network. The present invention will be further described in detail below. It should be noted that the following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. The present invention is applicable to all 2.5D integrated multi-chip systems, and is not limited to this embodiment.

[0032] like Figure 3 As shown, the bypass-based modular multi-chip deadlock solution of this embodiment includes polling each border router in a time slice rotation manner inside each chip, and the processing when the time slice of the border router arrives includes: S1, determine whether there is a blocking packet forwarded upward by the intermediate layer whose blocking time exceeds the threshold in the buffer, if so, jump to step S2; otherwise, determine whether there is a rolled back upgrade package in the injection queue of the network interface, if so, jump to step S4, if there is no rolled back upgrade package, no action is taken in this time slice, end and exit; S2, sets the blocked packet in the buffer as an upgrade packet, pops it out of the buffer and routes it down along the bypass; S3, determining whether there is a rolled-back upgrade package in the injection queue of the network interface, if yes, injecting it from the injection queue of the network interface into the buffer where the blocking packet is ejected, if no, returning credit to the upstream router; S4, building a bypass downward for the upgrade package to utilize the bypass routing to the destination network interface; S5, judging whether the pop-up queue of the destination network interface is full, if not, judging that the bypass routing of the upgrade package has been completed, the current time slice ends and exits; otherwise, making a reservation in the pop-up queue of the destination network interface, and then returning to the original border router along the bypass to cache in the injection queue of the network interface of the original border router; S6, determine whether the injection queue of the network interface of the original border router is full. If so, discard the head data packet of the injection queue to cache the rolled-back upgrade package. Otherwise, directly cache the rolled-back upgrade package. This time slice ends and exits.

[0033] The method of this embodiment polls each border router in a time slice rotation manner inside each core particle, giving each border router the opportunity to bypass the blocked data packets inside the core particle, and by ensuring that the data packets forwarded upward by the intermediary layer can reach their destination nodes, there will not always be cross-core resource circular dependencies in the network, thereby solving the deadlock problem of the multi-core system. The method of this embodiment has no restrictions on the routing design and number of virtual channels inside each core particle and the intermediary layer. There is no restriction on the selection of border routers in the transmission of cross-core data packets, ensuring the diversity of paths for the routing of cross-core data packets. Each core particle can be designed independently without the need for information from other modules of the system, ensuring that the core particles can be designed in a modular manner, and ensuring the flexibility and reusability of the core particles. The bypass-based modular multi-core deadlock solution proposed in this embodiment is applicable to the cross-core deadlock scenario caused by integrating multiple core particles together through the active intermediary layer when each core particle and the active intermediary layer meet the deadlock-free condition. The bypass-based modular multi-chip deadlock solution proposed in this embodiment supports the independent design of each chip in a modular manner without being related to the overall system, and has no restrictions on the routing design inside each chip and inside the active interposer. The bypass-based modular multi-chip deadlock solution proposed in this embodiment focuses on unblocking vertical link congestion and improving the transmission rate of the network. In this embodiment, when the time slice is rotated between multiple border routers on the same chip, the length of the time slice used is K≥2×d, where d is the longest path length that the border router can reach, so that the depth of the virtual channel can be sufficient to cache the longest data packet in the network.

[0034] In step S4 of this embodiment, constructing a bypass downward for the upgrade package means using a forward-looking signal to reserve an output port of the next-hop router applied for by the next-hop router.

[0035] After discarding the head data packet of the injection queue in step S6 of this embodiment, it also includes: after the operation of discarding the head data packet of the injection queue causes the transaction corresponding to the data packet to be unable to be completed and is perceived by the source node corresponding to the data packet in the upper layer through the missing status handling register MSHRs (Miss-status Handling Registers), the source node corresponding to the data packet perceives the discard operation of the data packet, regenerates the transaction corresponding to the data packet and injects the request into the network again.

[0036] The injection queue in this embodiment is a buffer located in the network interface.

[0037] The pop-up queue in this embodiment is a buffer located in the network interface.

[0038] As mentioned above, the routing in the 2.5D multi-chip integrated system includes intra-chip routing and cross-chip routing. Correspondingly, the data packets in the 2.5D integrated multi-chip architecture can be divided into two categories: intra-chip data packets and cross-chip data packets. Intra-chip data packets refer to data packets whose source node and destination node are both inside the same chip; cross-chip data packets refer to data packets whose source node and destination node are respectively located in different chiplets. Intra-chip data packets refer to data packets whose source node and destination node are located in the same chip, and the routing of such data packets follows the intra-chip routing algorithm. Cross-chip data packets refer to data packets whose source node and destination node are respectively located on different chiplets, and the routing of such data packets can be divided into three sections: source node to source chip boundary router, intermediate layer routing, and destination chip boundary router to destination node. Among them, the first section follows the source chip routing rule, the second section follows the intermediate layer routing rule, and the third section follows the destination chip routing rule. This embodiment is based on the discovery that the cross-chip deadlock dependency must contain at least one data packet forwarded upward by the intermediate layer, and a bypass is constructed in the third section of routing to ensure that the data packet forwarded upward by the intermediate layer can reach the destination node. The bypass-based modular multi-core deadlock solution of this embodiment is based on the premise that each core and the intermediate layer meet the deadlock-free premise. At this time, the deadlock in the system can only be formed by the circular dependency across cores. In this embodiment, each border router is polled in a time slice rotation manner in each core. From a global perspective, the rotations within multiple cores are independent and do not affect each other. Each border router in the global world obtains time slices in a stable cycle and can trigger the blocking packet bypass mechanism to clear the traffic forwarded upward by the intermediate layer. The blocking packet bypass mechanism is combined with the network interface reservation and fallback mechanism when the bypass packet pops up, which ensures that the data packet forwarded upward by the intermediate layer will eventually reach the destination node and pop up. The bypass-based modular multi-core deadlock solution proposed in this embodiment ensures that the data packet forwarded upward by the intermediate layer can arrive, so that there will not always be a cross-core circular dependency in the network, thereby ensuring that the system will not fall into deadlock.

[0039] In order to more clearly illustrate the bypass-based modular multi-core deadlock solution proposed in this design, Figure 4 to Figure 7 It should be noted that Figure 4 to Figure 7 This is only a specific scenario in which this embodiment can be applied, and it does not limit this embodiment to this scenario. This embodiment is widely applicable to 2.5D integrated multi-chip homogeneous or heterogeneous systems. Taking a chip in the architecture as an example, when the time slice of the border router B2 arrives, it is determined that there is a blocking packet b whose blocking time exceeds the threshold in the data packets forwarded upward by the intermediate layer, then it is set as an upgrade packet u and ejected to the bypass, such as Figure 4 Specifically, by using the forward signal to reserve the output port of the downstream router downward, a bypass is constructed from the destination chip boundary router to the destination node, and the upgrade package u is bypassed to the destination node and popped into the network interface pop-up queue, as shown in FIG. Figure 5 Specifically, if the pop-up queue of the destination node is full, a reservation is made in the pop-up queue of the destination node, and then the upgrade package u is returned to the original border router along the bypass path and cached in the network interface request injection queue of the original border router, as shown in FIG. Figure 6 As shown. If the network interface request injection queue of the original border router is full, the head data packet is discarded to cache the rolled-back upgrade package u. Specifically, before the next time slice of the border router B2 arrives, if the input buffer from the intermediate layer to B2 is idle, the rolled-back upgrade package is injected into the idle buffer. Specifically, when the next time slice of the border router B2 arrives, if there is a new blocking packet b' forwarded upward by the intermediate layer at this time, and the upgrade package u rolled back in the previous time slice still exists in the request injection queue of the network interface at B2, the new blocking packet b' is set as the upgrade package u' and popped out to the bypass, and the rolled-back upgrade package u is cached in the buffer vacated by b'. If there is no new blocking packet forwarded upward by the intermediate layer, the upgrade package u rolled back in the previous time slice is used as the new upgrade package u' in this time slice, as shown in FIG. Figure 7 shown.

[0040] The packet discarding of the bypass-based modular multi-core deadlock solution of this embodiment will only occur when the network interface pop-up queue at the destination node of the upgrade package is full and the request injection queue of the original border router's network interface is full, so the probability of packet discarding is extremely low. The rolled-back upgrade package will not be discarded because it resides in the network interface request injection queue. This is because when the same border router generates a new upgrade package again and pops it into the bypass, the rolled-back upgrade package will be injected into the buffer vacated by the new upgrade package, and will not remain in the request injection queue of the network interface. Therefore, even if the new upgrade package is rolled back to the original border router, the rolled-back upgrade package will not be discarded. Therefore, the discarded data packet is a data packet generated by the upper terminal node connected to the border router that has not yet been injected into the network, and can be regenerated by the missing state processing register. The network interface pop-up queue of the destination node will not be full all the time. If the response pop-up queue is full: the upper terminal will eventually process the response; if the request pop-up queue is full: the request is not processed by the upper terminal because the previous response has not been received, and the previous response will eventually reach and be processed by the upper terminal based on the bypass-based modular multi-core deadlock solution mechanism proposed in this embodiment, so that the request can be further consumed, making the request pop-up queue idle. Ordinary data packets will not be starved to death due to the preemption of output ports during the bypass process of the upgrade package. The upgrade package will reserve output ports from the border router downward, that is, the upgrade package has the highest priority in routing in the network. This will cause ordinary data packets that apply for the same output port to be temporarily preempted, but it will not cause starvation of ordinary data packets. This is because even if the upgrade package reserves the output port using the forward-looking signal to cause the ordinary data packet to be temporarily preempted, after the upgrade package is forwarded downward, the ordinary data packet will continue to apply for the output port according to fairness arbitration at the current node. In addition, there will not always be upgrade packages in a core network, because the existence of upgrade packages in the network requires several conditions to be met at the same time: Condition 1: Each border router is continuously blocked, so the blocking packets are always treated as upgrade packets; Condition 2: The routing path length of each upgrade package is the longest path d that can be reached by the border router, and the time slice length K = 2 × d; Condition 3: The network interface pop-up queues at the destination nodes of each upgrade package are full, so they must be returned by the original route.

[0041] According to the above discussion, the pop-up queue will not be infinitely full, so condition three will not always be true. There will eventually be a time when there are only normal data packets in the network, and normal packets will not starve to death.

[0042] Figure 8This is a schematic diagram of bypass construction in this embodiment. Compared with the deadlock recovery method that requires coordinating resources or adding additional buffers to break the deadlock, this embodiment only needs to use the forward signal to reserve the output port and build a bypass for the upgrade package. The whole process does not involve buffer resources. Figure 8 For example, when the upgrade package U is located at the border router B2 (state U0), the forward-looking signal carrying the destination node information is transmitted to the downstream R1 (arrow ①), and R1 reserves an output port for transmission to R2. After U reaches R1 (state U1), the forward-looking signal (arrow ②) continues to be transmitted downward, and R2 reserves an output port for transmission to R3. Similarly, when U is in R3 (state U3), the forward-looking signal is used to reserve the local output port of D for popping to NI. If there is space in the NI pop-up queue, it is popped to NI via D (state U4 to pop). It can be seen from this example that the entire process only involves the transmission of the forward-looking signal and the reservation of the output port, and there is no operation of caching the data packet in the buffer (this has not been proposed in the existing 2.5D multi-core deadlock-free design). If the pop-up queue of NI (network interface) is full, D will sense it when R3 transmits a look-ahead signal to reserve the output port of D to NI, and make a reservation in the corresponding pop-up queue of NI. Then D will build a bypass in the reverse direction to B2 and return to U (just reverse the process in the figure).

[0043] In summary, the bypass-based modular multi-core deadlock solution of this embodiment includes polling the border router by switching the time slice inside the core to trigger the blocking packet bypass mechanism; building a bypass between the border router and the destination router; reserving the network interface and fallback mechanism when the bypass packet pops up. This embodiment effectively solves the deadlock problem in the multi-core architecture by ensuring that all data packets forwarded upward by the intermediate layer can reach their destination nodes, ensuring that there will not always be deadlocks caused by cross-core circular dependencies in the network. Compared with other existing technologies, the bypass-based modular multi-core deadlock solution of this embodiment does not impose any routing restrictions, ensuring the diversity of paths for data packet transmission; does not add additional buffers, but reserves output ports downward through forward signals to build bypass transmission; does not limit the two border router selections when transmitting data packets across cores; and greatly supports the independent design of each core in the multi-core system in a modular manner, ensuring the reusability of the core. The bypass-based modular multi-core deadlock solution of this embodiment only temporarily seizes the output port when the upgrade package is bypassed and routed downward, causing the transmission of ordinary packets to lag slightly. The transmission of most data packets in the system is not affected, thus achieving better transmission efficiency. The bypass-based modular multi-core deadlock solution proposed in this embodiment has no restrictions on the selection of border routers in the cross-core data packet routing process, no restrictions on the design of routing algorithms in each core and the intermediate layer, and no restrictions on the number of virtual channels deployed in the system. The solution proposed in this embodiment does not have a path for data packet routing in the network, so it will not cause livelock. The scope of this embodiment is one core. By applying the method of this embodiment, the core can ensure that it will not fall into a cross-core deadlock. When the method of this embodiment is applied to each core globally, multiple cores do not affect each other, and their respective time slices are independently rotated in parallel, and the length of the time slice and the blocking threshold can be individually designed according to the needs of each core (the parameters are configurable). This embodiment does not use a synchronous protocol to complete the construction of the bypass.

[0044] The methods proposed for the cross-chip deadlock problem in the 2.5D multi-chip integrated system can be divided into three strategies: turn restriction, virtual channel isolation, and deadlock recovery. Compared with the existing design, the advantages and characteristics of the method of this embodiment are summarized: 1. Support for fully adaptive routing (different from the method based on turn restriction): This embodiment has no restrictions on the routing algorithm adopted by each chip and the intermediary layer, and has no restrictions on the selection of border routers in the cross-chip packet transmission path. Therefore, from a global perspective, this embodiment can support fully adaptive routing. 2. No need to add additional virtual channels (different from the method based on virtual channel allocation): The design of using virtual channels to isolate the traffic transferred in and out of the chip can also support fully adaptive routing, but it limits the global minimum number of virtual channels to at least 2. This embodiment does not have this restriction, allowing each module in the 2.5D multi-chip system to independently configure the number of virtual channels according to the network scale and traffic load requirements. 3. Ignore whether the deadlock actually occurs (different from the method based on deadlock recovery strategy): Different from other methods that are based on deadlock avoidance and deadlock recovery, this embodiment does not distinguish whether the deadlock actually occurs, and can solve the deadlock problem while alleviating congestion. 4. The scope of this embodiment is an independent single core particle, which is decoupled from the complete system and truly meets the modular design requirements.

[0045] Those skilled in the art know that the bypass-based modular multi-chip deadlock solution proposed in this embodiment can be implemented by adding logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. In addition, this embodiment also provides a modular multi-chip microprocessor, including multiple chips and a silicon interposer with through silicon vias, and the bare chips of the multiple chips are laid flat on the silicon interposer with through silicon vias to realize the interconnection of the multiple chips, and the modular multi-chip microprocessor is programmed or configured to execute the bypass-based modular multi-chip deadlock solution.

[0046] In addition, this embodiment also provides an electronic device, including a microprocessor and a memory connected to each other, wherein the microprocessor is the modular multi-core microprocessor.

[0047] In addition, the present embodiment further provides a computer-readable storage medium, in which a computer program / instruction is stored. The computer program / instruction is programmed or configured to execute the bypass-based modular multi-core deadlock solution through a processor.

[0048] In addition, the present embodiment also provides a computer program product, including a computer program / instruction, which is programmed or configured to execute the bypass-based modular multi-chip deadlock solution through a processor.

[0049] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0050] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A bypass-based modular multi-core deadlock solution, characterized in that It includes polling each border router in a time slice rotation manner within each core particle, and the processing when the time slice of the border router arrives includes: S1, determine whether there is a blocking packet forwarded upward by the intermediate layer whose blocking time exceeds the threshold in the buffer, if so, jump to step S2; otherwise, determine whether there is a rolled back upgrade package in the injection queue of the network interface, if so, jump to step S4, if there is no rolled back upgrade package, no action is taken in this time slice, end and exit; S2, sets the blocked packet in the buffer as an upgrade packet, pops it out of the buffer and routes it down along the bypass; S3, determining whether there is a rolled-back upgrade package in the injection queue of the network interface, if yes, injecting it from the injection queue of the network interface into the buffer where the blocking packet is ejected, if no, returning credit to the upstream router; S4, building a bypass downward for the upgrade package to utilize the bypass routing to the destination network interface; S5, judging whether the pop-up queue of the destination network interface is full, if not, judging that the bypass routing of the upgrade package has been completed, the current time slice ends and exits; otherwise, making a reservation in the pop-up queue of the destination network interface, and then returning to the original border router along the bypass to cache in the injection queue of the network interface of the original border router; S6, determine whether the injection queue of the network interface of the original border router is full. If so, discard the head data packet of the injection queue to cache the rolled-back upgrade package. Otherwise, directly cache the rolled-back upgrade package. This time slice ends and exits.

2. The bypass-based modular multi-chip deadlock solution according to claim 1, characterized in that: The time slice length K≥2×d is used when rotating the time slice among multiple border routers on the same core particle, where d is the longest path length reachable by the border router.

3. The bypass-based modular multi-chip deadlock solution according to claim 1, characterized in that: In step S4, constructing a bypass downward for the upgrade package means using a forward-looking signal to reserve the output port of the next-hop router applied for by the next-hop router.

4. The bypass-based modular multi-chip deadlock solution according to claim 1, characterized in that: After the head data packet of the injection queue is discarded in step S6, it also includes: after the operation of discarding the head data packet of the injection queue causes the transaction corresponding to the data packet to be unable to be completed and is perceived by the upper layer source node corresponding to the data packet through the missing status processing register MSHRs, the source node corresponding to the data packet perceives the discard operation of the data packet, regenerates the transaction corresponding to the data packet and injects the request into the network again.

5. The bypass-based modular multi-chip deadlock solution according to claim 1, characterized in that: The injection queue is a buffer located at the network interface.

6. The bypass-based modular multi-chip deadlock solution according to claim 1, characterized in that: The pop-up queue is a buffer located in the network interface.

7. A modular multi-chip microprocessor, comprising a plurality of chips and a silicon interposer with through silicon vias, wherein the bare dies of the plurality of chips are laid flat on the silicon interposer with through silicon vias to realize interconnection of the plurality of chips, characterized in that: The modular multi-chip microprocessor is programmed or configured to implement the bypass-based modular multi-chip deadlock solution as claimed in any one of claims 1 to 6.

8. An electronic device comprising a microprocessor and a memory connected to each other, wherein the microprocessor is the modular multi-chip microprocessor according to claim 7.

9. A computer-readable storage medium having a computer program / instruction stored therein, characterized in that: The computer program / instructions are programmed or configured to execute the bypass-based modular multi-chip deadlock solution as described in any one of claims 1 to 6 through a processor.

10. A computer program product comprising a computer program / instructions, characterized in that The computer program / instructions are programmed or configured to execute the bypass-based modular multi-chip deadlock solution as described in any one of claims 1 to 6 through a processor.

Citation Information

Cited By

  • Deadlock-free interconnection method and transmission method applied to chip particles and chips

    CN120710917A