A reconfigurable computing memory access system and method, electronic device

By introducing a memory access control module into the reconfigurable computing memory access system, the connection between the LSU and memory blocks is dynamically scheduled, which solves the problem of reduced computing speed caused by frequent LSU configuration and achieves efficient data flow processing.

CN116361226BActive Publication Date: 2026-11-20TSINGHUA UNIVERSITY +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111612541.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2026-11-20
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

In existing reconfigurable computing memory access systems, frequent LSU configuration leads to a decrease in computing speed, failing to meet the total memory access requirements and flexibility requirements of complex algorithms.

Method used

The architecture employs a processing unit array (PEA), a memory access control module, a memory access module, and a shared memory (SM). The memory access control module dynamically schedules the storage units (LSUs) and memory blocks based on the configuration information of the PEs to achieve data memory access operations and avoid frequent LSU configuration.

Benefits of technology

It improves algorithm execution efficiency, meets the flexibility requirements of data stream processing, reduces the time overhead of LSU configuration, and increases computing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116361226B_ABST
    Figure CN116361226B_ABST
Patent Text Reader

Abstract

The application discloses a reconfigurable computing memory access system and method and an electronic device, and relates to the technical field of computer processing, to solve the problem that the existing reconfigurable computing memory access system and method are prone to causing the operation speed to decrease due to frequent configuration of LSUs. The reconfigurable computing memory access system comprises a processing element array PEA, a memory access control module, a memory access module and a shared memory SM; the memory access module comprises a plurality of memory access units LSUs, and the SM comprises a plurality of memory blocks; the two ends of the memory access control module are connected with the PEA and the memory access module respectively; the plurality of LSUs are connected with the plurality of memory blocks in a one-to-one correspondence; and the memory access control module is used for determining a target LSU in the memory access module and a corresponding target memory block based on configuration information issued by a target PE in the PEA, so that data memory access operations are performed between the target PE, the target LSU and the target memory block. According to the embodiment of the application, the LSUs do not need to be configured in advance by using instruction bytes, the operation speed caused by frequent configuration of the LSUs can be avoided, and the algorithm execution efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer processing technology, and in particular to a reconfigurable computing memory access system and method, and an electronic device. Background Technology

[0002] Currently, reconfigurable processors are widely used due to their high flexibility and efficiency. Among them, coarse-grained reconfigurable architecture (CGRA) processors are able to switch configurations during operation due to their fast configuration speed.

[0003] Various architectures, including CGRA, require Load / Store Units (LSUs) to move data between memory and compute units. In the traditional LSU structure of CGRA, the LSU is connected to the Processing Element (PE) units at the edge of the Processing Element Array (PEA). Each LSU is then fully interconnected with the memory banks in the Shared Memory (SM) via crossbars or similar methods. The execution method of this traditional LSU structure involves first configuring the LSU with instruction bytes to determine the data path from the LSU to a specific memory bank in the SM. If access to other memory banks in the SM is required, the LSU needs to be reconfigured with instruction bytes.

[0004] However, CGRA is a dataflow-based architecture. During the execution of complex algorithms, it is often necessary to access data in various memory blocks within the SM memory. The data paths of the existing LSU units are often insufficient to meet the total memory access and flexibility requirements of the entire algorithm. Therefore, during algorithm execution, it is often necessary to reconfigure each LSU unit for time-division multiplexing. Reconfiguring the LSU takes time, and frequent switching of configuration information can significantly reduce the efficiency of algorithm execution.

[0005] It is evident that existing reconfigurable computing memory access architectures and methods are prone to slowdowns due to frequent LSU configurations. Summary of the Invention

[0006] This application provides a reconfigurable computing memory access system and method, and an electronic device, to solve the problem that existing reconfigurable computing memory access systems and methods are prone to speed reduction due to frequent LSU configuration.

[0007] In a first aspect, embodiments of this application provide a reconfigurable computing memory access system, including a processing unit array (PEA), a memory access control module, a memory access module, and a shared memory (SM); The PEA includes multiple processing units (PE), the memory access module includes multiple memory access units (LSU), and the SM includes multiple memory blocks. The memory access control module is connected to the PEA and the memory access module at both ends, respectively. Each of the multiple LSUs is connected to each of the multiple memory blocks in a one-to-one correspondence; The memory access control module is used to determine the target LSU and the corresponding target memory block in the memory access module based on the configuration information issued by the target PE in the PEA, so as to perform data access operations between the target PE, the target LSU and the target memory block.

[0008] Optionally, the memory access control module includes a multiplexer (MUX) and registers; The PE in the PEA is connected to the LSU in the memory access module through the MUX; The register is used to store the configuration information.

[0009] Optionally, the memory access control module and the memory access module are integrated into the same module.

[0010] Secondly, embodiments of this application also provide a reconfigurable computing memory access method, executed by the reconfigurable computing memory access system as described in the first aspect, the method comprising: The target PE in the PEA of the reconfigurable computing memory access system sends configuration information to the memory access control module of the reconfigurable computing memory access system. The configuration information indicates memory access operation related information. Based on the configuration information, the memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system. Data access operations are performed between the target PE, the target LSU, and the target memory block.

[0011] Optionally, the data memory access operation is a data access operation, the target PE is the PE in the PEA that initiates the data access operation, and the configuration information includes first operation type information and memory access address information; The data access operation between the target PE, the target LSU, and the target memory block includes: Data is read from the target memory block via the target LSU; The memory access control module sends the data read by the target LSU from the target memory block to the target PE.

[0012] Optionally, the configuration information may also include the identification information of the target PE; The step of reading data from the target memory block via the target LSU includes: The memory access control module sends the first operation type information and the memory access address information to the target LSU. The target LSU reads data from the target memory block based on the first operation type information and the access memory address information; The step of sending the data read by the target LSU from the target memory block to the target PE through the memory access control module includes: The memory access control module sends the data read from the target memory block by the target LSU to the target PE based on the identification information of the target PE.

[0013] Optionally, the data access operation is a data storage operation, and the target PE includes a first PE and a second PE; The step of sending configuration information to the memory access control module of the reconfigurable computing memory access system through the target PE in the PEA of the reconfigurable computing memory access system includes: The first PE sends first configuration information to the memory access control module, and the second PE sends second configuration information to the memory access control module. The first configuration information indicates write memory address information, and the second configuration information indicates write data information. The step of determining the target LSU and corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the configuration information by the memory access control module includes: The memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information. The data access operation between the target PE, the target LSU, and the target memory block includes: The write data information is sent to the target LSU through the memory access control module; The write data information is written into the target memory block through the target LSU.

[0014] Optionally, the first configuration information further includes second operation type information and first pairing information, and the second configuration information further includes third operation type information and second pairing information; Before determining the target LSU and its corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information by the memory access control module, the method further includes: The memory access control module compares the first pairing information in the first configuration information with the second pairing information in the second configuration information. If the first configuration information and the second configuration information are successfully matched after comparison, the first configuration information and the second configuration information are merged to obtain target configuration information including the second operation type information, the write memory address information and the write data information, wherein the second operation type information is the same as the third operation type information.

[0015] Thirdly, embodiments of this application also provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the memory and the processor employ a reconfigurable computing memory access system as described in the first aspect, and the processor executes the computer program to implement the steps in the reconfigurable computing memory access method as described in the second aspect.

[0016] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the reconfigurable computing memory access method described above.

[0017] In this embodiment, the reconfigurable computing memory access system includes a processing unit array (PEA), a memory access control module, a memory access module, and a shared memory (SM). The PEA includes multiple processing units (PEs), the memory access module includes multiple memory access units (LSUs), and the SM includes multiple memory blocks. The memory access control module is connected to both the PEA and the memory access module. Each LSU is connected to one of the memory blocks. The memory access control module determines the target LSU and its corresponding target memory block in the memory access module based on configuration information issued by the target PE in the PEA, so as to perform data access operations between the target PE, the target LSU, and the target memory block. In this way, by adding a memory access control module, the LSU and memory block are directly connected one-to-one. Based on the data access needs, the configuration information of the LSU is triggered. The LSU and memory block are dynamically scheduled through the memory access control module to complete the data access operation between PE and SM. This method does not require the instruction byte to configure the LSU in advance, thereby avoiding the decrease in computing speed caused by frequent LSU configuration. It improves the algorithm execution efficiency while meeting the flexibility requirements of data stream processing. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the overall structure of the coarse-grained reconfigurable processor CGRA provided in the embodiments of this application; Figure 2 This is a schematic diagram of the reconfigurable computing memory access system provided in the embodiments of this application; Figure 3 This is a flowchart of the reconfigurable computation memory access method provided in the embodiments of this application; Figure 4a This is a schematic diagram illustrating the process of a reconfigurable computing memory access system performing a Load operation, as provided in an embodiment of this application. Figure 4b This is a schematic diagram illustrating the process of a reconfigurable computing memory access system performing Store operations, as provided in an embodiment of this application. Figure 5 This is a structural diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0021] To make the embodiments of this application clearer, the relevant concepts and technical background involved in the embodiments of this application will be briefly introduced below: After a long period of application and development, computer system architectures have formed a variety of basic architectures. Currently, the three most widely used hardware architectures are: general-purpose processors (GPPs) based on instruction flow, application-specific integrated circuits (ASICs) based on data flow, and reconfigurable processors based on both configuration and data flow.

[0022] GPP (Global Processing Unit) primarily utilizes a Central Processing Unit (CPU) to implement various programs and meet different needs through software programming, offering high flexibility but often lower efficiency. ASIC (Application-Specific Integrated Circuit) consists of specific hardware circuits designed for a single algorithm and application, capable of continuous computation and memory access according to pre-set timing and protocols, boasting high efficiency and speed, but limited functionality and poor flexibility. To achieve both the high flexibility of GPP and the high energy efficiency of ASIC, reconfigurable processors have emerged.

[0023] Reconfigurable processors are mainly divided into fine-grained reconfigurable architectures (FGRA) and coarse-grained reconfigurable architectures (CGRA). FGRA, represented by Field-Programmable Gate Arrays (FPGAs), contains abundant storage, computing, and on-chip interconnect resources. However, because FGRAs can achieve bit-level flexible reconfiguration, they require large amounts of configuration information storage and have long configuration times, resulting in higher on-chip power consumption and latency. Since FGRAs cannot switch configurations during operation, they are also considered statically reconfigurable processors. To overcome these shortcomings, coarse-grained reconfigurable processors (CGRAs) were proposed by academia in the last century, characterized by small configuration information requirements and low power consumption. Due to their extremely fast configuration speed, CGRAs enable configuration switching during operation and have been widely researched and applied in academia and industry as a major representative of dynamically reconfigurable processors.

[0024] Various architectures, including the CGRA architecture, require a certain number of Load / Store Units (LSUs) to move data between memory and computing units. Currently, with highly developed computing power, memory access speed is often the limiting factor for application speed, and memory access operations in CGRA are often a key factor limiting overall speed.

[0025] The traditional LSU structure currently used in CGRA is as follows: each LSU is typically directly connected to a processing element (PE) at the edge of the processing element array (PEA); then each LSU is fully interconnected with each memory bank in the shared memory (SM) through a crossbar or other means, so that any LSU can access data in any memory bank in the SM after configuration.

[0026] The traditional LSU execution method is as follows: First, the LSU needs to be pre-configured using instruction bytes to determine the data path from the LSU to a specific location in the SM memory. This data path is fixed at this point. If access to other memory blocks is required, the LSU needs to be reconfigured using instruction bytes. During a memory load operation, the configured LSU waits for its corresponding PE to generate an access address, and then retrieves the data and sends it to the original PE via the pre-defined data path based on the access address. During a memory store operation, two PEs and their internal LSUs are required to complete the operation. One PE sends the write address, and the other sends the write data. After both the address and data are sent to their respective LSUs, the pre-configured data path accesses the specific location of the corresponding memory block in the SM memory via the address to write the data.

[0027] In recent years, CGRA (Cloud Computing Radiation Array) has been widely used in wireless communication and high-performance computing (HPC). These applications require CGRA chips to meet powerful computing demands (providing a large PEA), massive memory access requirements, and flexible memory access methods. However, traditional LSU (Low-Supply Module Unit) memory access operations require pre-configuration, which inevitably has a negative impact on CGRA in the following two aspects: 1) Because CGRA is a dataflow-based architecture, complex algorithm execution often requires accessing data within various memory blocks in the SM memory. The data paths of the existing LSU units configured on the array often cannot meet the overall memory access and flexibility requirements of the algorithm. In other words, during algorithm execution, each LSU unit often needs to be reconfigured for time-division multiplexing to complete the entire algorithm. Reconfiguring the LSUs takes time, and frequent switching of configuration information significantly reduces the efficiency of algorithm execution. Therefore, LSU configuration can lead to a certain degree of slowdown in the array's processing speed.

[0028] 2) The advantage of CGRA lies in its small configuration information size. Many studies have focused on reducing the size of its configuration information to increase the overall array compilation speed. However, configuring LSU naturally brings certain configuration information requirements, which will increase the size of the overall array configuration information. Moreover, when configuration is required, LSU will inevitably need to decode the configuration information, which will have a negative impact on the PE area.

[0029] As can be seen from the above issues, time-division multiplexing of LSUs is essential to meet the algorithm's flexibility and total memory access requirements. However, time-division multiplexing of LSUs incurs additional configuration information and time overhead. To meet the requirements of LSU time-division multiplexing and reduce the cost of configuring LSUs, LSUs need to support dynamic scheduling, that is, to achieve data flow transportation between PE and SM without instruction configuration.

[0030] The embodiments of this application are proposed to solve the above-mentioned technical problems and realize data flow transportation without instruction configuration. They provide a reconfigurable computing memory access scheme based on data flow triggering.

[0031] See Figure 2 , Figure 2 This is a schematic diagram of the reconfigurable computing memory access system provided in the embodiments of this application, as shown below. Figure 2 As shown, the reconfigurable computing memory access system includes: Processing Element Array (PEA), memory access control module, memory access module, and shared memory (SM). The PEA includes multiple Processing Elements (PEs), the memory access module includes multiple Load / Store Units (LSUs), and the SM includes multiple Memory Banks. The memory access control module is connected to the PEA and the memory access module at both ends, respectively. Each of the multiple LSUs is connected to each of the multiple memory blocks in a one-to-one correspondence. The memory access control module is used to determine the target LSU and the corresponding target memory block in the memory access module based on the configuration information issued by the target PE in the PEA, so as to perform data access operations between the target PE, the target LSU and the target memory block.

[0032] The reconfigurable computing memory access system in this application embodiment is based on the coarse-grained reconfigurable processor CGRA. The core of the overall architecture of CGRA is the processing unit array (PEA), which consists of processing units (PE) with a certain interconnection structure. It accesses the shared memory SM on the array through the memory access unit (LSU). Its overall topology is as follows: Figure 1 As shown.

[0033] Unlike the traditional CGRA structure, the reconfigurable compute-memory access system in this embodiment transforms the connection between the LSU and the memory blocks in the SM into a one-to-one direct connection, and adds a memory access control module to implement memory access operations. This memory access control module may include a multiplexer (MUX), registers, related auxiliary circuits, etc. Of course, the memory access control module can also be other modular structures capable of implementing memory access control functions. The specific structure can be as follows: Figure 2 As shown, it includes a processing unit array (PEA), a memory access control module, a memory access module, and a shared memory (SM).

[0034] The PEA is a processing unit array structure composed of multiple processing units (PE) with interconnection structure. The memory access module includes multiple memory access units (LSU). The SM includes multiple memory blocks. The multiple LSUs are connected to the multiple memory blocks in a one-to-one correspondence. The memory access control module is connected to the PEA and the memory access module at both ends, respectively, and is used to control the connection between the PE in the PEA and the LSU in the memory access module, so as to realize the transfer of data between the PEA and the memory access module.

[0035] PEA's memory access to SM is divided into two basic operations: data access / reading (Load) and writing / storing (Store). Unlike the traditional LSU execution scheme, in this scheme, PEA triggers the configuration fields of Load and Store through data flow. After the relevant fields enter the memory access control module, they are matched with the corresponding LSU and the corresponding memory block to complete the memory access operation.

[0036] Specifically, the PE in the PEA that needs to read or write data, i.e., the target PE, actively sends out configuration information, which can be configured with information related to this memory access operation, such as memory access address information, memory access operation type information, and write data information. The memory access control module then determines the LSU and memory block location involved in this memory access operation based on the configuration information, i.e., the target LSU and the corresponding target memory block. The target memory block is a memory block in the SM that is directly connected to the target LSU one-to-one. Then, data access operations can be performed between the target PE, the target LSU, and the target memory block. For example, for a data access / read (Load) operation, data can be read from the target memory block, the read data can be placed in the target LSU, and then passed to the target PE through the memory access control module; for a data write / store (Store) operation, the write data can be passed to the target LSU through the memory access control module, and then the target LSU stores the write data into the target memory block.

[0037] Optionally, the memory access control module includes a multiplexer (MUX) and registers; The PE in the PEA is connected to the LSU in the memory access module through the MUX; The register is used to store the configuration information.

[0038] In one embodiment, the memory access control module includes a multiplexer (MUX) and a register, and may also include related auxiliary circuitry. The number of multiplexers (MUX) may not be limited to one.

[0039] The PE in the PEA can be connected to the LSU in the memory access module through the MUX. Specifically, the MUX may include multiple input terminals and multiple output terminals, which are respectively connected to multiple PEs in the PEA and multiple LSUs in the memory access module, and each port can be multiplexed. In this way, the MUX can control a certain PE in the PEA to connect with a certain LSU in the memory access module to form a data access path.

[0040] The register can be used to store configuration information issued by PEs in the PEA. For example, when a PE in the PEA actively issues configuration information, the memory access control module can temporarily store the received configuration information in its register for subsequent memory access operations. During data read operations, the register can also be used to store data read by the target LSU from the target memory block.

[0041] In this way, by using a multiplexer (MUX) and a register structure to form a memory access control module, the memory access control function between the LSU and PE can be realized, ensuring that the module structure is simple, easy to implement, stable and reliable.

[0042] Optionally, the memory access control module and the memory access module are integrated into the same module.

[0043] In one embodiment, the memory access control module and the memory access module can be integrated into a single module. That is, multiplexers such as MUX and registers can be added to the memory access module of the CGRA architecture to form an integrated memory access module that can control the connection path between the PE in the PEA and each LSU and memory block.

[0044] This ensures that the module size of the reconfigurable computing memory access system is kept as small as possible, reducing the complexity of the structure.

[0045] The reconfigurable computation memory access system of this application includes a processing unit array (PEA), a memory access control module, a memory access module, and a shared memory (SM). The PEA includes multiple processing units (PEs), the memory access module includes multiple memory access units (LSUs), and the SM includes multiple memory blocks. The memory access control module is connected to both the PEA and the memory access module. Each LSU is connected to one memory block in a one-to-one correspondence. The memory access control module determines the target LSU and its corresponding target memory block in the memory access module based on configuration information issued by the target PE in the PEA, enabling data access operations between the target PE, the target LSU, and the target memory block. By adding the memory access control module, LSUs and memory blocks are directly connected one-to-one. Based on data access requirements, configuration information for the LSUs is triggered, and the memory access control module dynamically schedules the LSUs and memory blocks to complete data access operations between the PEs and the SM. This method eliminates the need for pre-configuration of LSUs using instruction bytes, thus avoiding the slowdown caused by frequent LSU configuration, improving algorithm execution efficiency, and meeting the flexibility requirements for data stream processing.

[0046] See Figure 3 , Figure 3 This is a flowchart of the reconfigurable computation memory access method provided in the embodiments of this application, by... Figure 2 The reconfigurable computing memory access system in the illustrated embodiment executes, as follows: Figure 3 As shown, the method includes the following steps: Step 301: Send configuration information to the memory access control module in the reconfigurable computing memory access system through the target PE in the PEA of the reconfigurable computing memory access system. The configuration information indicates memory access operation related information.

[0047] In this embodiment, the PEA's memory access to the SM is divided into two basic operations: data access / reading (Load) and writing / storing (Store). Unlike the traditional LSU execution scheme, in this scheme, the PEA triggers the Load and Store configuration information through data flow, specifically configuration fields. After the relevant fields enter the memory access control module, they are matched with the corresponding LSU and the corresponding memory block to complete the memory access operation.

[0048] The aforementioned target PE is the PE in the PEA that needs to read or write data. In this embodiment of the application, a data access mechanism based on data flow triggering can be adopted. That is, when a certain PE in the reconfigurable computing access system has a data flow transportation requirement, the PE triggers the corresponding configuration information to indicate the relevant information of the data access operation to be performed.

[0049] Therefore, when the data access process is initiated, the target PE in the PEA that needs to read or write data will actively send configuration information, which indicates the relevant information of this access operation, such as access address information, access operation type information, and write data information.

[0050] It should be noted that, for data access / read (Load) operations, the target PE can be one of the PEAs, and for data write / store (Store) operations, the target PE can include two PEs in the PEA, one of which is responsible for sending configuration information indicating the write address, and the other of which is responsible for sending configuration information indicating the write data.

[0051] Step 302: Based on the configuration information, the memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system.

[0052] After receiving the configuration information from the target PE, the memory access control module can determine the location of the LSU and memory block involved in the current memory access operation based on the configuration information. Specifically, it determines the target LSU for which data needs to be read or written and the corresponding target memory block. This target memory block is a memory block in the SM that is directly connected to the target LSU in a one-to-one manner. Specifically, the target LSU and the corresponding target memory block can be determined through addressing based on the memory access address information indicated in the configuration information.

[0053] Step 303: Perform data access operations between the target PE, the target LSU, and the target memory block.

[0054] Then, given the target LSU and the target memory block, data access operations can be performed between the target PE, the target LSU, and the target memory block. Specifically, for a data access / read (Load) operation, data can be read from the target memory block, placed into the target LSU, and transmitted to the target PE through the memory access control module. For a data write / store (Store) operation, the write data can be transmitted to the target LSU through the memory access control module, and then the target LSU stores the write data into the target memory block.

[0055] Optionally, the data memory access operation is a data access operation, the target PE is the PE in the PEA that initiates the data access operation, and the configuration information includes first operation type information and memory access address information; Step 303 includes: Data is read from the target memory block via the target LSU; The memory access control module sends the data read by the target LSU from the target memory block to the target PE.

[0056] In one embodiment, when the data access operation is a data access operation, i.e. a Load operation, the target PE is the PE in the PEA that initiates the Load operation. The configuration information includes first operation type information and access memory address information. That is, the PE that initiates the Load operation can configure the current operation type field and the access memory address field. The first operation type information is the information indicating that the current operation type is a Load operation, and the access memory address information is the address information indicating the memory block to be accessed.

[0057] In this embodiment, the memory access control module can determine that the current operation type is a Load operation based on the first operation type information, and can determine the address of the memory block to be accessed through the access memory address information. Then, it can determine the corresponding target LSU and target memory block through addressing. Next, data can be read from the target memory block through the target LSU, and the read data can be sent back to the target PE through the memory access control module.

[0058] In this way, the PE in the PEA only needs to send configuration information, including operation type information and memory address information, when reading data. This enables the memory access control module to find the corresponding LSU and memory block to be accessed, and retrieve the data and return it to the required PE. This data access process can achieve dynamic scheduling of LSUs without the need to configure LSUs in advance through instruction bytes, which can reduce the configuration time and improve the array operation speed.

[0059] Furthermore, the configuration information also includes the identification information of the target PE; The step of reading data from the target memory block via the target LSU includes: The memory access control module sends the first operation type information and the memory access address information to the target LSU. The target LSU reads data from the target memory block based on the first operation type information and the access memory address information; The step of sending the data read by the target LSU from the target memory block to the target PE through the memory access control module includes: The memory access control module sends the data read from the target memory block by the target LSU to the target PE based on the identification information of the target PE.

[0060] When performing a data access Load operation, the configuration information sent by the target PE may also include the identification information of the target PE. That is, the PE that initiates the Load operation can configure the operation type field, the memory address field, and the target PE identification field for reading data. The target PE identification field is the PE that indicates the data to be read.

[0061] In this embodiment, the memory access control module can determine that the current operation type is a Load operation based on the first operation type information, and can determine the memory block address to be accessed through the memory access address information, and then determine the corresponding target LSU and target memory block through addressing.

[0062] The memory access control module can send the first operation type information and the memory access address information to the target LSU, but does not need to send the identification information of the target PE. The identification information of the target PE can be stored in the register of the memory access control module.

[0063] The target LSU can determine that the current operation type is a Load operation based on the first operation type information, and can determine the specific location of the data to be accessed in the target memory block based on the access memory address information, and can read it into the target LSU, and then transmit the read data to the memory access control module.

[0064] After the memory access control module obtains the read data, it can determine the data sending object based on the identification information of the target PE and send the read data to the target PE. At this point, the Load operation initiated by the target PE is completed.

[0065] In this way, the PE in the PEA only needs to send configuration information, including operation type information, access memory address information, and target PE identification information, when reading data. This enables the memory access control module to find the corresponding LSU and memory block to be accessed, and retrieve the data and return it to the required PE. This data access process can achieve dynamic scheduling of LSUs, ensuring the accuracy and reliability of data reading load operations.

[0066] The following is combined Figure 4a This paper details the execution process of the Load operation of the reconfigurable computing memory access system in the embodiments of this application.

[0067] The Load operation completes the reading of data from the SM to the PE. During this process, the PE that needs to read the data actively sends configuration fields, including but not limited to operation type flags, target PE flags, and memory address flags. Figure 4a As shown, configuration field 40 includes operation type flag L, target PE flag Index, and memory address flag Addr. The memory access control module determines it is a Load operation based on the operation type flag, then reads the memory address flag from the configuration field, addresses the corresponding LSU and memory block through the multiplexer MUX, reads the data from the memory block, and then sends the read data back to the target PE according to the target PE flag.

[0068] In one optional implementation, the Load configuration field can be as shown in Table 1 below, where the position indicates the position of different symbol fields in the configuration field. That is, the Load configuration field can be represented by a total of 41 bits. Of course, the number of bits of each symbol field can also be flexibly configured according to the actual situation.

[0069] Table 1 Load Configuration Fields Location Number of digits symbol Function [40:33] 8 index The instruction to send the read data to the PE number

[32] 1 load / store The type of memory access operation is 0 for load and 1 for store. [31:0] 32 Addr Access SM address The Load operation only needs to receive data from the configuration field of a single register (PE). After the PE passes the configuration field from its register to the register in the memory access control module, the memory access control module determines that the memory access operation type is Load. Then, the memory access control module can use the modulo operation result of Addr in the register configuration field to control the multiplexer (MUX) to access the corresponding LSU and memory bank. After the corresponding LSU and memory bank are selected, the LSU determines that the operation is a read operation by checking that the load / store bit in the register configuration field is 0, and retrieves Addr from the configuration field to determine the specific location of the data in the memory bank, and then reads the data into the LSU. Subsequently, with the help of the PE number Index in the configuration field, the retrieved data is sent to the corresponding PE, thus completing a Load operation.

[0070] Optionally, the data access operation is a data storage operation, and the target PE includes a first PE and a second PE; Step 301 includes: The first PE sends first configuration information to the memory access control module, and the second PE sends second configuration information to the memory access control module. The first configuration information indicates write memory address information, and the second configuration information indicates write data information. Step 302 includes: The memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information. Step 303 includes: The write data information is sent to the target LSU through the memory access control module; The write data information is written into the target memory block through the target LSU.

[0071] In one implementation, when the data access operation is a data storage operation, i.e. a Store operation, the target PE includes two PEs in the PEA that initiate the Store operation, namely a first PE and a second PE, one of which is responsible for sending the write address and the other is responsible for sending the write data.

[0072] In this embodiment, the first PE and the second PE can send different configuration fields to the memory access control module. For example, the first PE sends first configuration information indicating that there is memory address information to be written to the memory access control module, and the second PE sends second configuration information indicating that there is data information to be written to the memory access control module. The memory address information indicates the address information of the memory block to be written this time, and the data information indicates the specific data to be written this time.

[0073] The memory access control module can determine the address of the memory block to be written this time based on the write memory address information indicated in the first configuration information, and then determine the corresponding target LSU and target memory block through addressing; it can also determine the data to be written this time based on the write data information indicated in the second configuration information.

[0074] Then, the memory access control module can send the write data information to the target LSU, and the target LSU can then write the write data information, i.e. the data to be written, into the target memory block.

[0075] In this way, the PE in the PEA only needs to issue configuration information including the memory address to be written and configuration information including the data to be written when writing data. This enables the memory access control module to find the corresponding LSU and memory block to be written and write the data to be written to that memory block. This data writing process can realize dynamic scheduling of LSUs without the need to configure LSUs in advance through instruction bytes, which can reduce the time required for configuration and improve the array operation speed.

[0076] Furthermore, the first configuration information also includes second operation type information and first pairing information, and the second configuration information also includes third operation type information and second pairing information; Before determining the target LSU and its corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information by the memory access control module, the method further includes: The memory access control module compares the first pairing information in the first configuration information with the second pairing information in the second configuration information. If the first configuration information and the second configuration information are successfully matched after comparison, the first configuration information and the second configuration information are merged to obtain target configuration information including the second operation type information, the write memory address information and the write data information, wherein the second operation type information is the same as the third operation type information.

[0077] When performing a data write operation to the Store, the first PE that issues the write memory address information can also issue operation type information and pairing information. That is, the first configuration information also includes second operation type information and first pairing information. The second PE that issues the write data information can also issue operation type information and pairing information. That is, the second configuration information also includes third operation type information and second pairing information.

[0078] In this implementation, since the data to be written and the memory address to be written exist in two PEs, and they are not necessarily generated simultaneously, it is proposed to pair the configuration information of the two PEs by adding pairing information to the configuration information issued by each PE. Specifically, the second operation type information and the third operation type information both indicate that the current write operation is a Store operation, and the first pairing information and the second pairing information are pairing information corresponding to the configuration fields issued by the two PEs in the same write operation.

[0079] Specifically, after receiving the first configuration information, the memory access control module can determine that the current operation type corresponding to the first PE is a data write to the Store operation based on the second operation type information in the first configuration information, and can store the first configuration information. After receiving the second configuration information, the memory access control module can determine that the current operation type corresponding to the second PE is a data write to the Store operation based on the third operation type information in the second configuration information, and can store the second configuration information.

[0080] The memory access control module then compares the configuration information of the stored operation type Store operation, that is, compares the first pairing information and the second pairing information to determine whether the first configuration information and the second configuration information can be paired. The successful pairing may include the first pairing information being the same as the second pairing information, or the first pairing information matching the second pairing information, such as having the same pairing flag, or being able to be combined into a complete specific field, etc.

[0081] If the first configuration information and the second configuration information are successfully paired after comparison, the first configuration information and the second configuration information can be merged. Specifically, the pairing information in the configuration information can be removed, and only other information can be retained, so as to obtain the merged configuration information, i.e. the target configuration information, which specifically includes operation type information, write memory address information and write data information.

[0082] The memory access control module can determine the target LSU and the target memory block by addressing based on the write memory address information in the merged target configuration information, and then write the write data information in the target configuration information into the target memory block through the target LSU.

[0083] In this way, the PE in the PEA, when writing data, issues configuration information including operation type information, write memory address information, and pairing information, and configuration information including operation type information, write data information, and pairing information, respectively. This allows the memory access control module to accurately determine the configuration information corresponding to the same write operation through the pairing information, thereby finding the corresponding LSU and memory block to be written, and writing the data to be written into that memory block. This data writing process can achieve dynamic scheduling of LSUs, ensuring the accuracy and reliability of data storage store operations.

[0084] The following is combined with Figure 4b This paper details the execution process of Store operations in the reconfigurable computing memory access system described in the embodiments of this application.

[0085] The Store operation completes the writing of data from the PE to the SM. However, the data to be written and the memory address to be written exist in two PEs, and they do not necessarily occur simultaneously. Therefore, the PE containing the data to be written actively sends configuration fields, including but not limited to operation type flags, data to be written flags, and pairing flags, such as... Figure 4b As shown, the first configuration field 41 includes the operation type flag S, the data to be written flag data, and the pairing flag reg_Index. After receiving this configuration field, the memory access control module determines the operation type flag; if it is Store, it stores the corresponding information in the register. Similarly, the PE containing the memory address to be written also actively sends out configuration fields, including but not limited to the operation type flag, the memory address to be written flag, and the pairing flag, such as... Figure 4b As shown, the second configuration field 42 includes an operation type flag S, a write memory address flag Addr, and a pairing flag reg_Index. Upon receiving this configuration field, the memory access control module determines it to be a Store operation and stores the corresponding information in a register. Each time the memory access control module receives a configuration field with the operation type flag set to Store, it compares the configuration fields temporarily stored in its register. If two fields have the same pairing flag, they are merged, and the merged write memory address Addr, the data to be written data, and the memory access flag S are sent to the MUX for addressing, and then to the corresponding memory block for data writing.

[0086] The Store operation requires two PEs to complete, and the configuration fields of the paired PEs need to be merged during execution. Therefore, its register configuration field can consist of three parts as shown in the table below. The position indicates the position of different symbol fields in the configuration field. That is, the Store configuration field of each PE can be represented by a total of 41 bits, and the merged configuration field has 65 bits. Of course, the number of bits of each symbol field can also be flexibly configured according to the actual situation.

[0087] Table 2 Store configuration fields for PEs containing addresses Location Number of digits symbol Function [40:33] 8 reg_index Flags for pairing two PEs

[32] 1 load / store The type of memory access operation is 0 for load and 1 for store. [31:0] 32 Addr Access SM address Table 3 Store configuration fields for PEs containing data Location Number of digits symbol Function [40:33] 8 reg_index Flags for pairing two PEs

[32] 1 load / store The type of memory access operation is 0 for load and 1 for store. [31:0] 32 data Data to be stored Table 4 Store configuration fields after pairing and merging are complete Location Number of digits symbol Function [64:33] 32 data Data to be stored

[32] 1 load / store The type of memory access operation is 0 for load and 1 for store. [31:0] 32 Addr Access SM address The store operation requires data from the configuration fields of two registers (two PEs): one register provides the address (Addr), and the other register provides the data to be stored (data). As the registers in the memory access control module continuously store data from the PE registers, they pair and merge register data whose reg_index values ​​match. Specifically, the Addr from one register and the data from another register are stored into a single register, while retaining the load / store flag. Then, similar to the load operation, the corresponding LSU and memory block are located based on the Addr in the merged register. The LSU identifies the operation as a store operation based on the load / store flag in the register, and locates the specific position in the memory block based on the Addr in the register, storing the data from the register into the memory block. This completes one store operation.

[0088] This application's embodiment adopts a data-driven passively triggered LSU, which can access data without instruction-driven and configuration requirements, realizes dynamic load / store scheduling, reduces the overall configuration information size, improves configuration speed, and enhances the array's ability to process data streams during time-division multiplexing and certain burst data streams, thereby meeting the flexibility requirements of CGRA itself as a data stream array for data stream processing.

[0089] The reconfigurable computation-memory access method of this application embodiment sends configuration information, including memory access operation related information, to the memory access control module in the reconfigurable computation-memory access system through a target PE in the PEA. The configuration information is used to determine the target LSU and its corresponding target memory block within the memory access module of the reconfigurable computation-memory access system based on the configuration information. Data memory access operations are then performed between the target PE, the target LSU, and the target memory block. In this way, by triggering the configuration information of the LSU based on data memory access requirements and dynamically scheduling the LSU and memory block through the memory access control module, the data memory access operation between the PE and SM is completed. This method eliminates the need for pre-configuration of the LSU using instruction bytes, thus avoiding the slowdown in computation caused by frequent LSU configuration, improving algorithm execution efficiency, and meeting the flexibility requirements for data stream processing.

[0090] This application also provides an electronic device, which adopts... Figure 2 The reconfigurable computing memory access system in the illustrated embodiment. Since the principle by which the electronic device solves the problem is similar to the reconfigurable computing memory access method in this application embodiment, the implementation of this electronic device can refer to the implementation of the method; repeated details will not be elaborated further. Figure 5 As shown, the electronic device according to an embodiment of this application includes: Processor 500 is used to read the program from memory 520 and execute the following procedures: The target PE in the PEA of the reconfigurable computing memory access system sends configuration information to the memory access control module of the reconfigurable computing memory access system. The configuration information indicates memory access operation related information. Based on the configuration information, the memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system. Data access operations are performed between the target PE, the target LSU, and the target memory block.

[0091] Among them, Figure 5 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 500) and memory (memory 520). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. A bus interface provides the interface. Processor 500 is responsible for managing the bus architecture and general processing, and memory 520 can store data used by processor 500 during operation.

[0092] Optionally, the data memory access operation is a data access operation, the target PE is the PE in the PEA that initiates the data access operation, and the configuration information includes first operation type information and memory access address information; Processor 500 is also used to read programs from memory 520 and perform the following steps: Data is read from the target memory block via the target LSU; The memory access control module sends the data read by the target LSU from the target memory block to the target PE.

[0093] Optionally, the configuration information may also include the identification information of the target PE; Processor 500 is also used to read programs from memory 520 and perform the following steps: The memory access control module sends the first operation type information and the memory access address information to the target LSU. The target LSU reads data from the target memory block based on the first operation type information and the access memory address information; The memory access control module sends the data read from the target memory block by the target LSU to the target PE based on the identification information of the target PE.

[0094] Optionally, the data access operation is a data storage operation, and the target PE includes a first PE and a second PE; Processor 500 is also used to read programs from memory 520 and perform the following steps: The first PE sends first configuration information to the memory access control module, and the second PE sends second configuration information to the memory access control module. The first configuration information indicates write memory address information, and the second configuration information indicates write data information. The memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information. The write data information is sent to the target LSU through the memory access control module; The write data information is written into the target memory block through the target LSU.

[0095] Optionally, the first configuration information further includes second operation type information and first pairing information, and the second configuration information further includes third operation type information and second pairing information; Processor 500 is also used to read programs from memory 520 and perform the following steps: The memory access control module compares the first pairing information in the first configuration information with the second pairing information in the second configuration information. If the first configuration information and the second configuration information are successfully matched after comparison, the first configuration information and the second configuration information are merged to obtain target configuration information including the second operation type information, the write memory address information and the write data information, wherein the second operation type information is the same as the third operation type information.

[0096] The electronic device provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0097] Furthermore, the computer-readable storage medium of this application embodiment is used to store a computer program, which can be executed by a processor. Figure 2 The steps in the method embodiment shown.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0099] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can be physically included separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0100] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the transmission and reception methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0101] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles described in this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A reconfigurable computing memory access system, characterized in that, This includes the Processing Unit Array (PEA), the Memory Access Control Module (MART), the Memory Access Module (MIM), and the Shared Memory Module (SM). The PEA includes multiple processing units (PE), the memory access module includes multiple memory access units (LSU), and the SM includes multiple memory blocks. The memory access control module is connected to the PEA and the memory access module at both ends, respectively. Each of the multiple LSUs is connected to each of the multiple memory blocks in a one-to-one correspondence; The memory access control module is used to determine the target LSU and the corresponding target memory block in the memory access module based on the configuration information issued by the target PE in the PEA, so as to perform data access operations between the target PE, the target LSU and the target memory block.

2. The reconfigurable computing memory access system according to claim 1, characterized in that, The memory access control module includes a multiplexer (MUX) and registers; The PE in the PEA is connected to the LSU in the memory access module through the MUX; The register is used to store the configuration information.

3. The reconfigurable computing memory access system according to claim 1, characterized in that, The memory access control module and the memory access module are integrated into the same module.

4. A reconfigurable computation memory access method, characterized in that, Performed by any one of the reconfigurable computing memory access systems of claims 1 to 3, the method comprises: The target PE in the PEA of the reconfigurable computing memory access system sends configuration information to the memory access control module of the reconfigurable computing memory access system. The configuration information indicates memory access operation related information. Based on the configuration information, the memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system. Data access operations are performed between the target PE, the target LSU, and the target memory block.

5. The method according to claim 4, characterized in that, The data access operation is a data access operation, the target PE is the PE that initiates the data access operation in the PEA, and the configuration information includes first operation type information and memory address access information. The data access operation between the target PE, the target LSU, and the target memory block includes: Data is read from the target memory block via the target LSU; The memory access control module sends the data read by the target LSU from the target memory block to the target PE.

6. The method according to claim 5, characterized in that, The configuration information also includes the identification information of the target PE; The step of reading data from the target memory block via the target LSU includes: The memory access control module sends the first operation type information and the memory access address information to the target LSU. The target LSU reads data from the target memory block based on the first operation type information and the access memory address information; The step of sending the data read by the target LSU from the target memory block to the target PE through the memory access control module includes: The memory access control module sends the data read from the target memory block by the target LSU to the target PE based on the identification information of the target PE.

7. The method according to claim 4, characterized in that, The data access operation is a data storage operation, and the target PE includes a first PE and a second PE. The step of sending configuration information to the memory access control module of the reconfigurable computing memory access system through the target PE in the PEA of the reconfigurable computing memory access system includes: The first PE sends first configuration information to the memory access control module, and the second PE sends second configuration information to the memory access control module. The first configuration information indicates write memory address information, and the second configuration information indicates write data information. The step of determining the target LSU and corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the configuration information by the memory access control module includes: The memory access control module determines the target LSU and the corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information. The data access operation between the target PE, the target LSU, and the target memory block includes: The write data information is sent to the target LSU through the memory access control module; The write data information is written into the target memory block through the target LSU.

8. The method according to claim 7, characterized in that, The first configuration information also includes second operation type information and first pairing information, and the second configuration information also includes third operation type information and second pairing information; Before determining the target LSU and its corresponding target memory block in the memory access module of the reconfigurable computing memory access system based on the written memory address information by the memory access control module, the method further includes: The memory access control module compares the first pairing information in the first configuration information with the second pairing information in the second configuration information. If the first configuration information and the second configuration information are successfully matched after comparison, the first configuration information and the second configuration information are merged to obtain target configuration information including the second operation type information, the write memory address information and the write data information, wherein the second operation type information is the same as the third operation type information.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor; characterized in that the memory and the processor employ a reconfigurable computing memory access system as described in any one of claims 1 to 3, wherein the processor is configured to read the program in the memory to implement the steps of the reconfigurable computing memory access method as described in any one of claims 4 to 8.

10. A computer-readable storage medium for storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the reconfigurable computation memory access method as described in any one of claims 4 to 8.

Citation Information

Patent Citations

  • Reconfigurable processing unit, reconfigurable processing unit array and operation method thereof

    CN112486903A

  • Reconfigurable processing unit array supporting multiple memory access modes and control method and device

    CN112540793A