A method for allocating bandwidth on a transmission bus and a chip

By configuring bidirectional bit lines and dynamically adjusting the transmission direction in bidirectional data transmission between chips, the problem of low bus bandwidth utilization is solved, and more efficient data transmission is achieved.

CN123123067APending Publication Date: 2026-11-17HYGON INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In bidirectional data transmission between chips, existing technologies struggle to fully utilize bus bandwidth, especially when the demand for unidirectional data transmission is low, leaving the bus in the other direction idle, leading to resource waste and potential arbitration delay issues.

Method used

By configuring some bit lines as bidirectional bit lines and dynamically adjusting the data transmission direction using the control bus, the transmission direction of the data bus can be switched in real time according to needs, thus achieving flexible bandwidth allocation.

Benefits of technology

Effectively utilize bus bandwidth, reduce resource waste, lower arbitration latency, and improve data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123067A_ABST
    Figure CN123123067A_ABST
Patent Text Reader

Abstract

This application discloses a transmission bus bandwidth allocation method and chip, relating to the field of integrated circuit design technology. It is invented to improve the utilization rate of bus bandwidth. The transmission bus bandwidth allocation method of this application is applied to a transmission bus connecting a first end and a second end. The transmission bus includes a data bus containing several parallel bit lines. At least some bit lines of the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end. The transmission bus bandwidth allocation method includes: detecting the data transmission demand of the data bus in a first direction and a second direction; when the data transmission demand in any direction is lower than its corresponding transmission threshold, the data transmission direction of the bit lines of the data bus configured in that direction that support bidirectional data transmission can be dynamically switched. This application is applicable to scenarios of chip-to-chip interconnection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of integrated circuit design technology, and in particular to a method for allocating bandwidth on a transmission bus and a chip. Background Technology

[0002] With the rapid development of artificial intelligence, high-performance computing and data center applications, bidirectional data transmission is widely used in various business scenarios.

[0003] Taking the interconnection between two chips in advanced chiplet packaging technology (multiple chips packaged together) as an example, see... Figure 1 Typically, communication between two chips is bidirectional, enabling data transfer from chip 1 to chip 2 and vice versa. To meet this bidirectional data transfer requirement, two fixed-bandwidth buses are usually used, each responsible for data transmission in one direction. However, in practical applications, the bidirectional bandwidth requirements between two interconnected chips may not be consistent. For example, when only one direction requires data transfer, the data bus in the other direction may be idle. Therefore, it is difficult to fully utilize the bus bandwidth in both directions. Summary of the Invention

[0004] In view of this, embodiments of this application provide a bandwidth allocation method and chip that can improve the utilization rate of bus bandwidth.

[0005] In a first aspect, embodiments of this application provide a transmission bus bandwidth allocation method applied to a transmission bus connecting a first end and a second end. The transmission bus includes a data bus containing a plurality of parallel bit lines connected between the first end and the second end. At least some bit lines in the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end. The transmission bus also includes a control bus controlling the data transmission direction of each bidirectional bit line in the data bus. The transmission bus bandwidth allocation method includes: detecting data transmission demand of the data bus in the first direction and the second direction; when the data transmission demand in the first direction is lower than a first threshold, reconfiguring at least some bit lines in the data bus originally configured for transmission in the first direction for transmission in the second direction; and when the data transmission demand in the second direction is lower than a second threshold, reconfiguring at least some bit lines in the data bus originally configured for transmission in the second direction for transmission in the first direction.

[0006] According to one embodiment of this application, a plurality of parallel bit lines in a data bus are divided into multiple bit line groups, and the bit lines in each bit line group have the same transmission direction; when the data transmission demand in the first direction is lower than a first threshold, at least some bit lines in the data bus that were originally configured for transmission in the first direction are reconfigured for transmission in the second direction, including: when the data transmission demand in the first direction is lower than the first threshold, reconfiguring the first bit line group in the data bus that was originally configured for transmission in the first direction for transmission in the second direction.

[0007] According to one embodiment of this application, each bit line in the data bus is configured as a bidirectional bit line; the control bus includes a first control bus and a second control bus, the first control bus is used to transmit a first direction control signal, and the second control bus is used to transmit a second direction control signal; the first direction control signal and the second direction control signal jointly control the data transmission direction of each bit line, such that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to a preset ratio relationship.

[0008] According to one embodiment of this application, the first direction is transmission from the first end to the second end; the second direction is transmission from the second end to the first end; the step of reconfiguring at least some bit lines in the data bus originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than a first threshold includes: when the data transmission demand in the first direction is lower than the first threshold, the first end sends bus usage right transfer information to the second end through the first control bus; the bus usage right transfer information includes a first target bit line to be transferred and a corresponding transfer duration; the second end receives the bus usage right transfer information and, based on the data transmission demand in the second direction, sends bus usage right confirmation information to the first end through the second control bus.

[0009] According to one embodiment of this application, the second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end via the second control bus. This includes: the second end receiving the bus usage right transfer information and determining whether the first target bit line is needed based on the data transmission requirements in the second direction; if so, then using the first target bit line, it sends first data to the first end within the corresponding transfer duration, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; if not, then it sends bus usage right confirmation information to the first end via the second control bus, keeping the transmission direction of the first target bit line unchanged.

[0010] According to one embodiment of this application, the method further includes: when the data transmission demand in the first direction exceeds the first threshold, the first end sends a bit line usage request to the second end; the bit line usage request includes at least: bus width, usage duration, and request urgency.

[0011] According to one embodiment of this application, after the first end sends a bit line usage request to the second end when the data transmission demand in the first direction exceeds the first threshold, the method further includes: the second end receiving the bit line usage request, determining a second target bit line to be transferred and a corresponding transfer duration based on the bus width, the usage duration, the urgency of the request, and the data transmission demand in the second direction; and sending the second target bit line and the corresponding transfer duration to the first end through a second control bus.

[0012] Secondly, embodiments of this application also provide a chip applied to the transmission bus bandwidth allocation method described in any of the first aspects above, including a first end, a second end, and a transmission bus connected between the first end and the second end. The transmission bus includes a data bus containing a plurality of parallel bit lines connected between the first end and the second end; wherein at least some bit lines in the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end; the transmission bus further includes a control bus for controlling the data transmission direction of each bidirectional bit line in the data bus; and further includes: a detection module for detecting the data transmission demand of the data bus in the first direction and the second direction; and a self-arbitration module for reconfiguring at least some bit lines in the data bus originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than a first threshold; and reconfiguring at least some bit lines in the data bus originally configured for transmission in the second direction for transmission in the first direction when the data transmission demand in the second direction is lower than a second threshold.

[0013] According to one embodiment of this application, a plurality of parallel bit lines in a data bus are divided into multiple bit line groups, and the bit lines in each bit line group have the same transmission direction; the self-arbitration module is further configured to reconfigure the first bit line group originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than a first threshold.

[0014] According to one embodiment of this application, each bit line in the data bus is configured as a bidirectional bit line; the control bus includes a first control bus and a second control bus, the first control bus is used to transmit a first direction control signal, and the second control bus is used to transmit a second direction control signal; the first direction control signal and the second direction control signal jointly control the data transmission direction of each bit line, such that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to a preset ratio relationship.

[0015] According to one embodiment of this application, the first direction is transmission from the first end to the second end; the second direction is transmission from the second end to the first end; the self-arbitration module is specifically used to send bus usage right transfer information to the second end through the first control bus when the data transmission demand in the first direction is lower than a first threshold; the bus usage right transfer information includes a first target bit line to be transferred and a corresponding transfer duration; the second end receives the bus usage right transfer information and, based on the data transmission demand in the second direction, sends bus usage right confirmation information to the first end through the second control bus.

[0016] According to one embodiment of this application, the self-arbitration module is further configured to receive the bus usage right transfer information at the second end, and determine whether the first target bit line is needed based on the data transmission requirements in the second direction; if so, the first target bit line is used to send first data to the first end within the corresponding transfer time, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; if not, the bus usage right confirmation information is sent to the first end through the second control bus to keep the transmission direction of the first target bit line unchanged.

[0017] This application provides a transmission bus bandwidth allocation method and chip, applied to a transmission bus connecting a first end and a second end. The transmission bus includes a data bus containing a plurality of parallel bit lines, wherein at least some bit lines are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end. By real-time detection of data transmission demand in the first and second directions of the data bus, when the data transmission demand in either direction is lower than its corresponding transmission threshold, the data transmission direction of the bit lines configured in that direction that support bidirectional data transmission can be dynamically switched. This enables dynamic adjustment of the data bus transmission direction based on data transmission demand, thereby making full use of the bandwidth. Attached Figure Description

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

[0019] Figure 1 This is a schematic diagram of a bidirectional data transmission scheme in the prior art; Figure 2 This is a schematic diagram of another bidirectional data transmission scheme in the prior art; Figure 3 This is a schematic flowchart of a transmission bus bandwidth allocation method provided in an embodiment of this application; Figure 4 This is a schematic diagram of a transmission bus bandwidth allocation method provided in an embodiment of this application; Figure 5 A schematic diagram of a transmission bus bandwidth allocation method provided in another embodiment of this application; Figure 6 This is a schematic diagram of a chip architecture provided in an embodiment of this application; Figure 7 This is a schematic diagram of a bus usage right transfer process provided in an embodiment of this application. Detailed Implementation

[0020] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0021] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0022] Packaging multiple chips together can improve the performance of a single chip and solve the problem that different functional modules require different manufacturing processes. Therefore, chiplet technology is widely used in current chip design.

[0023] The purpose of chiplets is not simply to stack several chips together to save package size. Multiple chips packaged together can be interconnected via a substrate. With state-of-the-art COWOS packaging technology, multiple chips within the same package can also be connected together via internal interposers. Chips connected by packages or interposers have shorter trace distances, less signal interference, and increased trace density. Therefore, chiplet technology can significantly improve the transmission bandwidth between multiple chips, reduce transmission latency, and enhance the overall performance of the system.

[0024] This application uses the interconnection between two chips in chiplet technology as an example for illustration, such as... Figure 1 As shown, communication between two chips is usually bidirectional, with data being transmitted from chip 1 to chip 2 and simultaneously from chip 2 to chip 1.

[0025] To address the need for bidirectional data transmission, existing technologies typically employ two methods. Method one uses two sets of buses: from chip 1's perspective, one set is used for data transmission from chip 2 to chip 1, and the other for data transmission between chip 2 and chip 1. Method two combines the two sets of buses into one, with the bus designed to support bidirectional transmission, such as... Figure 2 As shown.

[0026] However, Method 1 uses a dedicated data bus for data transmission in both directions. Therefore, when only one direction requires data transmission, the data bus in the other direction remains idle, failing to fully utilize bandwidth. Method 2, because the bus uses bidirectional data transmission, requires a dedicated arbitration circuit to ensure that data transmission in both directions does not occur simultaneously, preventing conflicts. Furthermore, using an arbitration circuit introduces additional arbitration delay.

[0027] Therefore, this application provides a method for allocating transmission bus bandwidth, which can dynamically switch the data transmission direction when the bus bandwidth is fixed, and switch according to the bandwidth requirements of the transmission direction to make full use of the bus bandwidth.

[0028] See Figure 3This application provides a transmission bus bandwidth allocation method, applied to a transmission bus connecting a first end and a second end. The transmission bus includes a data bus containing a plurality of parallel bit lines connected between the first end and the second end. At least some bit lines in the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end. The transmission bus also includes a control bus for controlling the data transmission direction of each bidirectional bit line in the data bus.

[0029] See Figures 3-5 The transmission bus bandwidth allocation method provided in this application embodiment is illustrated using the interconnection between two chips in chiplet technology as an example. The first end is the first chip, and the second end is the second chip. The transmission bus bandwidth allocation method includes the following steps: S110. Detect the data transmission requirements of the data bus in the first direction and the second direction.

[0030] S120. When the data transmission demand in the first direction is lower than the first threshold, at least some of the bit lines in the data bus that were originally configured for transmission in the first direction are reconfigured for transmission in the second direction. S130. When the data transmission demand in the second direction is lower than the second threshold, at least some of the bit lines in the data bus that were originally configured for transmission in the second direction are reconfigured for transmission in the first direction.

[0031] The transmission bus bandwidth allocation method provided in this application embodiment is illustrated by taking the interconnection between two chips in chiplet technology as an example. The first end is the first chip, and the second end is the second chip. The first chip and the second chip may not need to transmit data continuously. Therefore, the data transmission demand of the data bus in the first and second directions is detected in real time. When the data transmission demand in either direction is lower than its corresponding transmission threshold, the data transmission direction of the bit lines configured in that direction that support bidirectional data transmission can be dynamically switched. The data transmission direction of the data bus can be dynamically adjusted based on the data transmission demand, thereby making full use of the bandwidth.

[0032] In some embodiments, a plurality of parallel bit lines in a data bus are divided into multiple bit line groups, and the bit lines in each bit line group have the same transmission direction.

[0033] The step of reconfiguring at least some bit lines in the data bus originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than the first threshold includes: reconfiguring the first bit line group in the data bus originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than the first threshold.

[0034] In this embodiment, each bit line in the data bus is configured as a bidirectional bit line, enabling bidirectional data transmission. The transmission direction can be controlled individually for each bit line. In practical applications, several parallel bit lines in a data bus can be divided into multiple bit line groups, with the bit lines in each group having the same transmission direction. This allows for independent transmission direction control for each group. For example, several parallel bit lines of the data bus can be evenly divided into four bit line groups. The first and second bit line groups are configured for transmission in the first direction, while the third and fourth bit line groups are configured for transmission in the second direction. When the data transmission demand in the first direction falls below a first threshold, the first bit line group, originally configured for transmission in the first direction, is reconfigured for transmission in the second direction. This grouped control ensures flexibility in direction configuration to adapt to dynamic bandwidth changes, while the shared control of the bit lines in each bit line group simplifies the hardware control circuitry, effectively saving chip area and reducing the complexity of circuit layout and routing.

[0035] In some embodiments, each bit line in the data bus is configured as a bidirectional bit line; the control bus includes a first control bus and a second control bus, the first control bus being used to transmit a first direction control signal, and the second control bus being used to transmit a second direction control signal; the first direction control signal and the second direction control signal jointly control the data transmission direction of each bit line, such that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to a preset ratio relationship.

[0036] In this embodiment, the data bus is used for data exchange between the first and second ends. It requires a high-bandwidth data transmission channel, operates at a high frequency, and has a large bandwidth, such as common 64-bit or 128-bit buses. The first control bus originates from the first end and is used to transmit first-direction control signals, while the second control bus originates from the second end and is used to transmit second-direction control signals. Both the first and second control buses are unidirectional signal transmissions with low data volume; in this embodiment, a 1-2 bit bus is used. Each bit line in the data bus is configured as a bidirectional bit line, enabling bidirectional data transmission. Several parallel bit lines of the data bus are evenly divided into four bit line groups, each with the same basic bandwidth capacity. The first and second direction control signals jointly control the data transmission direction of each bit group, ensuring that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to any one of 0:4, 1:3, 2:2, 3:1, and 4:0. This application does not specifically limit the grouping method and number of the several parallel bit lines of the data bus; these can be specifically limited according to actual usage.

[0037] In this embodiment, in addition to transmitting direction control signals, the first control bus and the second control bus are also used to transmit control information between the first end and the second end, such as bus usage right transfer information, bus usage right confirmation information, and bit line usage request.

[0038] In some embodiments, the first direction is from the first end to the second end; the second direction is from the second end to the first end.

[0039] When the data transmission demand in the first direction is lower than a first threshold, at least some bit lines in the data bus originally configured for transmission in the first direction are reconfigured for transmission in the second direction via the first control bus. This includes: when the data transmission demand in the first direction is lower than the first threshold, the first end sends bus usage right transfer information to the second end via the first control bus; the bus usage right transfer information includes a first target bit line to be transferred and a corresponding transfer duration; the second end receives the bus usage right transfer information and, based on the data transmission demand in the second direction, sends bus usage right confirmation information to the first end via the second control bus.

[0040] In this embodiment, the first direction is defined as transmission from the first end to the second end, and the second direction is transmission from the second end to the first end. Before dynamic bandwidth allocation, the bits in the data bus are typically grouped to allow independent direction control for each group of bits. Specifically, before dynamic bandwidth allocation, the configuration of the data lines between the first segment and the second end is pre-initialized to determine whether the transmission direction of each group of bits is the first direction or the second direction.

[0041] Specifically, before performing dynamic bandwidth allocation, please refer to... Figure 5 The first terminal 1 is the first chip, the second terminal 2 is the second chip, the data bus is B, and the bus width is 128 bits. The bit lines in the data bus B are pre-grouped, for example, into four groups: B0, B1, B2, and B3, which are four sub-buses. This allows the transmission bandwidth from the first chip to the second chip to support 0, 1 / 4, 1 / 2, and 1 times the total bandwidth, respectively. Conversely, the transmission bandwidth from the second chip to the first chip supports the same configuration. Then, through static configuration or software notification, it is pre-determined during power-on or link negotiation whether B0, B1, B2, and B3 are managed by the first chip or the second chip. In this embodiment, the first chip manages the B0 and B1 sub-buses, and the second chip manages the B2 and B3 sub-buses. Figure 5As shown, the transmission direction of data sub-buses B0 and B1 is determined to be the first direction, and the data transmission direction is from the first chip to the second chip. The first chip can use data sub-buses B0 and B1 to transmit data to the second chip at any time. The transmission direction of data sub-buses B2 and B3 is determined to be the second direction, and the data transmission direction is from the second chip to the first chip. The second chip can use data sub-buses B2 and B3 to transmit data to the first chip at any time.

[0042] The first and second chips may not need to transmit data continuously. Therefore, the data transmission demand of the data bus in the first and second directions is monitored in real time. When the data transmission demand in the first direction is lower than a first threshold, that is, when the first chip determines that there is no data transmission demand within a preset time period, it can transfer the idle time slot of the data sub-bus it manages to the second chip, so that the second chip can use it immediately when there is a data transmission demand. Specifically, the first chip obtains the data transmission demand / bandwidth demand information in the first direction, that is, it obtains the data transmission demand / bandwidth demand information in the direction from the first chip to the second chip. If there is no data transmission demand within the preset time period or data can be transmitted without using the full bandwidth, it determines the first target bit line that can be transferred and the corresponding transfer duration. This information is packaged into bus usage right transfer information and sent to the second chip through the first control bus. After receiving the bus usage right transfer information, the second chip can use the first target bit line to transmit data to the first chip within the corresponding transfer duration. Only after the second chip sends bus usage right confirmation information to the first chip through the second control bus can the first chip reuse the first target bit line to transmit data to the second chip.

[0043] In this embodiment, data transmission on data bus B is performed in time slots, i.e., the transfer duration in this embodiment. The time occupied by each transmission is allocated according to time slots. The maximum length of a time slot is determined by system design requirements, and the duration is usually on the order of tens of nanoseconds. Data transmission on data buses such as B0, B1, B2, and B3 in this embodiment is based on time slots. Each time slot / transfer duration is preceded by a synchronization header and a number. The synchronization header is a predefined fixed binary code stream used to identify the start boundary of each time slot, such as, but not limited to, the sequence 0101. The time slot number is the time slot identifier field immediately following the synchronization header, used to distinguish different time slots and / or buses. It uniquely marks each time slot in each allocation cycle and can be reused after confirmation. The combination of the synchronization header and the number allows idle time slots to be directly transferred without additional transfer start / end handshake signals. The maximum number of consecutive transfer time slots that can be supported needs to be determined in the first and second directions to enable the transfer of the entire bandwidth of the current data bus to the other party. For example, if a time slot / transfer duration is 10ns, and the delay from transferring an idle time slot to receiving confirmation of usage rights from the other end is 30ns, then the maximum number of time slot codes that need to be supported is 30ns / 10ns = 3. Taking the data bus B0 as an example, the transfer of bus usage rights for B0 begins when the first chip issues a transfer command through the first control bus C1 and continues until it receives confirmation of bus usage rights from the second chip. The transfer of bus usage rights is temporary, based on time slots. Once the time slot is used up, the bus usage rights are reclaimed to the default manager. For example, after the first chip issues transfer commands for B0-0, B0-1, and B0-2, it loses its usage rights to the data sub-bus B0 until it receives confirmation of usage rights for B0-2 and regains its usage rights to B0.

[0044] Specifically, the first chip can use data sub-buses B0 and B1 to transmit data to the second chip. When the first chip obtains the current data transmission requirement / bandwidth requirement information and finds that data transmission can be achieved without using the full bandwidth, it can send the available bit line and corresponding idle duration to the second chip through the first control bus C1. For example, the first chip can tell the second chip that time slot B0-1 can be used through the first control bus C1. The first chip can continuously transfer time slots. For example, the first chip can continuously transfer the bus usage rights of time slots B0-1, B0-2, B0-3, B1-0, etc. through the first control bus C1. If the second chip receives multiple bus usage right transfer information consecutively, it must confirm the usage rights in the order of the received numbers and cannot confirm them out of order.

[0045] See Figure 7As shown, R0, R1, R2, and R3 represent bus usage right transfer information sent by the first terminal through the first control bus C1, while A0, A1, A2, and A3 represent bus usage right transfer confirmations sent by the second terminal through the second control bus C2. When the bus usage right is high, the second terminal has the right to use the bus; when the bus usage right is low, the first terminal has the right to use the bus. One scale mark on the time axis represents 10 ns. Bus control is by default held by the first terminal.

[0046] According to one embodiment of this application, the second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end via the second control bus. This includes: the second end receiving the bus usage right transfer information and determining whether the first target bit line is needed based on the data transmission requirements in the second direction; if so, then using the first target bit line, sending first data to the first end within the corresponding transfer duration, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; if not, then sending bus usage right confirmation information to the first end via the second control bus, keeping the transmission direction of the first target bit line unchanged.

[0047] In this embodiment, after receiving the bus usage right transfer information actively sent by the first chip, the second end, i.e. the second chip, can use the corresponding target bit line or not use the corresponding target bit line and directly use the data bus managed by the second chip.

[0048] Specifically, after receiving the bus usage right transfer information actively sent by the first chip, the second chip determines whether it needs to use the first target bit line based on the data transmission requirements / bandwidth information in the second direction. If the second chip needs to use the target bit line, it uses it to send first data to the first end within the corresponding transfer duration, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction, changing the transmission direction of the target bit line. The first data carries bus usage right confirmation information, indicating that the bus usage for that duration has been completed. For example, if the first chip receives bus usage right confirmation information from the second chip, it means... If the target bit line managed by the first chip has been used up by the second chip, the first chip can reclaim the right to use the target bit line and can use the target bit line to transmit data to the second chip again at any time. Alternatively, if it is determined that the second chip does not need the right to use the target bit line based on the current data transmission requirements, that is, the second chip can realize data transmission using its own data sub-bus, then the second chip directly sends a bus usage right confirmation information to the first chip through the second control bus. After receiving the bus usage right confirmation information from the second control bus, the first chip reclaims the right to use the target bit line, and the transmission direction of the target bit line remains unchanged from the first chip to the second chip.

[0049] In some embodiments, when the data transmission demand in the second direction is lower than a second threshold, reconfiguring at least a portion of the bit lines in the data bus originally configured for transmission in the second direction for transmission in the first direction includes: When the data transmission demand in the second direction is lower than the second threshold, the second end sends bus usage right transfer information to the first end through the second control bus; the bus usage right transfer information includes the third target bit line to be transferred and the corresponding transfer duration; The first end receives the bus usage right transfer information and, based on the data transmission requirements in the first direction, sends bus usage right confirmation information to the second end.

[0050] In this embodiment, similar to the first direction, when the data transmission demand in the second direction is lower than the second threshold, that is, when the second chip determines that there is no data transmission demand within a preset time period, it can transfer the idle time slots of the data subbus it manages to the first chip, so that the first chip can use them immediately when there is a data transmission demand. The specific implementation method and the type of idle time slot transfer by the first chip will not be described in detail here.

[0051] According to one embodiment of this application, the method further includes: when the data transmission demand in the first direction exceeds the first threshold, the first end sends a bit line usage request to the second end; the bit line usage request includes at least: bus width, usage duration, and request urgency.

[0052] In this embodiment, the first end can proactively transfer the right to use idle bit lines to the second end based on its own data transmission needs, or passively transfer the right to use the transmission bus to the second end after receiving a bit line request from the second end. It can also proactively send a bit line usage request to the second end when the data transmission demand in the first direction exceeds the transmission threshold, requesting more bit line usage rights. Conversely, the second end can also proactively transfer the right to use the bus to the first end based on its own data transmission needs, or passively transfer the right to use bit lines to the first end after receiving a request from the first end. It can also proactively send a bit line usage request to the first end when the data transmission demand in the second direction exceeds the transmission threshold, requesting more bit line usage rights. When requesting the use of more sets of transmission buses to transmit data from the other end through the control bus, the bit line usage request includes at least information such as bus width, usage duration, and request urgency. Bus width represents the number of bit lines to be used, and usage duration represents the number of time slots required. Through these self-arbitration designs, it is ensured that data can be sent directly when there is a data transmission request, avoiding additional latency.

[0053] According to one embodiment of this application, after the first end sends a bit line usage request to the second end when the data transmission demand in the first direction exceeds the first threshold, the method further includes: The second end receives the bit line usage request, and determines the second target bit line to be transferred and the corresponding transfer duration based on the bus width, usage duration, request urgency and data transmission requirements in the second direction; and sends the second target bit line and the corresponding transfer duration to the first end through the second control bus.

[0054] In this embodiment, when either the first end or the second end requests to use the data sub-bus managed by the other—for example, when the first chip requests the right to use data sub-bus B2 or B3 from the second chip—it sends a bit line usage request to the second chip via the first control bus. The second chip decides whether to transfer the right to use the bit line based on the urgency of the request and the amount of data temporarily stored in its own data buffer. If it decides to transfer, it determines the target bit line to be transferred and the corresponding transfer duration, and sends this information via the second control bus. If the second chip does not intend to transfer the right to use the bit line, it ignores the bit line usage request sent by the first control bus. In other words, for bit line usage request instructions on the first or second control bus, the receiving end can choose to ignore or respond; it is not mandatory to release the control of the bit line.

[0055] See Figure 6 This application also provides a chip, including a first terminal 1, a second terminal 2, and a transmission bus 3 connected between the first terminal and the second terminal; The transmission bus 3 includes a data bus 31 containing a plurality of parallel bit lines connected between a first end and a second end; wherein at least some bit lines in the data bus 31 are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end; the transmission bus 3 also includes a control bus for controlling the data transmission direction of each bidirectional bit line in the data bus 31.

[0056] It also includes a detection module 32 and a self-arbitration module 33; the detection module 32 is used to detect the data transmission demand of the data bus in the first direction and the second direction; the self-arbitration module 33 is used to reconfigure at least some bit lines in the data bus that were originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than a first threshold; and to reconfigure at least some bit lines in the data bus that were originally configured for transmission in the second direction for transmission in the first direction when the data transmission demand in the second direction is lower than a second threshold.

[0057] The chip provided in this application embodiment can dynamically switch the data transmission direction when the bus bandwidth is fixed, and switch according to the bandwidth requirements of the transmission direction to make full use of the bus bandwidth.

[0058] For details, please refer to Figures 4-6 The chip provided in this embodiment is suitable for bidirectional transmission scenarios and includes a first end 1, a second end 2 and a transmission bus 3 connected between the first end and the second end, including a data bus 31 containing several parallel bit lines connected between the first end and the second end.

[0059] According to one embodiment of this application, see Figure 5 Several parallel bit lines can be divided into multiple bit line groups B0, B1, B2 and B3, and the bit lines in each bit line group have the same transmission direction.

[0060] The self-arbitration module is further configured to reconfigure the first bit line group originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than the first threshold.

[0061] According to one embodiment of this application, the first direction is transmission from the first end to the second end; the second direction is transmission from the second end to the first end. The control bus includes a first control bus C1 and a second control bus C2. The data bus 31 is used for data transmission and exchange between the first end 1 and the second end 2. The first control bus C1 and the second control bus C2 are used to control the data transmission direction of each bidirectional bit line in the data bus; wherein, the first control bus C1 is used to transmit a first direction control signal, and the second control bus C2 is used to transmit a second direction control signal.

[0062] The self-arbitration module is specifically used to send bus usage right transfer information to the second end through the first control bus when the data transmission demand in the first direction is lower than the first threshold; the bus usage right transfer information includes the first target bit line to be transferred and the corresponding transfer duration.

[0063] The second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end through the second control bus.

[0064] According to one embodiment of this application, the self-arbitration module is further configured to receive the bus usage right transfer information at the second end, and determine whether the first target bit line is needed based on the data transmission requirements in the second direction; If so, the first target bit line is used to send first data to the first end within the corresponding transfer time, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; If not, then a bus usage right confirmation message is sent to the first end via the second control bus to keep the transmission direction of the first target bit line unchanged.

[0065] The chip in this embodiment can be used to execute the technical solution of the transmission bus bandwidth allocation method shown in the foregoing embodiment. Its implementation principle and technical effect are similar. For details not described in detail, please refer to each other. It will not be repeated here.

[0066] This application provides a bandwidth allocation method applicable not only to chiplet technology interconnections but also to interconnections between multiple chips within the same motherboard and between any components in a system. Details not described in detail here can be found elsewhere.

[0067] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0068] The various embodiments in this specification are described in a related manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0069] For ease of description, if systems, servers, etc. are involved, they may be described separately as various units / modules based on their functions. Of course, in implementing this application, the functions of each unit / module can be implemented in one or more software and / or hardware.

[0070] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0071] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for allocating bandwidth on a transmission bus, characterized in that, An application is provided for a transmission bus connecting a first end and a second end, the transmission bus including a data bus comprising a plurality of parallel bit lines connected between the first end and the second end; wherein at least some bit lines in the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end; the transmission bus further includes a control bus for controlling the data transmission direction of each bidirectional bit line in the data bus; The transmission bus bandwidth allocation method includes: Detect the data transmission requirements of the data bus in the first direction and the second direction; When the data transmission demand in the first direction is lower than the first threshold, at least some of the bit lines in the data bus that were originally configured for transmission in the first direction are reconfigured for transmission in the second direction. When the data transmission demand in the second direction is lower than the second threshold, at least some of the bit lines in the data bus that were originally configured for transmission in the second direction are reconfigured for transmission in the first direction.

2. The transmission bus bandwidth allocation method according to claim 1, characterized in that, The parallel bit lines in the data bus are divided into multiple bit line groups, and the bit lines in each bit line group have the same transmission direction. When the data transmission demand in the first direction is lower than a first threshold, at least a portion of the bit lines in the data bus originally configured for transmission in the first direction are reconfigured for transmission in the second direction, including: When the data transmission demand in the first direction is lower than the first threshold, the first bit line group in the data bus that was originally configured for transmission in the first direction is reconfigured for transmission in the second direction.

3. The transmission bus bandwidth allocation method according to claim 1, characterized in that, Each bit line in the data bus is configured as a bidirectional bit line; the control bus includes a first control bus and a second control bus, wherein the first control bus is used to transmit a first direction control signal and the second control bus is used to transmit a second direction control signal; The first direction control signal and the second direction control signal jointly control the data transmission direction of each bit line, so that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to a preset ratio relationship.

4. The transmission bus bandwidth allocation method according to claim 3, characterized in that, The first direction is from the first end to the second end; the second direction is from the second end to the first end. When the data transmission demand in the first direction is lower than a first threshold, at least a portion of the bit lines in the data bus originally configured for transmission in the first direction are reconfigured for transmission in the second direction, including: When the data transmission demand in the first direction is lower than the first threshold, the first end sends bus usage right transfer information to the second end through the first control bus; the bus usage right transfer information includes the first target bit line to be transferred and the corresponding transfer duration; The second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end through the second control bus.

5. The transmission bus bandwidth allocation method according to claim 4, characterized in that, The second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end via the second control bus, including: The second end receives the bus usage right transfer information and determines whether the first target bit line is needed based on the data transmission requirements in the second direction; If so, the first target bit line is used to send first data to the first end within the corresponding transfer time, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; If not, then a bus usage right confirmation message is sent to the first end via the second control bus to keep the transmission direction of the first target bit line unchanged.

6. The transmission bus bandwidth allocation method according to claim 1, characterized in that, The method further includes: When the data transmission demand in the first direction exceeds the first threshold, the first end sends a bit line usage request to the second end; the bit line usage request includes at least: bus width, usage duration, and request urgency.

7. The transmission bus bandwidth allocation method according to claim 6, characterized in that, When the data transmission demand in the first direction exceeds the first threshold, after the first end sends a bit line usage request to the second end, the method further includes: The second end receives the bit line usage request and determines the second target bit line to be transferred and the corresponding transfer duration based on the bus width, the usage duration, the urgency of the request, and the data transmission requirements in the second direction. The second target bit line and the corresponding transfer duration are sent to the first end.

8. A chip, characterized in that, The transmission bus bandwidth allocation method applied to any one of claims 1-7 includes a first end, a second end, and a transmission bus connected between the first end and the second end; The transmission bus includes a data bus comprising a plurality of parallel bit lines connected between a first end and a second end; wherein at least some of the bit lines in the data bus are configured as bidirectional bit lines for bidirectional data transmission between the first end and the second end. The transmission bus also includes a control bus that controls the data transmission direction of each bidirectional bit line in the data bus; Also includes: The detection module is used to detect the data transmission requirements of the data bus in the first direction and the second direction. The self-arbitration module is used to reconfigure at least some bit lines in the data bus that were originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than a first threshold. When the data transmission demand in the second direction is lower than the second threshold, at least some of the bit lines in the data bus that were originally configured for transmission in the second direction are reconfigured for transmission in the first direction.

9. The chip according to claim 8, characterized in that, The parallel bit lines in the data bus are divided into multiple bit line groups, and the bit lines in each bit line group have the same transmission direction. The self-arbitration module is further configured to reconfigure the first bit line group originally configured for transmission in the first direction for transmission in the second direction when the data transmission demand in the first direction is lower than the first threshold.

10. The chip according to claim 8, characterized in that, Each bit line in the data bus is configured as a bidirectional bit line; the control bus includes a first control bus and a second control bus, wherein the first control bus is used to transmit a first direction control signal and the second control bus is used to transmit a second direction control signal; The first direction control signal and the second direction control signal jointly control the data transmission direction of each bit line, so that the ratio between the transmission bandwidth from the first end to the second end and the transmission bandwidth from the second end to the first end conforms to a preset ratio relationship.

11. The chip according to claim 10, characterized in that, The first direction is from the first end to the second end; the second direction is from the second end to the first end. The self-arbitration module is specifically used to send bus usage right transfer information to the second end through the first control bus when the data transmission demand in the first direction is lower than the first threshold. The bus usage right transfer information includes the first target bit line to be transferred and the corresponding transfer duration; The second end receives the bus usage right transfer information and, based on the data transmission requirements in the second direction, sends bus usage right confirmation information to the first end through the second control bus.

12. The chip according to claim 11, characterized in that, The self-arbitration module is also used to receive the bus usage right transfer information at the second end, and determine whether the first target bit line is needed based on the data transmission requirements in the second direction; If so, the first target bit line is used to send first data to the first end within the corresponding transfer time, so that the target bit line originally used for transmission in the first direction is reused for transmission in the second direction; the first data includes bus usage right confirmation information; If not, then a bus usage right confirmation message is sent to the first end via the second control bus to keep the transmission direction of the first target bit line unchanged.