A data processing method, device, medium and product

By introducing an advanced scalable AXI bus, router, and step register into the system-on-a-chip, the FIFO overflow problem caused by the low frequency of the master device is solved and the read data bandwidth is improved by dynamically adjusting the quality of service indicators of the read address channel.

CN123178329APending Publication Date: 2026-11-27CIX TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611437200.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In System-on-Chip (SoC) design, the low operating frequency of the master device leads to asynchronous bridge and bus back pressure, causing FIFO overflow and consequently reducing read data bandwidth.

Method used

By introducing an advanced scalable AXI bus into the system-on-a-chip, and utilizing routers and step registers, the quality of service metrics of the read address channel can be dynamically adjusted based on the FIFO buffer capacity and the number of flight requests, thus preventing FIFO overflow.

Benefits of technology

It effectively solves the problem of blockage and diffusion caused by local back pressure and improves the read data bandwidth of the on-chip system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178329A_ABST
    Figure CN123178329A_ABST
Patent Text Reader

Abstract

The application discloses a data processing method, device, medium and product. The method comprises the following steps: determining the upper limit of the flight request number of each master device; determining the interval type corresponding to each master device according to the flight request number of each master device, the upper limit of the flight request number of each master device and the preset lower limit of the flight request number; determining the configuration parameter of the step register corresponding to each master device according to the effective depth and the target depth of the near-end FIFO buffer between each master device and a router; determining the target read address channel service quality index of the Nth flight request of each master device according to the interval type corresponding to each master device, the configuration parameter of the step register corresponding to each master device and the initial read address channel service quality index; and sending the Nth flight request of each master device to a slave device based on the target read address channel service quality index of the Nth flight request of each master device. The technical scheme can solve the congestion problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a data processing method, device, medium and product. Background Technology

[0002] In System-on-Chip (SoC) design, multiple master devices typically access shared slave devices via an AXI bus interconnect matrix, such as a Double Data Rate (DDR) controller. The AXI protocol employs independent read address, read data, write address, and write data channels.

[0003] Because some master devices operate at frequencies lower than the bus, they typically use a slow-to-fast asynchronous bridge to interface with the bus. Due to the limited receiving capacity of master devices, when a master device issues multiple long burst read requests and multiple read responses from DDR return consecutively within a short period, the master device's local First-In-First-Out (FIFO) can easily overflow, putting back pressure on the asynchronous bridge and subsequently on the bus. This can lead to near-end FIFO overflow, putting back pressure on the router and the channel between the router and slave devices. Once the channel between the router and slave devices is blocked, even if other master devices have receiving capabilities, read data cannot continue to return, causing a sharp drop in the on-chip system's read bandwidth. Summary of the Invention

[0004] This invention provides a data processing method, device, medium, and product that can effectively solve the above-mentioned problems.

[0005] According to one aspect of the present invention, a data processing method is provided, executed by an Advanced Scalable AXI bus in a system-on-a-chip, the system-on-a-chip further comprising: at least one master device and at least one slave device, the Advanced Scalable AXI bus including at least one router and at least one step register, the master device and the step register corresponding one-to-one, the data processing method comprising: Based on the total first-in-first-out FIFO cache capacity of each master device's read data channel and the data volume of a single flight request from each master device, the upper limit of the number of flight requests for each master device is determined. The total FIFO cache capacity of the read data channel includes: the cache capacity of the master device's local FIFO cache and the cache capacity of the near-end FIFO cache between the master device and the router. Based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests, the interval type corresponding to each master device is determined, wherein the number of flight requests is N, and N is a positive integer greater than or equal to 1; Based on the effective depth and target depth of the near-end FIFO buffer between each master device and the router, the configuration parameters of the step register corresponding to each master device are determined, wherein the effective depth of the near-end FIFO buffer between each master device and the router is determined according to the occupancy level signal and / or read / write pointer; Based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index, determine the target read address channel service quality index for the Nth flight request of each master device. Based on the target read address channel service quality index of the Nth flight request of each master device, the Nth flight request of each master device is sent to the slave device.

[0006] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to said at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any embodiment of the present invention.

[0007] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data processing method described in any embodiment of the present invention.

[0008] According to another aspect of the present invention, a computer program product is provided, which, when executed by a processor, implements the data processing method as described in any of the embodiments of the present invention.

[0009] This invention determines the upper limit of the number of flight requests for each master device based on the total FIFO cache capacity of the read data channels of each master device and the data volume of a single flight request from each master device. The total FIFO cache capacity of the read data channels includes: the cache capacity of the master device's local FIFO cache and the cache capacity of the near-end FIFO cache between the master device and the router. The interval type corresponding to each master device is determined based on the number of flight requests, the upper limit of the number of flight requests for each master device, and a preset lower limit of the number of flight requests. The number of flight requests is N, where N is a positive integer greater than or equal to 1. The interval type is determined based on the near-end FIFO cache between each master device and the router. The effective depth and target depth of the near-end FIFO buffer are used to determine the configuration parameters of the step registers corresponding to each master device. The effective depth of the near-end FIFO buffer between each master device and the router is determined based on the occupancy level signal and / or read / write pointers. Based on the interval type corresponding to each master device, the configuration parameters of the step registers corresponding to each master device, and the initial read address channel service quality index, the target read address channel service quality index of the Nth flight request of each master device is determined. Based on the target read address channel service quality index of the Nth flight request of each master device, the Nth flight request of each master device is sent to the slave device, which can solve the problem of congestion spread caused by local backpressure.

[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart of a data processing method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a system-on-a-chip in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0013] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0014] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0015] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0016] Example 1 Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of the present invention. This embodiment is applicable to data processing situations. The method can be executed by the data processing device in this embodiment of the present invention, which can be implemented in software and / or hardware, such as... Figure 1 As shown, the method specifically includes the following steps: S110 determines the upper limit of the number of flight requests for each master device based on the total first-in-first-out FIFO buffer capacity of the data reading channels of each master device and the data volume of a single flight request of each master device.

[0017] The total FIFO cache capacity of the read data channel includes: the cache capacity of the local FIFO cache of the master device, and the cache capacity of the near-end FIFO cache between the master device and the router.

[0018] The data processing method provided in this embodiment is executed by the Advanced Scalable AXI bus in the system-on-a-chip. The system-on-a-chip further includes at least one master device and at least one slave device. The Advanced Scalable AXI bus includes at least one router and at least one step register, with the master device and the step register corresponding one-to-one.

[0019] In this embodiment, the step register is arranged in the AXI bus, close to the AXI interface of the master device.

[0020] In a specific example, such as Figure 1 As shown, the system-on-a-chip includes: master device A, master device B, master device C, an AXI bus, and slave devices. The AXI bus includes: a first router and a second router. A near-end FIFO is set between master device A and the second router, and a local FIFO is set up locally on master device A.

[0021] In this embodiment, the upper limit of the number of flight requests for each master device can be determined based on the total FIFO buffer capacity of the read data channels of each master device and the data volume of a single flight request of each master device. This can be achieved by obtaining the total FIFO buffer capacity of the read data channels of each master device and the data volume of a single flight request of each master device. The total FIFO buffer capacity of the read data channels includes the buffer capacity of the master device's local FIFO buffer and the buffer capacity of the near-end FIFO buffer between the master device and the router. The upper limit of the number of flight requests for each master device is determined based on the total FIFO buffer capacity of the read data channels of each master device, the data volume of a single flight request of each master device, and the pre-configured number of flight requests for each master device in the AXI bus.

[0022] Optional, also includes: The cache capacity of the FIFO cache on the master device is determined based on the data bit width and target depth of the FIFO cache on the master device.

[0023] In this embodiment, the product of the data bit width and the target depth of the FIFO cache on the host device is used as the cache capacity of the FIFO cache on the host device.

[0024] The cache capacity of the near-end FIFO cache between the master device and the router is determined based on the data bit width and target depth of the near-end FIFO cache between the master device and the router.

[0025] In this embodiment, the product of the data bit width and the target depth of the near-end FIFO cache between the master device and the router is used as the cache capacity of the near-end FIFO cache between the device and the router.

[0026] In this embodiment, the sum of the local FIFO cache capacity of the master device and the near-end FIFO cache capacity between the device and the router is used as the total FIFO cache capacity of the master device's read data channel.

[0027] Obtain the AXI interface data bit width and AXI burst length of the master device.

[0028] The amount of data in a single flight request of the master device is determined based on the AXI interface data bit width and AXI burst length of the master device.

[0029] In this embodiment, the product of the AXI interface data bit width and the AXI burst length of the master device is used as the data volume of a single flight request of the master device.

[0030] Optionally, based on the total FIFO buffer capacity of each master device's read data channels and the data volume of a single flight request from each master device, the upper limit of the number of flight requests for each master device is determined, including: The upper limit of the number of flight requests for each master device is determined based on the ratio of the total FIFO buffer capacity of the read data channels of each master device to the data volume of a single flight request of each master device and the number of flight requests of each master device pre-configured in the AXI bus.

[0031] In this embodiment, the maximum number of flight requests for the master device is greater than the ratio of the total FIFO buffer capacity of the master device's read data channel to the data amount of a single flight request for the master device, and less than the number of flight requests for each master device pre-configured in the AXI bus.

[0032] In this embodiment, the maximum number of flight requests that the master device can handle is the theoretical maximum number of flight requests that the master device's local FIFO and near-end FIFO can safely carry.

[0033] S120: Determine the interval type corresponding to each master device based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests.

[0034] The number of flight requests is N, where N is a positive integer greater than or equal to 1.

[0035] In this embodiment, the flight request count maintained in real time by the read request tracking logic inside the multiplexed bus interconnect matrix is ​​directly used as the adjustment basis to predict whether the Nth flight request will cause FIFO overflow.

[0036] Optionally, based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests, the corresponding interval type for each master device is determined, including: If the number of flight requests by the main device is greater than the fourth value but less than the preset lower limit for the number of flight requests, then the interval type corresponding to the main device is determined to be the first interval.

[0037] In this embodiment, the first interval can be a safe interval. The fourth value can be a preset value, for example, the fourth value can be 1.

[0038] If the number of flight requests by the master device is greater than or equal to the preset lower limit of the number of flight requests, and less than or equal to the upper limit of the number of flight requests, then the interval type corresponding to the master device is determined to be the second interval.

[0039] In this embodiment, the second interval can be a warning interval.

[0040] If the number of flight requests by the master device is greater than or equal to the upper limit of the number of flight requests, then the interval type corresponding to the master device is determined to be the third interval.

[0041] The fourth value is less than the preset minimum number of flight request attempts.

[0042] In this embodiment, the third interval can be a high-risk interval.

[0043] In a specific example, when N is between 1 and OT_LOW, the master device's corresponding interval type is a safe interval with no overflow risk, and the read address channel service quality index remains at its original value. Here, OT_LOW is the preset lower limit for the number of flight requests. When N is between OT_LOW and OT_HIGH, the master device's corresponding interval type is a warning interval with a low probability of overflow, and ARQOS is reduced by one level. Here, OT_HIGH is the upper limit for the number of flight requests. When N is greater than OT_HIGH, the master device's corresponding interval type is a high-risk interval with a high probability of overflow, and ARQOS is reduced by another level.

[0044] In this embodiment, the initial values ​​of OT_LOW and OT_HIGH can be set according to the theoretically FIFO cache's capacity to safely handle a certain number of flight requests. In practical applications, the interval division can be flexibly reloaded by observing and adjusting the effect. Through two-dimensional control of interval division and adjustment granularity, the system can adaptively match different service loads.

[0045] In this embodiment, the upper limit of the number of flight requests for each master device is determined based on the total first-in-first-out FIFO buffer capacity of the data reading channels of each master device and the data volume of a single flight request for each master device. Then, based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests, the corresponding interval type for each master device is determined. This allows for early prediction of congestion risks and intervention and adjustment before FIFO overflow.

[0046] S130 determines the configuration parameters of the step register corresponding to each master device based on the effective depth and target depth of the near-end FIFO buffer between each master device and the router.

[0047] The effective depth of the near-end FIFO buffer between each master device and router is determined based on the occupancy level signal and / or read / write pointer.

[0048] In this embodiment, the configuration parameters of the step register are set to (0, 1, 2), and the configuration parameters of the step register are dynamically configured according to the FIFO pressure feedback.

[0049] In this embodiment, the AXI bus further includes a FIFO occupancy monitoring unit. The FIFO occupancy monitoring unit is directly connected to the near-end FIFO between the master device and the router. The effective depth of the near-end FIFO buffer between the master device and the router is obtained by reading the occupancy level signal natively output by the near-end FIFO between the master device and the router through the FIFO occupancy monitoring unit.

[0050] In this embodiment, the read / write pointer includes a read pointer and a write pointer.

[0051] Optional, also includes: Obtain the write and read pointers of the near-end FIFO buffer between the master device and the router; The difference between the write pointer and the read pointer is used as the effective depth of the near-end FIFO cache between the master device and the router.

[0052] In this embodiment, the effective depth of the near-end FIFO buffer between the master device and the router can be calculated using the read pointer and the write pointer as follows: FIFO_Occupancy = Write_Pointer - Read_Pointer, where FIFO_Occupancy is the effective depth of the near-end FIFO buffer between the master device and the router, Write_Pointer is the write pointer, and Read_Pointer is the read pointer.

[0053] It should be noted that, to suppress transient jitter, the occupancy status is sampled and the arithmetic mean is calculated over eight consecutive bus clock cycles. This average occupancy is then used as the effective depth of the near-end FIFO buffer between the master device and the router. The ratio of the effective depth of the near-end FIFO buffer between the master device and the router to the target depth of the near-end FIFO is quantified into three waterline levels. Based on these waterline levels, the configuration parameters of the corresponding step register of the master device are determined.

[0054] Optionally, based on the effective depth and target depth of the near-end FIFO buffer between each master device and the router, the configuration parameters of the step register corresponding to each master device are determined, including: If the effective depth of the near-end FIFO buffer between the master device and the router is less than the target depth of a first preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the first value.

[0055] In this embodiment, the first preset multiple and the second preset multiple are less than 1. The first preset multiple is a pre-set multiple, for example, it can be 1 / 3. The first value is a pre-set value, for example, it can be 0.

[0056] If the effective depth of the near-end FIFO buffer between the master device and the router is greater than or equal to the target depth of the first preset multiple, and less than the target depth of the second preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the second value.

[0057] In this embodiment, the second preset multiple is greater than the first preset multiple. The second preset multiple is a pre-set multiple, such as 2 / 3. The second value can be a pre-set value greater than the first value. For example, the second value can be 1.

[0058] If the effective depth of the near-end FIFO buffer between the master device and the router is greater than or equal to the target depth of the second preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the third value.

[0059] Wherein, the first value is less than the second value, the second value is less than the third value, and the first preset multiple is less than the second preset multiple.

[0060] In this embodiment, the third value is a preset value, for example, the third value can be 2.

[0061] In a specific example, if the effective depth of the near-end FIFO buffer between the master device and the router is less than 1 / 3 of the target depth of the near-end FIFO buffer, the waterline level is determined to be low waterline; if the effective depth of the near-end FIFO buffer between the master device and the router is between 1 / 3 and 2 / 3 of the target depth of the near-end FIFO buffer, the waterline level is determined to be medium waterline; if the effective depth of the near-end FIFO buffer between the master device and the router exceeds 2 / 3 of the target depth of the near-end FIFO buffer, the waterline level is determined to be high waterline. The configuration parameters of the step register corresponding to the master device are determined based on the waterline level: Low waterline: STEP_REG=0; Medium waterline: STEP_REG=1; High waterline: STEP_REG=2.

[0062] In this embodiment, a waterline level is introduced: full speed at low waterline (STEP_REG=0), deceleration at medium waterline (STEP_REG=1), and avoidance at high waterline (STEP_REG=2). The adjustment intensity is determined directly based on feedback, enabling the system to dynamically match the most suitable throttling intensity according to the actual backlog of the FIFO.

[0063] S140, based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index, determine the target read address channel service quality index for the Nth flight request of each master device.

[0064] In this embodiment, the method for determining the target read address channel service quality index (GSI) for the Nth flight request of each master device based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index can be as follows: If the interval type corresponding to the master device is the first interval, then the initial read address channel service quality index is used as the target read address channel service quality index for the Nth flight request of the master device; if the interval type corresponding to the master device is the second interval, then the difference between the initial read address channel service quality index and the configuration parameters of the step register corresponding to the master device (a third preset multiple) is used as the target read address channel service quality index for the Nth flight request of the master device; if the interval type corresponding to the master device is the third interval, then the difference between the initial read address channel service quality index and the configuration parameters of the step register corresponding to the master device (a fourth preset multiple) is used as the target read address channel service quality index for the Nth flight request of the master device, wherein the third preset multiple is less than the fourth preset multiple.

[0065] In this embodiment, the number of flight requests is monitored in real time and compared with the FIFO capacity to quickly identify risky zones and adjust the service quality index of the read address channel. Feedback is provided by mean filtering using the FIFO occupancy rate, offering stable feedback and correcting the adjustment granularity. This avoids the uncertainty of simple feedforward adjustment and overcomes the lag of simple feedback adjustment, ensuring both adjustment response speed and accuracy.

[0066] Optionally, based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index, the target read address channel service quality index for the Nth flight request of each master device is determined, including: If the interval type corresponding to the master device is the first interval, then the initial read address channel service quality index will be used as the target read address channel service quality index for the Nth flight request of the master device.

[0067] If the interval type corresponding to the master device is the second interval, then the difference between the initial read address channel service quality index and the configuration parameter of the step register corresponding to the master device at the third preset multiple will be used as the target read address channel service quality index for the Nth flight request of the master device.

[0068] In this embodiment, the third preset multiple can be a pre-set multiple, for example, the third preset multiple can be 1.

[0069] If the interval type corresponding to the master device is the third interval, then the difference between the initial read address channel service quality index and the configuration parameter of the step register corresponding to the master device at the fourth preset multiple will be used as the target read address channel service quality index for the Nth flight request of the master device.

[0070] Wherein, the third preset multiple is less than the fourth preset multiple.

[0071] In this embodiment, the fourth preset multiple can be a pre-set multiple, for example, the fourth preset multiple can be 2.

[0072] In a specific example, if the range type corresponding to the master device is a secure zone, then the target ARQOS = the original ARQOS value (that is, the initial read address channel service quality index). If the range type corresponding to the master device is a warning zone, then the target ARQOS = the original ARQOS value – 1 × STEP_REG. If the range type corresponding to the master device is a high-risk zone, then the target ARQOS = the original ARQOS value – 2 × STEP_REG. Here, STEP_REG is the configuration parameter of the step register corresponding to the master device, and the target ARQOS is the target read address channel service quality index.

[0073] S150, based on the target read address channel service quality index of the Nth flight request of each master device, sends the Nth flight request of each master device to the slave device.

[0074] In this embodiment, the target read address channel service quality index of the Nth flight request of the master device is sent to the router. The router determines the priority of the Nth flight request of the master device based on the target read address channel service quality index of the Nth flight request of the master device, and sends the Nth flight request of the master device to the slave device based on the priority of the Nth flight request of the master device.

[0075] In this embodiment, the overflow risk is predicted based on the upper limit of the number of flight requests for each master device and the preset lower limit of the number of flight requests, thereby dividing the risk range and implementing graded adjustment of the read address channel service quality index. At the same time, the real-time occupancy rate of the near-end FIFO is introduced as a feedback signal to dynamically configure the adjustment granularity of the read address channel service quality index, forming a dual closed-loop control mechanism of feedforward prediction and feedback correction.

[0076] The technical solution of this embodiment determines the upper limit of the number of flight requests for each master device based on the total FIFO cache capacity of the read data channels of each master device and the data volume of a single flight request for each master device. The total FIFO cache capacity of the read data channels includes: the cache capacity of the master device's local FIFO cache and the cache capacity of the near-end FIFO cache between the master device and the router. The interval type corresponding to each master device is determined based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and a preset lower limit of the number of flight requests. The number of flight requests is N, where N is a positive integer greater than or equal to 1. The interval type is determined based on the number of flight requests between each master device and the router. The effective depth and target depth of the near-end FIFO buffer are used to determine the configuration parameters of the step registers corresponding to each master device. The effective depth of the near-end FIFO buffer between each master device and the router is determined based on the occupancy level signal and / or read / write pointers. Based on the interval type corresponding to each master device, the configuration parameters of the step registers corresponding to each master device, and the initial read address channel service quality index, the target read address channel service quality index of the Nth flight request of each master device is determined. Based on the target read address channel service quality index of the Nth flight request of each master device, the Nth flight request of each master device is sent to the slave device, which can solve the problem of congestion spread caused by local backpressure.

[0077] Example 2 Figure 3A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0078] like Figure 3 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory 12 or a random access memory 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 12 or loaded from storage unit 18 into the random access memory 13. The random access memory 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, read-only memory 12, and random access memory 13 are interconnected via a bus 14. An input / output interface 15 is also connected to the bus 14.

[0079] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0080] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data processing methods.

[0081] In some embodiments, the data processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via read-only memory 12 and / or communication unit 19. When the computer program is loaded into random access memory 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).

[0082] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), systems-on-a-chip (SoCs), payload programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0083] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0084] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube or liquid crystal display) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0086] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0087] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to address the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.

[0088] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0089] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the data processing method according to any embodiment of the invention.

[0090] In the implementation of a computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0091] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A data processing method, characterized in that, Executed by an Advanced Scalable AXI bus in a system-on-a-chip, the system-on-a-chip further includes: at least one master device and at least one slave device, the Advanced Scalable AXI bus including at least one router and at least one step register, with a one-to-one correspondence between the master device and the step register, the data processing method including: Based on the total first-in-first-out FIFO cache capacity of each master device's read data channel and the data volume of a single flight request from each master device, the upper limit of the number of flight requests for each master device is determined. The total FIFO cache capacity of the read data channel includes: the cache capacity of the master device's local FIFO cache and the cache capacity of the near-end FIFO cache between the master device and the router. Based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests, the interval type corresponding to each master device is determined, wherein the number of flight requests is N, and N is a positive integer greater than or equal to 1; Based on the effective depth and target depth of the near-end FIFO buffer between each master device and the router, the configuration parameters of the step register corresponding to each master device are determined, wherein the effective depth of the near-end FIFO buffer between each master device and the router is determined according to the occupancy level signal and / or read / write pointer; Based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index, determine the target read address channel service quality index for the Nth flight request of each master device. Based on the target read address channel service quality index of the Nth flight request of each master device, the Nth flight request of each master device is sent to the slave device.

2. The method according to claim 1, characterized in that, Also includes: The cache capacity of the FIFO cache on the master device is determined based on the data bit width and target depth of the FIFO cache on the master device. The cache capacity of the near-end FIFO cache between the master device and the router is determined based on the data bit width and target depth of the near-end FIFO cache between the master device and the router. Obtain the AXI interface data bit width and AXI burst length of the master device; The amount of data in a single flight request of the master device is determined based on the AXI interface data bit width and AXI burst length of the master device.

3. The method according to claim 1, characterized in that, Based on the total FIFO buffer capacity of each master device's read data channels and the data volume of a single flight request from each master device, the upper limit of the number of flight requests for each master device is determined, including: The upper limit of the number of flight requests for each master device is determined based on the ratio of the total FIFO buffer capacity of the read data channels of each master device to the data volume of a single flight request of each master device and the number of flight requests of each master device pre-configured in the AXI bus.

4. The method according to claim 1, characterized in that, Also includes: Obtain the write and read pointers of the near-end FIFO buffer between the master device and the router; The difference between the write pointer and the read pointer is used as the effective depth of the near-end FIFO cache between the master device and the router.

5. The method according to claim 1, characterized in that, Based on the effective depth and target depth of the near-end FIFO buffer between each master device and the router, determine the configuration parameters of the step register corresponding to each master device, including: If the effective depth of the near-end FIFO buffer between the master device and the router is less than the target depth of the first preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the first value. If the effective depth of the near-end FIFO buffer between the master device and the router is greater than or equal to the target depth of the first preset multiple, and less than the target depth of the second preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the second value. If the effective depth of the near-end FIFO buffer between the master device and the router is greater than or equal to the target depth of the second preset multiple, then the configuration parameter of the step register corresponding to the master device is determined to be the third value, wherein the first value is less than the second value, the second value is less than the third value, and the first preset multiple is less than the second preset multiple.

6. The method according to claim 1, characterized in that, Based on the interval type corresponding to each master device, the configuration parameters of the step register corresponding to each master device, and the initial read address channel service quality index, the target read address channel service quality index for the Nth flight request of each master device is determined, including: If the interval type corresponding to the master device is the first interval, then the initial read address channel service quality index will be used as the target read address channel service quality index for the Nth flight request of the master device. If the interval type corresponding to the master device is the second interval, then the difference between the initial read address channel service quality index and the configuration parameter of the step register corresponding to the master device of the third preset multiple will be used as the target read address channel service quality index of the master device for the Nth flight request. If the interval type corresponding to the master device is the third interval, then the difference between the initial read address channel service quality index and the configuration parameter of the step register corresponding to the master device of the fourth preset multiple is used as the target read address channel service quality index of the master device for the Nth flight request, wherein the third preset multiple is less than the fourth preset multiple.

7. The method according to claim 1, characterized in that, Based on the number of flight requests for each master device, the upper limit of the number of flight requests for each master device, and the preset lower limit of the number of flight requests, the corresponding interval type for each master device is determined, including: If the number of flight requests of the main device is greater than the fourth value but less than the preset lower limit of the number of flight requests, then the interval type corresponding to the main device is determined to be the first interval. If the number of flight requests of the master device is greater than or equal to the preset lower limit of the number of flight requests, and less than or equal to the upper limit of the number of flight requests, then the interval type corresponding to the master device is determined to be the second interval. If the number of flight requests by the master device is greater than or equal to the upper limit of the number of flight requests, then the interval type corresponding to the master device is determined to be the third interval, wherein the fourth value is less than the preset lower limit of the number of flight requests.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1-7.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data processing method according to any one of claims 1-7.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the data processing method according to any one of claims 1-7.