Array structure of interleaved computing units and storage modules, related methods and devices

By using the array structure and 3D stacking technology of interleaved computing units and memory modules in the computing circuit, the problem of circuit power consumption and area caused by the increase in the frequency of data interaction between the computing unit and the storage module is solved, and efficient data transmission and Performance improvements.

CN118349189BActive Publication Date: 2024-09-27ZHONGHAO XINYING (HANGZHOU) TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410766266.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-27
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In high-performance computing circuits, the increase in the frequency of data interaction between computing units and storage modules causes circuit power consumption and structure area to double. Traditional structures are difficult to meet the data interaction needs of huge circuits.

Method used

It adopts an array structure of interleaved computing units and storage modules. The storage modules are placed between computing units through the storage controller to form an interleaved array, which optimizes the space layout, reduces circuit power consumption, and achieves scalability through 3D stacking technology.

Benefits of technology

It effectively reduces the data interaction time and power consumption between the computing unit and the storage module, improves the performance and scalability of the computing circuit, and reduces the area occupied by the circuit structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349189B
    Figure CN118349189B
Patent Text Reader

Abstract

The present application provides an array structure of interleaved computing units and storage modules, related methods and devices. The array structure includes multiple computing units, multiple storage modules and a storage controller. By combining the provided array stacking method, multiple computing units in the array structure are arranged in a horizontal and vertical interval, and each storage module is arranged between two computing units, and the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing unit and the storage module to form an array structure of interleaved computing units and storage modules. In combination with the provided data transmission method, the storage controller is used to transmit the storage data in the storage module to the corresponding computing unit in at least one array structure for calculation, and is also used to transmit the calculation data of the computing unit to the corresponding storage module in at least one array structure. Optimize the spatial arrangement of the array structure, reduce power consumption and improve performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and in particular, relates to an array structure of interleaved computing units and storage modules, and related methods and devices. Background Art

[0002] With the rapid development of artificial intelligence, the demand for computing power is growing. A single computing unit can no longer meet people's expectations. In addition to improving the computing performance of the computing unit itself, increasing the number of computing units is actually a simple, effective and widely used method. In the computing circuit, the storage module plays the role of providing source operation data for the computing unit and storing the calculation results. As the number of computing units increases, a single storage module is difficult to meet the increasingly fast and huge data interaction requirements of the computing unit. Therefore, the number of storage modules needs to be increased accordingly, or the original storage module needs to be divided into multiple blocks (Bank).

[0003] If there are a large number of computing units and storage modules, and the computing units need to interact with more than one storage module for data, it will inevitably lead to the circuit distance between some storage modules and computing units being too far. A longer circuit distance means longer data interaction time and greater circuit power consumption. In today's high-performance computing circuits, the traditional computing unit and storage module structure will appear hundreds or thousands of times. When the scale of the entire circuit is larger, the frequency of long-term data interaction between various computing units or storage modules will double, and the circuit power consumption and circuit structure area generated by the increased interaction frequency will double. Summary of the invention

[0004] The embodiments of the present application provide an array structure of interleaved computing units and storage modules, related methods and devices, which can solve the problem that in today's high-performance computing circuits, the structure of traditional computing units and storage modules will appear hundreds or thousands of times. When the scale of the entire circuit is larger, the frequency of long-term data interaction between various computing units or storage modules will double, and the circuit power consumption and area occupied by the circuit structure will double due to the increase in interaction frequency. The provided method can optimize the spatial arrangement of the computing unit and storage module array, reduce circuit power consumption from the hardware level, and improve performance.

[0005] In a first aspect, an embodiment of the present application provides an array structure of interleaved computing units and storage modules, including:

[0006] A plurality of computing units, wherein the plurality of computing units are arranged with intervals in the horizontal direction and in the vertical direction;

[0007] A plurality of storage modules, each of which is arranged between two of the computing units;

[0008] A storage controller, the storage controller is electrically connected to each of the computing units and each of the storage modules respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules;

[0009] The storage controller is used to transfer the storage data in the storage module to the corresponding computing unit in at least one of the array structures for calculation, and is also used to transfer the calculation data of the computing unit to the corresponding storage module in at least one of the array structures for storage.

[0010] In some embodiments, the array structure includes at least one two-dimensional array structure, so that the computing unit and the storage module are interwoven and connected in the two-dimensional array structure.

[0011] Exemplarily, the array structure includes multiple two-dimensional array structures, and the multiple two-dimensional array structures are stacked according to 3D stacking technology to form a three-dimensional array structure; wherein, distribution information of two adjacent two-dimensional array structures in the three-dimensional array structure is opposite, so that the computing unit and the storage module are interwoven and connected in the two-dimensional array structure.

[0012] In some embodiments, the storage controller is used to transfer the storage data in the storage module to the computing unit in the array structure that is closest to the storage module for calculation, and is also used to transfer the calculation data of the computing unit to the storage module in the array structure that is closest to the computing unit for storage.

[0013] In some embodiments, the computing unit includes any one of an arithmetic logic unit, a floating point operation unit, and a register file.

[0014] In some embodiments, the storage module includes any one of a static random access memory, a dynamic random access memory, and a synchronous dynamic random access memory.

[0015] In a second aspect, the present application provides a data transmission method, which is applied to a storage controller of an array structure of interleaved computing units and storage modules, wherein the array structure further comprises a plurality of computing units and a plurality of storage modules, wherein the plurality of computing units are arranged with intervals in the horizontal and vertical directions, and each storage module is arranged between two computing units, and the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules; the method comprises:

[0016] When receiving received data to be sent, parsing the received data to obtain first position information corresponding to a sender of the received data and a first type of the sender; wherein the sender is any one of the computing unit and the storage module; wherein the first type is used to indicate that the sender of the received data is the storage module or the computing unit, and the first position information is used to indicate the position of the sender in the array structure;

[0017] Confirming a second type of a receiving end corresponding to the received data in the array structure according to the first type; wherein the second type is used to indicate that the receiving end of the received data is the storage module or the computing unit;

[0018] Determine second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure;

[0019] The received data is transmitted to the receiving end according to the second location information.

[0020] In some embodiments, confirming the second type of the receiving end corresponding to the received data in the array structure according to the first type includes: when the sending end is determined to be the computing unit according to the first type, confirming the receiving end to be the storage module, and generating the second type corresponding to the storage module; or, when the sending end is determined to be the storage module according to the first type, confirming the receiving end to be the computing unit, and generating the second type corresponding to the computing unit.

[0021] In some embodiments, determining the second location information corresponding to the receiving end in the array structure based on the first location information and the second type includes: acquiring multiple first device location information corresponding to the second type in the array structure; calculating the distance information between each first device location information and the first location information; and using the device location information corresponding to the minimum value of the distance information as the second location information.

[0022] Exemplarily, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; after calculating the distance information of each first device location information and the first location information, it also includes: parsing the received data to confirm the first function information corresponding to the received data; matching according to the second type and the device type of the function type library, and determining multiple candidate function information from the multiple function information; matching the first function information with the multiple candidate function information to generate a matching result list; determining the second location information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second location information.

[0023] It should be noted that, in some embodiments, determining the second position information corresponding to the receiving end in the array structure based on the distance information and the matching result list includes: obtaining the second device position information corresponding to each matching result in the matching result list; establishing a mapping relationship between the distance information and the matching result based on the first device position information corresponding to the distance information and the second device information corresponding to the matching result; calculating a device selection factor based on multiple distance information, multiple matching results and the mapping relationship; and determining the second position information corresponding to the receiving end based on the device selection factor.

[0024] In a third aspect, the present application provides an array stacking method, which is applied to a storage controller having an array structure of interleaved computing units and storage modules provided in any embodiment of the present application, wherein the array structure includes a plurality of two-dimensional array structures; the method includes:

[0025] Acquire distribution information of each of the two-dimensional array structures; wherein the distribution information is used to indicate that the computing unit or the storage unit is placed at each position in the two-dimensional array structure;

[0026] Inputting the distribution information of each of the two-dimensional array structures and the array identifier of the two-dimensional array structure into a preset stacking model, wherein the stacking model outputs stacking schemes corresponding to a plurality of the two-dimensional array structures;

[0027] The stacking of a plurality of the two-dimensional array structures is completed according to the stacking scheme to obtain a three-dimensional array structure, so that a plurality of the computing units are arranged at intervals within the three-dimensional array structure, and the storage module is arranged between two of the computing units.

[0028] In some embodiments, completing stacking of multiple two-dimensional array structures according to the stacking scheme includes: obtaining an array identification sequence corresponding to the three-dimensional array structure according to the stacking scheme; determining the two-dimensional array structure corresponding to each layer of the three-dimensional array structure according to the array identification sequence and the first array identification; and electrically connecting adjacent storage controllers in the front and rear two two-dimensional array structures in the three-dimensional array structure to complete stacking of multiple two-dimensional array structures.

[0029] In a fourth aspect, the present application further provides a data transmission device, which is applied to a storage controller of an array structure of interleaved computing units and storage modules, wherein the array structure further comprises a plurality of computing units and a plurality of storage modules, wherein the plurality of computing units are arranged with intervals in the horizontal and vertical directions, and each storage module is arranged between two computing units, and the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules; the device comprises:

[0030] A data receiving module, configured to, upon receiving received data to be sent, parse the received data to obtain first position information corresponding to a sender of the received data and a first type of the sender; wherein the sender is any one of the computing unit and the storage module; wherein the first type is used to indicate that the sender of the received data is the storage module or the computing unit, and the first position information is used to indicate a position of the sender in the array structure;

[0031] a type confirmation module, configured to confirm, in the array structure according to the first type, a second type of a receiving end corresponding to the received data; wherein the second type is used to indicate that the receiving end of the received data is the storage module or the computing unit;

[0032] a position confirmation module, configured to determine second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure;

[0033] A data transmission module is used to transmit the received data to the receiving end according to the second location information.

[0034] In a fifth aspect, the present application provides an array stacking device, which is applied to a storage controller of an array structure of interleaved computing units and storage modules provided in any embodiment of the present application, wherein the array structure includes a plurality of two-dimensional array structures; the device includes:

[0035] A distribution acquisition module, used for acquiring distribution information of each of the two-dimensional array structures; wherein the distribution information is used for indicating that the computing unit or the storage unit is placed at each position in the two-dimensional array structure;

[0036] An identification input module, used for inputting the distribution information of each of the two-dimensional array structures and the array identification of the two-dimensional array structure into a preset stacking model, and the stacking model outputs stacking schemes corresponding to a plurality of the two-dimensional array structures;

[0037] A stacking completion module is used to complete the stacking of multiple two-dimensional array structures according to the stacking scheme to obtain a three-dimensional array structure, so that multiple computing units are arranged at intervals in the three-dimensional array structure, and the storage module is arranged between two computing units.

[0038] In a sixth aspect, the present application also provides a computer-readable storage medium storing a computer program, which, when executed by a storage controller, implements the steps of a data transmission method as provided in any embodiment of the present application, or implements the steps of an array stacking method as provided in any embodiment of the present application.

[0039] Compared with the prior art, this application has at least the following beneficial effects:

[0040] The array structure of interleaved computing units and storage modules provided in the present application includes multiple computing units, multiple storage modules and a storage controller. By combining the provided array stacking method, multiple computing units in the array structure are arranged in a horizontal and vertical interval, and each storage module is arranged between two computing units, and the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing unit and the storage module to form an array structure of interleaved computing units and the storage modules. Further, in combination with the provided data transmission method, the storage controller is used to transmit the storage data in the storage module to the corresponding computing unit in at least one array structure for calculation, and is also used to transmit the calculation data of the computing unit to the corresponding storage module in at least one array structure for storage.

[0041] Furthermore, the provided method not only arranges the computing units and storage modules in an interlaced manner to achieve the idea of ​​storage and computing integration, but also optimizes the spatial arrangement of the computing unit and storage module arrays, reduces the power consumption of the array structure from the hardware level, and improves performance. It also further realizes the scalability of arranging the planar array in a cubic manner through technologies such as 3D stacking.

[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the structure of the first array structure of interleaved computing units and storage modules shown in an embodiment of the present application;

[0044] Figure 2 A schematic diagram of the structure of the second array structure of interleaved computing units and storage modules shown in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of a data transmission method according to an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a process of an array stacking method according to an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of a data transmission device shown in an embodiment of the present application;

[0048] Figure 6 This is a schematic diagram of the structure of an array stacking device shown in an embodiment of the present application.

[0049] Among them, the figure marks are explained as follows: 10, array structure; 11, computing unit; 12, storage module; 13, storage controller; 400, data transmission device; 401, data receiving module; 402, type confirmation module; 403, position confirmation module; 404, data transmission module; 500, array stacking device; 501, distribution acquisition module; 502, identification input module; 503, stacking completion module.

[0050] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. DETAILED DESCRIPTION

[0051] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0052] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0053] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0054] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0055] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0056] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0057] The technical solution of the embodiment of the present application is introduced below.

[0058] With the rapid development of artificial intelligence, the demand for computing power is growing. A single computing unit can no longer meet people's expectations. In addition to improving the computing power performance of the computing unit itself, increasing the number of computing units is actually a simple, effective and widely used method. In the computing circuit, the storage module plays the role of providing source operation data for the computing unit and storing the calculation results. As the number of computing units increases, a single storage module is difficult to meet the increasingly fast and huge data interaction requirements of the computing unit. Therefore, the number of storage modules needs to be increased accordingly, or the original storage modules need to be divided into multiple blocks (Bank). Multiple storage modules / blocks can perform parallel data interaction with the computing unit without interfering with each other, thereby meeting the bandwidth requirements of multiple computing units on a macro level.

[0059] When the number of computing units and storage modules is small, the traditional arrangement is relatively simple. It only needs to divide the circuit into two areas according to the function, and then connect them through multiplexers, storage controllers and other logic circuits. If the number of computing units and storage modules is large, and the computing unit needs to interact with more than one storage module for data, it will inevitably cause the circuit distance between some storage modules and computing units to be too far. Longer circuit distance means longer data interaction time and greater circuit power consumption. In today's high-performance computing circuits, the traditional computing unit and storage module structure will appear hundreds or thousands of times. When the scale of the entire circuit is larger, the long-term data interaction frequency between each computing unit or storage module will double, and the circuit power consumption and circuit structure area generated by the increase in interaction frequency will double.

[0060] To solve the above problems, please refer to Figure 1 , Figure 1 The schematic diagram of the structure of the first interleaved computing unit and storage module array structure shown in the embodiment of the present application. Figure 1 As shown, the provided array structure 10 includes a plurality of computing units 11, a plurality of storage modules 12 and a storage controller 13. The plurality of computing units 11 are arranged in a horizontal and vertical interval, each storage module 12 is arranged between two computing units 11, the storage controller 13 is electrically connected to each computing unit 11 and each storage module 12 respectively, and the storage controller 13 is arranged between the computing units 11 and the storage modules 12 to form an array structure 10 of interleaved computing units 11 and storage modules 12.

[0061] The storage controller 13 is used to transfer the storage data in the storage module 12 to the corresponding computing unit 11 in at least one array structure 10 for calculation, and is also used to transfer the calculation data of the computing unit 11 to the corresponding storage module 12 in at least one array structure for storage.

[0062] Specifically, through the provided array structure 10, the computing unit 11 and the storage module 12 are no longer divided into two independent regions based on their functions as in the traditional method, but the computing unit 11 and the storage module 12 are discrete and intertwined with each other, arranged in a surrounding manner, and thus integrated into a whole. The data path between the two is composed of a storage controller 13 and circuit connections or an intermediate layer.

[0063] At the same time, if Figure 1 As shown, each computing unit 11 in the central area is surrounded by a storage module 12, and the storage modules 12 in the center are also surrounded by computing units 11. And the computing units 11 / storage modules 12 at the edge of the array will also be surrounded by Figure 1The array structure 10 is surrounded by the omitted storage module 12 / computing unit 11. When the computing unit 11 needs to store the calculated data into the storage module 12, the data will be stored into the desired single or multiple storage modules 12 through the storage controller 13. Then, by optimizing the spatial layout of the array structure 10, it is ensured that the data of the array structure 10 can be transmitted quickly and efficiently, and the circuit power consumption of the array structure 10 is reduced.

[0064] In some embodiments, the provided array structure 10 can be applied to a circuit corresponding to a processor, wherein the processor includes any one of a central processing unit (CPU), a graphics processing unit (GPU), a tensor processing unit (TPU), a neural network processor (NPU), a brain processor (Brain Processing Unit) (BPU) and a deep learning processing unit (DPU). The embodiments of the present application do not limit the type of processor.

[0065] In some embodiments, the computing unit 11 includes any one of an arithmetic logic unit, a floating point unit, and a register file. The embodiment of the present application does not limit the type of the computing unit 11.

[0066] In some embodiments, the storage module 12 includes any one of a static random access memory (Sram), a dynamic random access memory (Dram), and a synchronous dynamic random access memory (SDram). The storage module 12 is a circuit that can realize data reading and writing functions and is manufactured by processes such as Sram, Dram, or SDram. The embodiment of the present application does not limit the type of the storage module 12.

[0067] In some embodiments, the storage controller 13 is a circuit composed of digital logic, which can realize the selection, processing and transmission of data between the storage module 12 and the computing unit 11, such as an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The embodiment of the present application does not limit the type of the storage controller 13.

[0068] In some embodiments, the storage controller 13 is used to transfer the storage data in the storage module 12 to the computing unit 11 in the array structure 10 that is closest to the storage module 12 for calculation, and is also used to transfer the calculation data of the computing unit 11 to the storage module 12 in the array structure 10 that is closest to the computing unit 11 for storage.

[0069] In the space of the constructed array structure 10, the distance between the computing unit 11 and the surrounding multiple storage modules 12 is the shortest distance, and the data does not need to flow into another area through a long-distance line after passing through the storage controller 13 as in the traditional method. Similarly, the storage module 12 can also provide the storage data to the surrounding computing units 11 through the shortest path. The provided method optimizes the spatial arrangement of the computing unit 11 and the storage module 12 array, reduces the power consumption of the array structure 10 from the hardware level, and improves the performance.

[0070] In some embodiments, Figure 1 As shown, the array structure 10 includes at least one two-dimensional array structure, so that the computing units 11 and the storage modules 12 are interwoven and connected in the two-dimensional array structure.

[0071] For example, Figure 2 As shown, the array structure 10 includes a plurality of two-dimensional array structures, and the plurality of two-dimensional array structures are stacked according to the 3D stacking technology to form a three-dimensional array structure; wherein the distribution information of two adjacent two-dimensional array structures in the three-dimensional array structure is opposite, so that the computing unit 11 and the storage module 12 are interwoven and connected in the two-dimensional array structure. When stacking is performed using the provided 3D stacking technology, the storage module 12 at the center has a maximum of 6 computing units 11 in the shortest path. Compared with the planar two-dimensional array structure, the present invention further increases the number of storage modules 12 / computing units 11 in the shortest path or the shorter path in the 3D mode, further improving the data transmission efficiency and performance of the array structure provided by the present application.

[0072] At the same time, the array structure 10 provided in the present application has at least the following beneficial effects:

[0073] By arranging the computing unit 11 and the storage module 12 in an interlaced manner, a storage-computing integrated structure is realized. By optimizing the spatial arrangement of the computing unit 11 and the storage module 12 array, the circuit power consumption is effectively reduced from the hardware level, which helps to improve the overall performance of the circuit structure. At the same time, the 3D stacking technology is used to arrange the planar array in a cubic shape, which further improves the scalability of the circuit structure and optimizes the area occupied by the circuit structure.

[0074] Please refer to Figure 3 , Figure 3A flow chart of a data transmission method provided in an embodiment of the present application. The data transmission method in an embodiment of the present application is applied to Figure 1 to Figure 2 The memory controller 13 of the array structure 10 is shown.

[0075] like Figure 3 As shown, the data transmission method of this embodiment includes steps S201 to S204, which are described in detail as follows:

[0076] S201, when receiving received data to be sent, parse the received data to obtain first position information corresponding to the sender of the received data and a first type of the sender; wherein the sender is any one of a computing unit and a storage module; wherein the first type is used to indicate that the sender of the received data is a storage module or a computing unit, and the first position information is used to indicate the position of the sender in the array structure.

[0077] Specifically, when the storage controller receives the received data to be sent transmitted by any computing unit / storage module in the array structure, by parsing the first position information corresponding to the sender of the received data and the first type of the sender, it can determine that the sender is a storage module or a computing unit and the position of the sender in the array structure. The first position information can be the relative coordinate information of the receiving end in the array structure, such as the two-dimensional coordinates in the two-dimensional array structure or the three-dimensional coordinates in the three-dimensional array structure, so as to quickly determine the transmission object of the received data.

[0078] S202, confirming a second type of a receiving end corresponding to received data in the array structure according to the first type; wherein the second type is used to indicate that the receiving end for receiving the data is a storage module or a computing unit.

[0079] Specifically, the storage controller can determine the second type of the receiving end corresponding to the received data based on the first type corresponding to the sending end of the received data, that is, the receiving end and the sending end of the received data should be different ends in the storage module or computing unit, and the provided receiving method can maintain logical correctness.

[0080] In some embodiments, the second type of the receiving end corresponding to the received data is confirmed in the array structure according to the first type, including: when the sending end is determined to be the computing unit according to the first type, confirming the receiving end as the storage module, and generating the second type corresponding to the storage module; or when the sending end is determined to be the storage module according to the first type, confirming the receiving end as the computing unit, and generating the second type corresponding to the computing unit. The provided method can ensure that the receiving end is of different types from the sending end, and ensure that the received data can be transmitted to the corresponding receiving end.

[0081] S203, determining second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure.

[0082] Specifically, the storage controller can quickly extract the second position information of the storage module / computing unit of the second type in the array structure according to the first position information of the receiving end and the second type. The second position information can be the position information of the receiving end of the opposite type to the sending end and the closest to the first position information, or it can be the position information of the receiving end of the camera with the opposite function to the sending end. The specific selection logic of the second position information can be selected according to the need to reduce the length of the data transmission path or to increase the data processing speed.

[0083] S204: Transmit the received data to the receiving end according to the second location information.

[0084] Specifically, after obtaining the second position information of the corresponding receiving end, the storage controller directly transmits the received data to the sending end according to the second position information to complete the transmission of the received data. The provided method can quickly and efficiently complete the transmission of each received data, improve the data transmission efficiency of the array structure and reduce the power consumption of the array structure.

[0085] In some embodiments, determining the second location information corresponding to the receiving end in the array structure according to the first location information and the second type includes: obtaining a plurality of first device location information corresponding to the second type in the array structure; calculating the distance information between each first device location information and the first location information; and using the device location information corresponding to the minimum value of the distance information as the second location information. By transmitting the received information to at least one transmitting end that is closest to the transmitting end, the data transmission time and the power consumption of the array structure can be reduced and its performance can be improved.

[0086] Exemplarily, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; after calculating the distance information of each first device location information and the first location information, it also includes: parsing the received data to confirm the first function information corresponding to the received data; matching according to the second type and the device type of the function type library, and determining multiple candidate function information from the multiple function information; matching the first function information with the multiple candidate function information to generate a matching result list; determining the second location information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second location information.

[0087] Since the data type processed / stored by the nearest receiving end may be less compatible with the transmitting end, the provided method can achieve targeted transmission in the data transmission process within the array structure through functional matching while saving power consumption, thereby improving data processing efficiency.

[0088] It should be noted that, in some embodiments, determining the second position information corresponding to the receiving end in the array structure based on the distance information and the matching result list includes: obtaining the second device position information corresponding to each matching result in the matching result list; establishing a mapping relationship between the distance information and the matching result based on the first device position information corresponding to the distance information and the second device information corresponding to the matching result; calculating a device selection factor based on multiple distance information, multiple matching results and the mapping relationship; and determining the second position information corresponding to the receiving end based on the device selection factor.

[0089] Through the device selection factor, the provided method can combine distance and function, select the transmitter with matching function and shorter distance, and further improve the performance of the array structure.

[0090] It should be noted that, in some examples, the expression of the device selection factor is as follows: ; wherein said Select a factor for the device, the is the distance information, is the sequence number corresponding to the distance information, is the expression of the mapping relationship, For the serial number The matching result corresponding to the mapping relationship, is the first preset threshold, The embodiment of the present application does not limit the values ​​of the first preset threshold and the second preset threshold, and can be adjusted accordingly according to actual requirements for distance / functional adaptation.

[0091] Please refer to Figure 4 , Figure 4 A schematic diagram of a process flow of an array stacking method provided in an embodiment of the present application. The array stacking method in an embodiment of the present application is applied to Figure 1 to Figure 2 The storage controller 13 of the array structure 10 is shown, and the array structure 10 includes a plurality of two-dimensional array structures.

[0092] like Figure 4 As shown, the array stacking method of this embodiment includes steps S301 to S303, which are described in detail as follows:

[0093] S301, obtaining distribution information of each two-dimensional array structure; wherein the distribution information is used to indicate whether a computing unit or a storage unit is placed at each position in the two-dimensional array structure.

[0094] For details, please refer to Figure 1 and Figure 2 Although computing units and storage modules are interwoven in each two-dimensional array structure, the position distribution of the computing units and storage modules is different. Therefore, by obtaining the distribution information of each corresponding two-dimensional array structure through any storage controller 13 in multiple two-dimensional array structures, the arrangement of the two-dimensional array structures to be stacked can be confirmed.

[0095] S302: input the distribution information of each two-dimensional array structure and the array identifier of the two-dimensional array structure into a preset stacking model, and the stacking model outputs stacking schemes corresponding to the plurality of two-dimensional array structures.

[0096] Specifically, the array identification of the two-dimensional array structure can be to number each two-dimensional array structure, such as array 1, array 2...array n, and then input the array identification and its distribution information into a preset stacking model, such as a neural network model, a machine learning model, etc. The stacking model can combine the array identification and its distribution information to output a stacking scheme corresponding to multiple two-dimensional array structures.

[0097] S303, completing stacking of multiple two-dimensional array structures according to the stacking scheme, and obtaining a three-dimensional array structure, so that multiple computing units are arranged at intervals in the three-dimensional array structure, and the storage module is arranged between two computing units.

[0098] Specifically, the storage controller stacks multiple two-dimensional array structures according to the determined stacking scheme to obtain a three-dimensional array structure, so that multiple computing units are arranged at intervals under the three-dimensional array structure, and the storage module is arranged between two computing units. At the same time, the number of storage modules / computing units in the shortest path or the shorter path is further increased, and the data transmission efficiency and performance of the array structure provided by the present application are further improved.

[0099] In some embodiments, the stacking of multiple two-dimensional array structures according to the stacking scheme includes: obtaining an array identification sequence corresponding to the three-dimensional array structure according to the stacking scheme; determining the two-dimensional array structure corresponding to each layer of the three-dimensional array structure according to the array identification sequence and the first array identification; and electrically connecting adjacent storage controllers in the front and rear two two-dimensional array structures in the three-dimensional array structure to complete the stacking of multiple two-dimensional array structures. The provided method can realize the three-dimensionalization of the array structure according to the stacking scheme, and further improve the performance of the array structure.

[0100] In order to execute the data transmission method corresponding to the above method embodiment, so as to achieve the corresponding functions and technical effects. Figure 5 , Figure 5 The structural block diagram of a data transmission device 400 provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the present embodiment are shown. The data transmission device 400 provided in an embodiment of the present application is applied to the storage controller 13 of the array structure 10 provided in any embodiment of the present application. The provided data transmission device 400 includes:

[0101] The data receiving module 401 is used to parse the received data to obtain the first position information corresponding to the sender of the received data and the first type of the sender when receiving the received data to be sent; wherein the sender is any one of the computing unit and the storage module; wherein the first type is used to indicate that the sender of the received data is the storage module or the computing unit, and the first position information is used to indicate the position of the sender in the array structure.

[0102] The type confirmation module 402 is used to confirm the second type of the receiving end corresponding to the received data in the array structure according to the first type; wherein the second type is used to indicate that the receiving end of the received data is the storage module or the computing unit.

[0103] The position confirmation module 403 is used to determine the second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure.

[0104] The data transmission module 404 is used to transmit the received data to the receiving end according to the second location information.

[0105] The above-mentioned data transmission device 400 can implement the data transmission method of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment and will not be described in detail in this embodiment.

[0106] In order to perform the array stacking method corresponding to the above method embodiment, to achieve the corresponding functions and technical effects. Figure 6 , Figure 6 The structural block diagram of an array stacking device 500 provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the present embodiment are shown. The array stacking device 500 provided in an embodiment of the present application is applied to the storage controller 13 of the array structure 10 provided in any embodiment of the present application, and the array structure 10 includes multiple two-dimensional array structures. The provided array stacking device 500 includes:

[0107] The distribution acquisition module 501 is used to acquire the distribution information of each of the two-dimensional array structures; wherein the distribution information is used to indicate that the computing unit or the storage unit is placed at each position in the two-dimensional array structure.

[0108] The identification input module 502 is used to input the distribution information of each of the two-dimensional array structures and the array identification of the two-dimensional array structure into a preset stacking model, and the stacking model outputs stacking schemes corresponding to multiple two-dimensional array structures.

[0109] The stacking completion module 503 is used to complete the stacking of multiple two-dimensional array structures according to the stacking scheme to obtain a three-dimensional array structure, so that multiple computing units are arranged at intervals in the three-dimensional array structure, and the storage module is arranged between two computing units.

[0110] The array stacking device 500 can implement the array stacking method of the method embodiment. The options in the method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of the present application can refer to the contents of the method embodiment, and will not be repeated in this embodiment.

[0111] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a storage controller, the steps in any of the above method embodiments are implemented.

[0112] An embodiment of the present application provides a computer program product. When the computer program product runs on a storage controller, the storage controller implements the steps in the above-mentioned method embodiments when executing.

[0113] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0114] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0115] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. An array structure of interleaved computing units and storage modules, characterized in that: include: A plurality of computing units, wherein the plurality of computing units are arranged with intervals in the horizontal direction and in the vertical direction; A plurality of storage modules, each of which is arranged between two of the computing units; A storage controller, the storage controller is electrically connected to each of the computing units and each of the storage modules respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules; The storage controller is used to transfer the storage data in the storage module to a corresponding computing unit in at least one of the array structures for computing, and is also used to transfer the computing data of the computing unit to a corresponding storage module in at least one of the array structures for storage; Wherein, any one of the calculation unit and the storage module is used to obtain a plurality of first device location information corresponding to the second type in the array structure; calculate the distance information between each of the first device location information and the first location information; and use the device location information corresponding to the minimum value of the distance information as the second location information; wherein the first type is used to indicate that the sending end of the received data is the storage module or the calculation unit, and the first location information is used to indicate the location of the sending end in the array structure; the second type is used to indicate that the receiving end of the received data is the storage module or the calculation unit; the second location information is used to indicate the location of the receiving end in the array structure; the first device location information is used to indicate the location of the receiving end to be selected in the array structure; Among them, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; the storage controller is also used to parse the received data and confirm the first function information corresponding to the received data after calculating the distance information of each first device position information and the first position information; match according to the second type and the device type of the function type library, and determine multiple candidate function information from the multiple function information; match the first function information with the multiple candidate function information to generate a matching result list; determine the second position information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second position information.

2. The array structure according to claim 1, characterized in that: The array structure includes at least one two-dimensional array structure, so that the computing unit and the storage module are interwoven and connected in the two-dimensional array structure.

3. The array structure according to claim 2, characterized in that: The array structure includes a plurality of two-dimensional array structures, and the plurality of two-dimensional array structures are stacked according to a 3D stacking technology to form a three-dimensional array structure; The distribution information of two adjacent two-dimensional array structures in the three-dimensional array structure is opposite, so that the computing unit and the storage module are interwoven and connected in the two-dimensional array structure.

4. The array structure according to claim 1, characterized in that: The storage controller is used to transmit the storage data in the storage module to the computing unit in the array structure that is closest to the storage module for calculation, and is also used to transmit the calculation data of the computing unit to the storage module in the array structure that is closest to the computing unit for storage.

5. The array structure according to claim 1, characterized in that: The computing unit includes any one of an arithmetic logic unit, a floating point operation unit and a register file.

6. The array structure according to claim 1, characterized in that: The storage module includes any one of a static random access memory, a dynamic random access memory and a synchronous dynamic random access memory.

7. A data transmission method, characterized in that: A storage controller applied to an array structure of interleaved computing units and storage modules according to any one of claims 1 to 6, wherein the array structure further comprises a plurality of computing units and a plurality of storage modules, wherein the plurality of computing units are arranged with intervals in the horizontal and vertical directions, and each storage module is arranged between two computing units, wherein the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules; and the method comprises: When receiving received data to be sent, parsing the received data to obtain first position information corresponding to a sender of the received data and a first type of the sender; wherein the sender is any one of the computing unit and the storage module; wherein the first type is used to indicate that the sender of the received data is the storage module or the computing unit, and the first position information is used to indicate the position of the sender in the array structure; Confirming a second type of a receiving end corresponding to the received data in the array structure according to the first type; wherein the second type is used to indicate that the receiving end of the received data is the storage module or the computing unit; Determine second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure; transmitting the received data to the receiving end according to the second location information; The determining, in the array structure according to the first position information and the second type, second position information corresponding to the receiving end includes: Acquire a plurality of first device position information corresponding to the second type in the array structure; the first device position information is used to indicate the position of the receiving end to be selected in the array structure; Calculate distance information between each first device location information and the first location information; using the device location information corresponding to the minimum value of the distance information as the second location information; The storage controller stores a preset function type library, the function type library includes a plurality of function information and device types corresponding to the function information; after calculating the distance information between each first device location information and the first location information, it also includes: parsing the received data to confirm first function information corresponding to the received data; Matching the second type with the device type of the function type library, and determining a plurality of candidate function information from the plurality of function information; Matching the first function information with the plurality of candidate function information to generate a matching result list; The second position information corresponding to the receiving end is determined in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second position information.

8. The method according to claim 7, characterized in that The confirming, in the array structure according to the first type, a second type of the receiving end corresponding to the received data comprises: When the sending end is determined to be the computing unit according to the first type, the receiving end is confirmed to be the storage module, and the second type corresponding to the storage module is generated; or, when the sending end is determined to be the storage module according to the first type, the receiving end is confirmed to be the computing unit, and the second type corresponding to the computing unit is generated.

9. The method according to claim 7, characterized in that: The determining, in the array structure according to the distance information and the matching result list, the second position information corresponding to the receiving end includes: Obtaining second device location information corresponding to each matching result in the matching result list; Establishing a mapping relationship between the distance information and the matching result according to the first device location information corresponding to the distance information and the second device information corresponding to the matching result; Calculate a device selection factor according to the plurality of distance information, the plurality of matching results and the mapping relationship; The second location information corresponding to the receiving end is determined according to the device selection factor.

10. An array stacking method, characterized in that: A storage controller for an array structure of interleaved computing units and storage modules applied to any one of claims 1 to 6, wherein the array structure comprises a plurality of two-dimensional array structures; and the method comprises: Acquire distribution information of each of the two-dimensional array structures; wherein the distribution information is used to indicate that a computing unit or a storage unit is placed at each position in the two-dimensional array structure; Inputting the distribution information of each of the two-dimensional array structures and the array identifier of the two-dimensional array structure into a preset stacking model, wherein the stacking model outputs stacking schemes corresponding to a plurality of the two-dimensional array structures; According to the stacking scheme, a plurality of the two-dimensional array structures are stacked to obtain a three-dimensional array structure, so that a plurality of the computing units are arranged at intervals in the three-dimensional array structure, and the storage module is arranged between two computing units; Wherein, any one of the calculation unit and the storage module is used to obtain a plurality of first device location information corresponding to the second type in the array structure; calculate the distance information between each of the first device location information and the first location information; and use the device location information corresponding to the minimum value of the distance information as the second location information; wherein the first type is used to indicate that the sending end of the received data is the storage module or the calculation unit, and the first location information is used to indicate the location of the sending end in the array structure; the second type is used to indicate that the receiving end of the received data is the storage module or the calculation unit; the second location information is used to indicate the location of the receiving end in the array structure; the first device location information is used to indicate the location of the receiving end to be selected in the array structure; Among them, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; the storage controller is also used to parse the received data and confirm the first function information corresponding to the received data after calculating the distance information of each first device position information and the first position information; match according to the second type and the device type of the function type library, and determine multiple candidate function information from the multiple function information; match the first function information with the multiple candidate function information to generate a matching result list; determine the second position information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second position information.

11. The method according to claim 10, characterized in that The stacking of a plurality of the two-dimensional array structures according to the stacking scheme comprises: Acquire an array identification sequence corresponding to the three-dimensional array structure according to the stacking scheme; Determine the two-dimensional array structure corresponding to each layer of the three-dimensional array structure according to the array identification sequence and the first array identification; The adjacent storage controllers in the two adjacent two-dimensional array structures in the three-dimensional array structure are electrically connected to complete the stacking of a plurality of the two-dimensional array structures.

12. A data transmission device, characterized in that: A storage controller applied to an array structure of interleaved computing units and storage modules according to any one of claims 1 to 6, wherein the array structure further comprises a plurality of computing units and a plurality of storage modules, wherein the plurality of computing units are arranged with intervals in the horizontal and vertical directions, and each storage module is arranged between two computing units, wherein the storage controller is electrically connected to each computing unit and each storage module respectively, and the storage controller is arranged between the computing units and the storage modules to form an array structure of interleaved computing units and storage modules; the device comprises: A data receiving module, configured to, upon receiving received data to be sent, parse the received data to obtain first position information corresponding to a sender of the received data and a first type of the sender; wherein the sender is any one of the computing unit and the storage module; wherein the first type is used to indicate that the sender of the received data is the storage module or the computing unit, and the first position information is used to indicate a position of the sender in the array structure; a type confirmation module, configured to confirm, in the array structure according to the first type, a second type of a receiving end corresponding to the received data; wherein the second type is used to indicate that the receiving end of the received data is the storage module or the computing unit; a position confirmation module, configured to determine second position information corresponding to the receiving end in the array structure according to the first position information and the second type; wherein the second position information is used to indicate the position of the receiving end in the array structure; A data transmission module, configured to transmit the received data to the receiving end according to the second location information; Wherein, when determining the second location information corresponding to the receiving end in the array structure according to the first location information and the second type, the location confirmation module is specifically used to: obtain a plurality of first device location information corresponding to the second type in the array structure; calculate the distance information between each first device location information and the first location information; use the device location information corresponding to the minimum value of the distance information as the second location information; the first device location information is used to indicate the position of the receiving end to be selected in the array structure; Among them, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; the position confirmation module is also used to: after calculating the distance information between each of the first device position information and the first position information, parse the received data and confirm the first function information corresponding to the received data; match according to the second type and the device type of the function type library, and determine multiple candidate function information from the multiple function information; match the first function information with the multiple candidate function information to generate a matching result list; determine the second position information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second position information.

13. An array stacking device, characterized in that: A storage controller for an array structure of interleaved computing units and storage modules applied to any one of claims 1 to 6, wherein the array structure comprises a plurality of two-dimensional array structures; the device comprises: A distribution acquisition module, used to acquire distribution information of each of the two-dimensional array structures; wherein the distribution information is used to indicate whether a computing unit or a storage unit is placed at each position in the two-dimensional array structure; An identification input module, used for inputting the distribution information of each of the two-dimensional array structures and the array identification of the two-dimensional array structure into a preset stacking model, and the stacking model outputs stacking schemes corresponding to a plurality of the two-dimensional array structures; A stacking completion module, used to complete the stacking of a plurality of the two-dimensional array structures according to the stacking scheme, and obtain a three-dimensional array structure, so that a plurality of the computing units are arranged at intervals in the three-dimensional array structure, and the storage module is arranged between two computing units; Wherein, any one of the calculation unit and the storage module is used to obtain a plurality of first device location information corresponding to the second type in the array structure; calculate the distance information between each of the first device location information and the first location information; and use the device location information corresponding to the minimum value of the distance information as the second location information; wherein the first type is used to indicate that the sending end of the received data is the storage module or the calculation unit, and the first location information is used to indicate the location of the sending end in the array structure; the second type is used to indicate that the receiving end of the received data is the storage module or the calculation unit; the second location information is used to indicate the location of the receiving end in the array structure; the first device location information is used to indicate the location of the receiving end to be selected in the array structure; Among them, the storage controller stores a preset function type library, which includes multiple function information and device types corresponding to the function information; the storage controller is also used to parse the received data and confirm the first function information corresponding to the received data after calculating the distance information of each first device position information and the first position information; match according to the second type and the device type of the function type library, and determine multiple candidate function information from the multiple function information; match the first function information with the multiple candidate function information to generate a matching result list; determine the second position information corresponding to the receiving end in the array structure according to the distance information and the matching result list, so as to transmit the received data to the receiving end according to the second position information.

Citation Information

Patent Citations

  • Coprocessor

    CN102750127A

  • Cell array calculation system

    CN105718994A

  • Energy efficient compute near memory binary neural network circuits

    CN112862061A

  • Neural network accelerator and method based on CIM, and storage processing system and device

    CN116167424A

  • Storage and calculation integrated chip, image processing method, electronic equipment and storage medium

    CN116777727A