CN-121567649-B - Data stream transmission method, device, chip, device, network interface card, storage medium and program product
Abstract
The present application relates to a data stream transmission method, apparatus, chip, device, network interface card, storage medium and program product. The method comprises the steps of receiving and analyzing a data stream from a first component to obtain transmission identification information, matching address information and a data packet in the data stream, obtaining a corresponding decoding information item from a cache unit according to the transmission identification information, determining destination identification information of the data stream according to the decoding information item and the matching address information, forming a new data stream according to the data packet, the transmission identification information and the destination identification information, and sending the new data stream to a second component. By adopting the method, the waste of bandwidth and power consumption can be reduced.
Inventors
- ZHANG XUELI
- LI YONG
- WU ZHIWEI
- LI YANG
Assignees
- 深圳云豹智能股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260126
Claims (18)
- 1. A method of data streaming applied to a communication device between a first device and a second device, the method comprising: receiving a decoding updating request of a decoding information item issued by a central processing unit, and writing the updated decoding information item into a corresponding address of a cache unit; Receiving and analyzing a data stream from the first component to obtain transmission identification information, matching address information and a data packet in the data stream; obtaining corresponding decoding information items from the cache unit according to the transmission identification information; determining destination identification information of the data stream according to the decoding information item and the matching address information; Forming a new data stream according to the data packet, the transmission identification information and the destination identification information, and sending the new data stream to the second component; Wherein said sending said new data stream to said second component comprises: determining a first transmission link in an idle state from a plurality of transmission links; forwarding the new data stream to an intermediate routing unit via said first transmission link; and sending the new data stream to an output port corresponding to the destination identification information through the intermediate routing unit so as to be sent to the second component through the output port.
- 2. The method of claim 1, wherein said determining destination identification information for said data stream based on said decoding information entry and said matching address information comprises: according to the decoding information item, performing address decoding to obtain a decoding address interval and an output port address corresponding to the decoding address interval; and if the matching address information is in the decoding address interval, determining the output port address corresponding to the decoding address interval as the destination identification information of the data stream.
- 3. The method of claim 1, wherein the transmission identification information includes routing identification bit information, and wherein the obtaining the corresponding decoding information entry from the cache unit according to the transmission identification information includes: if the decoding updating request of the decoding information item corresponding to the transmission identification information does not exist, obtaining the corresponding decoding information item from the cache unit according to the routing unit corresponding to the routing identification bit of the transmission identification information; and if a decoding updating request of the decoding information item corresponding to the transmission identification information exists, acquiring the corresponding decoding information item from the decoding updating request.
- 4. The method of claim 1, wherein forwarding the new data stream to the intermediate routing unit via the first transmission link comprises: performing bit width conversion on the new data stream, and forwarding the data stream after bit width conversion to an intermediate routing unit through the first transmission link; the sending, by the intermediate routing unit, the new data stream to the output port corresponding to the destination identification information, including: and sending the data stream after the bit width conversion to an output port corresponding to the destination identification information through the intermediate routing unit.
- 5. The method according to claim 1, wherein the method further comprises: Generating source identification information of the data stream according to the input interface of the data stream; splicing the source identification information and the transmission identification information to generate response identification information of the data stream; And transmitting response identification information of the data stream to the second component.
- 6. The method according to claim 1, wherein the method further comprises: Receiving a response message corresponding to the data stream sent by the second component, wherein the response message comprises response identification information; Separating source identification information from the response identification information; And sending a response message corresponding to the data stream to an input interface corresponding to the source identification information so as to send the response message to the first component.
- 7. The data flow transmission device is characterized by being applied to a communication assembly between a first assembly and a second assembly, and comprises an input module, a routing module and an output module, wherein the routing module comprises a plurality of routing units; The address updating module is used for receiving a decoding updating request of the decoding information item issued by the central processing unit and writing the updated decoding information item into a corresponding address of the cache unit; The input module is used for receiving and analyzing the data stream from the first component to obtain transmission identification information, matching address information and data packets in the data stream; The routing module is used for obtaining corresponding decoding information items from the cache unit according to the transmission identification information, determining destination identification information of the data stream according to the decoding information items and the matching address information, and forming a new data stream according to the data packet, the transmission identification information and the destination identification information; the output module is used for sending the new data stream to the second component; The routing module is further configured to determine a first transmission link in an idle state from a plurality of transmission links, forward a new data stream to an intermediate routing unit through the first transmission link, and send the new data stream to an output port corresponding to the destination identification information through the intermediate routing unit so as to be sent to the second component through the output port.
- 8. The apparatus of claim 7, wherein the apparatus further comprises: and the address updating module is used for receiving a decoding updating request of the decoding information item issued by the central processing unit and writing the updated decoding information item into the corresponding address of the cache unit.
- 9. The apparatus of claim 7, wherein the routing module is further configured to perform address decoding according to the decoding information entry to obtain a decoded address interval and an output port address corresponding to the decoded address interval, and determine the output port address corresponding to the decoded address interval as the destination identification information of the data stream if the matching address information is in the decoded address interval.
- 10. The apparatus of claim 7, wherein the transmission identification information includes routing identification bit information, wherein the routing module is further configured to obtain, if there is no decoding update request for a decoding information item corresponding to the transmission identification information, a corresponding decoding information item from the buffer unit according to a routing unit corresponding to the routing identification bit of the transmission identification information, and obtain, if there is a decoding update request for a decoding information item corresponding to the transmission identification information, a corresponding decoding information item from the decoding update request.
- 11. The apparatus of claim 7, wherein the routing module is further configured to perform bit-width conversion on the new data stream, forward the bit-width converted data stream to an intermediate routing unit through the first transmission link, and send the bit-width converted data stream to an output port corresponding to the destination identification information through the intermediate routing unit.
- 12. The apparatus of claim 7, wherein the output module is further configured to generate source identification information of the data stream according to the input interface of the data stream, splice the source identification information and the transmission identification information to generate response identification information of the data stream, and send the response identification information of the data stream to the second component.
- 13. The apparatus of claim 7, wherein the output module is further configured to receive a response message corresponding to the data flow sent by the second component, where the response message includes response identification information, separate source identification information from the response identification information, and send the response message corresponding to the data flow to an input interface corresponding to the source identification information, so as to send the response message to the first component.
- 14. A chip comprising the data streaming device of any of claims 7 to 13.
- 15. A computer device comprising a processor and the chip of claim 14, wherein the chip is configured to schedule messages to the processor or to process the chip itself, and the processor is configured to process messages scheduled by the chip.
- 16. A network interface card comprising the chip of claim 14 and an interface through which the chip communicates externally.
- 17. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
- 18. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Description
Data stream transmission method, device, chip, device, network interface card, storage medium and program product Technical Field The present application relates to the field of chip technologies, and in particular, to a method, an apparatus, a chip, a device, a network interface card, a storage medium, and a program product for transmitting a data stream. Background The development of computer technology is mature, and the development of on-chip interconnection technology also tends to be diversified and complicated. The form of the on-chip interconnect structure depends on the communication requirements of the multi-core architecture itself. As the number of compute cores on a chip increases, the scalable, low latency, and large bandwidth communication architecture for the compute cores on the chip becomes critical. In the related art, in peripheral interconnection of a small central processing unit (Central Processing Unit, CPU) or a large System On Chip (SOC), a bus (bus) and a crossbar (crossbar) structure are mainstream interconnection structures. Buses may provide lower transmission delays but not sufficient bandwidth. The crossbar may provide a sufficiently large bandwidth, but has poor scalability, both of which are disadvantageous. Meanwhile, for buses and cross switches, the decoding of addresses is determined at the beginning of the design of the register transfer stage (REGISTER TRANSFER LEVEL, RTL) and cannot be changed. Modifying RTL before streaming, the more costly it is to spend late in the project. After streaming, if it is found that the address decoding structure needs to be modified for manufacturing or design reasons, the chip cannot be modified, the performance is affected slightly, and the whole chip/project may fail seriously. In addition, the static address decoding technology also limits that each input data stream can only be output from some or a certain outlet, and when some input streams are not used, some output ports can never output data, so that the waste of bandwidth and power consumption is caused, namely, the reusability of network ports is insufficient. Disclosure of Invention In view of the foregoing, it is desirable to provide a method, an apparatus, and a chip for transmitting a data stream, which can reduce waste of bandwidth and power consumption. In a first aspect, the present application provides a data stream transmission method applied to a communication assembly between a first assembly and a second assembly, including: Receiving and analyzing a data stream from the first component to obtain transmission identification information, matching address information and a data packet in the data stream; obtaining corresponding decoding information items from the cache unit according to the transmission identification information; determining destination identification information of the data stream according to the decoding information item and the matching address information; and forming a new data stream according to the data packet, the transmission identification information and the destination identification information, and sending the new data stream to the second component. In one embodiment, before the receiving and parsing the data stream from the first component, the method further comprises: And receiving a decoding updating request of the decoding information item issued by the central processing unit, and writing the updated decoding information item into a corresponding address of the cache unit. In one embodiment, the determining destination identification information of the data stream according to the decoding information item and the matching address information includes: according to the decoding information item, performing address decoding to obtain a decoding address interval and an output port address corresponding to the decoding address interval; and if the matching address information is in the decoding address interval, determining the output port address corresponding to the decoding address interval as the destination identification information of the data stream. In one embodiment, the transmission identification information includes route identification bit information, and the obtaining the corresponding decoding information item from the cache unit according to the transmission identification information includes: if the decoding updating request of the decoding information item corresponding to the transmission identification information does not exist, obtaining the corresponding decoding information item from the cache unit according to the routing unit corresponding to the routing identification bit of the transmission identification information; and if a decoding updating request of the decoding information item corresponding to the transmission identification information exists, acquiring the corresponding decoding information item from the decoding updating request. In one embodiment, the sending the new data stream to the