Method for fusing negative and overtime retransmission strategies in chip particle interconnection interface and chip

By integrating negation and timeout retransmission strategies in the core-to-chip interconnection interface, and reusing hardware resources and state machines, the problems of high protocol compatibility and hardware overhead in the existing technology are solved, and flexibility and compatibility are improved.

CN118656316AActive Publication Date: 2024-09-17NAT UNIV OF DEFENSE TECH

Patent Information

Application Number
CN202411073144.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-09-17
Estimated Expiration
2044-08-06

AI Technical Summary

Technical Problem

The retransmission mechanism of the existing core-to-chip interconnect interface is not effectively compatible with different protocols, resulting in logical redundancy at the adapter layer, inability to reuse, and high hardware overhead.

Method used

A method is adopted to integrate negation and timeout retransmission strategies in the core-to-chip interconnect interface. By reusing the retransmission buffer memory and state machine, the configurability of the two strategies is achieved, reducing the redundancy of hardware resources, and using the timeout counter independently. .

Benefits of technology

It implements a flexible and reliable transmission method, reduces hardware overhead, is compatible with the UCIe protocol, and improves the flexibility and compatibility of the adapter layer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656316A
    Figure CN118656316A
Patent Text Reader

Abstract

The invention discloses a method for fusing negative and overtime retransmission strategies in a chip particle interconnection interface and a chip, and the method comprises the steps: configuring a selection retransmission strategy in the negative and overtime retransmission strategies for a sender and a receiver, the fused hardware resource design comprises a negative retransmission strategy and a timeout retransmission strategy, the negative retransmission strategy and the timeout retransmission strategy multiplex the same set of retransmission buffer memory bank, and the timeout retransmission strategy independently uses a retransmission timeout counter; and when the sender sends the retransmittable micro-packet to the receiver, if micro-packet retransmission is needed, the sender and the receiver complete micro-packet retransmission based on the fused hardware resource design according to a pre-configured and selected negative retransmission strategy or overtime retransmission strategy. The invention aims to realize a configurable reliable transmission mode of negative retransmission and overtime retransmission of a core particle interconnection interface protocol adapter layer, so that a user can select a used retransmission strategy according to requirements, and the hardware overhead is lower on the premise of keeping flexibility and compatibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chiplet interconnection interface protocols and circuit technologies, and in particular to a method and chip for integrating denial and timeout retransmission strategies in a chiplet interconnection interface. Background Art

[0002] The chiplet interconnect interface is the foundation for die-to-die (D2D) interconnection. The chiplet interconnect interface's hierarchical structure differs from traditional inter-chip interconnect protocols in that it has been simplified and typically divided into three layers: protocol layer, adapter layer, and physical layer. The protocol layer defines the transmission methods for various mainstream protocols over the interconnect interface, targeting inter-chiplet communication protocols in typical applications. Supported protocols include CXL 2.0, PCIe 6.0, and AXI. The adapter layer provides reliable link management for both communicating parties, including standard micropacket (Flit) format definition and link reliability transmission. The physical layer, typically consisting of a logical physical layer and an electrical physical layer, provides bitstream transmission capabilities that conform to the characteristics of the package substrate channel.

[0003] Currently, chiplet reliability transmission primarily draws on traditional inter-chip retransmission mechanisms. However, chiplet interconnect links offer novel features in terms of transmission reliability due to their short distances and high line density. Furthermore, interoperability between chiplets using different protocols places higher compatibility requirements on the chiplet interconnect interface. Different chiplet interconnect standard initiators inherited strategies for the retransmission mechanisms of the chiplet interconnect interface from their existing inter-chip interconnect protocol ecosystems, aiming for compatibility with their own existing inter-chip interconnect ecosystems without considering compatibility with other chiplet interconnect standard protocols. This results in the adapter layer retransmission mechanisms of different chiplets not being able to work together, and the adapter layer logic cannot be reused.

[0004] Currently, reliable inter-chip transmission is primarily based on a "sliding window" retransmission mechanism, employing the negative retransmission strategy (Nak+Ack, abbreviated as NA) and the timeout retransmission strategy (TimeoutRetry+Ack, abbreviated as TA). The adapter layer retransmission mechanism in the inter-chip interconnection standard also primarily inherits these two strategies. The negative retransmission strategy is currently adopted by Intel's PCIe 6.0 and CXL 2.0 protocols and has been incorporated into Intel's newly released UCIe chip interconnect interface standard. The timeout retransmission strategy is used in the Transmission Control Protocol (TCP) retransmission mechanism for reliable long-distance chip transmission. It is also used in the retransmission mechanism of the inter-chip coherent interconnect interface of the domestic Feiteng multi-processor server CPU (FT-2500), supporting reliable interconnection between up to 16 CPUs. When developing domestic chip interconnection standards, different strategies need to be considered to build a prosperous chip interconnection ecosystem.

[0005] The principle of the timeout retransmission strategy (TA strategy) is as follows: TA is implemented through a timeout counter and acknowledgment (ACK). The sender adds a sequence number to each data packet in the retransmission buffer and maintains a timeout counter. After sending a data packet to the receiver, the timeout counter is started. When the receiver successfully receives the data packet, it returns an ACK message, indicating receipt of the data and clearing it from the retransmission buffer. If the timeout counter overflows and the sender does not receive an ACK message from the receiver, a timeout retransmission is triggered, resending the data packet for which the ACK was not received.

[0006] The negative retransmission strategy (NA) works as follows: NA is implemented using ACKs and NAKs. The sender adds a sequence number to each packet in the retransmission buffer and sends the packet to the sender. Upon successful receipt of a packet, the receiver returns an ACK message, indicating receipt and removing it from the retransmission buffer. If a received packet contains a checksum error, a NAK message is returned. Receiving a NAK triggers a retransmission, resending the packet from the retransmission buffer.

[0007] When the core-particle adapter layer supports both the TA and NA policies, simply implementing each policy completely independently will result in a configuration that uses only one policy after negotiation between the interconnected core-particles, leading to logical redundancy at the adapter layer. Comparing the retransmission mechanisms of the TA and NA policies, the retransmission buffer, which occupies the most logical resources, is required and identical; the differences lie in the individual counters and management mechanisms. Therefore, it is technically feasible and meaningful to study the characteristics of the two mechanisms, identify their commonalities, and implement integrated support for both while reusing the majority of logical resources and minimizing the increase in logical resource costs. Summary of the Invention

[0008] The technical problem to be solved by the present invention: In response to the above-mentioned problems in the prior art, a method and chip for integrating negation and timeout retransmission strategies in a chip interconnection interface are provided. The present invention aims to realize a reliable transmission mode with configurable negation retransmission and timeout retransmission at the chip interconnection interface protocol adapter layer, so that users can choose the retransmission strategy to be used according to their needs, thereby reducing hardware overhead while maintaining flexibility and compatibility.

[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for integrating denial and timeout retransmission strategies in a chiplet interconnection interface includes the following steps: S101, configuring a select retransmission strategy between a negative retransmission strategy and a timeout retransmission strategy for a sender and a receiver, wherein the negative retransmission strategy and the timeout retransmission strategy have a fused hardware resource design, wherein the fused hardware resource design includes the negative retransmission strategy and the timeout retransmission strategy multiplexing a same retransmission buffer memory bank, and the timeout retransmission strategy independently using a retransmission timeout counter; S102, when the sender sends a retransmittable micropacket to the receiver, if micropacket retransmission is required, the sender and the receiver complete the micropacket retransmission based on the integrated hardware resource design according to the pre-configured negative retransmission strategy or timeout retransmission strategy.

[0010] Optionally, the hardware resource design integrated in step S101 also includes the multiplexing variables of the negative retransmission strategy and the timeout retransmission strategy including WritePointer, ReadPointer, Ack_Info, RetryNum and LinkRetrainNum, the negative retransmission strategy independently uses variables including AccAck and FreeRB, and the timeout retransmission strategy independently uses the variable AckSentTimeout, where WritePointer is the retransmission buffer write pointer, ReadPointer is the retransmission buffer read pointer, Ack_Info is the response information, RetryNum is the retransmission count counter, LinkRetrainNum is the physical layer reinitialization count counter, AccAck is the cumulative response count counter, FreeRB is the retransmission buffer idle count counter, and AckSentTimeout is the positive response timeout counter.

[0011] Optionally, the hardware resource design integrated in step S101 also includes a receiver state machine RSM that multiplexes for both the negative retransmission strategy and the timeout retransmission strategy. The receiver state machine RSM is a receiver state machine that includes at least the normal state NORMAL used in the negative retransmission strategy, and adds the receiver response state R_RSP required by the receiver state machine of the timeout retransmission strategy to send a retransmission management micropacket Retry.Rcvd to the adapter layer management micropacket control module; the normal state NORMAL and the receiver response state R_RSP are used under the timeout retransmission strategy. R_RSP performs receiver status management and enters the normal state NORMAL when requesting link recovery; in the normal state NORMAL, if a retransmittable micropacket is received and the positive response timeout counter overflows, the receiver enters the response state R_RSP, indicating that the receiver needs to send a retransmission management micropacket Retry.Rcvd to the received retransmittable micropacket at regular intervals; in the receiver response state R_RSP, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Rcvd sent by the receiver, it returns to the normal state NORMAL.

[0012] Optionally, the hardware resource design integrated in step S101 also includes the receiver multiplexing the sender state machine SSM for both the negative retransmission strategy and the timeout retransmission strategy, and the sender state machine SSM adds the receiver response state S_REQ, link retraining state LINK_RETRAIN and link termination state END required by the sender state machine of the timeout retransmission strategy on the basis of the sender state machine of at least the normal state NORMAL and the retransmission state RETRY used in the negative retransmission strategy, wherein the receiver response state S_REQ is used to send the retransmission management micropacket Retry.Timeout to the adapter layer management micropacket control module, the link retraining state LINK_RETRAIN is used to perform link retraining when the number of retransmissions exceeds a threshold, and the link termination state END is used to perform link retraining when the number of link retraining exceeds a threshold; under the timeout retransmission strategy, the normal state NORMAL, the retransmission state RETRY, the receiver response state S_REQ, the link retraining state LINK_RETRAIN and the link termination state END are used. There are five states in the link termination state END for sender status management: when reset, it is in the link retraining state LINK_RETRAIN. In the link retraining state LINK_RETRAIN, if the link is recovered successfully and there is no link retraining request, it means that the link is recovered and enters the receiver response state S_REQ; in the receiver response state S_REQ, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Timeout sent by the sender, it enters the retransmission state RETRY. If the link termination is requested, it enters the link termination state END; in the retransmission state RETRY, if the retransmission is completed, it enters the normal state NORMAL. If the timeout retransmission counter overflows, it returns to the receiver response state S_REQ; in the normal state NORMAL, if the timeout retransmission counter overflows, it is necessary to re-issue the retransmission management micropacket Retry.Timeout request micropacket and enter the receiver response state S_REQ. If the link recovery request requires link retraining, it enters the link retraining state LINK_RETRAIN.

[0013] Optionally, the hardware resource design integrated in step S101 also includes the receiver multiplexing a retransmission buffer state machine RBSM for both a negative retransmission strategy and a timeout retransmission strategy. The retransmission buffer state machine RBSM uses a retransmission buffer state machine including an idle state IDLE and a read state READ in the negative retransmission strategy and is reused for the timeout retransmission strategy; under the timeout retransmission strategy, it is in the idle state IDLE when reset. In the idle state IDLE, if the retransmission timeout counter overflows and retransmission is required, the read state READ is entered; in the read state READ, if the retransmission is completed, the idle state IDLE is returned to.

[0014] Optionally, the receiver state machine RSM, the sender state machine SSM and the retransmission buffer state machine RBSM all decide whether to use a negative retransmission strategy or a timeout retransmission strategy based on the enable signal TA_enable. If the enable signal TA_enable is 1, the timeout retransmission strategy is used, otherwise the negative retransmission strategy is used.

[0015] In addition, the present invention also provides a multi-chip chip, comprising a plurality of chiplets interconnected via a chiplet interconnection interface, wherein the chiplets are programmed or configured to execute a method for integrating denial and timeout retransmission strategies in the chiplet interconnection interface.

[0016] In addition, the present invention also provides a computer-readable storage medium, which stores a computer program or instruction, and the computer program or instruction is programmed or configured to execute the method of integrating the denial and timeout retransmission strategy in the chip interconnection interface through a processor.

[0017] In addition, the present invention also provides a computer program product, including a computer program or instructions, which are programmed or configured to execute the method of integrating the denial and timeout retransmission strategies in the chip interconnection interface through a processor.

[0018] Compared with the prior art, the present invention mainly has the following advantages: 1. Good flexibility. Compared with the single strategy of traditional chip interconnection interface adapter layer to achieve reliable transmission, the present invention can realize the configurability of traditional negative retransmission strategy and timeout retransmission strategy. Users can choose which strategy to use to achieve reliable transmission according to their needs.

[0019] 2. Good compatibility: The configurable negative retransmission and timeout retransmission strategies implemented by the present invention are compatible with the reliability transmission strategy of the UCIe protocol adapter layer and the adapter layer retransmission management micropacket.

[0020] 3. Low hardware overhead. The present invention integrates a hardware resource design for both the negation retransmission strategy and the timeout retransmission strategy. The integrated hardware resource design includes multiplexing the same retransmission buffer memory for both strategies, while the timeout retransmission strategy independently uses a retransmission timeout counter. This reduces hardware overhead while maintaining flexibility and compatibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 Schematic diagram of the basic process of the method of the embodiment of the present invention.

[0022] Figure 2 Schematic diagram of state transition of a multiplexed receiver state machine RSM in an embodiment of the present invention.

[0023] Figure 3Schematic diagram of state transition of the multiplexed sender state machine SSM in an embodiment of the present invention.

[0024] Figure 4 Schematic diagram of state transition of a multiplexed retransmission buffer state machine RBSM in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] like Figure 1 As shown, the method for integrating the denial and timeout retransmission strategies in the chiplet interconnection interface of this embodiment includes the following steps: S101 configures the sender and receiver to select a retransmission strategy from the negative retransmission strategy (NA strategy) and the timeout retransmission strategy (TA strategy). The negative retransmission strategy and the timeout retransmission strategy have a fused hardware resource design, integrating the resources used by the timeout retransmission and negative retransmission strategies. These resources include: a retransmission buffer memory reused by the two strategies; a timeout retransmission counter used only by the timeout retransmission strategy; variables that control the correct retransmission of micro-packets that need to be retransmitted, of which the read pointer, write pointer, retransmission counter, link retraining counter, and response information are resources reused by the two strategies; and a retransmission state machine reused by the two strategies, which is divided into a receiver state machine, a sender state machine, and a retransmission buffer state machine. By reusing the retransmission buffer memory, the variables that control retransmission, and the retransmission state machine, hardware overhead can be reduced. S102: When the sender sends a retransmittable micropacket to the receiver, if retransmission is required, the sender and receiver complete the retransmission of the micropacket based on a preconfigured negative retransmission strategy or a timeout retransmission strategy, all based on the integrated hardware resource design. When retransmitting the micropacket based on the preconfigured negative retransmission strategy or timeout retransmission strategy, the sender places each retransmittable micropacket into the retransmission buffer and assigns it a micropacket request sequence number (Seq). The receiver maintains a variable, Rcvd_Seq, to ​​record the expected sequence number of correctly received retransmittable micropackets. The initial value of Rcvd_Seq is 0, and its maximum value depends on the depth of the retransmission buffer. Each time the receiver correctly receives a retransmittable micropacket, Rcvd_Seq increments by 1. If the received retransmittable micropacket contains an error, Rcvd_Seq remains unchanged. If the sequence number of a received retransmittable micropacket does not match Rcvd_Seq, the micropacket is discarded. The receiver must pass the Rcvd_Seq to the sender via a retransmission management packet. The sender also maintains a variable, Send_Seq, to ​​record the latest acknowledgment sequence number in the received management packet. The sender updates Send_Seq based on the Rcvd_Seq information contained in the retransmission management packet. The difference between the NA and TA strategies lies in the retransmission triggering mechanism. With the NA strategy, upon receiving an erroneous packet, the receiver generates a retransmission request packet to the sender, which includes the Rcvd_Seq. Upon receiving the retransmission request packet, the sender retransmits all packets stored in the retransmission buffer, starting with the Rcvd_Seq sequence number. With the TA strategy, each packet is associated with a retransmission timeout counter. When the sender sends the packet, the corresponding counter is started. Expiring any of the retransmission timeout counters triggers a retransmission, triggering the sender to generate a retransmission request packet containing the Send_Seq. During retransmission, all micropackets stored in the retransmission buffer, starting with the Send_Seq sequence number, must be retransmitted. Each time the receiver correctly receives a retransmittable micropacket, Rcvd_Seq increments by 1 and generates other information, collectively referred to as retransmission acknowledgment information. This retransmission acknowledgment information can be sent via a dedicated retransmission acknowledgment management micropacket or a separate acknowledgment management micropacket. In the NA strategy, the retransmission acknowledgment information contains the number of acknowledgments generated for correctly received micropackets (AckNum). The receiver counts the number of acknowledgments generated and, at appropriate times, returns a certain number of acknowledgments to the sender via micropackets. The number of acknowledgments carried in the micropacket is represented by RtnAck. After receiving the RtnAck in the management micropacket, the sender sends a retransmission acknowledgment micropacket (Rerty.Ack) to the receiver and removes the corresponding number of micropackets from the retransmission buffer. In the TA strategy, the retransmission acknowledgment information contains the acknowledgment sequence number (AckNo).Every time the receiver successfully receives a certain number of micropackets, it will send a retransmission response micropacket (Rerty.Rcvd) to the sender. After the sender receives the management micropacket and obtains the response sequence number, it removes the sequence number and all retransmittable micropackets before the sequence number from the retransmission buffer.

[0026] In this embodiment, based on a comparative analysis of the two strategies, common counters, pointers, management micro-packets and other logics under the two strategies are integrated and designed under the premise of reusing the same set of retransmission buffer storage bodies. That is, only one set of common logic is designed, and the logical resources owned by each strategy are designed separately. In particular, the retransmission management state machine is expanded on the basis of the implementation of the NA strategy. By adding some states of the TA strategy and designing configurable transition conditions between the original states, or adding new transition conditions to the newly added states, configurable support for the NA and TA strategies is achieved with relatively small hardware overhead.

[0027] The integrated hardware resource design in step S101 of this embodiment also includes the reused variables of the negative retransmission strategy and the timeout retransmission strategy, including WritePointer, ReadPointer, Ack_Info, RetryNum, and LinkRetrainNum. The negative retransmission strategy independently uses variables including AccAck and FreeRB, and the timeout retransmission strategy independently uses the variable AckSentTimeout, where WritePointer is the retransmission buffer write pointer, ReadPointer is the retransmission buffer read pointer, Ack_Info is the response information, RetryNum is the retransmission count counter, LinkRetrainNum is the physical layer reinitialization count counter, AccAck is the cumulative response count counter, FreeRB is the retransmission buffer idle count counter, and AckSentTimeout is the positive response timeout counter. It can be seen that under the strategy of integrating NA and TA, the hardware resources in the retransmission mechanism structure are divided into three categories.

[0028] The first category is fully reused and centrally controlled resources: the retransmission buffer. This stores micropackets that have been sent but not yet acknowledged. The width of the buffer is the micropacket width, and the depth is the number of micropackets that can be stored.

[0029] The second category involves resources that are reused but configured for different functions according to different policies. Each functional component in this resource class uses the same hardware, but stores different content or implements different functions under different policies. These resources include: The retransmission buffer write pointer (WritePointer): This points to the location in the retransmission buffer where retransmittable micropackets are written. The write pointer uses a wraparound counter with a maximum value equal to the retransmission buffer depth and resets to 0. When a retransmission occurs, the retransmission buffer stops accepting new micropackets, the write pointer remains unchanged, and all micropackets in the retransmission buffer are retransmitted. Only after the retransmission is complete can new micropackets be written to the retransmission buffer and the write pointer increments again. The retransmission buffer read pointer (ReadPointer): This points to the location where micropackets need to be read from the retransmission buffer. The read pointer uses a wraparound counter with a maximum value equal to the retransmission buffer depth and resets to 0. During a retransmission, the sender increments the read pointer by 1 each time a micropacket is read from the retransmission buffer. The retransmission ends when all micropackets in the retransmission buffer have been sent (when the next position of the read pointer is the write pointer). Acknowledgement Information (Ack_Info): This information comes from the receiver. The receiver verifies the correct micropacket's latest sequence number (AckNo) or the number of correctly received micropackets to be returned (AckNum) and transmits it to the sender. This information is implemented differently depending on the policy configuration. When the NA policy is configured, the acknowledgment information is AckNum; when the TA policy is configured, the acknowledgment information is AckNo. Retransmission Counter (RetryNum): This records the number of retransmissions performed by the retransmission buffer (each retransmission retransmits all valid micropackets in the retransmission buffer). If no acknowledgment is received after the retransmission count exceeds the maximum number of consecutive retransmissions, the physical link is considered faulty and physical layer initialization is required. Physical Layer Reinitialization Counter (LinkRetrainNum): This records the number of physical layer reinitializations. If the physical link fault is not resolved after the maximum number of consecutive physical layer initializations, the link is considered unrecoverable. Retransmission Management State Machine: To implement the two configurable retransmission strategies, the state machines are designed to include the Sender State Machine (SSM), the Receiver State Machine (RSM), and the Retry Buffer State Machine (RBSM). These three state machines extend the TA strategy while satisfying the NA strategy. This design is described in detail later.

[0030] The third category consists of independent, non-reusable resources used under different policies. These resources can only be used or unused after the corresponding NA or TA policy is configured. NA resources become unused after the TA policy is configured, and vice versa. These resources include: The free retransmission buffer counter (FreeRB): This value indicates the amount of free space in the retransmission buffer and is set to the retransmission buffer depth upon reset. When a new micropacket is stored in the buffer, the counter decrements by 1. When an old micropacket is correctly received by the receiver, the counter increments by the number of correctly received micropackets (RtnAck). When the FreeRB value is 1, it indicates that there is only one free space left in the retransmission buffer, and new data micropackets cannot be written at this time. The cumulative acknowledgment counter (AccAck): This records the number of micropackets correctly received by the receiver and waiting to be sent. When a retransmittable micropacket is correctly received, AccAck increments by 1. After a certain number of acknowledgments are returned to the other party via a retransmission management micropacket, the AccAck counter is decremented by the returned value (RtnAck). Retransmission Timeout Counter (RetryTimeout): Each micropacket stored in the sender's retransmission buffer corresponds to a timeout counter. Initially, all timeout counters are stopped. When a micropacket enters the retransmission buffer, the timeout counter corresponding to the micropacket's sequence number is started. When the sender receives the acknowledgment sequence number AckNo, it clears the timeout counters corresponding to AckNo and all previous sequence numbers to 0. If any timeout counter times out, all timeout counters are stopped and retransmission is prepared. After retransmission is initiated, the timeout counter corresponding to the sequence number of the retransmitted micropacket is started, continuing to count whether the micropacket has timed out during the retransmission process. Acknowledgment Timeout Counter (AckSentTimeout): The receiver does not return a retransmission management message for each micropacket received. Instead, it only returns a retransmission management message after a certain number of correctly received micropackets have accumulated. Each time the receiver sends a retransmission management message, it resets the positive response timeout counter and restarts counting. After the timeout, it immediately sends a retransmission management message (Retry.Rcvd). If the received micropacket is erroneous or out of order, it does not need to wait for the timeout counter to overflow. It immediately sends a retransmission management message (Retry.Req) and resets the positive response timeout counter.

[0031] To ensure reliable transmission, the sender and receiver exchange retransmission-related information, storing it in retransmission management packets. In addition to retransmission management packets, the adapter also has link management packets and power management packets. To unify the management of these packets, an adapter-layer management packet control module is introduced. All retransmission management packets sent between the sender and receiver are sent to the adapter-layer management packet control module. This module acts as an intermediary, returning the corresponding signal to the sender or receiver, enabling interaction between the sender, receiver, and retransmission buffer. The integrated hardware resource design in step S101 of this embodiment further includes defining two retransmission management micropackets, Retry.Err and Retry.Ack, for the negative retransmission strategy, and defining two retransmission management micropackets, Retry.Timeout and Retry.Rcvd, for the timeout retransmission strategy. The fields of the retransmission management micropackets Retry.Err, Retry.Ack, Retry.Timeout, and Retry.Rcvd include the corresponding retransmission strategy, the adapter layer micropacket type, the retransmission management micropacket type, and the filled fields. The filled fields in the retransmission management micropacket Retry.Err include Rcvd_Seq, Ack_Info, RetryNum, and LinkRetrainNum; the filled fields in the retransmission management micropacket Retry.Ack include WritePointer, Rcvd_Seq, and Retry.Rcvd_Seq. eq and FreeRB; the fields filled in the retransmission management micropacket Retry.Err include WritePointer, Send_Seq, RetryNum, LinkRetrainNum, and FreeRB; the fields filled in the retransmission management micropacket Retry.Err include Send_Seq and Ack_Info; among them, Rcvd_Seq is the expected sequence number maintained by the receiver, Ack_Info is the acknowledgment information, RetryNum is the retransmission count counter, LinkRetrainNum is the physical layer reinitialization count counter, WritePointer is the retransmission buffer write pointer, FreeRB is the retransmission buffer free count counter, and Send_Seq is the sequence number maintained by the sender to record the latest acknowledgment sequence number AckNo received in the management micropacket. When the NA policy is configured, Retry.Err and Retry.Ack are used. Retry.Err is a retransmission management packet sent by the receiver when a CRC error occurs. Its function is to issue a retransmission request. Retry.Ack is a response packet sent by the sender when a retransmission request occurs. It also controls the retransmission process. When configured as a TA policy, Retry.Timeout and Retry.Rcvd are used.Retry.Timeout is a retransmission request packet sent by the sender after the timeout counter of a data packet overflows, controlling the retransmission process. Retry.Rcvd is a response packet containing the sequence number of the received packet sent by the receiver after a certain number of ACKs have been received. In this embodiment, the retransmission management packets Retry.Err, Retry.Ack, Retry.Timeout, and Retry.Rcvd are shown in Table 1.

[0032] Table 1 Fields of four types of retransmission management micropackets at the adapter layer

[0033] The integrated hardware resource design in step S101 of this embodiment also includes a receiver state machine (RSM) that multiplexes the receiver's negative retransmission strategy and timeout retransmission strategy, a sender state machine (SSM) that multiplexes the receiver's negative retransmission strategy and timeout retransmission strategy, and a retransmission buffer state machine (RBSM) that multiplexes the receiver's negative retransmission strategy (NA strategy) and timeout retransmission strategy (TA strategy). The functions of these three state machines are as follows: Upon receiving a retransmittable micropacket, the receiver state machine (RSM) promptly sends a retransmission-type management micropacket (Retry.Err (NA strategy) or Retry.Rcvd (TA strategy)) to the adapter layer control micropacket management module; maintains a receiver timeout counter to control the interval between Retry.Rcvd issuances; maintains a RetryNum counter under the NA strategy, and performs link retraining upon overflow; and maintains a LinkRetrainNum counter to cause link failure upon overflow. The function of the sender state machine (SSM) is to promptly send a retransmission-type management packet, Retry.Ack (NA policy) or Retry.Timeout (TA policy), to the adapter layer control packet management module when a retransmission condition is triggered. It also retransmits all packets in the RB starting from the updated read pointer. Under the TA policy, it maintains the RetryNum counter, retraining the link when it overflows, and maintains the LinkRetrainNum counter, failing the link when it overflows. The function of the retransmission buffer state machine (RBSM) is to write retransmittable packets into the RB via the write pointer. When a retransmission request is received, it controls the read pointer to point to the packet to be retransmitted, and the read pointer to the packet corresponding to Rcvd_Seq (NA policy) or Send_Seq (TA policy). It also manages the Rcvd_Seq and Send_Seq registers.

[0034] like Figure 2As shown, the receiver state machine RSM is a receiver state machine including the three states of normal state NORMAL, receiver retransmission request state R_REQ, and link retraining state LINK_RETRAIN used in the negative retransmission strategy, with the addition of the receiver response state R_RSP required by the receiver state machine of the timeout retransmission strategy for sending a retransmission management micropacket Retry.Rcvd to the adapter layer management micropacket control module; under the timeout retransmission strategy, the normal state NORMAL and the receiver response state R_RSP are used for receiver state management, and the normal state NORMAL is entered when the link is requested to be restored; in the normal state NORMAL, if a retransmittable micropacket is received and the positive response timeout counter overflows, the receiver response state R_RSP is entered, indicating that the receiver needs to send a retransmission management micropacket Retry.Rcvd to the received retransmittable micropacket at regular intervals; in the receiver response state R_RSP, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Rcvd sent by the receiver, the normal state NORMAL is returned to. Figure 2 The boxed state machine for the negative retransmission strategy (NA strategy) includes the following states: NORMAL, R_REQ, and LINK_RETRAIN. Its functions are as follows: In the NORMAL state, packets are received normally. If a packet with a parity error occurs, the receiver enters the R_REQ state, requesting retransmission. If the number of retransmissions exceeds a threshold, the link retraining state enters the LINK_RETRAIN state. When the TA strategy is integrated, NORMAL represents the normal receiver operation state and is used by both NA and TA strategies. The R_RSP state has been added to send a Retry.Rcvd management packet to the adapter layer management packet control module. The relevant signals and state transitions for the TA strategy state machine are as follows: ①: rcvd_timeout && retryable_flit indicates that a retransmittable packet has been received and the positive acknowledgment timeout counter has expired. ②: retry_rcvd_sent indicates that the adapter layer management packet control module has received a Retry.Rcvd from the receiver. ③: req_recovery, indicating a request for link recovery. It is in the NORMAL state when reset; if the req_recovery signal is set to 1, the state machine enters the NORMAL state; when rcvd_timeout is set to 1 and retryable_flit is set to 1, it enters the R_RSP state, indicating that the receiver of the received retransmittable micropacket needs to send Retry.Rcvd at regular intervals; when retry_rcvd_sent is set to 1, it enters the NORMAL state, indicating that the adapter layer management micropacket control module has received the Retry.Rcvd response micropacket. It should be noted that, see Figure 2 , the receiver state machine used by the negative retransmission strategy (NA strategy) in the box only needs the normal state NORMAL to realize the multiplexing of the receiver state machine used by the TA strategy, so Figure 2 The receiver state machine used by the negative retransmission strategy (NA strategy) in the box shown is only an example in this embodiment. In addition, other receiver state machines used by negative retransmission strategies (NA strategies) including the normal state NORMAL can also be used, and multiplexing with the receiver state machine used by the timeout retransmission strategy (TA strategy) can also be achieved.

[0035] like Figure 3 As shown, the sender state machine SSM adds the receiver response state S_REQ, link retraining state LINK_RETRAIN and link termination state END required by the sender state machine of the timeout retransmission strategy on the basis of the sender state machine including the normal state NORMAL, sender retransmission response state S_RSP and retransmission state RETRY used in the negative retransmission strategy. Among them, the receiver response state S_REQ is used to send the retransmission management micropacket Retry.Timeout to the adapter layer management micropacket control module, the link retraining state LINK_RETRAIN is used to perform link retraining when the number of retransmissions exceeds the threshold, and the link termination state END is used when the link retraining number exceeds the threshold and causes the link to fail; under the timeout retransmission strategy, the normal state NORMAL, retransmission state RETRY, receiver response state S_REQ, link retraining state LINK_RETRAIN and link termination state END are used to perform sender state Management: When reset, it is in the link retraining state LINK_RETRAIN. In the link retraining state LINK_RETRAIN, if the link is recovered successfully and there is no link retraining request, it indicates that the link is recovered and enters the receiver response state S_REQ; in the receiver response state S_REQ, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Timeout sent by the sender, it enters the retransmission state RETRY, if the link termination is requested, it enters the link termination state END; in the retransmission state RETRY, if the retransmission is completed, it enters the normal state NORMAL, if the timeout retransmission counter overflows, it returns to the receiver response state S_REQ; in the normal state NORMAL, if the timeout retransmission counter overflows, it is necessary to re-issue the retransmission management micropacket Retry.Timeout request micropacket, then enter the receiver response state S_REQ, if the link recovery request requires link retraining, it enters the link retraining state LINK_RETRAIN. Figure 3The boxed section contains the state machine used by the negative retransmission strategy (NA strategy). It includes the normal state (NORMAL), the sender retransmission response state (S_RSP), and the retransmission state (RETRY). Its functions are as follows: In the NORMAL state, no retransmission packets are required. Upon receiving a retransmission request packet, the state enters the retransmission response state, and upon sending a retransmission response packet, the state enters the retransmission state. When the TA strategy is integrated, the NORMAL and RETRY states are used by both the NA and TA strategies. The receiver response state (S_REQ) has been added to send the Retry.Timeout management packet to the adapter layer management packet control module. The link retraining state (LINK_RETRAIN) has been added to initiate link retraining when the number of retransmissions exceeds a threshold. The link termination state (END) has been added to trigger a link failure when the number of retraining exceeds a threshold. The relevant signals and state transitions of the TA strategy state machine are as follows: ①: req_recovery, indicating a link recovery request. ②: rsp_active &&!req_retrain, indicating successful link recovery with no link retraining request. ③: req_retrain, indicating a link retrain request. ④: ta_timeout. Indicates that the TA policy's timeout retransmission counter has overflowed. ⑤: retry_timeout_sent, indicating that the adapter layer management micropacket control module has received the Retry.Timeout message from the sender. ⑥: retry_done, indicating that the retransmission is complete. ⑦: ta_timeout, indicating that the TA policy's timeout retransmission counter has overflowed. ⑧: req_end, indicating a request for link termination. When reset, it is in the LINK_RETRAIN state; if rsp_active is set to 1 and req_retrain is 0, it means that the link is restored and enters the S_REQ state; if retry_timeout_sent is set to 1, it means that the adapter layer management micropacket control module has received the Retry.Timeout request micropacket and enters the RETRY state; if retry_done is set to 1, it means that the retransmission is completed and enters the NORMAL state; if ta_timeout is set to 1 in the RETRY state, it means that the timeout retransmission counter has overflowed again in this retransmission, and the Retry.Timeout request micropacket needs to be reissued, and enters the S_REQ state; if ta_timeout is set to 1 in the NORMAL state, it means that the timeout retransmission counter has overflowed, and the Retry.Timeout request micropacket needs to be issued, and enters the S_REQ state; if req_retrain is set to 1, it means that link retraining is required, and enters the LINK_RETRAIN state; if req_end is set to 1, it means that the link fails and enters the termination state. It should be noted that, see Figure 3, the sender state machine used by the negative retransmission strategy (NA strategy) in the box only needs the normal state NORMAL and the retransmission state RETRY to realize the reuse of the sender state machine used by the timeout retransmission strategy (TA strategy), so Figure 3 The sender state machine used by the negative retransmission strategy (NA strategy) in the box shown is only an example in this embodiment. In addition, other sender state machines used by NA strategies including the normal state NORMAL and the retransmission state RETRY can also be used, and can also be reused with the sender state machine used by the timeout retransmission strategy (TA strategy).

[0036] like Figure 4 As shown, the retransmission buffer state machine (RBSM) used in the negative retransmission strategy, including the idle state (IDLE) and the read state (READ), is also reused in the timeout retransmission strategy. In the timeout retransmission strategy, the state machine is in the idle state (IDLE) upon reset. In the IDLE state, if the retransmission timeout counter overflows and retransmission is required, the state machine enters the read state (READ). In the read state (READ), if retransmission is complete, the state machine returns to the idle state (IDLE). The NA and TA strategies reuse all state machines in the RBSM, but the state machine transition signals differ. Both the negative retransmission strategy (NA strategy) and the timeout retransmission strategy (TA strategy) use these two state machines. In the IDLE state, there is no retransmission request, and only the write pointer increments. In the read state (READ), if a retransmission request occurs, writing to the retransmission buffer stops and retransmission begins from the read pointer. The relevant signals and state transitions in the TA strategy state machine are as follows: ①: retry_done, indicating that retransmission is complete. ②: na_err || ta_timeout, indicating a retransmission is triggered under the NA policy or a request is triggered under the TA policy. Upon reset, the device is in the IDLE state. Under the NA policy, if na_err is set to 1, a parity error occurs and retransmission is required, entering the READ state. Under the TA policy, if ta_timeout is set to 1, a retransmission is required due to the retransmission timeout counter overflow, entering the READ state. If retry_done is set to 1, retransmission is complete and the device enters the IDLE state.

[0037] In this embodiment, the receiver state machine RSM, the sender state machine SSM and the retransmission buffer state machine RBSM all decide whether to use the negative retransmission strategy or the timeout retransmission strategy based on the enable signal TA_enable. If the enable signal TA_enable is 1, the timeout retransmission strategy is used, otherwise the negative retransmission strategy is used.

[0038] In summary, the method for integrating the negation and timeout retransmission strategies in the core-grain interconnect interface of this embodiment is that the sender and the receiver configure the retransmission strategy from the negation retransmission strategy (NA strategy) and the timeout retransmission strategy (TA strategy). The negation retransmission strategy and the timeout retransmission strategy have a fused hardware resource design. When the sender sends a retransmittable micropacket to the receiver, if the micropacket needs to be retransmitted, the sender and the receiver complete the micropacket retransmission based on the pre-configured negation retransmission strategy or the timeout retransmission strategy based on the fused hardware resource design. The fused hardware resource design has the following advantages: (1) Compared with the single strategy of the traditional core-grain interconnect interface adapter layer to achieve reliable transmission, this embodiment can achieve the configurability of the traditional negation retransmission strategy and the timeout retransmission strategy. The user can choose which strategy to use to achieve reliable transmission according to their needs. (2) The configurable strategy of the negation retransmission and timeout retransmission strategy implemented in this embodiment is compatible with the reliability transmission strategy of the UCIe protocol adapter layer and the adapter layer retransmission management micropacket. (3) In this embodiment, the negation retransmission strategy and the timeout retransmission strategy have a fused hardware resource design. The fused hardware resource design includes the negation retransmission strategy and the timeout retransmission strategy reusing the same set of retransmission buffer storage bodies, and the timeout retransmission strategy independently using the retransmission timeout counter, thereby reducing hardware overhead while maintaining flexibility and compatibility.

[0039] In addition, this embodiment also provides a multi-chiplet chip, comprising a plurality of chiplets interconnected via a chiplet interconnection interface, wherein the chiplets are programmed or configured to execute a method for integrating a denial and timeout retransmission strategy in the chiplet interconnection interface.

[0040] In addition, this embodiment also provides a computer-readable storage medium, which stores a computer program or instruction. The computer program or instruction is programmed or configured to execute the method of integrating the denial and timeout retransmission strategy in the chip interconnection interface through a processor.

[0041] In addition, this embodiment also provides a computer program product, including a computer program or instructions, which are programmed or configured to execute the method of integrating the denial and timeout retransmission strategies in the chiplet interconnection interface through a processor.

[0042] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface, characterized in that: The steps include: S101, configuring a selection retransmission strategy between a negative retransmission strategy and a timeout retransmission strategy for a sender and a receiver, wherein the negative retransmission strategy and the timeout retransmission strategy have a fused hardware resource design, wherein the fused hardware resource design includes the negative retransmission strategy and the timeout retransmission strategy multiplexing the same set of retransmission buffer storage bodies, and the timeout retransmission strategy independently uses a retransmission timeout counter; S102, when the sender sends a retransmittable micro-packet to the receiver, if the micro-packet needs to be retransmitted, the sender and the receiver complete the micro-packet retransmission based on the integrated hardware resource design according to the pre-configured negative retransmission strategy or timeout retransmission strategy.

2. The method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface according to claim 1, characterized in that: The hardware resource design integrated in step S101 also includes the variables reused by the negative retransmission strategy and the timeout retransmission strategy, including WritePointer, ReadPointer, Ack_Info, RetryNum and LinkRetrainNum. The variables independently used by the negative retransmission strategy include AccAck and FreeRB. The timeout retransmission strategy independently uses the variable AckSentTimeout, wherein WritePointer is the retransmission buffer write pointer, ReadPointer is the retransmission buffer read pointer, Ack_Info is the response information, RetryNum is the retransmission count counter, LinkRetrainNum is the physical layer reinitialization count counter, AccAck is the cumulative response count counter, FreeRB is the retransmission buffer idle count counter, and AckSentTimeout is the positive response timeout counter.

3. The method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface according to claim 2, characterized in that: The integrated hardware resource design in step S101 also includes a receiver state machine RSM multiplexing for both a negative retransmission strategy and a timeout retransmission strategy, wherein the receiver state machine RSM is a receiver state machine including at least a normal state NORMAL used by the negative retransmission strategy and adds a receiver response state R_RSP required by the receiver state machine of the timeout retransmission strategy for sending a retransmission management micro-packet Retry.Rcvd to the adapter layer management micro-packet control module; Under the timeout retransmission strategy, the normal state NORMAL and the receiver response state R_RSP are used to manage the receiver state. When the link recovery is requested, the normal state NORMAL is entered; in the normal state NORMAL, if a retransmittable micropacket is received and the affirmative response timeout counter overflows, the receiver response state R_RSP is entered, indicating that the receiver needs to send a retransmission management micropacket Retry.Rcvd at regular intervals for the received retransmittable micropacket; in the receiver response state R_RSP, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Rcvd sent by the receiver, it returns to the normal state NORMAL.

4. The method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface according to claim 3, characterized in that: The hardware resource design integrated in step S101 also includes that the receiver multiplexes the sender state machine SSM for both the negative retransmission strategy and the timeout retransmission strategy. The sender state machine SSM adds the receiver response state S_REQ, link retraining state LINK_RETRAIN and link termination state END required by the sender state machine of the timeout retransmission strategy on the basis of the sender state machine including at least the normal state NORMAL and the retransmission state RETRY used in the negative retransmission strategy, wherein the receiver response state S_REQ is used to send the retransmission management micropacket Retry.Timeout to the adapter layer management micropacket control module, the link retraining state LINK_RETRAIN is used for the link retraining state when the number of retransmissions exceeds the threshold, and the link termination state END is used for the link retraining state when the number of link retraining exceeds the threshold and causes the link to fail; under the timeout retransmission strategy, the normal state NORMAL, the retransmission state RETRY, the receiver response state S_REQ, the link retraining state LINK_RETRAIN and the link termination state END are used. There are five states in total for sender status management: when reset, it is in the link retraining state LINK_RETRAIN. In the link retraining state LINK_RETRAIN, if the link is recovered successfully and there is no link retraining request, it means that the link is recovered and enters the receiver response state S_REQ; in the receiver response state S_REQ, if the adapter layer management micropacket control module receives the retransmission management micropacket Retry.Timeout sent by the sender, it enters the retransmission state RETRY, if the link termination is requested, it enters the link termination state END; in the retransmission state RETRY, if the retransmission is completed, it enters the normal state NORMAL, if the timeout retransmission counter overflows, it returns to the receiver response state S_REQ; in the normal state NORMAL, if the timeout retransmission counter overflows, it is necessary to re-issue the retransmission management micropacket Retry.Timeout request micropacket, then enter the receiver response state S_REQ, if the link recovery request requires link retraining, then enter the link retraining state LINK_RETRAIN.

5. The method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface according to claim 4, characterized in that: The integrated hardware resource design in step S101 also includes the receiver multiplexing a retransmission buffer state machine RBSM for both a negative retransmission strategy and a timeout retransmission strategy, wherein the retransmission buffer state machine RBSM includes a retransmission buffer state machine in an idle state IDLE and a read state READ used in the negative retransmission strategy and is reused in the timeout retransmission strategy; Under the timeout retransmission strategy, it is in the idle state IDLE when reset. In the idle state IDLE, if the retransmission timeout counter overflows and needs to be retransmitted, it enters the read state READ; In the read state READ, if the retransmission is completed, the idle state IDLE is returned.

6. The method for integrating negation and timeout retransmission strategies in a chiplet interconnection interface according to claim 5, characterized in that: The receiver state machine RSM, the sender state machine SSM and the retransmission buffer state machine RBSM all decide to use a negative retransmission strategy or a timeout retransmission strategy according to the enable signal TA_enable. If the enable signal TA_enable is 1, the timeout retransmission strategy is used, otherwise the negative retransmission strategy is used.

7. A multi-chip chip, comprising a plurality of chips interconnected by a chip interconnection interface, characterized in that: The chiplet is programmed or configured to execute the method for integrating the negation and timeout retransmission strategies in the chiplet interconnection interface according to any one of claims 1 to 6.

8. A computer-readable storage medium having a computer program or instruction stored therein, characterized in that: The computer program or instruction is programmed or configured to execute the method for integrating the denial and timeout retransmission strategies in the chip interconnection interface described in any one of claims 1 to 6 through a processor.

9. A computer program product comprising a computer program or instructions, characterized in that The computer program or instruction is programmed or configured to execute the method for integrating the denial and timeout retransmission strategies in the chip interconnection interface described in any one of claims 1 to 6 through a processor.

Citation Information

Patent Citations

  • Data retransmission method and data retransmission device

    CN110784289A

  • Interconnection interface

    CN113868172A

  • Protocol controller, protocol control method, chip particle, system on chip and electronic equipment

    CN117453596A

  • Interface circuit between protocol layer and adapter layer facing core particle interconnection interface and chip

    CN117834755A

  • ARQ mechanism able to automatically request retransmissions for multiple rejections

    CN1379557A

Cited By

  • Data transmission method based on UCIe, artificial intelligence chip, medium and electronic device

    CN120723699A