A memory access request transmitting circuit and an artificial intelligence accelerator

By employing conflict-aware memory access request units in AI accelerators, the target memory access path and sending order are dynamically selected, thus resolving the memory access conflict problem in AI accelerators and improving storage bandwidth utilization and memory access efficiency.

CN122240533BActive Publication Date: 2026-11-20YUAN LI (BEI JING) BAN DAO TI JI SHU YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610183603.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-02-09
Publication Date
2026-11-20
Estimated Expiration
2046-02-09

AI Technical Summary

Technical Problem

Current mainstream AI accelerators, under multi-processor parallel architecture, struggle to achieve efficient data path utilization under different AI network structures, leading to memory access conflicts, increased latency, and decreased bandwidth utilization.

Method used

By using conflict-aware memory access request units, historical access path information and memory access path costs are utilized to dynamically select the target memory access path and sending order, avoiding concurrent access to the same memory bank or shared interconnect resources, thereby improving storage bandwidth utilization.

Benefits of technology

It effectively alleviates network congestion, reduces average memory access latency, and improves storage bandwidth utilization and memory access efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122240533B_ABST
    Figure CN122240533B_ABST
Patent Text Reader

Abstract

The application discloses a memory access request transmitting circuit and an artificial intelligence accelerator, comprising a processing element for generating a plurality of memory access requests; a conflict-aware memory access request unit for determining a target memory access path and a target sending order corresponding to the plurality of memory access requests according to historical access path information and memory access path cost when receiving the plurality of memory access requests sent by the processing element, and sending the memory access requests and the target memory access paths corresponding to the memory access requests to a storage access network in the target sending order. By dynamically selecting a target memory access path with lower expected overhead and fewer resource conflicts for each memory access request, and generating a target sending order matching the target memory access path, network congestion and resource contention problems caused by concurrent access to the same memory bank or shared interconnection resources are avoided, and the storage bandwidth utilization and memory access efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of integrated circuit technology, specifically relating to a memory access request issuing circuit and an artificial intelligence accelerator. Background Technology

[0002] With the rapid development of Artificial Intelligence (AI) technology, Deep Learning (DL) and Large Language Models (LMMs) have been widely applied in various fields such as computer vision, natural language processing, and intelligent recommendation. However, these models typically have a large number of parameters and complex computational structures, placing extremely high demands on the storage bandwidth and data throughput capabilities of hardware systems. Especially in typical operations such as fully connected layers, tensor reshaping, word embedding, and sliding window-based image processing, a large number of processing units need to access multiple memory banks in parallel, resulting in high-concurrency and high-bandwidth memory access requirements.

[0003] Current mainstream dedicated AI accelerators generally adopt a parallel architecture with multiple processing units and multiple storage banks to improve overall throughput performance. However, due to significant differences in data access patterns among different AI network architectures (such as CNN, Transformer, RNN, etc.), a single fixed memory access interconnect topology cannot achieve efficient data path utilization in all application scenarios. When multiple processing units simultaneously initiate access requests to the same storage bank or shared bus, memory access conflicts are highly likely to occur, leading to request queuing, increased latency, and even a sharp decline in bandwidth utilization. This problem has become a key factor restricting further performance improvements of AI accelerators. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a memory access request issuing circuit and an artificial intelligence accelerator that overcome or at least partially solve the above problems.

[0005] In a first aspect, embodiments of the present invention provide a memory access request issuing circuit, the circuit comprising: The processing element is used to generate multiple memory access requests; The conflict-aware memory access request unit is configured to, upon receiving the plurality of memory access requests sent by the processing unit, determine the target memory access path and target sending order corresponding to the plurality of memory access requests based on historical access path information and memory access path cost, and send the memory access request and the target memory access path corresponding to the memory access request to the storage access network in accordance with the target sending order.

[0006] Optionally, the conflict-aware memory access request unit includes a pre-request queue unit, a routing decision unit, and a request issuance unit; The pre-request queue unit is used to receive the multiple memory access requests sent by the processing element and generate a corresponding historical query identifier for each memory access request. The routing decision unit is used to determine the target memory access path and target sending order corresponding to the multiple memory access requests based on the historical memory access path information and memory access path cost corresponding to the historical query identifier. The request sending unit is used to send the memory access request and the target memory access path of the memory access request to the storage access network in accordance with the target sending order.

[0007] Optionally, the routing decision unit includes a network access history query unit, a memory access cost evaluation unit, and an access path selection unit; The network access history query unit is used to store historical access path information of completed access requests, and to query the corresponding historical access path information according to the historical query identifier. The memory access cost evaluation unit is used to store the memory access path cost of completed memory access requests and query the corresponding memory access path cost according to the historical query identifier. The access path selection unit is used to determine the target memory access path and target sending order corresponding to the multiple memory access requests based on the historical memory access path information and memory access path cost corresponding to the historical query identifier.

[0008] Optionally, the pre-request queue unit includes multiple request storage modules, query mapping modules, and feedback mapping modules; The request storage module is used to receive the memory access request sent by the processing element, assign an access ID to the memory access request, and store the memory access request information corresponding to the memory access request. The memory access request information includes at least one of the following: memory access address, request type, memory access priority, and access ID. The query mapping module is used to generate a corresponding historical query identifier based on the memory access request information; The feedback mapping module is used to store the mapping relationship between the memory access request information and the historical query identifier. Upon receiving the memory access completion information returned by the memory access network, it determines the corresponding memory access request information based on the access ID in the memory access completion information, determines the historical query identifier corresponding to the memory access request information based on the mapping relationship, and determines the corresponding feedback identifier and historical update identifier based on the historical query identifier. The feedback identifier is used to indicate to the processing unit that the corresponding memory access request has been completed, and the historical update identifier is used to indicate the position of the historical record to be updated in the network access history query unit and the memory access cost evaluation unit.

[0009] Optionally, the network access history query unit includes an access history path table, an access history path table query module, an access history path table update module, and an access history path table save and load module. The access history path table is used to store the historical access path information corresponding to the historical query identifier; The access history path table query module is used to query the corresponding historical memory access path from the access history path table according to the historical query identifier, and send the historical memory access path to the access path selection unit. The access history path table update module is used to write the historical access path information of the completed storage access request sent by the storage access network into the access history path table according to the historical update identifier. The access history path table saving and loading module is used to respond to external control requests, save the access history path table to external storage, or load the saved access history path table from the external storage to restore the historical state.

[0010] Optionally, the access history path table query module is further configured to receive the access history path table update module generated when there is no historical memory access path information corresponding to the historical query identifier in the access history path table, and send the memory access path to the access path selection unit.

[0011] Optionally, the access history path table update module is further configured to receive conflict information of completed access requests sent by the storage access network, the conflict information including network access latency, and if the network access latency is greater than or equal to a preset latency threshold, generate a storage access path corresponding to the completed access request and write it into the access history path table.

[0012] Optionally, the memory access cost evaluation unit includes an access path cost table, an access path cost table query module, an access path cost table update module, and an access path cost table save and load module. The access path cost table is used to store the access path cost corresponding to historical query identifiers; The access path cost table query module is used to query the corresponding memory access path cost from the access path cost table according to the historical query identifier, and send the memory access path cost to the access path selection unit. The access path cost table update module is used to receive conflict information of completed memory access requests sent by the storage access network, determine the corresponding memory access path cost according to the conflict information, and write the memory access path cost into the access path cost table according to the historical update identifier. The access path cost table saving and loading module is used to respond to external control requests, save the access path cost table to external memory, or load the saved access path cost table from the external memory to restore the historical state.

[0013] Optionally, the access path selection unit includes an optimal path selection module and an access sorting module; The optimal path selection module is used to determine the minimum memory access path cost and the historical memory access path corresponding to the minimum memory access path cost for each memory access request based on the historical memory access path and the memory access path cost, and to determine the historical memory access path corresponding to the minimum memory access path cost as the target memory access path for the corresponding memory access request. The access sorting module is used to determine the target sending order of each memory access request based on the minimum memory access path cost of each memory access request.

[0014] Optionally, the request sending unit includes a sending request filtering module, a request information extraction module, and a sending interface module; The transmit request filtering module is used to select a target memory access request less than or equal to a preset number from the plurality of memory access requests according to the target transmission order of each memory access request. The request information extraction module is used to obtain the corresponding memory access request information from the pre-request queue unit according to the access ID of the target memory access request; The transmission interface module is used to send the access ID, access request information and target access path corresponding to the target memory access request to the storage access network according to the target sending order.

[0015] Secondly, embodiments of the present invention propose an artificial intelligence accelerator, including the memory access request issuing circuit described above.

[0016] An embodiment of the present invention provides a memory access request transmitting circuit, comprising a processing unit for generating multiple memory access requests; and a conflict-aware memory access request unit for, upon receiving the multiple memory access requests sent by the processing unit, determining the target memory access path and target transmission order corresponding to the multiple memory access requests based on historical access path information and memory access path costs, and sending the memory access requests and the target memory access paths corresponding to the memory access requests to the storage access network according to the target transmission order. By determining the target memory access path and target transmission order corresponding to multiple memory access requests based on historical access path information and memory access path costs, a target memory access path that is adapted to the current network state and is expected to have lower overhead and fewer resource conflicts can be dynamically selected for each memory access request, and a matching target transmission order can be generated. This avoids network congestion and resource contention caused by concurrent access to the same storage unit or shared interconnect resources, thereby improving storage bandwidth utilization and memory access efficiency.

[0017] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0018] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a schematic diagram of the structure of a memory access request issuing circuit according to an embodiment of the present invention; Figure 2 This is a schematic diagram of another memory access request issuing circuit according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a pre-request queue unit according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a network access history query unit according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a memory access cost evaluation unit according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of an access path selection unit according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of a request sending unit according to an embodiment of the present invention.

[0019] Reference numerals: Processing unit 10, Conflict-aware memory access request unit 20, Pre-request queue unit 21, Request storage module 211, Query mapping module 212, Feedback mapping module 213, Routing decision unit 22, Network access history query unit 221, Access history path table 2211, Access history path table query module 2212, Access history path table update module 2213, Access history path table save and load module 2214, Memory access cost evaluation unit 222, Access path cost table 2221, Access path cost table query module 2222, Access path cost table update module 2223, Access path cost table save and load module 2224, Access path selection unit 223, Optimal path selection module 2231, Access sorting module 2232, Request issuing unit 23, Request issuing filtering module 231, Request information extraction module 232, Issuing interface module 233, Storage access network 30, External storage 40. Detailed Implementation

[0020] Embodiments of the present invention will now be described in detail. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0021] With the rapid development of artificial intelligence technology, deep learning and large-scale language models have been widely applied in various fields such as computer vision, natural language processing, and intelligent recommendation. However, these models typically have a large number of parameters and complex computational structures, placing extremely high demands on the storage bandwidth and data throughput capabilities of hardware systems. Especially in typical operations such as fully connected layers, tensor reshaping, word embedding, and sliding window-based image processing, a large number of processing units need to access multiple memory banks in parallel, resulting in high-concurrency and high-bandwidth memory access requirements.

[0022] Current mainstream dedicated AI accelerators generally adopt a parallel architecture with multiple processing units and multiple storage banks to improve overall throughput performance. However, due to significant differences in data access patterns among different AI network structures, a single fixed memory access interconnect topology cannot achieve efficient data path utilization in all application scenarios. When multiple processing units simultaneously initiate access requests to the same storage bank or shared bus, memory access conflicts are highly likely to occur, leading to request queuing, increased latency, and even a sharp decline in bandwidth utilization. This problem has become a key factor restricting further performance improvements of AI accelerators.

[0023] One of the core concepts of this invention is that by determining the target memory access path and target sending order corresponding to multiple memory access requests based on historical access path information and memory access path costs, it is possible to dynamically select a target memory access path that is adapted to the current network state and has lower expected overhead and fewer resource conflicts for each memory access request, and generate a target sending order that matches it. This avoids network congestion and resource contention caused by concurrent access to the same memory or shared interconnection resources, and improves memory bandwidth utilization and memory access efficiency.

[0024] Reference Figure 1 The diagram illustrates a memory access request issuing circuit according to an embodiment of the present invention. The memory access request issuing circuit 100 may specifically include the following structure: Processing element 10 is used to generate multiple memory access requests; The conflict-aware memory access request unit 20 is used to, upon receiving multiple memory access requests sent by the processing unit 10, determine the target memory access path and target sending order corresponding to the multiple memory access requests based on historical access path information and memory access path cost, and send the memory access requests and the target memory access paths corresponding to the memory access requests to the storage access network 30 according to the target sending order.

[0025] Processor element 10 serves as the basic computing unit of an AI accelerator, primarily responsible for executing operator operations in neural network models (such as convolution, matrix multiplication, and attention calculation). Multiple processor elements 10 can be interconnected on a single chip in a two-dimensional grid, ring, or tree topology to form a massively parallel computing array, supporting high-throughput AI inference or training tasks. During the execution of AI workloads (such as CNN, Transformer, or RNN models), processor elements 10 dynamically generate multiple memory access requests to read data such as weights, activation values, or intermediate results. Due to significant differences in data access patterns among modern AI models, different processor elements 10 may concurrently access the same or different memory banks at the same time. Without a coordination mechanism, such concurrent access can easily lead to competition for shared interconnect resources, resulting in request blocking and performance degradation.

[0026] Conflict-aware memory access request unit 20 is connected to processing unit 10 and memory access network 30 respectively, and is used to receive requests from processing unit 10. After receiving multiple memory access requests, a target memory access path is dynamically determined for each request based on historical access path information and memory access path costs. A corresponding target transmission order is generated based on the memory access path costs of each request. Historical access path information can include the actual access paths experienced by previously executed memory access requests. The memory access path cost can be a comprehensive cost assessment value of historical access paths, used to quantitatively compare the advantages and disadvantages of different historical access paths. For example, the actual access paths experienced by historical memory access request 1 include path A and path B. The memory access path cost of path A is higher than that of path B. Since the memory access address to be scheduled 1 is the same as that of historical memory access request 1, the historical access path corresponding to the lowest memory access path cost is selected as the target memory access path. Path B can be used as the target memory access path for the memory access request to be scheduled. After determining the target memory access paths for each memory access request to be scheduled, the memory access requests with lower path costs are sorted according to their cost. Memory access requests with lower path costs are sent first, thus determining the target transmission order for each memory access request. Subsequently, in accordance with the target sending order, each memory access request and its corresponding target memory access path are sent to the storage access network 30 together, so that the storage access network 30 routes the requests according to the received target memory access paths, thereby efficiently completing concurrent access to multiple storage banks. This enables proactive avoidance of concentrated contention for the same storage bank or interconnect resources by multiple requests in high-concurrency scenarios of multi-processor units, effectively alleviating network congestion, reducing average memory access latency, and improving storage bandwidth utilization.

[0027] Different types of AI networks exhibit significant spatial and temporal locality in their data access behaviors. Temporal locality of memory access means that if a data item is accessed, it is likely to be accessed again in the near future. For example, RNNs repeatedly access the same hidden states in multiple time steps, or the same layer of weights is reused multiple times in batch processing. Spatial locality of memory access means that if a data item is accessed, data items at nearby addresses are also likely to be accessed in the near future. For example, the convolution operation of CNNs typically accesses adjacent weights or activation values ​​consecutively. The conflict-aware memory access request unit 20 utilizes the inherent spatiotemporal locality characteristics of the AI ​​workload to model and learn historical memory access behaviors. Based on historical access path information and memory access path costs, it selects the path with the lowest expected cost and the lowest probability of conflict as the target memory access path for each memory access request. This path not only inherits historical successful experience but also incorporates current network dynamics, thereby effectively avoiding concentrated contention for the same storage bank or shared interconnection resources in high-concurrency multiprocessor scenarios and improving overall memory access efficiency.

[0028] An embodiment of the present invention provides a memory access request transmitting circuit, comprising a processing unit for generating multiple memory access requests; and a conflict-aware memory access request unit for, upon receiving the multiple memory access requests sent by the processing unit, determining the target memory access path and target transmission order corresponding to the multiple memory access requests based on historical access path information and memory access path costs, and transmitting the memory access requests and the target memory access paths corresponding to the memory access requests to the storage access network according to the target transmission order. By determining the target memory access path and target transmission order corresponding to multiple memory access requests based on historical access path information and memory access path costs, a target memory access path that is adapted to the current network state and is expected to have lower overhead and fewer resource conflicts can be dynamically selected for each memory access request, and a matching target transmission order can be generated. This avoids network congestion and resource contention problems caused by concurrent access to the same storage unit or shared interconnection resources, and improves storage bandwidth utilization and memory access efficiency.

[0029] Reference Figure 2 The diagram shows another memory access request issuing circuit according to an embodiment of the present invention. The conflict-aware memory access request unit 20 includes a pre-request queue unit 21, a routing decision unit 22, and a request issuing unit 23. The pre-request queue unit 21 is used to receive multiple memory access requests sent by the processing unit 10 and generate a corresponding historical query identifier for each memory access request. The routing decision unit 22 is used to determine the target memory access path and target sending order for multiple memory access requests based on the historical memory access path information and memory access path cost corresponding to the historical query identifier. The request sending unit 23 is used to send memory access requests and the target memory access path of the memory access requests to the storage access network 30 in accordance with the target sending order.

[0030] The pre-request queue unit 21 is connected to the output of the processing unit 10 and is used to receive multiple memory access requests generated by the processing unit 10 during the execution of AI computing tasks. After receiving each memory access request, it generates a corresponding historical query identifier. The routing decision unit 22 is connected to the pre-request queue unit 21 and is used to obtain the memory access requests to be scheduled and their historical query identifiers from the pre-request queue unit 21. The routing decision unit 22 internally maintains historical memory access path information and memory access path costs. It can query the corresponding historical memory access path information and memory access path costs according to the historical query identifiers, and select the path with the lowest expected overhead and the lowest probability of resource conflict corresponding to the memory access request as the target memory access path based on the historical memory access path information and path costs. At the same time, it generates a globally optimized target sending order based on the memory access path costs of the target memory access paths of each request. The request sending unit 23 is connected to the output of the routing decision unit 22. It is used to package each memory access request and its corresponding target memory access path into a complete sending transaction according to the target sending order, and send it to the storage access network 30. The storage access network 30 directly performs routing configuration based on the received target memory access path without needing to select a route within the network. Since the path has been pre-optimized and resource contention has been dispersed, the probability of arbitration conflict in the network is significantly reduced, thereby significantly reducing transmission delay and path uncertainty.

[0031] In this embodiment of the invention, the routing decision unit 22 includes a network access history query unit 221, a memory access cost evaluation unit 222, and an access path selection unit 223; The network access history query unit 221 is used to store historical access path information of completed access requests and query the corresponding historical access path information according to the historical query identifier. The memory access cost evaluation unit 222 is used to store the memory access path cost of completed memory access requests and query the corresponding memory access path cost according to the historical query identifier. The access path selection unit 223 is used to determine the target access path and target sending order for multiple access requests based on the historical access path information and access path cost corresponding to the historical query identifier.

[0032] The network access history query unit 221 is connected to the output of the pre-request queue unit 21 and is used to store historical access path information corresponding to completed memory access requests. The storage access network 30 can access the network through... Figure 2 Path b sends the historical access path information of completed access requests to the network access history query unit 221. When a new memory access request arrives, the network access history query unit 221 queries the historical access path information corresponding to the historical query identifier based on the historical query identifier corresponding to the new memory access request provided by the pre-request queue unit 21.

[0033] The memory access cost evaluation unit 222 is connected to the output of the pre-request queue unit 21 and is used to store the memory access path cost corresponding to the completed memory access request. The storage access network 30 can access the memory access network through the memory access network 30. Figure 2 Path a sends the memory access path cost of the completed access request to the memory access cost evaluation unit 222. When a new memory access request arrives, the memory access cost evaluation unit 222 queries the memory access path cost corresponding to the historical query identifier provided by the pre-request queue unit 21, and uses it as a quantitative basis for the quality of the path.

[0034] The access path selection unit 223 is connected to the network access history query unit 221 and the memory access cost evaluation unit 222 respectively. It is used to receive the historical access path information and memory access path cost corresponding to the same group of memory access requests, select the historical access path with the lowest memory access path cost as the target memory access path, and generate a globally optimized target sending order according to the target path cost of each request (e.g., in ascending order of cost or combined with task priority weighting) to minimize the overall memory access latency and improve bandwidth utilization.

[0035] Reference Figure 3 The diagram shows a pre-request queue unit according to an embodiment of the present invention. The pre-request queue unit 21 includes multiple request storage modules 211, query mapping modules 212 and feedback mapping modules 213. The request storage module 211 is used to receive the memory access request sent by the processing unit 10, assign an access ID to the memory access request, and store the memory access request information corresponding to the memory access request. The memory access request information includes at least one of the following: memory access address, request type, memory access priority, and access ID. The query mapping module 212 is used to generate corresponding historical query identifiers based on memory access request information. The feedback mapping module 213 is used to store the mapping relationship between memory access request information and historical query identifiers. When receiving memory access completion information returned by the memory access network 30, it determines the corresponding memory access request information according to the access ID in the memory access completion information, determines the historical query identifier corresponding to the memory access request information according to the mapping relationship, and determines the corresponding feedback identifier and historical update identifier according to the historical query identifier. The feedback identifier is used to indicate to the processing unit 10 that the corresponding memory access request has been completed, and the historical update identifier is used to indicate the position of the historical record to be updated in the network access historical query unit 221 and the memory access cost evaluation unit 222.

[0036] The request storage module 211 receives memory access requests from the processing unit 10. After receiving a memory access request, each request storage module 211 first assigns a globally unique access ID to it for tracking the request throughout the entire memory access path. At the same time, it stores the memory access request information carried by the request in a local table entry. The memory access request information includes, but is not limited to: memory access address, request type (read / write), memory access priority, task ID (or application ID), instruction address (PC value), whether sequential consistency needs to be maintained, whether cache consistency operation is required, etc. These information together constitute the complete context of the request.

[0037] The output of the query mapping module 212 and all request storage modules 211 is used to generate a corresponding historical query identifier for each memory access request and write the mapping relationship between the memory access request information and the historical query identifier into the feedback mapping module 213. The query mapping module 212 is not based solely on the access ID, but combines multiple key fields in the memory access request information (e.g., concatenating, hashing, or XORing fields such as task ID, PC value, high bits of memory access address, and request type) to generate an index key as the historical query identifier. This mechanism is similar to the branch prediction address indexing method in a processor, aiming to map requests with similar access patterns to the same historical record item, thereby effectively utilizing the spatiotemporal locality of AI workloads (such as CNN convolution and Transformer attention).

[0038] The feedback mapping module 213 stores the mapping relationship between memory access request information and historical query identifiers (i.e., {task ID, PC value, address characteristics, request type} - historical query identifier), and maintains the associated feedback identifier and historical update identifier. When the memory access network 30 returns memory access completion information (including the access ID of the completed request), the feedback mapping module 213 first finds the corresponding memory access request information based on the access ID, then determines the corresponding historical query identifier based on the mapping relationship pre-established by the query mapping module 212, and then determines the feedback identifier and historical update identifier based on the historical query identifier. The feedback identifier is used to indicate the specific information of the currently completed memory access operation to the processing unit 10. The historical update identifier serves as the write address of the access history path table in the network access history query unit 221 and the write address of the access path cost table in the memory access cost evaluation unit 222, respectively, and is used to synchronously update the historical record after the request is completed.

[0039] The number (n) of the request storage modules 211, the number (m) of the historical query identifiers that can be generated concurrently, and the bit width (k) of the feedback / update identifiers can all be configured according to the system throughput, latency tolerance, and area power consumption budget to meet the performance requirements of different AI acceleration scenarios.

[0040] Reference Figure 4 The diagram shows a schematic of the structure of a network access history query unit according to an embodiment of the present invention. The network access history query unit 221 includes an access history path table 2211, an access history path table query module 2212, an access history path table update module 2213, and an access history path table save and load module 2214. Access history path table 2211 is used to store the historical access path information corresponding to the historical query identifier; The access history path table query module 2212 is used to query the corresponding historical memory access path from the access history path table 2211 according to the historical query identifier, and send the historical memory access path to the access path selection unit 223. The access history path table update module 2213 is used to write the historical access path information of the completed memory access requests sent by the storage access network 30 into the access history path table 2211 according to the historical update identifier. Access history path table saving and loading module 2214 is used to save access history path table 2211 to external memory 40 in response to external control requests, or to load the saved access history path table 2211 from external memory 40 to restore the historical state.

[0041] The access history path table 2211 is an addressable storage structure used to store historical memory access path information indexed by historical query identifiers. This information can include behavioral characteristics such as the actual routing path and the identifier of the accessed storage bank. The table's contents can be dynamically built and gradually converged during system operation: when the same AI computation mode (such as a CNN convolutional layer or Transformer attention head) is repeatedly executed, the corresponding historical query identifiers will continuously accumulate valid path data, causing the table entries to stabilize and eventually converge to the optimal path configuration.

[0042] The access history path table query module 2212 receives the history query identifier from the pre-request queue unit 21 and uses it as the address to search in the access history path table 2211. If a valid historical record exists, the corresponding historical access path information is sent to the access path selection unit 223 as an important basis for path decision.

[0043] The access history path table update module 2213 is responsible for updating the access history path table after the memory access is completed. It receives the historical access path information returned by the storage access network 30 after the memory access request is completed, as well as the historical update identifier from the feedback mapping module 213. It is used to write the actual access path of the completed memory access request into the access history path table 2211 according to the update position indicated by the historical update identifier.

[0044] The access history path table saving and loading module 2214 is connected to the external memory 40 and is used to respond to external control signals (such as save requests or loading requests issued by the operating system, runtime system, or user instructions). When it is detected that the current access history path table 2211 has entered a stable state, the entire table can be actively saved to the external memory 40. When the same or highly similar AI program segments are executed subsequently (such as inferring the same neural network model again), the saved table contents can be loaded from the external memory 40 to directly restore the historical state. This mechanism effectively skips the path exploration and table convergence process in the cold start phase, enabling the system to enter the optimal memory access state with high efficiency and low conflict at the initial stage of the task, significantly improving the energy efficiency ratio and response speed.

[0045] In this embodiment of the invention, the access history path table query module 2212 is further configured to receive the access history path table update module 2213 and send the access history path to the access path selection unit 223 when there is no historical access path information corresponding to the historical query identifier in the access history path table 2211.

[0046] The access history path table query module 2212 is not only used to return historical memory access path information when there is a matching item in the access history path table 2211, but also further supports the path acquisition mechanism in the case of missing historical records. For example, when accessing for the first time, there is no historical memory access path information corresponding to the historical query identifier in the access history path table 2211. The access history path table query module 2212 is used to wait for and receive the memory access path dynamically generated by the access history path table update module 2213.

[0047] In this embodiment of the invention, the access history path table update module 2213 is further configured to receive conflict information of completed access requests sent by the storage access network 30, the conflict information including network access delay, and generate the storage access path corresponding to the completed access request when the network access delay is greater than or equal to a preset delay threshold, and write it into the access history path table 2211.

[0048] The access history path table update module 2213 not only writes the actual path information of completed memory access requests into the access history path table 2211, but also has the ability to optimize paths based on memory access conflict feedback. The access history path table update module 2213 receives conflict information of completed access requests from the storage access network 30, and the conflict information includes at least the measured network access latency (i.e., the number of clock cycles from request issuance to completion response).

[0049] Under normal circumstances, if the network access latency is lower than a preset latency threshold, it indicates that the memory access path is functioning well. The access history path table update module 2213 directly writes the actual access path and corresponding latency of the request as a valid historical record into the access history path table 2211 at the position specified by the historical update identifier for subsequent similar requests. However, when the network access latency is greater than or equal to the preset latency threshold, the access history path table update module 2213 determines that the memory access has experienced significant performance degradation (e.g., queuing blockage caused by link congestion, arbitration contention, or bank contention). In this case, the access history path table update module 2213 proactively generates a new candidate memory access path with better expected performance for the completed access request. Subsequently, the access history path table update module 2213 can write the newly generated memory access path into the corresponding historical query identifier index position in the access history path table 2211, thereby optimizing the access history path table 2211.

[0050] Reference Figure 5 The diagram shows a schematic of the structure of a memory access cost evaluation unit according to an embodiment of the present invention. The memory access cost evaluation unit 222 includes an access path cost table 2221, an access path cost table query module 2222, an access path cost table update module 2223, and an access path cost table storage and loading module 2224. Access path cost table 2221 is used to store the access path cost corresponding to historical query identifiers; The access path cost table query module 2222 is used to query the corresponding memory access path cost from the access path cost table 2221 according to the historical query identifier, and send the memory access path cost to the access path selection unit 223. The access path cost table update module 2223 is used to receive conflict information of completed memory access requests sent by the storage access network 30, determine the corresponding memory access path cost according to the conflict information, and write the memory access path cost into the access path cost table 2221 according to the historical update identifier. Access path cost table saving and loading module 2224 is used to save access path cost table 2221 to external memory 40 in response to external control requests, or to load the saved access path cost table 2221 from external memory 40 to restore the historical state.

[0051] Access path cost table 2221 is a storage structure indexed by historical query identifiers. It is used to store the access path cost corresponding to the historical access path. The access path cost is a comprehensive indicator that reflects the expected performance overhead of choosing a certain path under the current system state. It can be determined based on network latency. The lower the value of the access path cost, the better the corresponding historical access path.

[0052] The access path cost table query module 2222 receives the historical query identifier from the pre-request queue unit 21, searches the access path cost table 2221 according to the historical query identifier, and sends the queried memory access path cost to the access path selection unit 223.

[0053] The access path cost table saving and loading module 2224 is connected to the external memory 40 and is used to respond to external control signals (such as save / load instructions issued by the operating system or runtime system). When the access path cost table 2221 enters a stable state, the entire table can be saved to the external memory 40. When executing the same or similar AI program segments subsequently (such as repeatedly inferring the same neural network), the saved cost table can be loaded from the external memory 40 to directly restore the historical optimization state. This mechanism effectively avoids the overhead of relearning path costs every time a task starts, enabling rapid entry into an efficient scheduling mode and significantly improving energy efficiency and throughput performance.

[0054] Reference Figure 6 The diagram shows a schematic of the structure of an access path selection unit according to an embodiment of the present invention. The access path selection unit 223 includes an optimal path selection module 2231 and an access sorting module 2232. The optimal path selection module 2231 is used to determine the minimum memory access path cost and the historical memory access path corresponding to the minimum memory access path cost for each memory access request based on the historical memory access path and memory access path cost, and to determine the historical memory access path corresponding to the minimum memory access path cost as the target memory access path for the corresponding memory access request. The access sorting module 2232 is used to determine the target sending order of each memory access request based on the minimum memory access path cost of each memory access request.

[0055] The optimal path selection module 2231 receives historical memory access paths (i.e., a set of candidate paths) from the network access history query unit 221 and the corresponding memory access path costs from the memory access cost evaluation unit 222. For each memory access request, this module iterates through all available historical memory access paths, selects the path with the lowest memory access cost, and determines this path as the target memory access path for the request. For example, if a request corresponds to three historical paths with costs of 8.2, 5.5, and 7.0 respectively, the path with a cost of 5.5 is selected as the target. This process ensures that each request is assigned to the data path with the currently expected optimal performance.

[0056] The access sorting module 2232 receives the minimum memory access path cost and memory access request information for each memory access request. Based on this, the access sorting module 2232 comprehensively considers the path cost and the memory access priority in the memory access request information to globally sort all requests to be issued. For example, a high-priority request can obtain a higher issuance position even if its path cost is slightly higher; if the priorities are the same, they are arranged in ascending order according to the minimum memory access path cost. The memory access priority can be directly specified by the processing element when the processing element issues a memory access request. When a memory access request resides in the pre-request queue unit for a long time, the pre-request queue unit can also increase the priority of this resident request so that the request is issued as soon as possible.

[0057] Reference Figure 7 The diagram shows a structural schematic of a request transmission unit according to an embodiment of the present invention. The request transmission unit 23 includes a transmission request filtering module 231, a request information extraction module 232, and a transmission interface module 233. The transmit request filtering module 231 is used to select a target memory access request less than or equal to a preset number from multiple memory access requests according to the target transmission order of each memory access request. The request information extraction module 232 is used to obtain the corresponding memory access request information from the pre-request queue unit 21 according to the access ID of the target memory access request. The transmission interface module 233 is used to send the access ID, access request information and target access path corresponding to the target memory access request to the storage access network 30 according to the target transmission order.

[0058] The launch request filtering module 231 receives a sorted sequence of memory access requests (including access ID, target memory access path, and implicit priority order) output from the access path selection unit 223. This sequence typically contains m requests (m ≥ s), where s is the maximum number of launches per cycle set by the system and can be configured according to the arbitration capability, bandwidth limit, or power consumption budget of the storage access network 30. The launch request filtering module 231 selects no more than s target memory access requests for launch according to preset launch filtering rules. For example, filtering can be performed according to a priority rule, where the filtering module 231 directly selects the first s requests in descending priority order (i.e., the highest priority at the beginning of the sequence). Filtering can also be performed according to a read / write separation rule, where the filtering module 231 further distinguishes request types: if only read requests are processed at a certain time, a maximum of s read requests are selected for launch based on priority; if write requests are processed at subsequent times, a maximum of s write requests are also selected for launch. This rule applies to storage access networks 30 with read / write flow control mechanisms. The unselected m requests... The s requests will remain in the scheduling pipeline and will be merged and reordered with the newly arrived requests in the next launch cycle, and then re-enter the launch request filtering module 231 for screening, thereby realizing multi-cycle dynamic scheduling and ensuring that high-priority or high-cost requests are not limited by instantaneous bandwidth.

[0059] The request information extraction module 232 queries the pre-request queue unit 21 based on the access ID of each target memory access request selected by the transmit request filtering module 231 to obtain the corresponding complete memory access request information, including metadata such as memory access address, request type (read / write), memory access priority, and task ID. This mechanism avoids redundant transmission of large-volume request information in the scheduling path, and only uses lightweight IDs for cross-module references, saving on-chip bandwidth and storage overhead.

[0060] The transmit interface module 233 packages the finalized access ID, complete memory access request information, and the target memory access path provided by the access path selection unit 223 into a transmit transaction according to the target transmission order, and sends it to the storage access network 30 through the standard interface. The storage access network 30 directly configures routing resources based on the received target memory access path, without needing to re-select routes within the network, thereby significantly reducing transmission latency and uncertainty.

[0061] The embodiments of the present invention overcome the limitations of traditional methods that lack a global conflict view. In the traditional architecture, each arbitration node can only perceive the local link status. Before the request is sent, the present invention integrates historical memory access path information and memory access path cost through the routing decision unit 22, thereby calculating the target memory access path with the lowest cost and the lowest conflict probability under the current system status for each memory access request, and significantly improving the data path utilization under the same physical topology.

[0062] The access path selection unit 223 comprehensively considers the minimum path cost and memory access priority to generate a globally optimized target sending order. Simultaneously, the request sending unit 23 supports flexible filtering strategies (such as priority truncation and read-write separation) to ensure that high-risk or high-value requests receive bandwidth first. This mechanism effectively avoids link congestion, bank port contention, and bandwidth fragmentation caused by fixed sending orders or static path allocation. Especially under AI workloads with complex spatiotemporal access patterns, such as CNNs and Transformers, it can maintain high and stable storage throughput performance.

[0063] Furthermore, the hardware overhead is controllable and easy to integrate. The added modules (such as the pre-request queue unit 21, the routing decision unit 22, and the request issuance unit 23) mainly consist of lightweight SRAM entries, comparators, and control logic, without requiring modification to the underlying structure of the existing storage access network 30. Simultaneously, the access history path table 2211 and the access path cost table 2221 support a save / load mechanism, reusing converged optimization states and further reducing cold start overhead. The overall solution offers limited incremental improvements in area and power consumption while delivering significant performance gains, demonstrating good engineering practicality and scalability.

[0064] This invention also provides an artificial intelligence accelerator, including the memory access request issuing circuit described above.

[0065] The terms "first" and "second" in the specification and claims of this invention may explicitly or implicitly include one or more of those features. In the description of this invention, unless otherwise stated, "a plurality of" means two or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0066] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this invention and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.

[0067] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0068] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0069] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A memory access request issuing circuit, characterized in that, The circuit includes: The processing element is used to generate multiple memory access requests; The conflict-aware memory access request unit is used to, upon receiving the multiple memory access requests sent by the processing unit, determine the target memory access path and target sending order corresponding to the multiple memory access requests based on historical access path information and memory access path cost, and send the memory access request and the target memory access path corresponding to the memory access request to the storage access network according to the target sending order. The memory access request issuing circuit further includes: The conflict-aware memory access request unit includes a pre-request queue unit, a routing decision unit, and a request issuance unit; The pre-request queue unit is used to receive the multiple memory access requests sent by the processing element and generate a corresponding historical query identifier for each memory access request. The routing decision unit is used to determine the target memory access path and target sending order corresponding to the multiple memory access requests based on the historical memory access path information and memory access path cost corresponding to the historical query identifier. The request sending unit is configured to send the memory access request and the target memory access path of the memory access request to the storage access network in accordance with the target sending order; The routing decision unit includes a network access history query unit, a memory access cost evaluation unit, and an access path selection unit. The network access history query unit is used to store historical access path information of completed access requests, and to query the corresponding historical access path information according to the historical query identifier. The memory access cost evaluation unit is used to store the memory access path cost of completed memory access requests and query the corresponding memory access path cost according to the historical query identifier. The access path selection unit is used to determine the target memory access path and target sending order corresponding to the multiple memory access requests based on the historical memory access path information and memory access path cost corresponding to the historical query identifier.

2. The memory access request transmitting circuit according to claim 1, characterized in that, The pre-request queue unit includes multiple request storage modules, query mapping modules, and feedback mapping modules; The request storage module is used to receive the memory access request sent by the processing element, assign an access ID to the memory access request, and store the memory access request information corresponding to the memory access request. The memory access request information includes at least one of the following: memory access address, request type, memory access priority, and access ID. The query mapping module is used to generate a corresponding historical query identifier based on the memory access request information; The feedback mapping module is used to store the mapping relationship between the memory access request information and the historical query identifier. Upon receiving the memory access completion information returned by the memory access network, it determines the corresponding memory access request information based on the access ID in the memory access completion information, determines the historical query identifier corresponding to the memory access request information based on the mapping relationship, and determines the corresponding feedback identifier and historical update identifier based on the historical query identifier. The feedback identifier is used to indicate to the processing unit that the corresponding memory access request has been completed, and the historical update identifier is used to indicate the position of the historical record to be updated in the network access history query unit and the memory access cost evaluation unit.

3. The memory access request issuing circuit according to claim 1, characterized in that, The network access history query unit includes an access history path table, an access history path table query module, an access history path table update module, and an access history path table save and load module. The access history path table is used to store the historical access path information corresponding to the historical query identifier; The access history path table query module is used to query the corresponding historical memory access path from the access history path table according to the historical query identifier, and send the historical memory access path to the access path selection unit. The access history path table update module is used to write the historical access path information of the completed storage access request sent by the storage access network into the access history path table according to the historical update identifier. The access history path table saving and loading module is used to respond to external control requests, save the access history path table to external storage, or load the saved access history path table from the external storage to restore the historical state.

4. The memory access request transmitting circuit according to claim 3, characterized in that, The access history path table query module is further configured to receive the access history path table update module generated when there is no historical memory access path information corresponding to the historical query identifier in the access history path table, and send the memory access path to the access path selection unit.

5. The memory access request issuing circuit according to claim 3, characterized in that, The access history path table update module is also used to receive conflict information of completed access requests sent by the storage access network. The conflict information includes network access latency. If the network access latency is greater than or equal to a preset latency threshold, the module generates the storage access path corresponding to the completed access request and writes it into the access history path table.

6. The memory access request transmitting circuit according to claim 1, characterized in that, The memory access cost evaluation unit includes an access path cost table, an access path cost table query module, an access path cost table update module, and an access path cost table save and load module. The access path cost table is used to store the access path cost corresponding to historical query identifiers; The access path cost table query module is used to query the corresponding memory access path cost from the access path cost table according to the historical query identifier, and send the memory access path cost to the access path selection unit. The access path cost table update module is used to receive conflict information of completed memory access requests sent by the storage access network, determine the corresponding memory access path cost according to the conflict information, and write the memory access path cost into the access path cost table according to the historical update identifier. The access path cost table saving and loading module is used to respond to external control requests, save the access path cost table to external memory, or load the saved access path cost table from the external memory to restore the historical state.

7. The memory access request issuing circuit according to claim 1, characterized in that, The access path selection unit includes an optimal path selection module and an access sorting module; The optimal path selection module is used to determine the minimum memory access path cost and the historical memory access path corresponding to the minimum memory access path cost for each memory access request based on the historical memory access path and the memory access path cost, and to determine the historical memory access path corresponding to the minimum memory access path cost as the target memory access path for the corresponding memory access request. The access sorting module is used to determine the target sending order of each memory access request based on the minimum memory access path cost of each memory access request.

8. The memory access request transmitting circuit according to claim 2, characterized in that, The request sending unit includes a sending request filtering module, a request information extraction module, and a sending interface module; The transmit request filtering module is used to select a target memory access request less than or equal to a preset number from the plurality of memory access requests according to the target transmission order of each memory access request. The request information extraction module is used to obtain the corresponding memory access request information from the pre-request queue unit according to the access ID of the target memory access request; The transmission interface module is used to send the access ID, access request information and target access path corresponding to the target memory access request to the storage access network according to the target sending order.

9. An artificial intelligence accelerator, characterized in that, Includes a memory access request transmitting circuit as described in any one of claims 1-8 above.

Citation Information

Patent Citations

  • Method and device for optimizing network access paths

    CN104243320A

  • Network request processing method, device, equipment, medium and program product

    CN117956033A