Register file design method and device for reconfigurable processing unit array
By designing the register file in the processor using a combination of local and global sharing of data and separate storage of data and configuration information, the problem of setting up large-scale register file resources under area constraints is solved, and the effect of improving processor performance is achieved.
Patent Information
- Application Number
- CN202011506065.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-12-18
AI Technical Summary
Under the constraints of area and other conditions, how to set up large-scale register file resources to reduce processor memory access latency and improve processor performance.
Using a combination of local and global sharing of data and separate storage of data and configuration information, the global register file of each reconfigurable processing unit array is designed, and the local register file of each processor unit is separated from data and configuration information. Storage design.
Through hierarchical register file design, the resources of the reconfigurable processor unit array are fully utilized to improve system performance, reduce the area and power consumption of the register file, and improve the data transmission efficiency of the processor.
Smart Images

Figure CN112486904B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a register stack design method and device for a reconfigurable processing unit array. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] A register is a high-speed storage component that can store several bits of binary code. Usually, the capacity of a register is limited but it has a very high read and write speed, so the data transfer rate between registers is very high. According to different classification methods and application scenarios, registers can be divided into many types and have a wide range of applications.
[0004] In the computer field, a register is usually a storage area inside the CPU that temporarily stores data, calculation results, instructions or addresses involved in calculations. It is a circuit with storage function as its core, usually composed of a certain number of triggers. Registers are located at the highest level of the memory hierarchy and are also the fastest and smallest memory that the CPU can read and write.
[0005] Typically, the internal register file is connected to many different buses, but only one bus is connected to the main memory, so the von Neumann bottleneck is an obvious data flow bottleneck. Only enough register resources can solve this bottleneck. And enough registers make it so that data is only occasionally exchanged between it and the memory. However, if each independent register is directly connected to the processing unit, the interconnection area will be greatly increased, so the register file technology in the processor came into being.
[0006] In the CPU, an array of multiple registers is called a register file or register stack. This is a group of registers defined by the CPU instruction set architecture, which is used to temporarily store data between the CPU's arithmetic unit and the memory. Therefore, the register file is usually on the processor's data path, and its access speed directly determines the processor's performance. Therefore, how to set up large-scale register file resources under the constraints of conditions such as area to reduce processor memory access latency and improve processor performance is a technical problem that needs to be solved urgently. Summary of the invention
[0007] A register file design method for a reconfigurable processing element array is provided in an embodiment of the present invention, so as to solve the technical problem of how to set up large-scale register file resources under the constraints of conditions such as area to improve processor performance. The method comprises: designing a global register file (GlobalRegister, GR for short) of each reconfigurable processing element array (Processing Elements Array, PEA for short) by combining local and global data sharing and storing data and configuration information separately, wherein each PEA comprises: a plurality of processing elements (Processing Elements, PE for short); and designing a local register file LR (LocalRegister, LR for short) of each PE by storing data and configuration information separately.
[0008] The embodiment of the present invention also provides a register stack design device for a reconfigurable processing unit array, which is used to solve the technical problem of how to set up large-scale register file resources under the constraints of conditions such as area to improve processor performance. The device includes: a global register design module, which is used to design the global register stack GR of each reconfigurable processing unit array PEA by combining local and global data sharing and separate storage of data and configuration information, wherein each PEA includes: multiple processor units PE; a local register design module, which is used to design the local register stack LR of each PE by separate storage of data and configuration information.
[0009] A computer device is also provided in an embodiment of the present invention to solve the technical problem of how to set up large-scale register file resources under the constraints of conditions such as area to improve processor performance. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the register file design method of the reconfigurable processing unit array is implemented.
[0010] A computer-readable storage medium is also provided in an embodiment of the present invention to solve the technical problem of how to set up large-scale register file resources under the constraints of conditions such as area to improve processor performance. The computer-readable storage medium stores a computer program for executing the register stack design method of the above-mentioned reconfigurable processing unit array.
[0011] In the embodiment of the present invention, the global register file GR of each PEA is designed by combining local and global data sharing and storing data and configuration information separately, and the local register file LR of each processor unit PE in each PEA is designed by storing data and configuration information separately. In the embodiment of the present invention, through the hierarchical register file design, the resources of each processing unit in the reconfigurable processor unit array can be fully utilized to improve the system performance of the reconfigurable processor unit array. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0013] Figure 1 A flow chart of a register file design method for a reconfigurable processing unit array provided in an embodiment of the present invention;
[0014] Figure 2 A schematic diagram of dividing a single PEA into multiple local PEAs provided in an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of a PE structure provided in an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of a register file design device for a reconfigurable processing unit array provided in an embodiment of the present invention;
[0017] Figure 5 A schematic diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0018] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0019] The present invention provides a method for designing a register file of a reconfigurable processing unit array. Figure 1 FIG. 1 is a flow chart of a register file design method for a reconfigurable processing unit array provided in an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0020] S101, designing a global register file GR of each reconfigurable processing unit array PEA by combining local and global data sharing and separate storage of data and configuration information, wherein each PEA includes: a plurality of processor units PE.
[0021] In specific implementation, the above S101 can be achieved through the following steps: divide the multiple PEs in each PEA into regions to form multiple local PEAs; design the registers in the first address range in the GR as registers for storing local PEA data; design the registers in the second address range in the GR as registers for storing global PEA data; design the registers in the third address range in the GR as registers for storing global PEA configuration information.
[0022] In one embodiment, when GR includes 20 registers, the first address range is GR0-7, the second address range is GR8-15, and the third address range is GR16-19.
[0023] In the embodiment of the present invention, although the register address ranges (eg, GR0-7) corresponding to different local PESs are the same, in fact different local PESs access registers in different physical spaces.
[0024] S102, designing the local register file LR of each PE by adopting a method of storing data and configuration information separately.
[0025] In specific implementation, the above S102 can be realized by the following steps: designing the registers in the first address range in the LR as registers for storing PE data; designing the registers in the second address range in the LR as registers for storing PE configuration information.
[0026] In one embodiment, when LR includes 12 registers, the first address range is GR0-7, and the second address range is GR8-11.
[0027] In one embodiment, the register file design method of the reconfigurable processing unit array provided in the embodiment of the present invention may further include the following steps: designing special registers for PEA function control in the register file.
[0028] In the specific implementation, the design of GR and LR is as follows:
[0029] (I) GR design:
[0030] Each PEA shares a global register stack GR, and the nominal addressing size is 20 32-bit register stacks. GR adopts a design method that combines local and global data sharing and separates data and configuration information sharing, which can improve the utilization of GR and reduce the area and power consumption of GR.
[0031] (1) GR solution with separate storage of configuration information and data information
[0032] The upper four registers 16-19 of GR are iteration registers, which store the iteration and idle information in the configuration information and can only be read by the iteration field in the configuration;
[0033] The lower 16 registers 0-15 of GR are data registers, which store operation input and output data and can be accessed by processing elements (PEs), including coprocessor interface reading, two operands of arithmetic and logic unit (ALU) operations, and local storage unit (LSU) operations and the reading of addresses and stored data.
[0034] (2) GR design combining local and global data sharing
[0035] GR 0-7 (i.e., the 0th to 7th global registers, the same below) is the GR register shared locally by 1 / 4 of the PEA, i.e., Figure 2 Each 1 / 4 PEA has an independent local GR register stack. Although the corresponding PEs share the same encoding address, they actually access different GR physical spaces. That is, there are actually four independent local GR stacks. The data sharing of the GR of the segment address cannot be realized between different 1 / 4 PEAs.
[0036] GR 8-19 are GR registers shared globally by the entire PEA, that is: Figure 2 The four 1 / 4 PEAs all share the physical space of the GR register stack of this address segment, and data and configuration sharing can be achieved between PEAs in different 1 / 4s through the GR of this address segment.
[0037] (3) GR 8-15 and GR 16-19 support coprocessor interface reading, GR 0-7 does not support preprocessor reading. Therefore, if you need to communicate with an external processor through GR, you can only use the upper 12 GR registers GR 8-19;
[0038] (4) GR 0-19 can be read and written by PE, that is, all PEs can read and write the registers of each GR;
[0039] (5) Only the output result of out1 (ALU operation result output, which will be explained in detail below) of PE can be written into GR.
[0040] The specific PEA global register GR interface signals are shown in Table 1.
[0041] Table 1 PEA global register GR signal interface
[0042] Signal name type Bit width meaning pea_global_dout_r Output 32 Global data output pea_global_en_w Input 1 Global Write Enable pea_global_addr Input 5 Global address input pea_global_din_w Input 32 Global Data Entry
[0043] (II) LR design
[0044] Each PE has its own local register stack LR, which consists of 12 32-bit register stacks. It also adopts the design of separate storage of data and configuration information to reduce the area of LR and improve the utilization of LR. Figure 3 A schematic diagram of a PE structure provided in an embodiment of the present invention is as follows: Figure 3 As shown in the figure, the core parts inside the PE are: PE controller PE Control, configuration memory CM, local register LR, PE router Router, PE execution unit (ALU, MUL and LSU) and Debug module Deb.
[0045] (1) The lower 8 registers 0-7 of LR are data registers, which store operation input and output data and can be accessed by each PE operation, including the three operands of ALU operation and the address and storage data input of LSU operation;
[0046] (2) The upper four registers 8-11 of LR are iteration registers, which store the iteration and IDLE information in the configuration information and can only be read by the iteration field in the configuration;
[0047] (3) LR 0-11 can all be written by PE operations, but only the output result of out1 of the PE unit can be written to LR.
[0048] GR reads data in 1 cycle and writes data in 3 cycles (actually, data written in the 3rd cycle can be read immediately starting this week. LR reads data in 1 cycle and writes data in 2 cycles (actually, data written in the 2nd cycle can be read immediately starting this week.)
[0049] It should be noted that after the PEA is written into the configuration, it must be configured as non-empty, and then the PEA will automatically start the clock. Only then can the PEA read and write data and perform calculations, including access to the GR and SM.
[0050] In addition, in addition to the local registers and the global registers, the hierarchical register file design solution also involves some special registers for PEA function control, as shown in Table 2. In the embodiment of the present invention, base_addr is 16.
[0051] Table 2 Special register function list
[0052]
[0053]
[0054] Out1 in the ALU type operation configuration information also involves the relevant content of the register file. Out1 is the 23rd to 29th bits of the ALU type configuration information, a total of 7 bits of data, which is the output data of the 32-bit calculation result. Its specific behavior is as follows:
[0055] (1) Out1[6:5]=00, output data 1 will be output to the local register file of this PE, Out1[4:0] represents the local register Index, currently only 8 local registers are supported; 0-7 bits data register, 8-11 bits iteration register; at the same time, the pipeline register Out1Reg is written by default.
[0056] (2) Out1[6:5]=01, output data 1 will output the global register file of this PEA, Out1[4:0] represents the global register Index, the current version supports 16 global registers; 0-15 bit data registers, 16-19 bit iteration registers, and the pipeline register Out1Reg is written by default.
[0057] (3) Out1[6:5]=10, output data 1 will only be output to the output register Out1 of this PE, that is, no other local or global registers will be written.
[0058] As can be seen from the above, the embodiment of the present invention can realize more flexible data transmission between PEs in various regions of PEA through hierarchical register file design, fully utilize PE resources of various parts of PEA while taking into account area overhead, complexity, etc., and improve the performance of the entire system.
[0059] Based on the same inventive concept, an embodiment of the present invention also provides a register file design device for a reconfigurable processing unit array, such as the following embodiment. Since the principle of solving the problem by the device is similar to the register file design method for a reconfigurable processing unit array, the implementation of the device can refer to the implementation of the register file design method for a reconfigurable processing unit array, and the repeated parts will not be repeated.
[0060] Figure 4 FIG. 1 is a schematic diagram of a register file design device for a reconfigurable processing unit array provided in an embodiment of the present invention. Figure 4 As shown, the device includes: a global register design module 41 and a local register design module 42.
[0061] Among them, the global register design module 41 is used to design the global register stack GR of each reconfigurable processing unit array PEA by combining local and global data sharing and separately storing data and configuration information, wherein each PEA includes: multiple processor units PE; the local register design module 42 is used to design the local register stack LR of each PE by separately storing data and configuration information.
[0062] In one embodiment, the global register design module 41 is further used to: divide multiple PEs in each PEA into regions to form multiple local PEAs; design registers in the first address range in the GR as registers for storing local PEA data; design registers in the second address range in the GR as registers for storing global PEA data; and design registers in the third address range in the GR as registers for storing global PEA configuration information.
[0063] In one embodiment, the local register design module 42 is further used to: design registers in the first address range in the LR as registers for storing PE data; and design registers in the second address range in the LR as registers for storing PE configuration information.
[0064] In one embodiment, the register file design device for a reconfigurable processing unit array provided in the embodiment of the present invention may further include: a special register design module 43, which is used to design special registers for PEA function control in the register file.
[0065] Based on the same inventive concept, an embodiment of the present invention further provides a computer device for solving the technical problem of how to set up large-scale register file resources under the constraints of area and other conditions to improve processor performance. Figure 5 A schematic diagram of a computer device provided in an embodiment of the present invention is shown in FIG. Figure 5 As shown, the computer device 50 includes a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the computer program, the register file design method for the reconfigurable processing unit array is implemented.
[0066] Based on the same inventive concept, a computer-readable storage medium is also provided in an embodiment of the present invention to solve the technical problem of how to set up large-scale register file resources under the constraints of conditions such as area to improve processor performance. The computer-readable storage medium stores a computer program for executing the register stack design method of the above-mentioned reconfigurable processing unit array.
[0067] In summary, the embodiments of the present invention provide a register stack design method, device, computer equipment and computer-readable storage medium for a reconfigurable processing unit array, which designs the global register stack GR of each PEA by combining local and global data sharing and storing data and configuration information separately, and designs the local register stack LR of each processor unit PE in each PEA by storing data and configuration information separately. In the embodiments of the present invention, through the hierarchical register file design, the resources of each processing unit in the reconfigurable processor unit array can be fully utilized to improve the system performance of the reconfigurable processor unit array.
[0068] The hierarchical register stack design method provided in the embodiment of the present invention mainly comprises global registers, local registers and special registers, and realizes effective data interaction and transmission between various units and regions of the reconfigurable processing unit array through different register functions, and designs different register schemes for different data and configurations.
[0069] Since GR can share data with more PEs, it has a more complex design and richer regional interconnection than local registers, and occupies a larger area resource. The main reason is that due to large-area data sharing, more complex functions and larger data operations can be realized on the basis of global registers. Since the local registers share relatively small data with them, they have higher data interaction efficiency and less area resources. At the same time, some special registers can also realize richer functions of registers and other processing units.
[0070] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0071] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0072] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0074] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A register file design method for a reconfigurable processing unit array, characterized in that: include: The global register file GR of each reconfigurable processing unit array PEA is designed by combining local and global data sharing and storing data and configuration information separately, wherein each PEA includes: a plurality of processor units PE; The local register stack LR of each PE is designed by adopting the method of separate storage of data and configuration information; The global register stack GR of each reconfigurable processing unit array PEA is designed by combining local and global data sharing and storing data and configuration information separately, including: Multiple PEs in each PEA are divided into regions to form multiple local PEAs; Design the registers in the first address range in the GR as registers for storing local PEA data; Design the registers in the second address range in GR as registers for storing global PEA data; The registers in the third address range in the GR are designed as registers for storing global PEA configuration information; The local register stack of each PE is designed by adopting the method of storing data and configuration information separately, including: Design the registers in the first address range in LR as registers for storing PE data; The registers in the second address range in the LR are designed as registers for storing PE configuration information.
2. The method according to claim 1, characterized in that The GR includes: 20 registers; the first address range is GR0-7; the second address range is GR8-15; the third address range is GR16-19.
3. The method according to claim 1, characterized in that The LR includes: 12 registers; the first address range is GR0-7; the second address range is GR8-11.
4. The method according to claim 1, characterized in that The method further comprises: Design special registers in the register file for PEA function control.
5. A register file design device for a reconfigurable processing unit array, characterized in that: include: A global register design module is used to design a global register file GR of each reconfigurable processing unit array PEA by combining local and global data sharing and storing data and configuration information separately, wherein each PEA includes: a plurality of processor units PE; A local register design module is used to design the local register stack LR of each PE by adopting a method of storing data and configuration information separately; The global register design module is further used to: divide multiple PEs in each PEA into regions to form multiple local PEAs; design registers in the first address range in the GR as registers for storing local PEA data; design registers in the second address range in the GR as registers for storing global PEA data; design registers in the third address range in the GR as registers for storing global PEA configuration information; The local register design module is also used to: design the registers in the first address range in the LR as registers for storing PE data; and design the registers in the second address range in the LR as registers for storing PE configuration information.
6. The device according to claim 5, characterized in that The device also includes: The special register design module is used to design special registers for PEA function control in the register file.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the register file design method of the reconfigurable processing unit array according to any one of claims 1 to 4 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the register file design method of the reconfigurable processing unit array according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Rapid data exchange structure based on register document and management method thereof
CN101441616A
Coarse granularity reconfigurable hierarchical array register file structure
CN103761072A
Processor architecture capable of being reconstructed and reconstruction method thereof
CN105512088A
Reconfigurable single instruction multiple data and systolic array structure, processor and electronic terminal
CN108628799A
Dynamically reconstructable multistage parallel single instruction multiple data array processing system
US20150310311A1
