Dynamic adjustment method and device for transmission command splitting granularity
By dynamically adjusting the split granularity of the on-chip interconnect network, the bus congestion and bandwidth waste problems caused by fixed split granularity are solved, and more efficient communication bandwidth utilization is achieved.
Patent Information
- Application Number
- CN202510554382.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-09-05
AI Technical Summary
In existing on-chip interconnect networks, fixed split granularity leads to bus congestion and bandwidth waste, and cannot effectively improve communication bandwidth utilization.
By analyzing the data packet information from the device protocol conversion module, calculating the invalid bandwidth ratio, and generating a split granularity adjustment strategy based on the preset threshold, the split granularity is dynamically adjusted, including increasing or decreasing the split granularity to optimize network performance.
The bandwidth utilization and bus performance of the on-chip interconnect network are improved, the probability of bus congestion and bandwidth waste is reduced, and the overall performance is improved.
Smart Images

Figure CN120602428A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a method and device for dynamically adjusting the granularity of transmission command splitting. Background Art
[0002] As the number of computing cores continues to increase, multi-core processors are widely used in various fields, including high-end servers, smartphones, and IoT gateways. The emergence of multi-core / many-core processors has improved computing efficiency, but it has also brought challenges in communication. To improve computing core utilization, we urgently need greater communication bandwidth. As a product of highly integrated SOC solutions, the network-on-chip (NOC) offers significant advantages such as high integration, flexibility, and scalability. The performance of the NOC has a crucial impact on the performance of the entire SOC chip, so improving the bandwidth utilization of the NOC is of great significance.
[0003] Currently, on-chip interconnect networks are widely used to connect numerous master devices and slave devices to achieve data interaction. Each upstream master device relies on a unique protocol conversion module to access the on-chip interconnect network. The protocol conversion module converts the master commands of different protocols issued by different master devices into a unified packet format within the on-chip interconnect network according to a fixed split granularity. However, the existing fixed split granularity has significant drawbacks. When the split granularity is set too large, the master command occupies the routing node for too long after being split, causing it to block other hosts for too long; when the split granularity is set too small, the downstream protocol conversion module will split the command twice, resulting in a waste of slave interface bandwidth, affecting the transmission bandwidth utilization in the on-chip interconnect network. Therefore, it is particularly important to propose a technical solution that can dynamically adjust the split granularity to improve the overall performance of the on-chip interconnect network and reduce the probability of bus congestion / bandwidth waste problems in the on-chip interconnect network. Summary of the Invention
[0004] The present invention provides a method and device for dynamically adjusting the granularity of transmission command splitting, which can dynamically adjust the splitting granularity to improve the overall performance of the on-chip interconnection network and reduce the probability of bus congestion / bandwidth waste problems occurring in the on-chip interconnection network.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a method for dynamically adjusting the granularity of transmission command splitting, the method comprising:
[0006] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, determines data information in the data packet, and sends the data information to the master device protocol conversion module, wherein the data information includes an invalid bandwidth value;
[0007] The master device protocol conversion module calculates invalid bandwidth ratio data according to the data information, and generates a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold;
[0008] After completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the first split granularity adjustment strategy.
[0009] As an optional implementation manner, in the first aspect of the present invention, the data information further includes a burst length of an original data packet corresponding to the data packet;
[0010] The master device protocol conversion module calculates invalid bandwidth ratio data according to the data information, including:
[0011] The master device protocol conversion module configures a statistical time window according to a preset number of clock cycles;
[0012] The master device protocol conversion module accumulates the data information within the statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet;
[0013] The master device protocol conversion module calculates invalid bandwidth ratio data according to the first accumulated data and the second accumulated data.
[0014] As an optional embodiment, in the first aspect of the present invention, the master device protocol conversion module generates a first split granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, including:
[0015] The master device protocol conversion module determines a preset invalid bandwidth ratio threshold as a first boundary value, and calculates a second boundary value based on the invalid bandwidth ratio threshold and a preset threshold coefficient, where the second boundary value is less than the first boundary value;
[0016] The master device protocol conversion module determines a target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generates a first split granularity adjustment strategy according to the target relationship.
[0017] As an optional implementation manner, in the first aspect of the present invention, the master device protocol conversion module generates a first split granularity adjustment strategy according to the target relationship, including:
[0018] When the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, the master device protocol conversion module generates a first sub-adjustment strategy, where the first sub-adjustment strategy is used to increase the split granularity;
[0019] When the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, the master device protocol conversion module generates a second sub-adjustment strategy, where the second sub-adjustment strategy is used to reduce the split granularity;
[0020] When the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the master device protocol conversion module generates a third sub-adjustment strategy, and the third sub-adjustment strategy is used to keep the split granularity unchanged.
[0021] As an optional implementation manner, in the first aspect of the present invention, the data packet includes a plurality of sub-data packets;
[0022] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task to determine the data information in the data packet, including:
[0023] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet;
[0024] The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each sub-data packet, and determines the data information in the data packet according to the invalid bandwidth value and the burst length of the original data packet.
[0025] As an optional implementation manner, in the first aspect of the present invention, the slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each of the sub-data packets, including:
[0026] The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet, the burst length of each sub-data packet and a preset invalid bandwidth value calculation formula;
[0027] And, the invalid bandwidth value calculation formula includes:
[0028] Invalid bandwidth value = (pkt_len_0 + ... + pkt_len_n) - pkt_len
[0029] Wherein, pkt_len_n represents the burst length of the nth sub-data packet, and pkt_len represents the burst length of the original data packet corresponding to the data packet.
[0030] As an optional embodiment, in the first aspect of the present invention, the method further comprises:
[0031] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, determines the data information in the data packet, and stores the data information in a preset lookup table in chronological order;
[0032] The slave device protocol conversion module determines, based on a preset time window and the data information stored in the lookup table, whether the invalid bandwidth value accumulated within the time window meets a preset split granularity adjustment condition;
[0033] When the invalid bandwidth value accumulated within the time window meets the split granularity adjustment condition, the slave device protocol conversion module generates a second split granularity adjustment strategy and sends the second split granularity adjustment strategy to the master device protocol conversion module;
[0034] After completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the second split granularity adjustment strategy.
[0035] A second aspect of the present invention discloses a device for dynamically adjusting the granularity of splitting a transmission command, the device comprising a slave device protocol conversion module and a master device protocol conversion module, wherein:
[0036] The slave device protocol conversion module is configured to analyze a received data packet corresponding to a current transmission task, determine data information in the data packet, and send the data information to the master device protocol conversion module, wherein the data information includes an invalid bandwidth value;
[0037] The master device protocol conversion module is configured to calculate invalid bandwidth ratio data according to the data information, and generate a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold;
[0038] The master device protocol conversion module is further configured to perform a split granularity adjustment operation according to the first split granularity adjustment strategy after completing the current transmission task.
[0039] As an optional implementation manner, in the second aspect of the present invention, the data information further includes a burst length of an original data packet corresponding to the data packet;
[0040] The master device protocol conversion module calculates the invalid bandwidth ratio data according to the data information in a manner that specifically includes:
[0041] Configure the statistical time window according to the preset number of clock cycles;
[0042] Accumulating the data information within the statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet;
[0043] Invalid bandwidth ratio data is calculated according to the first accumulated data and the second accumulated data.
[0044] As an optional embodiment, in the second aspect of the present invention, the master device protocol conversion module generates a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, specifically including:
[0045] Determining a preset invalid bandwidth ratio threshold as a first boundary value, and calculating a second boundary value based on the invalid bandwidth ratio threshold and a preset threshold coefficient, wherein the second boundary value is less than the first boundary value;
[0046] Determine a target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generate a first split granularity adjustment strategy according to the target relationship.
[0047] As an optional implementation manner, in the second aspect of the present invention, the manner in which the master device protocol conversion module generates the first split granularity adjustment strategy according to the target relationship specifically includes:
[0048] When the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, generating a first sub-adjustment strategy, wherein the first sub-adjustment strategy is used to increase the splitting granularity;
[0049] When the target relationship indicates that the invalid bandwidth ratio data is smaller than the second boundary value, generating a second sub-adjustment strategy, wherein the second sub-adjustment strategy is used to reduce the split granularity;
[0050] When the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, a third sub-adjustment strategy is generated, and the third sub-adjustment strategy is used to keep the split granularity unchanged.
[0051] As an optional implementation, in the second aspect of the present invention, the data packet includes a plurality of sub-data packets;
[0052] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, and determines the data information in the data packet in a manner that specifically includes:
[0053] Analyzing the received data packet corresponding to the current transmission task to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet;
[0054] The invalid bandwidth value of the data packet is calculated according to the burst length of the original data packet and the burst length of each sub-data packet, and the data information in the data packet is determined according to the invalid bandwidth value and the burst length of the original data packet.
[0055] As an optional implementation manner, in the second aspect of the present invention, the slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each of the sub-data packets in a manner that specifically includes:
[0056] Calculating the invalid bandwidth value of the data packet according to the burst length of the original data packet, the burst length of each sub-data packet, and a preset invalid bandwidth value calculation formula;
[0057] And, the invalid bandwidth value calculation formula includes:
[0058] Invalid bandwidth value = (pkt_len_0 + ... + pkt_len_n) - pkt_len
[0059] Wherein, pkt_len_n represents the burst length of the nth sub-data packet, and pkt_len represents the burst length of the original data packet corresponding to the data packet.
[0060] As an optional embodiment, in the second aspect of the present invention, the slave device protocol conversion module is further configured to analyze a received data packet corresponding to a current transmission task, determine data information in the data packet, and then store the data information in a preset lookup table in chronological order;
[0061] The slave device protocol conversion module is further configured to determine, based on a preset time window and the data information stored in the lookup table, whether the invalid bandwidth value accumulated within the time window satisfies a preset split granularity adjustment condition;
[0062] The slave device protocol conversion module is further configured to generate a second split granularity adjustment strategy when the invalid bandwidth value accumulated within the time window meets the split granularity adjustment condition, and send the second split granularity adjustment strategy to the master device protocol conversion module;
[0063] The master device protocol conversion module is further configured to perform a split granularity adjustment operation according to the second split granularity adjustment strategy after completing the current transmission task.
[0064] A third aspect of the present invention discloses another device for dynamically adjusting the granularity of transmission command splitting, the device comprising:
[0065] a memory storing executable program code;
[0066] a processor coupled to the memory;
[0067] The processor calls the executable program code stored in the memory to execute the method for dynamically adjusting the transmission command splitting granularity disclosed in the first aspect of the present invention.
[0068] A fourth aspect of the present invention discloses a computer storage medium storing computer instructions. When the computer instructions are called, they are used to execute the method for dynamically adjusting the transmission command splitting granularity disclosed in the first aspect of the present invention.
[0069] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0070] In an embodiment of the present invention, the data packet corresponding to the current transmission task is analyzed by the protocol conversion module of the slave device, the data information in the data packet is determined, and the data information is sent to the protocol conversion module of the master device. The protocol conversion module of the master device calculates the invalid bandwidth ratio data based on the data information, and generates a first split granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold value, and after completing the current transmission task, performs a split granularity adjustment operation according to the first split granularity adjustment strategy. It can be seen that the implementation of the present invention can automatically and intelligently determine the split granularity adjustment strategy, dynamically adjust the split granularity of the on-chip interconnection network, improve the adjustment accuracy and efficiency of the split granularity, improve the bandwidth utilization and bus performance of the on-chip interconnection network, and thus improve the overall performance of the on-chip interconnection network, and reduce the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0072] Figure 1 This is a schematic diagram of an application scenario of a method for dynamically adjusting the granularity of splitting transmission commands disclosed in an embodiment of the present invention;
[0073] Figure 2 This is a flow chart of a method for dynamically adjusting the granularity of splitting transmission commands disclosed in an embodiment of the present invention;
[0074] Figure 3 This is a flow chart of another method for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention;
[0075] Figure 4 It is a structural diagram of a device for dynamically adjusting the granularity of splitting transmission commands disclosed in an embodiment of the present invention;
[0076] Figure 5 It is a structural diagram of another device for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0078] The terms "first," "second," and so on, in the description and claims of the present invention and the accompanying drawings are used to distinguish between different items, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or end comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed therein, or may optionally include other steps or elements inherent to such process, method, product, or end.
[0079] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0080] The present invention discloses a method and device for dynamically adjusting the granularity of transmission command splitting. These methods can automatically and intelligently determine the splitting granularity adjustment strategy and dynamically adjust the splitting granularity of an on-chip interconnect network, improving the accuracy and efficiency of the splitting granularity adjustment, increasing the bandwidth utilization and bus performance of the on-chip interconnect network, thereby improving the overall performance of the on-chip interconnect network and reducing the probability of bus congestion and bandwidth waste in the on-chip interconnect network. These methods are described in detail below.
[0081] In order to better understand the method and device for dynamically adjusting the transmission command splitting granularity described in the present invention, the scenario to which the method for dynamically adjusting the transmission command splitting granularity is applicable is first described. Specifically, the scenario can be as follows: Figure 1 As shown, Figure 1 This is a schematic diagram of an application scenario of a method for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention. Figure 1 As shown, the scenario diagram represents an on-chip interconnection network (NOC). Specifically, the scenario diagram may include an upstream master device (MST0-MST3), a master device protocol conversion module (Master_NI0-Master_NI3) for interacting between the on-chip interconnection network and the upstream master device, an arbitration module (Router0 and Router1) within the on-chip interconnection network, a slave device protocol conversion module (Slave_NI) for interacting between the on-chip interconnection network and the downstream slave device, and a downstream slave device (DDR).
[0082] In the on-chip interconnection network, the master device protocol conversion module is responsible for converting the protocol commands / data of the host interface into the unified PKT packet format within the NOC. The arbitration module is responsible for aggregating the commands and data issued by multiple hosts, obtaining the arbitration commands and sending them to the downstream slave device protocol conversion module. The slave device protocol conversion module is responsible for converting the PKT packet format commands and data within the NOC into the DDR interface protocol format and sending them to the DDR. When the on-chip interconnect network (NOC) is transmitting data, after the upstream host usually sends a command, it will split the command into multiple packet commands according to the split granularity (pkt_size) within the Master_NI that interacts with the host and send them. After receiving the multiple packet commands, the slave device protocol conversion module will split the multiple packet commands again according to the requirements of the downstream slave device (DDR), such as re-address alignment splitting, to generate downstream slave commands. If the split granularity is set too large, the packet will occupy the routing node for too long, causing it to block other hosts for too long; if the split granularity is set too small, it will also affect the transmission bandwidth utilization in the NOC. That is, if the packet granularity does not match or is set too small, the secondary split will lead to waste of slave interface bandwidth.
[0083] It should be noted that Figure 1 The scenario diagram described is only intended to illustrate the scenario to which the method for dynamically adjusting the transmission command splitting granularity is applicable. The upstream master devices (MST0-MST3), the master device protocol conversion modules (Master_NI0-Master_NI3) for interaction between the on-chip interconnect network and the upstream master devices, the arbitration modules (Router0 and Router1) within the on-chip interconnect network, the slave device protocol conversion module (Slave_NI) for interaction between the on-chip interconnect network and the downstream slave devices, and the downstream slave device (DDR) are also only shown schematically. Figure 1The scenario diagram shown does not limit this. The above describes the scenarios to which the method for dynamically adjusting the granularity of splitting a transmission command is applicable. The following describes the method and device for dynamically adjusting the granularity of splitting a transmission command in detail.
[0084] Example 1
[0085] See also Figure 2 , Figure 2 This is a flow chart of a method for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention. Figure 2 The described method for dynamically adjusting the transmission command splitting granularity can be applied to a device for dynamically adjusting the transmission command splitting granularity, wherein the device for dynamically adjusting the transmission command splitting granularity may include an intelligent server or intelligent platform for analyzing and determining the splitting granularity adjustment strategy, and the intelligent server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 2 As shown, the method for dynamically adjusting the transmission command splitting granularity may include the following operations:
[0086] 101. The protocol conversion module of the slave device analyzes the received data packet corresponding to the current transmission task, determines the data information in the data packet, and sends the data information to the protocol conversion module of the master device.
[0087] In the embodiment of the present invention, optionally, Figure 1 As shown, each upstream master device can access the on-chip interconnection network by connecting to a unique master device protocol conversion module and issue protocol commands and / or data, and the data is transmitted in packet format. The master device protocol conversion module splits the command issued by the upstream master device according to the split granularity of the on-chip interconnection network to obtain multiple PKT packet commands, and then issues the packet commands to the slave device protocol conversion module through the arbitration module. The slave device protocol conversion module converts the multiple PKT packet commands into the DDR interface protocol format and issues them to the downstream slave device. During this process, the slave device protocol conversion module can analyze the received data packet corresponding to the current transmission task and determine the data information in the data packet, which includes the invalid bandwidth value. Specifically, when the slave device protocol conversion module detects the first PKT data packet corresponding to the current transmission task, it starts analyzing the PKT data packet to obtain the invalid bandwidth value of the PKT data packet. The invalid bandwidth value of each PKT data packet is accumulated until the slave device protocol conversion module detects the last PKT data packet corresponding to the current transmission task and obtains the invalid bandwidth value of the data packet corresponding to the current transmission task. The present invention is not limited to this.
[0088] In an embodiment of the present invention, optionally, the data information in the data packet corresponding to the current transmission task may further include the burst length (burst length) of the original data packet corresponding to the data packet. After the slave device protocol conversion module obtains the data information of the data packet corresponding to the current transmission task, the invalid bandwidth value and burst length of the data packet may be packaged into a response data packet (rsp_pkt), and the response data packet may be sent to the master device protocol conversion module. After the sending is completed, the invalid bandwidth value counted in the slave device protocol conversion module may be cleared, and the next transmission task may be started. The present invention does not limit this.
[0089] 102. The protocol conversion module of the master device calculates invalid bandwidth ratio data according to the data information, and generates a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold.
[0090] In an embodiment of the present invention, optionally, after receiving a response data packet sent by the slave device protocol conversion module, the master device protocol conversion module may decode the response data packet to obtain data information, and calculate invalid bandwidth ratio data based on the data information, wherein the invalid bandwidth ratio data may represent the ratio of the invalid bandwidth value accumulated within a certain period of time to the original burst length of the data packet, which is not limited by the present invention.
[0091] In an embodiment of the present invention, optionally, the master device protocol conversion module can generate a first split granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold. Specifically, when the invalid bandwidth ratio data is greater than the invalid bandwidth ratio threshold, the split granularity can be increased; when the invalid bandwidth ratio data is less than the invalid bandwidth ratio threshold, the split granularity can be reduced. The present invention does not limit this.
[0092] 103. After completing the current transmission task, the protocol conversion module of the master device performs a split granularity adjustment operation according to the first split granularity adjustment strategy.
[0093] In an embodiment of the present invention, optionally, after completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the first split granularity adjustment strategy, that is, the split granularity cannot be updated during the transmission process to avoid two different split granularities in the same transmission task. The present invention does not limit this.
[0094] It can be seen that implementation Figure 2The described method for dynamically adjusting the transmission command splitting granularity can analyze the data packet corresponding to the current transmission task received by the slave device protocol conversion module, determine the data information in the data packet, and send the data information to the master device protocol conversion module. The master device protocol conversion module calculates invalid bandwidth ratio data based on the data information, and generates a first splitting granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold. After completing the current transmission task, the splitting granularity adjustment operation is performed according to the first splitting granularity adjustment strategy. The method can automatically and intelligently determine the splitting granularity adjustment strategy, dynamically adjust the splitting granularity of the on-chip interconnection network, improve the adjustment accuracy and efficiency of the splitting granularity, improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0095] In an optional embodiment, the data packet includes a plurality of sub-data packets;
[0096] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task and determines the data information in the data packet, which may include the following operations:
[0097] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet;
[0098] The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each sub-data packet, and determines the data information in the data packet according to the invalid bandwidth value and the burst length of the original data packet.
[0099] In this optional embodiment, optionally, in a data transmission task, when the data packet sent by the master device passes through the master device protocol conversion module, the master device protocol conversion module will split the data packet into multiple sub-data packets with a unified format according to the current splitting granularity, and then send it to the slave device protocol conversion module, that is, the data packet corresponding to the current transmission task received by the slave device protocol conversion module may include multiple sub-data packets, which is not limited in this embodiment.
[0100] In this optional embodiment, optionally, the slave device protocol conversion module can parse the received data packet corresponding to the current transmission task, and then analyze the received data packet corresponding to the current transmission task, that is, analyze each sub-data packet to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet. The slave device protocol conversion module calculates the invalid bandwidth value of the data packet based on the burst length of the original data packet and the burst length of each sub-data packet. Specifically, the slave device protocol conversion module can sum the burst length of each sub-data packet and then subtract the burst length of the original data packet to obtain the invalid bandwidth value introduced after the original command is split, and determine the data information in the data packet based on the invalid bandwidth value and the burst length of the original data packet. Specifically, the slave device protocol conversion module calculates the invalid bandwidth value of the data packet based on the burst length of the original data packet and the burst length of each sub-data packet, which may include the following operations:
[0101] The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet, the burst length of each sub-data packet and a preset invalid bandwidth value calculation formula;
[0102] And, the invalid bandwidth value calculation formula includes:
[0103] Invalid bandwidth value = (pkt_len_0 + ... + pkt_len_n) - pkt_len
[0104] Where pkt_len_n represents the burst length of the nth sub-packet, and pkt_len represents the burst length of the original data packet corresponding to the data packet.
[0105] It can be seen that the implementation of this optional embodiment can analyze the data packet corresponding to the current transmission task received from the device protocol conversion module, obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet, calculate the invalid bandwidth value of the data packet based on the burst length of the original data packet and the burst length of each sub-data packet, and determine the data information in the data packet based on the invalid bandwidth value and the burst length of the original data packet, which can improve the accuracy of calculating the invalid bandwidth value, and then improve the accuracy of determining the invalid bandwidth ratio data, and improve the accuracy and efficiency of adjusting the splitting granularity.
[0106] In another optional embodiment, the method for dynamically adjusting the transmission command splitting granularity may include the following operations:
[0107] The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, determines the data information in the data packet, and stores the data information in a preset lookup table in chronological order;
[0108] The slave device protocol conversion module determines whether the accumulated invalid bandwidth value within the time window meets the preset split granularity adjustment condition based on the preset time window and the data information stored in the lookup table;
[0109] When the accumulated invalid bandwidth value in the time window meets the split granularity adjustment condition, the slave device protocol conversion module generates a second split granularity adjustment strategy and sends the second split granularity adjustment strategy to the master device protocol conversion module;
[0110] After completing the current transmission task, the protocol conversion module of the master device performs a split granularity adjustment operation according to the second split granularity adjustment strategy.
[0111] In this optional embodiment, optionally, the slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, and after determining the data information in the data packet, the data information can be stored in a preset lookup table in chronological order. Specifically, a lookup table can be set in the slave device protocol conversion module to store the invalid bandwidth value accumulated by each host in the time window. The slave device protocol conversion module determines whether the invalid bandwidth value accumulated in the time window meets the preset split granularity adjustment condition based on the preset time window and the data information stored in the lookup table, that is, determines whether the invalid bandwidth value accumulated in the time window reaches a threshold. When the invalid bandwidth value accumulated in the time window meets the split granularity adjustment condition, the slave device protocol conversion module generates a second split granularity adjustment strategy, takes the host information out of the lookup table, and sends the second split granularity adjustment strategy to the master device protocol conversion module. After completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the second split granularity adjustment strategy. This embodiment does not limit this.
[0112] It can be seen that the implementation of this optional embodiment can analyze the data packet corresponding to the current transmission task received by the slave device protocol conversion module, and after determining the data information in the data packet, store the data information in a preset lookup table in chronological order. The slave device protocol conversion module determines whether the accumulated invalid bandwidth value in the time window meets the preset split granularity adjustment condition based on the preset time window and the data information stored in the lookup table. When the accumulated invalid bandwidth value in the time window meets the split granularity adjustment condition, the slave device protocol conversion module generates a second split granularity adjustment strategy and sends the second split granularity adjustment strategy to the master device. The standby protocol conversion module performs a split granularity adjustment operation according to the second split granularity adjustment strategy after completing the current transmission task through the master device protocol conversion module. The split granularity adjustment strategy can be directly generated in the slave device protocol conversion module, thereby improving the efficiency and convenience of generating the split granularity adjustment strategy, automatically and intelligently determining the split granularity adjustment strategy, dynamically adjusting the split granularity of the on-chip interconnection network, improving the adjustment accuracy and efficiency of the split granularity, improving the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0113] Example 2
[0114] See also Figure 3 , Figure 3 This is a flow chart of a method for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention. Figure 3 The described method for dynamically adjusting the transmission command splitting granularity can be applied to a device for dynamically adjusting the transmission command splitting granularity, wherein the device for dynamically adjusting the transmission command splitting granularity may include an intelligent server or intelligent platform for analyzing and determining the splitting granularity adjustment strategy, and the intelligent server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 3 As shown, the method for dynamically adjusting the transmission command splitting granularity may include the following operations:
[0115] 201. The protocol conversion module of the slave device analyzes the received data packet corresponding to the current transmission task, determines the data information in the data packet, and sends the data information to the protocol conversion module of the master device.
[0116] 202. The protocol conversion module of the master device configures a statistical time window according to a preset number of clock cycles.
[0117] In the embodiment of the present invention, optionally, the protocol conversion module of the master device may configure the statistical time window according to the number of clock cycles through a register.
[0118] 203. The protocol conversion module of the master device accumulates the data information within the statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet.
[0119] In an embodiment of the present invention, optionally, the master device protocol conversion module accumulates data information within a statistical time window, that is, the master device protocol conversion module accumulates the invalid bandwidth value and the burst length of the original data packet carried in each pkt within the statistical time window, and obtains first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet, which is not limited by the present invention.
[0120] 204. The protocol conversion module of the master device calculates invalid bandwidth ratio data according to the first accumulated data and the second accumulated data.
[0121] In an embodiment of the present invention, optionally, the master device protocol conversion module calculates invalid bandwidth ratio data based on the first accumulated data and the second accumulated data, that is, the master device protocol conversion module calculates the ratio of the total invalid bandwidth value in the statistical time window to the burst length of the total original data packet, which is not limited by the present invention.
[0122] 205. The protocol conversion module of the master device generates a first splitting granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold.
[0123] 206. After completing the current transmission task, the protocol conversion module of the master device performs a split granularity adjustment operation according to the first split granularity adjustment strategy.
[0124] In the embodiment of the present invention, for other descriptions of step 201, step 205 and step 206, please refer to the detailed description of step 101 to step 103 in the first embodiment of the present invention, and the embodiment of the present invention will not be repeated.
[0125] It can be seen that implementation Figure 3The described method for dynamically adjusting the transmission command splitting granularity can analyze the data packets corresponding to the current transmission task received by the slave device protocol conversion module, determine the data information in the data packets, and send the data information to the master device protocol conversion module. The master device protocol conversion module configures a statistical time window according to a preset number of clock cycles. The master device protocol conversion module accumulates the data information within the statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet. Invalid bandwidth ratio data is calculated based on the first accumulated data and the second accumulated data. Quantized data used for calculating the invalid bandwidth ratio data can be determined based on the statistical time window, thereby improving the calculation efficiency. The accuracy and rationality of invalid bandwidth ratio data are calculated, thereby improving the accuracy and reliability of the adjustment strategy for the split granularity determined according to the invalid bandwidth ratio data, generating a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, and after completing the current transmission task, executing the split granularity adjustment operation according to the first split granularity adjustment strategy, which can automatically and intelligently determine the split granularity adjustment strategy, dynamically adjust the split granularity of the on-chip interconnection network, improve the adjustment accuracy and efficiency of the split granularity, improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0126] In an optional embodiment, the master device protocol conversion module may generate the first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, including the following operations:
[0127] The protocol conversion module of the master device determines the preset invalid bandwidth ratio threshold as the first boundary value, and calculates a second boundary value according to the invalid bandwidth ratio threshold and a preset threshold coefficient, where the second boundary value is less than the first boundary value;
[0128] The master device protocol conversion module determines a target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generates a first split granularity adjustment strategy according to the target relationship.
[0129] In this optional embodiment, optionally, the master device protocol conversion module can determine an adjustment strategy for the splitting granularity based on the invalid bandwidth ratio data and the corresponding boundary conditions. Specifically, the master device protocol conversion module can determine a preset invalid bandwidth ratio threshold as a first boundary value, and calculate a second boundary value based on the invalid bandwidth ratio threshold and a preset threshold coefficient, wherein the preset threshold coefficient can be determined by the user or automatically calculated based on relevant data, and the relevant data includes but is not limited to historical threshold data and historical splitting granularity data. In this embodiment, the threshold coefficient can be 0.5, that is, the second boundary value is less than the first boundary value, which is not limited in this embodiment.
[0130] In this optional embodiment, optionally, the main device protocol conversion module can determine the target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generate a first split granularity adjustment strategy based on the target relationship. Specifically, when the invalid bandwidth ratio data is less than the second boundary value, the split granularity is reduced; when the invalid bandwidth ratio data is greater than the first boundary value, the split granularity is increased; when the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the split granularity is kept unchanged. This embodiment does not limit this.
[0131] It can be seen that the implementation of this optional embodiment can determine the preset invalid bandwidth ratio threshold as the first boundary value through the main device protocol conversion module, and calculate the second boundary value based on the invalid bandwidth ratio threshold and the preset threshold coefficient, the second boundary value is less than the first boundary value, determine the target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generate a first split granularity adjustment strategy based on the target relationship, and can determine the boundary conditions based on the invalid bandwidth ratio threshold, improve the accuracy and reliability of the split granularity adjustment strategy generated based on the invalid bandwidth ratio data, improve the adjustment accuracy and efficiency of the split granularity, and thereby improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0132] In another optional embodiment, the master device protocol conversion module generating the first split granularity adjustment strategy according to the target relationship may include the following operations:
[0133] When the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, the master device protocol conversion module generates a first sub-adjustment strategy, and the first sub-adjustment strategy is used to increase the split granularity;
[0134] When the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, the master device protocol conversion module generates a second sub-adjustment strategy, and the second sub-adjustment strategy is used to reduce the split granularity;
[0135] When the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the master device protocol conversion module generates a third sub-adjustment strategy, which is used to keep the split granularity unchanged.
[0136] In this optional embodiment, optionally, when the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, it indicates that the splitting granularity is set to be small, and a main command is split into many PKT packet commands, then more clock cycles are required to complete the transmission of a main command. When passing through the routing node, the node is occupied for a long time, which will cause bus congestion. Therefore, the master device protocol conversion module generates a first sub-adjustment strategy, and the first sub-adjustment strategy is used to increase the splitting granularity; when the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, it indicates that the splitting granularity is set to be large, and alignment according to the splitting granularity will cause invalid data in the PKT packet, resulting in bandwidth waste, thereby reducing the bandwidth utilization of the bus and DDR, and causing performance loss. Therefore, the master device protocol conversion module generates a second sub-adjustment strategy, and the second sub-adjustment strategy is used to reduce the splitting granularity; when the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, it indicates that the splitting granularity setting meets the requirements, and the master device protocol conversion module generates a third sub-adjustment strategy, and the third sub-adjustment strategy is used to keep the splitting granularity unchanged. This embodiment does not limit this.
[0137] It can be seen that the implementation of this optional embodiment can enable the master device protocol conversion module to generate a first sub-adjustment strategy when the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, and the first sub-adjustment strategy is used to increase the split granularity; when the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, the master device protocol conversion module generates a second sub-adjustment strategy, and the second sub-adjustment strategy is used to reduce the split granularity; when the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the master device protocol conversion module generates a third sub-adjustment strategy, and the third sub-adjustment strategy is used to keep the split granularity unchanged. It can determine the adjustment strategy for the split granularity based on the size relationship between the invalid bandwidth ratio data and the boundary conditions, improve the accuracy and reliability of the adjustment of the split granularity, and thereby improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0138] Example 3
[0139] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a device for dynamically adjusting the granularity of transmission command splitting disclosed in an embodiment of the present invention. Figure 4 The described dynamic adjustment device for the transmission command split granularity may include an intelligent server or intelligent platform that analyzes and determines the split granularity adjustment strategy. The intelligent server includes a local server or a cloud server, which is not limited in the embodiment of the present invention. Figure 4As shown, the dynamic adjustment device for the transmission command splitting granularity may include a slave device protocol conversion module 301 and a master device protocol conversion module 302, wherein:
[0140] The slave device protocol conversion module 301 is used to analyze the received data packet corresponding to the current transmission task, determine the data information in the data packet, and send the data information to the master device protocol conversion module 302, where the data information includes the invalid bandwidth value;
[0141] The master device protocol conversion module 302 is configured to calculate invalid bandwidth ratio data based on the data information, and generate a first split granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold;
[0142] The master device protocol conversion module 302 is further configured to perform a split granularity adjustment operation according to the first split granularity adjustment strategy after completing the current transmission task.
[0143] It can be seen that implementation Figure 4 The described dynamic adjustment device for the transmission command splitting granularity can analyze the data packet corresponding to the current transmission task received by the slave device protocol conversion module, determine the data information in the data packet, and send the data information to the master device protocol conversion module. The master device protocol conversion module calculates the invalid bandwidth ratio data based on the data information, and generates a first splitting granularity adjustment strategy based on the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold. After completing the current transmission task, the splitting granularity adjustment operation is performed according to the first splitting granularity adjustment strategy. The splitting granularity adjustment strategy can be automatically and intelligently determined, the splitting granularity of the on-chip interconnection network can be dynamically adjusted, the splitting granularity adjustment accuracy and efficiency can be improved, the bandwidth utilization and bus performance of the on-chip interconnection network can be improved, and the overall performance of the on-chip interconnection network can be improved, and the probability of bus congestion / bandwidth waste problems occurring in the on-chip interconnection network can be reduced.
[0144] In an optional embodiment, if Figure 4 As shown, the data information also includes the burst length of the original data packet corresponding to the data packet;
[0145] The specific method in which the master device protocol conversion module 302 calculates the invalid bandwidth ratio data according to the data information includes:
[0146] Configure the statistical time window according to the preset number of clock cycles;
[0147] Accumulating data information within a statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet;
[0148] Invalid bandwidth ratio data is calculated according to the first accumulated data and the second accumulated data.
[0149] It can be seen that implementation Figure 4 The described dynamic adjustment device for the transmission command splitting granularity can analyze the data packet corresponding to the current transmission task received by the slave device protocol conversion module, determine the data information in the data packet, and send the data information to the master device protocol conversion module. The master device protocol conversion module configures the statistical time window according to the preset number of clock cycles. The master device protocol conversion module accumulates the data information within the statistical time window to obtain the first accumulated data corresponding to the invalid bandwidth value and the second accumulated data corresponding to the burst length of the original data packet. The invalid bandwidth ratio data is calculated based on the first accumulated data and the second accumulated data. The quantitative data used to calculate the invalid bandwidth ratio data can be determined according to the statistical time window, thereby improving the calculation efficiency. The accuracy and rationality of invalid bandwidth ratio data are calculated, thereby improving the accuracy and reliability of the adjustment strategy for the split granularity determined according to the invalid bandwidth ratio data, generating a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, and after completing the current transmission task, executing the split granularity adjustment operation according to the first split granularity adjustment strategy, which can automatically and intelligently determine the split granularity adjustment strategy, dynamically adjust the split granularity of the on-chip interconnection network, improve the adjustment accuracy and efficiency of the split granularity, improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0150] In another optional embodiment, as Figure 4 As shown, the master device protocol conversion module 302 generates the first split granularity adjustment strategy according to the invalid bandwidth ratio data and the preset invalid bandwidth ratio threshold in the following manner:
[0151] Determining a preset invalid bandwidth ratio threshold as a first boundary value, and calculating a second boundary value based on the invalid bandwidth ratio threshold and a preset threshold coefficient, wherein the second boundary value is less than the first boundary value;
[0152] A target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value is determined, and a first split granularity adjustment strategy is generated according to the target relationship.
[0153] It can be seen that implementation Figure 4The described dynamic adjustment device for the transmission command splitting granularity can determine the preset invalid bandwidth ratio threshold as the first boundary value through the main device protocol conversion module, and calculate the second boundary value based on the invalid bandwidth ratio threshold and the preset threshold coefficient. The second boundary value is less than the first boundary value, and the target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value is determined, and a first splitting granularity adjustment strategy is generated according to the target relationship. It can determine the boundary conditions according to the invalid bandwidth ratio threshold, improve the accuracy and reliability of the splitting granularity adjustment strategy generated according to the invalid bandwidth ratio data, improve the adjustment accuracy and efficiency of the splitting granularity, and thereby improve the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0154] In another optional embodiment, Figure 4 As shown, the specific manner in which the master device protocol conversion module 302 generates the first split granularity adjustment strategy according to the target relationship includes:
[0155] When the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, a first sub-adjustment strategy is generated, and the first sub-adjustment strategy is used to increase the split granularity;
[0156] When the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, a second sub-adjustment strategy is generated, and the second sub-adjustment strategy is used to reduce the split granularity;
[0157] When the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, a third sub-adjustment strategy is generated, and the third sub-adjustment strategy is used to keep the split granularity unchanged.
[0158] It can be seen that implementation Figure 4 The described dynamic adjustment device for the transmission command splitting granularity can, when the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, the master device protocol conversion module generates a first sub-adjustment strategy, the first sub-adjustment strategy is used to increase the splitting granularity; when the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, the master device protocol conversion module generates a second sub-adjustment strategy, the second sub-adjustment strategy is used to reduce the splitting granularity; when the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the master device protocol conversion module generates a third sub-adjustment strategy, the third sub-adjustment strategy is used to keep the splitting granularity unchanged, and can determine the adjustment strategy for the splitting granularity based on the size relationship between the invalid bandwidth ratio data and the boundary conditions, improve the accuracy and reliability of the adjustment of the splitting granularity, thereby improving the bandwidth utilization and bus performance of the on-chip interconnection network, thereby improving the overall performance of the on-chip interconnection network, and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0159] In another optional embodiment, Figure 4 As shown, the data packet includes multiple sub-data packets;
[0160] The slave device protocol conversion module 301 analyzes the received data packet corresponding to the current transmission task and determines the data information in the data packet in the following manner:
[0161] Analyze the received data packet corresponding to the current transmission task to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet;
[0162] The invalid bandwidth value of the data packet is calculated according to the burst length of the original data packet and the burst length of each sub-data packet, and the data information in the data packet is determined according to the invalid bandwidth value and the burst length of the original data packet.
[0163] It can be seen that implementation Figure 4 The described dynamic adjustment device for the transmission command splitting granularity can analyze the data packet corresponding to the current transmission task received from the device protocol conversion module, obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet, calculate the invalid bandwidth value of the data packet based on the burst length of the original data packet and the burst length of each sub-data packet, and determine the data information in the data packet based on the invalid bandwidth value and the burst length of the original data packet. This can improve the accuracy of calculating the invalid bandwidth value, thereby improving the accuracy of determining the invalid bandwidth ratio data, and improving the accuracy and efficiency of adjusting the splitting granularity.
[0164] In another optional embodiment, Figure 4 As shown, the specific manner in which the slave device protocol conversion module 301 calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each sub-data packet includes:
[0165] Calculate the invalid bandwidth value of the data packet according to the burst length of the original data packet, the burst length of each sub-data packet and a preset invalid bandwidth value calculation formula;
[0166] And, the invalid bandwidth value calculation formula includes:
[0167] Invalid bandwidth value = (pkt_len_0 + ... + pkt_len_n) - pkt_len
[0168] Where pkt_len_n represents the burst length of the nth sub-packet, and pkt_len represents the burst length of the original data packet corresponding to the data packet.
[0169] It can be seen that implementation Figure 4The described dynamic adjustment device for the transmission command splitting granularity can calculate the invalid bandwidth value of the data packet based on the burst length of the original data packet and the burst length of each sub-data packet through the device protocol conversion module, thereby improving the accuracy of calculating the invalid bandwidth value, thereby improving the accuracy of determining the invalid bandwidth ratio data, and improving the accuracy and efficiency of adjusting the splitting granularity.
[0170] In another optional embodiment, Figure 4 As shown, the slave device protocol conversion module 301 is further configured to analyze the received data packet corresponding to the current transmission task, determine the data information in the data packet, and then store the data information in a preset lookup table in chronological order;
[0171] The slave device protocol conversion module 301 is further configured to determine whether the accumulated invalid bandwidth value within the time window meets the preset split granularity adjustment condition based on the preset time window and the data information stored in the lookup table;
[0172] The slave device protocol conversion module 301 is further configured to generate a second split granularity adjustment strategy when the accumulated invalid bandwidth value within the time window meets the split granularity adjustment condition, and send the second split granularity adjustment strategy to the master device protocol conversion module 302;
[0173] The master device protocol conversion module 302 is further configured to perform a split granularity adjustment operation according to the second split granularity adjustment strategy after completing the current transmission task.
[0174] It can be seen that implementation Figure 4 The described dynamic adjustment device for the splitting granularity of the transmission command can analyze the data packet corresponding to the current transmission task received by the slave device protocol conversion module, and after determining the data information in the data packet, store the data information in a preset lookup table in chronological order. The slave device protocol conversion module determines whether the invalid bandwidth value accumulated in the time window meets the preset splitting granularity adjustment condition based on the preset time window and the data information stored in the lookup table. When the invalid bandwidth value accumulated in the time window meets the splitting granularity adjustment condition, the slave device protocol conversion module generates a second splitting granularity adjustment strategy, and sends the second splitting granularity adjustment strategy to the slave device protocol conversion module. The data is sent to the master device protocol conversion module. After completing the current transmission task, the master device protocol conversion module performs the split granularity adjustment operation according to the second split granularity adjustment strategy. The split granularity adjustment strategy can be directly generated in the slave device protocol conversion module, thereby improving the efficiency and convenience of generating the split granularity adjustment strategy, automatically and intelligently determining the split granularity adjustment strategy, dynamically adjusting the split granularity of the on-chip interconnection network, improving the adjustment accuracy and efficiency of the split granularity, improving the bandwidth utilization and bus performance of the on-chip interconnection network, and thus improving the overall performance of the on-chip interconnection network and reducing the probability of bus congestion / bandwidth waste problems in the on-chip interconnection network.
[0175] Example 4
[0176] See also Figure 5 , Figure 5 This is a structural diagram of another device for dynamically adjusting the transmission command splitting granularity disclosed in an embodiment of the present invention. Figure 5 As shown, the dynamic adjustment device for the transmission command splitting granularity may include:
[0177] A memory 401 storing executable program code;
[0178] a processor 402 coupled to the memory 401;
[0179] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the method for dynamically adjusting the transmission command splitting granularity described in the first embodiment of the present invention or the second embodiment of the present invention.
[0180] Example 5
[0181] An embodiment of the present invention discloses a computer storage medium storing computer instructions. When the computer instructions are called, they are used to execute the steps of the method for dynamically adjusting the transmission command splitting granularity described in Embodiment 1 or Embodiment 2 of the present invention.
[0182] Example 6
[0183] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the method for dynamically adjusting the transmission command splitting granularity described in Example 1 or Example 2.
[0184] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Those skilled in the art can understand and implement the present invention without inventive effort.
[0185] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by means of hardware. Based on this understanding, the above technical solution, in essence, or the portion that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0186] Finally, it should be noted that the method and device for dynamically adjusting the transmission command splitting granularity disclosed in the embodiment of the present invention only disclose a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that it is still possible to modify the technical solutions recorded in the aforementioned embodiments, or to replace some of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for dynamically adjusting the granularity of transmission command splitting, characterized in that: The method comprises: The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, determines data information in the data packet, and sends the data information to the master device protocol conversion module, wherein the data information includes an invalid bandwidth value; The master device protocol conversion module calculates invalid bandwidth ratio data according to the data information, and generates a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold; After completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the first split granularity adjustment strategy.
2. The method for dynamically adjusting the transmission command splitting granularity according to claim 1, characterized in that: The data information also includes the burst length of the original data packet corresponding to the data packet; The master device protocol conversion module calculates invalid bandwidth ratio data according to the data information, including: The master device protocol conversion module configures a statistical time window according to a preset number of clock cycles; The master device protocol conversion module accumulates the data information within the statistical time window to obtain first accumulated data corresponding to the invalid bandwidth value and second accumulated data corresponding to the burst length of the original data packet; The master device protocol conversion module calculates invalid bandwidth ratio data according to the first accumulated data and the second accumulated data.
3. The method for dynamically adjusting the transmission command splitting granularity according to claim 1 or 2, characterized in that: The master device protocol conversion module generates a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold, including: The master device protocol conversion module determines a preset invalid bandwidth ratio threshold as a first boundary value, and calculates a second boundary value based on the invalid bandwidth ratio threshold and a preset threshold coefficient, where the second boundary value is less than the first boundary value; The master device protocol conversion module determines a target relationship between the invalid bandwidth ratio data and the first boundary value and the second boundary value, and generates a first split granularity adjustment strategy according to the target relationship.
4. The method for dynamically adjusting the transmission command splitting granularity according to claim 3, characterized in that: The master device protocol conversion module generates a first split granularity adjustment strategy according to the target relationship, including: When the target relationship indicates that the invalid bandwidth ratio data is greater than the first boundary value, the master device protocol conversion module generates a first sub-adjustment strategy, where the first sub-adjustment strategy is used to increase the split granularity; When the target relationship indicates that the invalid bandwidth ratio data is less than the second boundary value, the master device protocol conversion module generates a second sub-adjustment strategy, where the second sub-adjustment strategy is used to reduce the split granularity; When the target relationship indicates that the invalid bandwidth ratio data is greater than or equal to the second boundary value and less than or equal to the first boundary value, the master device protocol conversion module generates a third sub-adjustment strategy, and the third sub-adjustment strategy is used to keep the split granularity unchanged.
5. The method for dynamically adjusting the transmission command splitting granularity according to claim 1 or 2, characterized in that: The data packet includes a plurality of sub-data packets; The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task to determine the data information in the data packet, including: The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task to obtain the burst length of the original data packet corresponding to the data packet and the burst length of each sub-data packet; The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each sub-data packet, and determines the data information in the data packet according to the invalid bandwidth value and the burst length of the original data packet.
6. The method for dynamically adjusting the transmission command splitting granularity according to claim 5, characterized in that: The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet and the burst length of each sub-data packet, including: The slave device protocol conversion module calculates the invalid bandwidth value of the data packet according to the burst length of the original data packet, the burst length of each sub-data packet and a preset invalid bandwidth value calculation formula; And, the invalid bandwidth value calculation formula includes: Invalid bandwidth value = (pkt_len_0 + ... + pkt_len_n) - pkt_len Wherein, pkt_len_n represents the burst length of the nth sub-data packet, and pkt_len represents the burst length of the original data packet corresponding to the data packet.
7. The method for dynamically adjusting the transmission command splitting granularity according to claim 1, characterized in that: The method further comprises: The slave device protocol conversion module analyzes the received data packet corresponding to the current transmission task, determines the data information in the data packet, and stores the data information in a preset lookup table in chronological order; The slave device protocol conversion module determines, based on a preset time window and the data information stored in the lookup table, whether the invalid bandwidth value accumulated within the time window meets a preset split granularity adjustment condition; When the invalid bandwidth value accumulated within the time window meets the split granularity adjustment condition, the slave device protocol conversion module generates a second split granularity adjustment strategy and sends the second split granularity adjustment strategy to the master device protocol conversion module; After completing the current transmission task, the master device protocol conversion module performs a split granularity adjustment operation according to the second split granularity adjustment strategy.
8. A device for dynamically adjusting the granularity of transmission command splitting, characterized in that: The device includes a slave device protocol conversion module and a master device protocol conversion module, wherein: The slave device protocol conversion module is configured to analyze a received data packet corresponding to a current transmission task, determine data information in the data packet, and send the data information to the master device protocol conversion module, wherein the data information includes an invalid bandwidth value; The master device protocol conversion module is configured to calculate invalid bandwidth ratio data according to the data information, and generate a first split granularity adjustment strategy according to the invalid bandwidth ratio data and a preset invalid bandwidth ratio threshold; The master device protocol conversion module is further configured to perform a split granularity adjustment operation according to the first split granularity adjustment strategy after completing the current transmission task.
9. A device for dynamically adjusting the granularity of transmission command splitting, characterized in that: The device comprises: a memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method for dynamically adjusting the transmission command splitting granularity according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the method for dynamically adjusting the transmission command splitting granularity according to any one of claims 1 to 7.
Citation Information
Patent Citations
Packet cutting device and method for Interlaken enhanced dispatch
CN103560982A
Resource allocation method and device
CN110912736A
Data fusion transmission and scheduling device based on variable length granularity
CN111526089A
Data processing method and device
CN113382078A
Flash memory task scheduling method and device in storage equipment, storage medium and equipment
CN115033370A