Data transmission method and related device
By setting up a data communication interface device within the core, and using a transmission control module and an encoding module for data encoding and packetization, the data transmission problem between different types of cores is solved, achieving efficient and accurate data communication.
Patent Information
- Application Number
- PCT/CN2026/089594
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-04-09
- Publication Date
- 2026-11-26
AI Technical Summary
How to achieve efficient communication between two cores, especially data transmission between cores of different types.
By setting up a data communication interface device within the core, including a transmission control module, an encoding module, and a buffer queue, data encoding, packetization, and transmission are performed using preset conditions and transmission volume identifiers, ensuring effective data transmission on the bus between cores.
It enables efficient data transmission between different types of chips, ensuring the order and accuracy of data transmission and reducing the occurrence of transmission errors.
Smart Images

Figure CN2026089594_26112026_PF_FP_ABST
Abstract
Description
Data transmission methods and related equipment
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202510676706.8, filed on May 23, 2025, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure relates to the field of chip technology, specifically to a data transmission method and related equipment. Background Technology
[0004] A chip is a unit chip that performs a certain function and contains interconnect interfaces. Multiple chips can be interconnected through interconnect interfaces to form a system-on-a-chip (SoC), such as a System-on-Chip (SoC). Chip interconnection refers to the process of coordinating and scheduling communication between two chips using preset data transmission rules, such as interconnect protocols, based on the physical connection between their interconnect interfaces, thereby achieving interconnection and interoperability between the two chips.
[0005] However, how to provide a data transmission scheme to enable communication between two cores has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0006] In view of this, embodiments of the present disclosure provide a data transmission method and related equipment to enable communication between two cores.
[0007] To achieve the above objectives, the present disclosure provides the following technical solutions.
[0008] At least one embodiment of this disclosure provides a data communication interface device for use in chip interconnect communication, including:
[0009] A transmission control module is used to acquire data to be transmitted from the internal bus of the chip and send the data to be transmitted to the encoding module when preset conditions are met; wherein, the preset conditions include at least: the receiving chip has available space to store the data to be transmitted, and the data to be transmitted meets the data transmission rules;
[0010] An encoding module is used to encode the data to be transmitted and package it into a data packet; wherein the capacity of the data packet is adapted to the data bit width of the intra-core bus, the data packet includes at least valid data, and in the data packet, the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data, the transmission amount identifier is used to indicate the number of transmissions of valid data on the inter-core bus;
[0011] The first buffer queue is used to store the data packets and, when the transmission path from the inter-core bus to the receiving core is valid, to send the valid data of the data packets to the inter-core bus based on the transmission volume identifier.
[0012] Optionally, the data transmission rules include at least the following: under the order of write-then-read access requests, the transmission order of the access requests is prohibited from being changed;
[0013] The transmission control module includes a first port control unit, a first flow control unit, and a transmission sequence control unit; the first port control unit is used to receive transmission control information, the first flow control unit is used to receive flow control information, and the transmission sequence control unit is used to receive request information, data information, read response information, and write response information.
[0014] Optionally, the data packet includes a transmission volume identifier segment, a data information segment, a request information segment, a read response information segment, a write response information segment, a flow control information segment, and a data identifier; wherein, the transmission volume identifier segment is used to configure the transmission volume identifier, the data information segment is used to configure the data information, the request information segment is used to configure the request information, the read response information segment is used to configure the read response information, the write response information segment is used to configure the write response information, and the flow control information segment is used to configure the flow control information;
[0015] The data identifier is used to indicate the information status of the information segment; the data identifier includes: a read response identifier corresponding to read response information, a write response identifier corresponding to write response information, a request identifier corresponding to request information, and a data information identifier corresponding to data information.
[0016] Optionally, the first cache queue is used to store the data packets, including:
[0017] The number of data packets to be stored in the first buffer queue is determined based on the transmission volume identifier; the data packets are then divided into the determined number of first queue data packets according to the preset bit length order and stored in the first buffer queue.
[0018] When multiple data packets are stored in the first cache queue, the process of storing them in the first cache queue is completed one by one in sequence.
[0019] Optionally, the first buffer queue is used to send valid data of the data packet to the inter-core bus based on the transmission volume identifier, including:
[0020] Based on the bit width of the first buffer queue, the bit width of the inter-core bus, and the transmission volume identifier, the first queue data to be transmitted in the first buffer queue is determined.
[0021] The first queue data is divided into multiple inter-chip bus data with matching inter-chip bus width;
[0022] Based on the indication of the transmission volume identifier, the inter-chip bus data is sent to the inter-core bus.
[0023] Optionally, it may also include: a second buffer queue and a decoding module;
[0024] The second buffer queue is used to receive and store the valid data of the data packet based on the transmission volume identifier; the decoding module is used to decode the data packet to obtain the data to be transmitted.
[0025] The transmission control module is also used to send the data to be transmitted to the in-core bus.
[0026] Optionally, the second buffer queue is used to receive and store valid data of the data packet based on the transmission volume identifier, including:
[0027] The number of inter-chip bus data entries stored in the second buffer queue is determined based on the transmission volume identifier;
[0028] The inter-chip bus data received from the inter-chip bus of a preset number are sequentially merged into a second queue of data and stored in the second buffer queue until the predetermined number of inter-chip bus data is reached.
[0029] Optionally, the decoding module is used to decode the data packet to obtain the data to be transmitted, including:
[0030] Read the data from the second cache queue that belongs to the same data group packet in the second queue;
[0031] Based on the read second queue data, reconstruct the data packet;
[0032] The restored data packets are decoded to obtain the data to be transmitted.
[0033] Optionally, the decoding module is used to reconstruct the data packet based on the read second queue data, including:
[0034] The second queue data read is sequentially written into the data packet based on the preset bit order;
[0035] Fill the other parts of the data package with invalid data.
[0036] Optional, also includes:
[0037] The bus channel control module is used to send the data to be transmitted in the data packet to each channel of the on-chip bus interface.
[0038] Optionally, the transmission control module is also used to obtain transmission control information from the in-core bus and control the clock of the data communication interface device to be in the on state;
[0039] The encoding module is further configured to encode the transmission control information and package it into a control packet; wherein the capacity of the control packet is adapted to the data bit width of the intra-core bus, and the control packet includes at least valid data. In the control packet, the valid data includes the transmission control information and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of valid data on the inter-core bus.
[0040] The first buffer queue is also used to store the control packet and, based on the transmission volume identifier, send the valid data of the data packet to the inter-chip bus.
[0041] Optionally, when simultaneously acquiring transmission control information and data to be transmitted from the in-core bus, the transmission control module is further configured to:
[0042] Select the data to be transmitted and send the transmission control information to the encoding module;
[0043] After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
[0044] Optionally, each channel information is configured with a first channel identifier and a second channel identifier, and the channel information in the transmission sequence control unit is configured with a third channel identifier. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly, the second channel identifier is used to mark whether the channel information of each channel has been written into the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit.
[0045] The transmission control unit is used to select the data to be transmitted and send the transmission control information to the encoding module, including:
[0046] The first channel identifier corresponding to the transmission control information is configured to be valid, and the third channel identifier is invalid;
[0047] Based on the first channel identifier and the third channel identifier, the transmission control information is sent and the data to be transmitted is temporarily stored in the transmission sequence control unit;
[0048] After the transmission control information is written to the first buffer queue, the corresponding second channel identifier is configured to be valid, and the first channel information is configured to be invalid, indicating that the data has been written to the first buffer queue.
[0049] Configure the third channel identifier as valid to send the data to be transmitted to the encoding module.
[0050] Optionally, the transmission sequence control unit is used to temporarily store multiple channel information received by it and send the channel information in sequence, wherein the next channel information is allowed to be sent from the transmission sequence control unit when the second channel identifier of the previous channel information is valid.
[0051] Optionally, the control package includes a transmission volume identifier segment, a flow control information segment, and a control information segment; wherein, the transmission volume identifier segment is used to configure the transmission volume identifier, the flow control information segment is used to configure the flow control information, and the control information segment is used to configure the transmission control information.
[0052] Optionally, the control package may also be configured with a data identifier; among which, the data identifier corresponding to the transmission control information is the transmission control identifier.
[0053] Optionally, the first cache queue is further used to store the control group packet, including:
[0054] The number of control group packets stored in the first buffer queue is determined based on the transmission volume identifier;
[0055] Based on the preset bit order of the control group packet, the data is divided into a predetermined number of first queue data and stored in the first cache queue.
[0056] Optionally, the second buffer queue is further configured to receive and store valid data of the control packet based on the transmission volume identifier; the decoding module is further configured to decode the control packet to obtain transmission control information.
[0057] The transmission control module is also used to send the transmission control information to the in-core bus.
[0058] Optionally, the decoding module is further configured to decode the control packet to obtain transmission control information, including:
[0059] Read the data from the second cache queue that belongs to the same control group packet;
[0060] Based on the read second queue data, the control packet is reconstructed;
[0061] Decode the restored control packet to obtain the transmission control information;
[0062] The transmission control information is sent to the transmission control module.
[0063] Optionally, the decoding module is further configured to reconstruct the control packet based on the read second queue data, including:
[0064] The second queue data read is sequentially written into the control group packet based on the preset bit order;
[0065] Fill the other locations in the control group package with invalid data.
[0066] Optionally, the transmission sequence control unit is further configured to send a control response message to the transmitting end core when the clock of the internal storage space within the core is turned on and there is available space in the second buffer queue to store the data to be transmitted.
[0067] The control response message is used to indicate that the transmission path is valid and that there is available space in the receiving end chip to store the data to be transmitted.
[0068] At least one embodiment of this disclosure provides a data transmission method, including:
[0069] The receiving chip acquires the data to be transmitted from its internal bus and sends the data to the encoding module when preset conditions are met; wherein the preset conditions include at least: the receiving chip has available space to store the data to be transmitted, and the data to be transmitted meets the data transmission rules.
[0070] The data to be transmitted is encoded and packaged into a data packet; wherein the capacity of the data packet is adapted to the data bit width of the intra-core bus, and the data packet includes at least valid data. In the data packet, the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of valid data on the inter-core bus.
[0071] The data packet is stored in the first buffer queue, and when the transmission path from the inter-core bus to the receiving core is valid, the valid data of the data packet is sent to the inter-core bus based on the transmission volume identifier.
[0072] Optionally, the data transmission rules include at least the following: under the order of write-then-read access requests, the transmission order of the access requests must not be changed.
[0073] Optionally, storing the data packet to the first cache queue includes:
[0074] The number of data packets stored in the first buffer queue is determined based on the transmission volume identifier;
[0075] Based on the preset bit order of the data packet, the data is divided into a predetermined number of first queue data and stored in the first cache queue.
[0076] Optionally, in the step of storing the data packets to the first cache queue, when multiple data packets are stored in the first cache queue, the data packets are stored one by one in sequence.
[0077] Optionally, sending the valid data of the data packet to the inter-core bus based on the transmission volume identifier includes:
[0078] Based on the bit width of the first buffer queue, the bit width of the inter-core bus, and the transmission volume identifier, the first queue data to be transmitted in the first buffer queue is determined.
[0079] The first queue data is divided into multiple inter-chip bus data with matching inter-chip bus width;
[0080] Based on the indication of the transmission volume identifier, the inter-chip bus data is sent to the inter-core bus.
[0081] Optional, also includes:
[0082] Based on the transmission volume identifier, receive and store the valid data of the data packet;
[0083] Decode the data packets to obtain the data to be transmitted;
[0084] The data to be transmitted is sent to the in-core bus.
[0085] Optionally, receiving and storing the valid data of the data packet based on the transmission volume identifier includes:
[0086] The number of inter-chip bus data entries stored in the second buffer queue is determined based on the transmission volume identifier;
[0087] The inter-chip bus data received from the inter-chip bus of a preset number are sequentially merged into a second queue of data and stored in the second buffer queue until the predetermined number of inter-chip bus data is reached.
[0088] Optionally, decoding the data packet to obtain the data to be transmitted includes:
[0089] Read the data from the second cache queue that belongs to the same data group packet in the second queue;
[0090] Based on the read second queue data, reconstruct the data packet;
[0091] Decode the restored data packets to obtain the data to be transmitted.
[0092] Optionally, restoring the data packet based on the read second queue data includes:
[0093] The second queue data read is sequentially written into the data packet based on the preset bit order;
[0094] Fill the other parts of the data package with invalid data.
[0095] Optional, also includes:
[0096] The system obtains transmission control information from the internal bus of the chip and controls the clock of the data communication interface device to be in the on state.
[0097] The transmission control information is encoded and packaged into a control packet; wherein the capacity of the control packet is adapted to the data bit width of the intra-core bus, and the control packet includes at least valid data. In the control packet, the valid data includes the transmission control information and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of valid data on the inter-core bus.
[0098] The control packet is stored, and the valid data of the data packet is sent to the inter-chip bus based on the transmission volume identifier.
[0099] Optionally, when simultaneously acquiring transmission control information and data to be transmitted from the intra-chip bus, after acquiring the transmission control information from the intra-chip bus and before encoding and assembling the transmission control information into a control packet, the method further includes:
[0100] Select the data to be transmitted and send the transmission control information to the encoding module;
[0101] After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
[0102] Optionally, each channel information is configured with a first channel identifier and a second channel identifier, and the channel information in the transmission sequence control unit is configured with a third channel identifier. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly, the second channel identifier is used to mark whether the channel information of each channel has been written into the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit.
[0103] Sending the transmission control information to the encoding module includes:
[0104] The first channel identifier corresponding to the transmission control information is configured to be valid, and the third channel identifier is invalid;
[0105] Based on the first channel identifier and the third channel identifier, the transmission control information is sent and the data to be transmitted is temporarily stored in the transmission sequence control unit;
[0106] After the transmission control information is written to the first buffer queue, the corresponding second channel identifier is configured to be valid, and the first channel information is configured to be invalid, indicating that the data has been written to the first buffer queue.
[0107] Configure the third channel identifier as valid to send the data to be transmitted to the encoding module.
[0108] Optionally, storing the control package includes:
[0109] The number of control group packets stored in the first buffer queue is determined based on the transmission volume identifier;
[0110] Based on the preset bit order of the control group packet, the data is divided into a predetermined number of first queue data and stored in the first cache queue.
[0111] Optional, also includes:
[0112] Based on the transmission volume identifier, receive and store the valid data of the control packet;
[0113] Decode the control packet to obtain the transmission control information;
[0114] The transmission control information is sent to the in-core bus.
[0115] Optionally, decoding the control packet to obtain transmission control information includes:
[0116] Read the data from the second cache queue that belongs to the same control group packet;
[0117] Based on the read second queue data, the control packet is reconstructed;
[0118] Decode the restored control packet to obtain the transmission control information;
[0119] The transmission control information is sent to the transmission control module.
[0120] Optionally, restoring the control packet based on the read second queue data includes:
[0121] The second queue data read is sequentially written into the control group packet based on the preset bit order;
[0122] Fill the other locations in the control group package with invalid data.
[0123] Optional, also includes:
[0124] When the clock in the internal storage space within the chip is on and there is available space in the second buffer queue to store the data to be transmitted, a control response message is sent back to the sending chip. The control response message is used to indicate that the transmission path is valid and that there is available space in the receiving chip to store the data to be transmitted.
[0125] At least one embodiment of this disclosure provides a chip equipped with the data communication interface device.
[0126] At least one embodiment of this disclosure provides a computer device including the aforementioned chip.
[0127] This disclosure provides a data transmission method and related equipment. In the data communication interface device, a transmission control module is used to acquire data to be transmitted from the intra-core bus and, when preset conditions are met, send the data to be transmitted to an encoding module. The preset conditions include at least: the receiving end core has available space to store the data to be transmitted, and the data to be transmitted satisfies data transmission rules. An encoding module is used to encode the data to be transmitted and package it into data packets. The capacity of the data packets is adapted to the data bit width of the intra-core bus. The data packets include at least valid data, and the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data. The transmission amount identifier indicates the number of transmissions of valid data on the inter-core bus. A first buffer queue is used to store the data packets and, when the transmission path from the inter-core bus to the receiving end core is valid, sends the valid data of the data packets to the inter-core bus based on the transmission amount identifier.
[0128] It can be seen that the data transmission method and related equipment provided in this disclosure embodiment can realize communication between two cores. Attached Figure Description
[0129] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0130] Figure 1 is an example diagram of chip interconnection provided in at least one embodiment of this disclosure.
[0131] Figure 2 is an example diagram of an optional structure for chip interconnection provided in at least one embodiment of this disclosure.
[0132] Figure 3 is an optional example diagram of inter-chip data transmission provided by at least one embodiment of the present disclosure.
[0133] Figure 4 is a schematic diagram of an optional structure of a data packet provided in at least one embodiment of this disclosure.
[0134] Figure 5 is a schematic diagram of an optional structure of a control package provided in at least one embodiment of this disclosure.
[0135] Figure 6 is an optional example diagram of a data transmission method provided in at least one embodiment of this disclosure.
[0136] Figure 7 is another optional example diagram of the data transmission method provided in at least one embodiment of this disclosure.
[0137] Figure 8 is another optional example of the data transmission method provided in at least one embodiment of this disclosure.
[0138] Figure 9 is another optional example of a data transmission method provided in at least one embodiment of this disclosure.
[0139] Figure 10 is another optional example of a data transmission method provided in at least one embodiment of this disclosure. Detailed Implementation
[0140] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this disclosure.
[0141] Taking two cores as an example, Figure 1 illustrates an exemplary diagram of core interconnection. As shown in Figure 1, a core may include an interconnect interface 11 and multiple functional modules 12. Inside the core, the interconnect interface 11 is connected to the multiple functional modules 12 via an intra-core bus. Between the two cores, the interconnect interfaces of the two cores are interconnected via an inter-core bus.
[0142] The core can be of any type, and interconnected cores can be of the same type or different types. In an optional example, cores can be distinguished as functional cores and interface cores based on the type of the functional module they are configured with, or as high-speed cores and low-speed cores based on the processing speed of the functional module they are configured with.
[0143] In specific implementations, functional cores can be, for example, processor core cores (such as CPU core cores), while functional modules configured to processor core cores can be, for example, processor cores and caches. Functional modules configured to interface cores can be, for example, cores containing interface modules for communication methods such as network communication, USB (Universal Serial Bus) communication, and PCIe (Peripheral Component Interconnect Express) communication. From the perspective of processing speed, functional modules configured to high-speed cores can be, for example, processor cores, memory controllers, and PCIe interface modules, while functional modules configured to low-speed cores can be, for example, USB interface modules, SATA controllers, and SBG (Southbridge).
[0144] It should be noted that differentiating chip types based on processing speed allows for differentiation of chip manufacturing process requirements based on the performance requirements such as rate and bandwidth corresponding to different processing speeds. This enables different types of chips to be manufactured using different processes, thereby reducing chip manufacturing costs.
[0145] In a specific example, Figure 2 illustrates an example of an optional structure for a chip interconnect. As shown in Figure 2, taking the interconnection of chip A and chip B as an example, the chip (including chip A and chip B) is configured with an intra-chip bus and a data communication interface device connected to the intra-chip bus.
[0146] Understandably, the intra-chip bus is used to accommodate data transmission between functional modules within the chip, and this intra-chip bus can be, for example, a system bus. The inter-chip bus, on the other hand, is used for data transmission between chips, and this inter-chip bus can be, for example, a high-speed inter-chip bus (HSI). Correspondingly, the intra-chip bus and the inter-chip bus can be configured with different data transmission rules and different bus interfaces. Taking the intra-chip bus as the system bus and the inter-chip bus as the high-speed inter-chip bus as an example, the bus interface corresponding to the intra-chip bus (hereinafter referred to as the intra-chip bus interface) corresponds to a system bus interface conforming to the system bus transmission rules, and the bus interface corresponding to the inter-chip bus (hereinafter referred to as the inter-chip bus interface) corresponds to a high-speed inter-chip bus interface conforming to the high-speed inter-chip bus transmission rules.
[0147] In a specific example, the frequency of the on-chip bus interface can be, for example, 1 GHz, and the total data width of the other channels, excluding the flow control channel, can be 1353 bits. The transmission control module is coupled to the on-chip bus interface. The inter-chip bus interface does not distinguish between channels; its corresponding frequency can be, for example, 1.8 GHz, and its total data width can be, for example, 256 bits. It is understood that the transmission rules of the on-chip bus interface and the inter-chip bus interface are different, and the corresponding data transmission methods are also different. In this embodiment, a data communication interface device can be used to realize the conversion of data transmission rules and data transmission methods.
[0148] The data communication interface device is used to realize data transmission between cores. The data communication interface device configured in core A is labeled FDI.us, and the data communication interface device configured in core B is labeled FDI.ds. The data communication interface device of this disclosure can support bidirectional simultaneous transmission; that is, core A can transmit data via FDI.us -> inter-core bus -> FDI.ds -> core B, and core B can also transmit data via FDI.ds -> inter-core bus -> FDI.us -> core A.
[0149] It is understood that the data communication interface device is used to transmit data from the intra-chip bus to the inter-chip bus. Correspondingly, the data communication interface device is equipped with an intra-chip bus interface and an inter-chip bus interface on both sides, so as to realize data transmission with the intra-chip bus based on the intra-chip bus interface and data transmission with the inter-chip bus based on the inter-chip bus interface.
[0150] In its implementation, the data communication interface device is configured with both data transmission logic and data reception logic. In the data transmission logic, the data communication interface device can receive data from the intra-chip bus via the on-chip bus interface, re-encode the data according to the corresponding data transmission rules, and then, based on the data transmission rules of the inter-chip bus, send the data from the inter-chip bus interface to the inter-chip bus.
[0151] In the data receiving logic, the data communication interface device can receive data from the inter-chip bus from the inter-chip bus interface, decode the data according to the corresponding decoding rules, and further transmit the decoded data to the intra-chip bus.
[0152] In an optional implementation, referring to Figure 3, an optional example diagram of inter-core data transmission is shown. As shown in Figure 3, the data communication interface device may include: a transmission control module, an encoding module, and a first buffer queue.
[0153] The transmission control module is used to acquire data to be transmitted from the intra-chip bus and send the data to be transmitted to the encoding module when preset conditions are met. The preset conditions include at least: the receiving chip has available space to store the data to be transmitted, and the data to be transmitted meets data transmission rules. The encoding module is used to encode the data to be transmitted and package it into data packets. The capacity of the data packets is adapted to the data bit width of the intra-chip bus, and the data packets include at least valid data. The valid data in the data packets includes at least the data to be transmitted and a transmission amount identifier corresponding to the valid data. The transmission amount identifier indicates the number of transmissions of valid data on the inter-chip bus. A first buffer queue is used to store the data packets and, when the inter-chip bus link is valid, sends the valid data of the data packets to the inter-chip bus based on the transmission amount identifier.
[0154] It should be noted that the preset conditions can be understood as control conditions that must be met for the transmission of data to be transmitted. Control based on these preset conditions enables transmission control of the data to be transmitted. In an optional example, the preset conditions may include: the receiving end chip has available space to store the data to be transmitted; in a further optional example, the preset conditions may also include: the data to be transmitted satisfies data transmission rules, such as PCIe ordering rules. These data transmission rules are used to ensure the data transmission order and avoid errors that may occur based on the data transmission order. For example, under a write-before-read access request order, it is necessary to ensure that the transmission order of the corresponding access requests cannot be changed to avoid reading historical data before the write request, thus causing data reading errors.
[0155] It is understandable that different access requests may be represented as one or more data transfers from the on-chip bus interface in the data transmission process disclosed herein.
[0156] The transmission control module described in this disclosure is configured to be compatible with the on-chip bus interface, so as to receive the corresponding data to be transmitted from the on-chip bus interface.
[0157] In an optional implementation, the on-chip bus interface may include the following channels: control channel, request channel, data channel, read response channel (rdrsp channel), write response channel (wrrsp channel), and flow control channel.
[0158] The data in the control channel can be called transmission control information (labeled as Control in Figure 3), used to wake up and turn off the path clock; the data in the request channel can be called request information (labeled as Req in Figure 3), which may include the request type, the address corresponding to the request, the amount of data corresponding to the request, etc.; the data in the data channel can be called data information (labeled as Data in Figure 3), which is specifically write data; the data in the read response channel can be called read response information (labeled as RdRsp in Figure 3), used to indicate the feedback read request status and read request data, etc.; the data in the write response channel can be called write response information (labeled as WrRsp in Figure 3), used to indicate the feedback write request status; and the data in the flow control channel can be called flow control information (labeled as Credit in Figure 3), used to indicate the available space capacity of the second buffer queue in the receiver chip used for receiving data.
[0159] It should be noted that, in at least one embodiment of this disclosure, information in each channel can be simultaneously transmitted from the intra-core bus to the data communication interface device, but information in different channels is transmitted between cores based on a preset transmission order. Specifically, the flow control information in the flow control channel participates in the data transmission of all other channels, that is, when the channel information of other channels is transmitted, the flow control information in the flow control channel is transmitted simultaneously; the transmission control information in the control channel is transmitted simultaneously with the flow control information, but not simultaneously with the information of other channels, and the transmission control information is transmitted first to realize the transmission control of the data transmission process to be executed, for example, turning on the clock of the corresponding data transmission path; the information of other channels (i.e., information other than the flow control information and the transmission control information) can be transmitted as data to be transmitted simultaneously with the flow control information, wherein the data to be transmitted is transmitted after the transmission control information is transmitted and a control response message is received.
[0160] Accordingly, the transmission control module may include a first port control unit, a first flow control unit, and a transmission sequence control unit; wherein, the first port control unit is used to receive transmission control information in the control channel, the first flow control unit is used to receive flow control information in the flow control channel, and the transmission sequence control unit is used to receive request information, data information, read response information, and write response information.
[0161] It is understood that the bit width of the data received by the transmission control module is adapted to the bit width of the on-chip bus interface. In this disclosure, "a data volume adapted to a certain data volume" means that the preceding data volume is greater than or equal to the following data volume. Specifically, in this example, the bit width of the data received by the transmission control module is equal to the bit width of the on-chip bus interface.
[0162] The first flow control unit of the transmitting chip (also called the transmitter) participates in a handshake with the second flow control unit of the receiving chip (also called the receiver) between the data communication interface devices at both ends (i.e., the transmitter and the receiver), and indicates whether there is available space in the receiving chip to store the data to be transmitted. Accordingly, based on the control of the first flow control unit, it can be determined whether there is available space in the receiving chip to store the data to be transmitted, thereby determining whether the corresponding data transmission process meets preset conditions.
[0163] The first port control unit can participate in the handshake between the data communication interface devices at both ends (i.e., the transmitting end and the receiving end) with the second port control unit of the receiving chip to ensure that the clocks of each device unit on the corresponding data transmission path are turned on during the data transmission process. Based on the joint control of the first and second port control units, the validity of the corresponding transmission path can be determined. In a further example, the first port control unit can also turn off the clocks of each device unit on the data transmission path at the end of the data transmission process to save power.
[0164] In an optional implementation, the preset conditions may include scenarios where the data to be transmitted meets the data transmission rules. The transmission sequence control unit can be used to determine whether the data to be transmitted meets the data transmission rules and to store the data to be transmitted.
[0165] The encoding module is used to encode the data to be transmitted and package it into data packets. A data packet can be understood as a group of data to be transmitted formed after a packetization operation, and the capacity of the data packet is adapted to the data bit width of the intra-core bus. In a specific example, the capacity of the data packet can be greater than the data bit width of the intra-core bus, allowing the data packet to accommodate one beat of data to be transmitted via the intra-core bus, and allowing redundant data corresponding to the data to be transmitted to be configured within the data packet. The redundant data is used to indicate the data status and / or transmission status of the corresponding data, thereby enabling data transmission control based on the redundant data.
[0166] The data packet can include valid data and invalid data. Valid data refers to data that has substantial meaning, i.e., data that needs to be transmitted. For example, a data packet for data to be transmitted may include the data to be transmitted and corresponding redundant data. In an optional example, the valid data may also include flow control information. Invalid data refers to data that has no substantial meaning. When the valid data does not completely fill the data packet, other positions in the data packet can be filled with invalid data. This invalid data can be random data or preset data, such as data with a value of "0". It is understood that for other data packets, such as packets for transmission control information, valid data and invalid data can also be distinguished. For a related description, please refer to the subsequent description of transmission control information.
[0167] In a specific implementation, the redundant data may include a transmission volume identifier corresponding to the valid data. This transmission volume identifier can be used to indicate the number of valid data transmissions on the inter-core bus, thereby enabling data transmission control of the valid data based on this identifier. It is understood that the inter-core bus has a preset bit width. Based on this bit width value and the amount of valid data, the number of valid data transmissions on the inter-core bus can be determined, thus determining the transmission volume identifier. In a specific example, the transmission volume identifier can be determined by the encoding module.
[0168] Referring to Figure 4, which illustrates an optional structure of a data packet, the data packet may include multiple information segments, each carrying different information. Specifically, the data packet may include a transmission volume identifier segment, a data information segment, a request information segment, a read response information segment, a write response information segment, and a flow control information segment. The transmission volume identifier segment is used to configure the transmission volume identifier; the data information segment is used to configure the data information; the request information segment is used to configure the request information; the read response information segment is used to configure the read response information; the write response segment is used to configure the write response information; and the flow control information segment is used to configure the flow control information. In a specific implementation, different information segments can be configured to different data bits within the data packet, thereby determining the corresponding information segment based on the corresponding data bits.
[0169] In a specific implementation, the data package may also be configured with a data prefix to indicate the information status of the information segment. It is understood that different information segments are configured with different data prefixes, and when an information segment has different information statuses, an information segment may also have multiple data prefixes. In the data package, the data prefix can be configured at a preset position based on preset rules, so as to determine the meaning indicated by the data prefix based on the corresponding position information.
[0170] For example, the data identifier corresponding to the read response information is called the read response identifier, which can be configured in the data bits adjacent to the read response information segment. For instance, the first 8 bits of the read response information segment can be configured as the position for configuring the read response identifier. Similarly, the data identifier corresponding to the write response information is called the write response identifier, which can be configured in the data bits adjacent to the write response information segment. For instance, the first 8 bits of the write response information segment can be configured as the position for configuring the write response identifier. The data identifier corresponding to the request information is called the request identifier, which can be configured in the data bits adjacent to the request information segment. For instance, the first 8 bits of the request information segment can be configured as the position for configuring the request identifier. The data identifier corresponding to the data information is called the data information identifier, which can be configured in the data bits adjacent to the data information segment. For instance, the first 8 bits of the data information segment can be configured as the position for configuring the data information identifier.
[0171] Different data identifiers correspond to different meanings. Table 1 lists the meanings of some data identifiers as an example, as follows:
[0172] After the data packets are formed, they can be stored in a first buffer queue. The first buffer queue can be understood as a data queue used for sending data. Specifically, the first buffer queue can be a FIFO (First-In, First-Out) queue, used to sequentially store and send corresponding data packets. In a specific example, the first buffer queue is used to store and send data packets corresponding to access requests, where the access request can be a read request or a write request. It is understood that both read and write requests are specific implementations of access requests.
[0173] The bit width of the first buffer queue can be the same as or different from the bit width of the data packet. In a preferred example, to reduce structural complexity, the bit width of the first buffer queue can be smaller than the bit width of the data packet. Accordingly, a data packet can be divided into multiple first queue data and stored into the first buffer queue one by one based on multiple clock cycles (system bus clock cycles). The bit width of a first queue data is equal to the bit width of the first buffer queue. Taking a data packet bit width of 1536 bits and a first buffer queue bit width of 512 bits as an example, a data packet can be divided into 3 first queue data entries and stored in the first buffer queue.
[0174] In an optional example, to improve resource utilization efficiency, only the valid data of the data packet is stored in the process of storing the data packet into the first cache queue. Accordingly, when the data packet includes a transmission volume identifier, the number of data packets to be stored in the first cache queue can be determined based on the transmission volume identifier, and the data packet can be segmented based on the determined number of packets.
[0175] In a specific example, the amount of valid data in the data packet can be determined based on the transmission volume identifier and the bit width of the inter-chip bus (i.e., the inter-chip bus interface). Then, based on the amount of valid data and the bit width of the first buffer queue, the number of data entries in the first queue of the data packet stored in the first buffer queue can be determined.
[0176] In other examples, when there is a multiple relationship between the bit width of the first buffer queue and the bit width of the inter-chip bus (i.e., the inter-chip bus interface), the number of data packets stored in the first queue of the data group can be determined based on the transmission volume identifier and the multiple relationship.
[0177] Taking a 256-bit width for the inter-chip bus (i.e., the inter-chip bus interface) and a 512-bit width for the first buffer queue as an example, when the transmission amount identifier is less than or equal to 2, it indicates that the effective data in the data packet is less than or equal to 512 bits, and correspondingly, the number of data entries in the first queue that the data packet can be divided into is 1; when the transmission amount identifier is greater than 2 and less than or equal to 4, it indicates that the effective data in the data packet is greater than 512 bits and less than or equal to 1024 bits, and correspondingly, the number of data entries in the first queue that the data packet can be divided into is 2; when the transmission amount identifier is greater than 4 and less than or equal to 6, it indicates that the effective data in the data packet is greater than 1024 bits and less than or equal to 1536 bits, and correspondingly, the number of data entries in the first queue that the data packet can be divided into is 3.
[0178] It is understandable that when the data in the data packet is stored in the first buffer queue, it can be divided into a certain number of first queue data based on the preset bit order of the data packet and stored in the first buffer queue. For example, the first first queue data can be bits 0-511 of the data packet, i.e., bits [511:0]; when there is a second first queue data, it can be bits 512-1023 of the data packet, i.e., bits [1023:512]; when there is a third first queue data, it can be bits 1024-1535 of the data packet, i.e., bits [1535:1024].
[0179] It should be noted that when multiple data packets are stored in the first cache queue, the data packets can be stored one by one in sequence. For example, when a data packet is divided into multiple first queue data packets and stored in the first cache queue, the subsequent data packet storage operations can be performed after the multiple first queue data storage operations of that data packet are completed, in order to avoid possible data errors.
[0180] Accordingly, the first buffer queue can store the data packets, and when the transmission path from the inter-core bus to the receiving core is valid, it sends the valid data of the data packets to the inter-core bus based on the transmission volume identifier.
[0181] The transmission path from the inter-chip bus to the receiving chip can also be referred to as the transmission link from the inter-chip bus to the receiving chip. The validity of the transmission path from the inter-chip bus to the receiving chip means that the clock signal of the data communication interface device from the inter-chip bus to the receiving chip is in an on state; that is, the clocks of each device unit along the transmission path from the inter-chip bus to the receiving chip are in an on state, thereby enabling the data transmission of the data to be transmitted to the receiving chip.
[0182] In the data transmission process from the first buffer queue to the inter-core bus, valid data can be transmitted based on the transmission volume identifier. Specifically, relative to the system bus clock domain within the core (corresponding to the system bus clock cycle), the transmission path between the first buffer queue and the second buffer queue of the receiving core is located within the high-speed interconnect clock domain (corresponding to the high-speed interconnect clock cycle). Correspondingly, the first buffer queue is also used for CDC (Change Data Capture) synchronization, thereby enabling data transmission across different clock domains.
[0183] The bit width of the first buffer queue can be the same as or different from the bit width of the inter-chip bus (i.e., the inter-chip bus interface). When the bit width of the first buffer queue is different from the bit width of the inter-chip bus (i.e., the inter-chip bus interface), the data to be transmitted in the first buffer queue can be determined based on the bit width of the first buffer queue, the bit width of the inter-chip bus (i.e., the inter-chip bus interface), and the transmission amount identifier.
[0184] In an optional implementation, when the bit width of the first cache queue is greater than the bit width of the inter-chip bus (i.e., the inter-chip bus interface), the first queue data in the first cache queue can be divided into multiple inter-chip bus data that match the bit width of the inter-chip bus, and then the inter-chip bus data can be sent to the inter-chip bus based on the indication of the transmission volume identifier, wherein the multiple in this disclosure is greater than or equal to 2.
[0185] For example, when the bit width of the first buffer queue is 512 bits and the bit width of the inter-chip bus (i.e., the inter-chip bus interface) is 256 bits, when the transmission quantity flag is 1, it indicates that the current valid data is 1×256 bits. Accordingly, the first piece of first queue data (512 bits) can be retrieved from the first buffer queue, and the first 256 bits of data can be obtained as inter-chip bus data (i.e., valid data) based on the preset bit order and transmitted to the inter-chip bus, while the remaining 256 bits of data are discarded.
[0186] Correspondingly, when the transmission volume is 3, it indicates that the current valid data is 3×256 bits. The first 512 bits of data in the first buffer queue can be retrieved from the first buffer queue, and the first 256 bits of data are obtained as inter-chip bus data (i.e., the first valid data) based on the preset bit order and transmitted to the inter-chip bus. The remaining 256 bits of data are transmitted as inter-chip bus data (i.e., the second valid data) to the inter-chip bus. Further, the second 512 bits of data in the first buffer queue are retrieved from the first buffer queue, and the first 256 bits of data are obtained as inter-chip bus data (i.e., the third valid data) based on the preset bit order and transmitted to the inter-chip bus. At the same time, the remaining 256 bits of data are discarded.
[0187] At the receiving end chip, the valid data of the data packet transmitted between chips can be obtained, and further decoded according to the decoding rules of the corresponding encoding rules to obtain the data to be transmitted, and the data to be transmitted is transmitted to the chip's internal bus.
[0188] The module for receiving data will be described below. This module can be either a module configured in the data communication interface device of the receiving chip or a module configured in the data communication interface device of the transmitting chip. It should be noted that, to enable data transmission between chips, the data communication interface devices in both the receiving and transmitting chips have the same structure. The following description uses the receiving chip as an example to illustrate the module for receiving data.
[0189] Referring again to Figure 3, to achieve data reception, the data communication interface device can be further configured with a second buffer queue and a decoding module; wherein, the second buffer queue is used to receive and store the valid data of the data packet based on the transmission volume identifier. The decoding module is used to decode the data packet to obtain the data to be transmitted; and the transmission control module further sends the data to be transmitted to the core bus.
[0190] The second buffer queue can be understood as a data queue used to receive data. Specifically, the second buffer queue can be a FIFO queue, used to sequentially receive and store corresponding data packets. In a concrete example, the second buffer queue is used to receive and store data packets corresponding to access requests. These access requests can be read requests or write requests, where a read request or a write request can be understood as a specific implementation of an access request.
[0191] In a specific example, the transfer volume identifier can indicate the number of valid data transfers on the inter-chip bus. Correspondingly, the second buffer queue can receive the inter-chip bus data corresponding to the number of transfers indicated by the transfer volume identifier as valid data.
[0192] In an optional example, only valid data is sent to the inter-chip bus. Accordingly, the number of valid data entries can be determined based on the transmission volume identifier. Therefore, in this disclosure, the number of inter-chip bus data entries stored in the second buffer queue can be determined based on the transmission volume identifier.
[0193] In a specific example, when the bit width of the second cache queue is greater than the bit width of the inter-chip bus, the number of inter-chip bus data entries that a second queue can accommodate can be determined based on the quantitative relationship between the bit width of the second cache queue and the bit width of the inter-chip bus. This number can be a preset number. Correspondingly, the preset number of inter-chip bus data entries received from the inter-chip bus can be sequentially merged into a second queue and stored in the second cache queue until the determined number of inter-chip bus data entries is reached. Here, the bit width of a second queue is equal to the bit width of the second cache queue. Taking an inter-chip bus bit width of 256 bits and a second cache queue bit width of 512 bits as an example, one data entry received from the inter-chip bus is one inter-chip bus data entry, and two inter-chip bus data entries can be merged into one second queue data entry and stored in the second cache queue.
[0194] For example, when the bit width of the second buffer queue is 512 bits and the bit width of the inter-chip bus (i.e., the inter-chip bus interface) is 256 bits, when the transmission amount flag is 1, it indicates that the current valid data is 1×256 bits. Accordingly, the first 256 bits of inter-chip bus data can be received from the inter-chip bus, and the inter-chip bus data can be stored in the second buffer queue as a second queue data according to the preset bit order, and the remaining bits in the second buffer queue can be filled with invalid data.
[0195] Correspondingly, when the transmission volume identifier is 3, it indicates that the current valid data is 3×256 bits. Accordingly, the first 256-bit inter-chip bus data and the second 256-bit inter-chip bus data can be received from the inter-chip bus, and the received data can be merged into a second queue data stored in the second buffer queue. Furthermore, the third 256-bit inter-chip bus data can be received from the inter-chip bus, and the data can be stored in the second queue data as a second queue data based on the preset bit order, and the remaining bits in the second buffer queue can be filled with invalid data.
[0196] After the valid data of the data packet is stored in the second buffer queue, the decoding module can further read the corresponding second queue data and decode the data packet.
[0197] In the example where the data packets are transmitted based on valid data, the decoding module can first read the second queue data belonging to the same data packet from the second buffer queue, and then restore the data packet based on the read second queue data; decode the restored data packet to obtain the data to be transmitted; and then transmit the data to be transmitted to the chip bus.
[0198] In a specific example, the decoding module can determine the second queue data belonging to the same data packet based on the transmission volume identifier. It is understood that the number of data packets stored in the second buffer queue has been determined in the aforementioned process; therefore, the data packet data can be read based on the corresponding number of data packets in the second queue.
[0199] For example, when the number of entries in the second queue corresponding to the data packet is 1, that entry in the second queue can be read; when the number of entries in the second queue corresponding to the data packet is 2, those 2 entries in the second queue can be read.
[0200] After reading the corresponding second queue data, the data packet can be restored based on the read second queue data. In a specific implementation, the read second queue data can be written sequentially into the data packet according to a preset bit order, and the other positions in the data packet can be filled with invalid data. Specifically, when the number of entries in the second queue is 1, the read second queue data can be written into the data packet according to a preset bit order, and the other positions in the data packet can be filled with invalid data; when the queue data consists of multiple entries, the read multiple entries of the second queue data can be written sequentially into the data packet according to a preset bit order, and the other positions in the data packet can be filled with invalid data.
[0201] For example, when the width of the second buffer queue is 512 bits and the width of the inter-chip bus (i.e., the inter-chip bus interface) is 256 bits, if the transfer amount identifier is 1 or 2, the corresponding second queue data is 1 piece. Accordingly, the second queue data is read and written into the first 512 bits of the data packet, and the subsequent bits are filled with invalid data. If the transfer amount identifier is 3 or 4, the corresponding second queue data is 2 pieces. Accordingly, the 2 pieces of second queue data are read, and the first piece of second queue data is written into the first 512 bits of the data packet in sequence, and the second piece of second queue data is written into bits 513 to 1024 of the data packet, and the subsequent bits are filled with invalid data, and so on.
[0202] After restoring the data packet, the data packet can be decoded.
[0203] In an optional implementation, the location of each data segment within the data packet can be used to determine the corresponding data segment or data identifier, and the meaning of each data segment can be determined based on the specific data information. For a detailed description, please refer to the data encoding section; this disclosure will not repeat it here.
[0204] It is understandable that after decoding the data to be transmitted, the data can be transmitted to the chip bus based on the corresponding on-chip bus interface.
[0205] The correspondence between the data to be transmitted in the data packet and each channel of the on-chip bus interface can be referred to the foregoing description, and will not be repeated here.
[0206] It should be noted that, in the data receiving logic, the data communication interface device is further configured with a bus channel control module (not shown in the figure), which is used to send the data to be transmitted in the data packet to each channel of the on-chip bus interface. Correspondingly, the decoding module can transmit the data packet to the bus channel control module, so that the bus channel control module can realize the corresponding data transmission.
[0207] The data transmission process for transmission control information is described below. Specifically, the data communication interface device controls data transmission based on the transmission control information. For example, before transmitting the data to be transmitted, the clock of the data transmission path is first activated based on the transmission control information.
[0208] The transmission control module can obtain transmission control information from the on-chip bus. Specifically, it can obtain the transmission control information from the control channel in the on-chip bus interface. The transmission control information is stored in the first port control unit, and when both the transmission control information and data to be transmitted from other channels exist simultaneously, the transmission control information is transmitted first. That is, when both transmission control information and data to be transmitted are obtained from the on-chip bus, the transmission control information is selected and sent to the encoding module. After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module. The control response message is feedback information issued by the receiving chip, used to indicate that the transmission path is valid.
[0209] Flow control information can be packetized simultaneously with transmission control information. The flow control information can be obtained from the flow control channel in the on-chip bus interface and can be stored in the first flow control unit. When transmission control information exists and is transmitted with priority, both transmission control information and flow control information can be selected simultaneously and sent to the encoding module. After the transmission control information and flow control information are transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
[0210] In practical implementation, to avoid the loss of information from other channels transmitted simultaneously, channel identifiers can be used to mark the channel information of each channel. Specifically, a first channel identifier and a second channel identifier can be configured for each channel information, and a third channel identifier can be configured for the channel information in the transmission sequence control unit. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly (i.e., forming a data packet or a control packet), the second channel identifier is used to mark whether the channel information of each channel has been written into the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit.
[0211] In a specific example, the first channel identifier can be labeled as channel_avi[i], the second channel identifier can be labeled as channel_clr[i], and the third channel identifier can be labeled as channel_rdy[i], where i is a natural number, and different i values indicate different channel information.
[0212] To prioritize the transmission control information, it can be acquired. When the acquired transmission control signal is valid, the corresponding first channel identifier is configured to be valid, indicating that a transmission control signal is currently involved in packet assembly. At this time, the channel_rdy of other channels is configured to be invalid (e.g., a first preset value), so that the transmission control information is sent and the channel information corresponding to the data to be transmitted is pushed back, causing the data to be transmitted to be temporarily stored in the transmission sequence control unit. After the transmission control information is written to the first buffer queue, the corresponding second channel identifier is configured to be valid, and the first channel information is configured to be invalid, indicating that the data has been written to the first buffer queue, allowing the packet assembly operation to continue.
[0213] Specifically, when continued packet assembly is permitted, `channel_rdy` can be configured to be valid (e.g., a second preset value) so that the transmission sequence control unit sends the data to be transmitted to the encoding module to participate in the packet assembly operation. It is understood that if no control response message indicating that the corresponding transmission path is valid (e.g., the corresponding clock signal is on) is received, the data to be transmitted can only participate in packet assembly and be stored in the first buffer queue awaiting transmission. Only when a control response message indicating that the corresponding transmission path is valid is received can the subsequent data transmission process be executed.
[0214] It should be noted that when a channel information entry includes both transmission control information and data to be transmitted, other channel information entries are only allowed to begin the data transmission process after both the transmission control information and the data to be transmitted for that channel information entry have been sent. In a specific example, the transmission sequence control unit can temporarily store multiple channel information entries it receives and send them out sequentially. Specifically, the next channel information entry is allowed to be sent from the transmission sequence control unit only when the second channel identifier of the previous channel information entry is valid.
[0215] It should be noted that after the transmission control module obtains the transmission control information, the transmission control module further controls the clock of the data communication interface device to be in the on state.
[0216] In a specific implementation, the encoding module is further used to encode the transmission control information and package it into control packets. The packaging method of the control packets is the same as that of the data packets, and the capacity of the control packets is adapted to the data bit width of the intra-core bus. Specifically, the capacity of the control packets is the same as that of the data packets, thereby matching the data transmission method of the data packets and simplifying the data transmission process.
[0217] In a specific example, the control package can also be configured with redundant data corresponding to transmission control information. This redundant data is used to indicate the data status and / or transmission status of the corresponding data, thereby enabling transmission control of the data based on this redundant data.
[0218] Correspondingly, the control packet can also include valid data and invalid data. Valid data refers to data that has substantial meaning, i.e., data that needs to be transmitted. In this example, it can include transmission control information and corresponding redundant data. In an optional example, the valid data may also include flow control information. Invalid data refers to data that has no substantial meaning. When the valid data does not completely fill the control packet, other positions in the control packet can be filled with invalid data. This invalid data can be random data or preset data, such as data with a value of "0".
[0219] In a specific implementation, the redundant data in the control packet can also include the transmission volume identifier corresponding to the valid data, thereby achieving the same transmission control as the data packet.
[0220] Referring to Figure 5, which illustrates an optional structure of a control packet, the control packet may include multiple information segments, each carrying different information. Specifically, the control packet may include a transmission quantity identifier segment, a flow control information segment, and a control information segment. The transmission quantity identifier segment is used to configure a transmission quantity identifier, the flow control information segment is used to configure flow control information, and the control information segment is used to configure transmission control information. In a practical implementation, different information segments can be configured to different data bits within the control packet, thereby determining the corresponding information segment based on the corresponding data bits.
[0221] In a specific implementation, the control package may also be configured with a data prefix to indicate the information status of an information segment. It is understood that different information segments are configured with different data prefixes, and when an information segment has different information statuses, an information segment may be configured with multiple data prefixes. In the control package, the data prefix can be configured at a preset position based on preset rules, so as to determine the meaning indicated by the data prefix based on the corresponding position information.
[0222] For example, the data identifier corresponding to the transmission control information is the transmission control identifier, which can be configured to the data bits adjacent to the transmission control information segment. For example, the first 8 bits of the transmission control information segment can be configured as the position for configuring the transmission control identifier.
[0223] In a specific example, referring to Figure 5, bit[7:0] is used as the transmission volume identifier segment, bit[63:8] is used as the flow control information segment, bit[71:64] is used as the transmission control identifier segment to configure the transmission control identifier, and bit[255:72] is used as the control information segment.
[0224] Different data identifiers correspond to different meanings, and the meanings of the relevant data can be found in Table 1.
[0225] After a control packet is formed, it can be stored in a first buffer queue. Correspondingly, the first buffer queue is also used to store the control packet and, based on the transmission volume identifier, to send the valid data of the control packet to the inter-chip bus.
[0226] In a specific example, a control group packet can be divided into multiple first queue data and stored sequentially into the first cache queue.
[0227] In an optional example, to improve resource utilization efficiency, the process of storing control packets into the first cache queue only stores the valid data of the control packets. Correspondingly, when the control packets include a transmission volume identifier, the number of control packets to be stored in the first cache queue can be determined based on the transmission volume identifier, and further, the control packets can be sequentially divided into the determined number of first queue data entries based on a preset bit length order and stored in the first cache queue.
[0228] It should be noted that the transmission control information is used to control the clock of each device unit in the corresponding data transmission path to be in the on state. Accordingly, the transmission control information can first perform logical operations based on the first port control unit, and then send the transmission control information to the receiving chip through the inter-chip bus based on a data path independent of the aforementioned data path, so as to wake up the clock of the receiving chip in advance. Furthermore, based on the woken clock, the control packet is sent based on the aforementioned data path to obtain the feedback information of the corresponding control packet, and to determine that the transmission control information is valid and the clock is on.
[0229] In the data transmission process from the first buffer queue to the inter-core bus, valid data can be transmitted based on the transmission volume identifier. The corresponding transmission process can be found in the description of the data packet transmission process described above.
[0230] At the receiving end, the valid data of the control packet transmitted between the two ends of the chip can be obtained, and further decoded according to the decoding rules of the corresponding encoding rules to obtain the transmission control information, and corresponding control is performed based on the transmission control information.
[0231] The module for receiving data will be described below. This module can be either a module configured in the data communication interface device of the receiving chip or a module configured in the data communication interface device of the transmitting chip. It should be noted that, to achieve data transmission between chips, the data communication interface devices in the receiving and transmitting chips have the same structure. The following description uses the receiving chip as an example to illustrate the module for receiving data.
[0232] In the receiving end chip, the second buffer queue in the data communication interface device is further used to receive and store the valid data of the control packet based on the transmission volume identifier. The decoding module is further used to decode the control packet to obtain transmission control information and send the transmission control information to the transmission control module. At the same time, when the valid data includes flow control information, the control packet is further decoded based on the decoding module to obtain flow control information and the flow control information is sent to the transmission control module.
[0233] In the data transmission process from the first buffer queue to the inter-core bus, valid data can be transmitted based on the transmission volume identifier. The corresponding transmission process can be found in the description of the data packet transmission process described above.
[0234] After the valid data of the control packet is stored in the second buffer queue, the decoding module can further read the corresponding queue data and decode the data packet.
[0235] In the example where the control packet is transmitted based on valid data, the decoding module can first read the second queue data belonging to the same control packet from the second buffer queue. Then, based on the read second queue data, it reconstructs the control packet; decodes the reconstructed control packet to obtain transmission control information; and then sends the transmission control information to the transmission control module. Where flow control information is present, the corresponding decoding process can simultaneously obtain the flow control information and then simultaneously send the flow control information to the transmission control module.
[0236] In a specific example, the decoding module can determine the second queue data belonging to the same control group packet based on the transmission volume identifier. It is understood that the number of control group packet entries stored in the second buffer queue has been determined in the aforementioned process; therefore, control group packet data can be read based on the corresponding number of entries in the second queue.
[0237] After reading the corresponding second queue data, the control packet can be restored based on the read second queue data. In a specific implementation, the read second queue data can be sequentially written into the control packet according to a preset bit order, and the other positions in the control packet can be filled with invalid data. Specifically, when the number of entries in the second queue data is 1, the read second queue data can be written into the control packet according to a preset bit order, and the other positions in the control packet can be filled with invalid data; when the queue data consists of multiple entries, the multiple read second queue data entries can be sequentially written into the control packet according to a preset bit order, and the other positions in the control packet can be filled with invalid data.
[0238] After restoring the control packet, the control packet can be decoded.
[0239] In an optional implementation, the location of each data segment or data identifier within the control group can be used to determine the meaning of each data segment or identifier, and the meaning of each data segment can be determined based on the specific data information. For a detailed description, please refer to the coding section; this disclosure will not repeat it here.
[0240] It is understandable that after decoding the transmission control information, the data to be transmitted can be further transmitted to the transmission control module based on the corresponding on-chip bus interface.
[0241] In a specific example, the transmission control module further includes a second port control unit and a second flow control unit. The second port control unit sends the transmission control information to the control channel of the chip's internal bus, thereby enabling the chip to determine that the clock of its internal storage space is enabled based on the transmission control information. The second flow control unit sends the flow control information to the transmission sequence control unit, thereby enabling the transmission sequence control unit to determine whether the receiving chip has available space to store the data to be transmitted.
[0242] Specifically, whether the receiving chip has available space to store the data to be transmitted refers to whether there is available space in the second buffer queue of the receiving chip to store the data to be transmitted, and / or whether there is available space in the internal storage space of the receiving chip to store the data to be transmitted. The availability of space in the second buffer queue can be determined based on the second buffer queue and sent to the first buffer queue of the sending chip to guide the data communication interface device to send data from the first buffer queue. The availability of space in the internal storage space of the receiving chip can be determined based on the transmission sequence control module in the transmission control module, thereby informing the sending chip of the available space size and guiding the sending chip to send data packets or control packets.
[0243] In a specific implementation, the transmission sequence control unit can also send a control response message to the transmitting core when the clock of the internal storage space within the core is on and there is available space in the second buffer queue to store the data to be transmitted. This allows the transmitting core to start the transmission of the data to be transmitted based on the control response message.
[0244] It should be noted that the capacity of the available space in the second buffer queue (e.g., the number of available items in the second buffer queue) can be configured in the control packet corresponding to the control response message. Considering that the transmission efficiency of the inter-core bus is lower than that of the intra-core bus, in this embodiment of the invention, the total capacity of the available space in the second buffer queue can also be transmitted in the control response message, instead of only transmitting the available capacity in the second buffer queue used for transmitting control information. This allows the transmitting core to implement transmission control for multiple data items based on the control response message, without having to transmit and respond to each data item individually.
[0245] In an optional implementation, this disclosure further provides a data transmission method. Referring to FIG6, an optional example diagram of a data transmission method is shown. As shown in FIG6, the data transmission method may include:
[0246] Step S100: Obtain the data to be transmitted from the internal bus of the chip, and send the data to be transmitted to the encoding module when the preset conditions are met; wherein, the preset conditions include at least: the receiving chip has available space to store the data to be transmitted, and the data to be transmitted meets the data transmission rules;
[0247] Step S110: Encode the data to be transmitted and package it into a data packet; wherein, the capacity of the data packet is adapted to the data bit width of the intra-core bus, the data packet includes at least valid data, and in the data packet, the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data, the transmission amount identifier is used to indicate the number of transmissions of valid data on the inter-core bus;
[0248] Step S120: Store the data packet in the first buffer queue, and when the transmission path from the inter-core bus to the receiving core is valid, send the valid data of the data packet to the inter-core bus based on the transmission volume identifier.
[0249] In an optional example, the data transmission rule includes at least the following: under a write-then-read access request order, the transmission order of the access requests is prohibited from being changed.
[0250] In an optional example, storing the data packet to the first cache queue in step S120 includes:
[0251] The number of data packets stored in the first buffer queue is determined based on the transmission volume identifier;
[0252] Based on the preset bit order of the data packet, the data is divided into a predetermined number of first queue data and stored in the first cache queue.
[0253] In an optional example, in step S120, when multiple data packets are stored in the first cache queue, the data packets are stored one by one in sequence.
[0254] In an optional example, step S120, which involves sending valid data of the data packet to the inter-chip bus based on the transmission volume identifier, includes:
[0255] Based on the bit width of the first buffer queue, the bit width of the inter-core bus, and the transmission volume identifier, the first queue data to be transmitted in the first buffer queue is determined.
[0256] The first queue data is divided into multiple inter-chip bus data with matching inter-chip bus width;
[0257] Based on the indication of the transmission volume identifier, the inter-chip bus data is sent to the inter-core bus.
[0258] In an optional example, referring to another optional example diagram of the data transmission method shown in Figure 7, the receiving end chip or the transmitting end chip may also perform the following steps:
[0259] Step S130: Based on the transmission volume identifier, receive and store the valid data of the data packet;
[0260] Step S140: Decode the data packet to obtain the data to be transmitted;
[0261] Step S150: Send the data to be transmitted to the chip bus.
[0262] It should be noted that, based on the chip in this embodiment, interactive data transmission can be achieved. Accordingly, both the receiving chip and the sending chip execute the data receiving process. The distinction is that when the receiving chip acts as the receiver, it receives the corresponding data from the sending chip, which acts as the sender; conversely, when the sending chip acts as the receiver, it receives the corresponding data from the receiving chip, which acts as the sender.
[0263] In an optional example, step S130, receiving and storing the valid data of the data packet based on the transmission volume identifier, includes:
[0264] The number of inter-chip bus data entries stored in the second buffer queue is determined based on the transmission volume identifier;
[0265] The inter-chip bus data received from the inter-chip bus of a preset number are sequentially merged into a second queue of data and stored in the second buffer queue until the predetermined number of inter-chip bus data is reached.
[0266] In an optional example, step S140, decoding the data packet to obtain the data to be transmitted, includes:
[0267] Read the data from the second cache queue that belongs to the same data group packet in the second queue;
[0268] Based on the read second queue data, reconstruct the data packet;
[0269] The restored data packets are decoded to obtain the data to be transmitted.
[0270] In an optional example, step S140, restoring the data packet based on the read second queue data, includes:
[0271] The second queue data read is sequentially written into the data packet based on the preset bit order;
[0272] Fill the other parts of the data package with invalid data.
[0273] In an optional example, referring to another optional example diagram of the data transmission method shown in Figure 8, prior to step S100, the method further includes:
[0274] Step S200: Obtain transmission control information from the chip's internal bus and control the clock of the data communication interface device to be in the on state;
[0275] Step S210: Encode the transmission control information and package it into a control packet; wherein, the capacity of the control packet is adapted to the data bit width of the intra-core bus, the control packet includes at least valid data, and in the control packet, the valid data includes the transmission control information and a transmission amount identifier corresponding to the valid data, the transmission amount identifier being used to indicate the number of transmissions of valid data on the inter-core bus;
[0276] Step S220: Store the control packet and, based on the transmission volume identifier, send the valid data of the data packet to the inter-chip bus.
[0277] In an optional example, when both transmission control information and data to be transmitted are simultaneously acquired from the in-core bus, after the transmission control information is acquired from the in-core bus and before the transmission control information is encoded and packaged into a control packet, the method further includes:
[0278] Select the data to be transmitted and send the transmission control information to the encoding module;
[0279] After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
[0280] In an optional example, each channel information is configured with a first channel identifier and a second channel identifier, and the channel information in the transmission sequence control unit is configured with a third channel identifier. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly, the second channel identifier is used to mark whether the channel information of each channel has been written to the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit.
[0281] Sending the transmission control information to the encoding module includes:
[0282] The first channel identifier corresponding to the transmission control information is configured to be valid, and the third channel identifier is invalid;
[0283] Based on the first channel identifier and the third channel identifier, the transmission control information is sent and the data to be transmitted is temporarily stored in the transmission sequence control unit;
[0284] After the transmission control information is written to the first buffer queue, the corresponding second channel identifier is configured to be valid, and the first channel information is configured to be invalid, indicating that the data has been written to the first buffer queue.
[0285] Configure the third channel identifier as valid to send the data to be transmitted to the encoding module.
[0286] In an optional example, storing the control group package in step S220 includes:
[0287] The number of control group packets stored in the first buffer queue is determined based on the transmission volume identifier;
[0288] Based on the preset bit order of the control group packet, the data is divided into a predetermined number of first queue data and stored in the first cache queue.
[0289] In an optional example, referring to another optional example diagram of the data transmission method shown in FIG9, before step S100 and after step S220, the method further includes:
[0290] Step S230: Based on the transmission volume identifier, receive and store the valid data of the control packet;
[0291] Step S240: Decode the control group packet to obtain transmission control information;
[0292] Step S250: Send the transmission control information to the core bus.
[0293] In an optional example, step S240, decoding the control packet to obtain transmission control information, includes:
[0294] Read the data from the second cache queue that belongs to the same control group packet;
[0295] Based on the read second queue data, the control packet is reconstructed;
[0296] Decode the restored control packet to obtain the transmission control information;
[0297] The transmission control information is sent to the transmission control module.
[0298] In an optional example, step S240, restoring the control packet based on the read second queue data, includes:
[0299] The second queue data read is sequentially written into the control group packet based on the preset bit order;
[0300] Fill the other locations in the control group package with invalid data.
[0301] In an optional example, referring to another optional example diagram of the data transmission method shown in Figure 10, after step S250, the method further includes:
[0302] Step S260: When the clock in the internal storage space within the chip is on and there is available space in the second buffer queue to store the data to be transmitted, a control response message is sent back to the sending chip; the control response message is used to indicate that the transmission path is valid and that there is available space in the receiving chip to store the data to be transmitted.
[0303] In an optional example, the control response message is configured with the total capacity of the available space in the second cache queue.
[0304] At least one embodiment of this disclosure also provides a chip, which is configured with a data communication interface device provided in at least one embodiment of this disclosure.
[0305] At least one embodiment of this disclosure also provides a system-on-a-chip (SoC), which may include a plurality of interconnected chips, the chips being the chips provided in at least one embodiment of this disclosure.
[0306] At least one embodiment of this disclosure also provides a computer device, such as a terminal device or a server device, which may include the system-on-a-chip provided in at least one embodiment of this disclosure.
[0307] The foregoing describes multiple embodiment schemes provided by the present disclosure. The optional methods described in each embodiment scheme can be combined and cross-referenced with each other without conflict, thereby extending to a variety of possible embodiment schemes. These can all be considered as the embodiment schemes disclosed and made public by the present disclosure.
[0308] While the embodiments disclosed herein are as described above, this disclosure is not limited thereto. Any person skilled in the art can make various alterations and modifications without departing from the spirit and scope of this disclosure; therefore, the scope of protection of this disclosure should be determined by the scope defined in the claims.
Claims
1. A data communication interface device, applied to chip interconnect communication, comprising: The transmission control module is configured to acquire data to be transmitted from the in-core bus and send the data to be transmitted to the encoding module when preset conditions are met; wherein, the preset conditions include at least: the receiving core has available space to store the data to be transmitted, and the data to be transmitted meets the data transmission rules; An encoding module is configured to encode the data to be transmitted and package it into a data packet; wherein the capacity of the data packet is adapted to the data bit width of the intra-core bus, and the data packet includes at least valid data. In the data packet, the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of the valid data on the inter-core bus. The first buffer queue is configured to store the data packets and, when the transmission path from the inter-core bus to the receiving core is valid, send the valid data of the data packets to the inter-core bus based on the transmission volume identifier.
2. The data communication interface device according to claim 1, wherein, The data transmission rules include at least the following: under the order of write-then-read access requests, the transmission order of the access requests shall not be changed; The transmission control module includes a first port control unit, a first flow control unit, and a transmission sequence control unit; the first port control unit is configured to receive transmission control information, the first flow control unit is configured to receive flow control information, and the transmission sequence control unit is configured to receive request information, data information, read response information, and write response information.
3. The data communication interface device according to claim 2, wherein, The data packet includes a transmission volume identifier segment, a data information segment, a request information segment, a read response information segment, a write response information segment, a flow control information segment, and a data identifier; wherein, the transmission volume identifier segment is used to configure the transmission volume identifier, the data information segment is used to configure the data information, the request information segment is used to configure the request information, the read response information segment is used to configure the read response information, the write response information segment is used to configure the write response information, and the flow control information segment is used to configure the flow control information; The data identifier is used to indicate the information status of the information segment; the data identifier includes: a read response identifier corresponding to the read response information, a write response identifier corresponding to the write response information, a request identifier corresponding to the request information, and a data information identifier corresponding to the data information.
4. The data communication interface device according to any one of claims 1-3, wherein, The first cache queue is configured to store the data packets, including: determining the number of data packets to be stored in the first cache queue based on the transmission volume identifier; dividing the data packets into the determined number of first queue data according to a preset bit length order and storing them in the first cache queue; wherein, when multiple data packets are stored in the first cache queue, the process of storing them in the first cache queue is completed one by one in sequence. And / or, The first buffer queue is configured to send valid data of the data packet to the inter-chip bus based on the transfer volume identifier, including: determining the first queue data to be transmitted in the first buffer queue based on the bit width of the first buffer queue, the bit width of the inter-chip bus, and the transfer volume identifier; dividing the first queue data into multiple inter-chip bus data matching the bit width of the inter-chip bus; and sending the inter-chip bus data to the inter-chip bus based on the indication of the transfer volume identifier.
5. The data communication interface device according to any one of claims 1-4, further comprising: Second buffer queue and decoding module; The second buffer queue is configured to receive and store valid data of the data packet based on the transmission volume identifier; The decoding module is configured to decode the data packets to obtain the data to be transmitted. The transmission control module is also configured to send the data to be transmitted to the in-core bus.
6. The data communication interface device according to claim 5, wherein, The second buffer queue is configured to receive and store valid data of the data packet based on the transmission volume identifier, including: determining the number of inter-chip bus data entries to be stored in the second buffer queue based on the transmission volume identifier; sequentially merging a preset number of inter-chip bus data entries received from the inter-chip bus into a second queue of data and storing it in the second buffer queue, until the determined number of inter-chip bus data entries is reached; The decoding module is configured to decode the data packet to obtain the data to be transmitted, including: reading second queue data belonging to the same data packet from the second buffer queue; restoring the data packet based on the read second queue data; and decoding the restored data packet to obtain the data to be transmitted.
7. The data communication interface device according to claim 6, wherein, The decoding module is configured to reconstruct the data packet based on the read second queue data, including: The read data from the second queue is sequentially written into the data packet based on a preset bit order; Fill the other locations in the data package with invalid data.
8. The data communication interface device according to any one of claims 5-7, wherein, The transmission control module is also configured to acquire transmission control information from the core bus and control the clock of the data communication interface device to be in the on state. The encoding module is further configured to encode the transmission control information and package it into a control packet; wherein the capacity of the control packet is adapted to the data bit width of the intra-core bus, and the control packet includes at least valid data. In the control packet, the valid data includes the transmission control information and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of the valid data on the inter-core bus. The first buffer queue is also configured to store the control packet and, based on the transmission volume identifier, send the valid data of the data packet to the inter-chip bus.
9. The data communication interface device according to claim 8, wherein, When simultaneously acquiring the transmission control information and the data to be transmitted from the intra-core bus, the transmission control module is further configured to: Select the data to be transmitted and send the transmission control information to the encoding module; After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
10. The data communication interface device according to claim 9, wherein, Each channel information is configured with a first channel identifier and a second channel identifier, and the channel information in the transmission sequence control unit is configured with a third channel identifier. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly, the second channel identifier is used to mark whether the channel information of each channel has been written into the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit. The transmission control unit is configured to select the data to be transmitted and send the transmission control information to the encoding module, including: The first channel identifier corresponding to the transmission control information is configured to be valid, and the third channel identifier is invalid; Based on the first channel identifier and the third channel identifier, the transmission control information is sent and the data to be transmitted is temporarily stored in the transmission sequence control unit; After the transmission control information is written to the first buffer queue, the second channel identifier corresponding to the transmission control information is configured to be valid, and the first channel information is configured to be invalid, to indicate that the data has been written to the first buffer queue. Configure the third channel identifier as valid to send the data to be transmitted to the encoding module.
11. The data communication interface device according to claim 10, wherein, The transmission sequence control unit is configured to temporarily store multiple channel information received by it and send the channel information in sequence, wherein the next channel information is allowed to be sent from the transmission sequence control unit when the second channel identifier of the previous channel information is valid.
12. The data communication interface device according to any one of claims 8-11, wherein, The control packet includes a transmission volume identifier segment, a flow control information segment, and a control information segment; wherein, the transmission volume identifier segment is used to configure the transmission volume identifier, the flow control information segment is used to configure flow control information, and the control information segment is used to configure the transmission control information; The first cache queue is further configured to store the control packets, including: determining the number of control packets to be stored in the first cache queue based on the transmission volume identifier; and dividing the control packets into the determined number of first queue data according to a preset bit order and storing them in the first cache queue. The second buffer queue is further configured to receive and store the valid data of the control packet based on the transmission volume identifier; the decoding module is further configured to decode the control packet to obtain the transmission control information; the transmission control module is further configured to send the transmission control information to the core bus.
13. The data communication interface device according to claim 12, wherein, The decoding module is further configured to decode the control packet to obtain the transmission control information, including: reading second queue data belonging to the same control packet from the second buffer queue; restoring the control packet based on the read second queue data; decoding the restored control packet to obtain the transmission control information; and sending the transmission control information to the transmission control module. And / or, The decoding module is also configured to restore the control packet based on the read second queue data, including: sequentially writing the read second queue data into the control packet according to the preset bit order; and filling other positions of the control packet with invalid data.
14. The data communication interface device according to claim 13, wherein, The transmission sequence control unit is also configured to send a control response message to the sending end core when the clock of the internal storage space within the core is turned on and there is available space in the second buffer queue to store the data to be transmitted. The control response message is used to indicate that the transmission path is valid and that there is available space in the receiving end chip to store the data to be transmitted.
15. A data transmission method, comprising: The receiving chip acquires the data to be transmitted from its internal bus and sends the data to the encoding module when preset conditions are met; wherein the preset conditions include at least: the receiving chip has available space to store the data to be transmitted, and the data to be transmitted meets the data transmission rules. The data to be transmitted is encoded and packaged into a data packet; wherein the capacity of the data packet is adapted to the data bit width of the intra-core bus, and the data packet includes at least valid data. In the data packet, the valid data includes the data to be transmitted and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of the valid data on the inter-core bus. The data packet is stored in the first buffer queue, and when the transmission path from the inter-core bus to the receiving core is valid, the valid data of the data packet is sent to the inter-core bus based on the transmission volume identifier.
16. The data transmission method according to claim 15, wherein, The data transmission rules include at least the following: under the order of write-then-read access requests, the transmission order of the access requests must not be changed.
17. The data transmission method according to claim 15 or 16, wherein, The step of storing the data packets to the first cache queue includes: determining the number of data packets to be stored in the first cache queue based on the transmission volume identifier; dividing the data packets into the determined number of first queue data according to the preset bit length order and storing them in the first cache queue; wherein, when multiple data packets are stored in the first cache queue, the data packet storage process is completed one by one in sequence. And / or, The step of sending valid data of the data packet to the inter-chip bus based on the transmission volume identifier includes: determining the first queue data to be transmitted in the first buffer queue based on the bit width of the first buffer queue, the bit width of the inter-chip bus, and the transmission volume identifier; dividing the first queue data into multiple inter-chip bus data matching the bit width of the inter-chip bus; and sending the inter-chip bus data to the inter-chip bus based on the indication of the transmission volume identifier.
18. The data transmission method according to any one of claims 15-17, further comprising: Based on the transmission volume identifier, receive and store the valid data of the data packet; Decode the data packets to obtain the data to be transmitted; The data to be transmitted is sent to the in-core bus.
19. The data transmission method according to claim 18, wherein, The step of receiving and storing valid data of the data packet based on the transmission volume identifier includes: determining the number of inter-chip bus data entries to be stored in the second buffer queue based on the transmission volume identifier; sequentially merging the preset number of inter-chip bus data entries received from the inter-chip bus into a second queue of data and storing it in the second buffer queue until the determined number of inter-chip bus data entries is reached. Decoding the data packet to obtain the data to be transmitted includes: reading second queue data belonging to the same data packet from the second buffer queue; restoring the data packet based on the read second queue data; and decoding the restored data packet to obtain the data to be transmitted.
20. The data transmission method according to claim 19, wherein, The step of restoring the data packet based on the read second queue data includes: The read data from the second queue is sequentially written into the data packet based on a preset bit order; Fill the other locations in the data package with invalid data.
21. The data transmission method according to any one of claims 15-20, characterized in that, Also includes: The transmission control information is obtained from the core bus, and the clock of the data communication interface device is controlled to be turned on. The transmission control information is encoded and packaged into a control packet; wherein the capacity of the control packet is adapted to the data bit width of the intra-core bus, and the control packet includes at least valid data. In the control packet, the valid data includes the transmission control information and a transmission amount identifier corresponding to the valid data. The transmission amount identifier is used to indicate the number of transmissions of the valid data on the inter-core bus. The control packet is stored, and the valid data of the data packet is sent to the inter-chip bus based on the transmission volume identifier.
22. The data transmission method according to claim 21, wherein, When simultaneously acquiring the transmission control information and the data to be transmitted from the intra-core bus, after acquiring the transmission control information from the intra-core bus and before encoding and assembling the transmission control information into a control packet, the method further includes: Select the data to be transmitted and send the transmission control information to the encoding module; After the transmission control information is transmitted to the first buffer queue, the data to be transmitted is sent to the encoding module.
23. The data transmission method according to claim 22, wherein, Each channel information is configured with a first channel identifier and a second channel identifier, and the channel information in the transmission sequence control unit is configured with a third channel identifier. The first channel identifier is used to mark whether the channel information of the corresponding channel has participated in packet assembly, the second channel identifier is used to mark whether the channel information of each channel has been written into the first buffer queue, and the third channel identifier is used to mark whether it is allowed to read the corresponding channel information from the transmission sequence control unit. Sending the transmission control information to the encoding module includes: The first channel identifier corresponding to the transmission control information is configured to be valid, and the third channel identifier is invalid; Based on the first channel identifier and the third channel identifier, the transmission control information is sent and the data to be transmitted is temporarily stored in the transmission sequence control unit; After the transmission control information is written to the first buffer queue, the second channel identifier corresponding to the transmission control information is configured to be valid, and the first channel information is configured to be invalid, to indicate that the data has been written to the first buffer queue. Configure the third channel identifier as valid to send the data to be transmitted to the encoding module.
24. The data transmission method according to any one of claims 21-23, wherein, The storage of the control package includes: The number of control group packets stored in the first buffer queue is determined based on the transmission volume identifier; Based on the preset bit order of the control group package, the data is sequentially divided into the determined number of first queue data and stored in the first cache queue.
25. The data transmission method according to any one of claims 15-24, further comprising: Based on the transmission volume identifier, receive and store the valid data of the control packet; Decode the control packet to obtain the transmission control information; The transmission control information is sent to the in-core bus.
26. The data transmission method according to claim 25, wherein, Decoding the control packet to obtain the transmission control information includes: reading second queue data belonging to the same control packet from the second buffer queue; restoring the control packet based on the read second queue data; decoding the restored control packet to obtain the transmission control information; and sending the transmission control information to the transmission control module. And / or, The step of restoring the control packet based on the read second queue data includes: sequentially writing the read second queue data into the control packet according to the preset bit order; and filling the other positions of the control packet with invalid data.
27. The data transmission method according to claim 26, further comprising: When the clock in the internal storage space within the chip is on and there is available space in the second buffer queue to store the data to be transmitted, a control response message is sent back to the sending chip. The control response message is used to indicate that the transmission path is valid and that there is available space in the receiving chip to store the data to be transmitted.
28. A chip, configured with a data communication interface device as described in any one of claims 1-14.
29. A computer device comprising the chip as claimed in claim 28.
