In-memory computing chip and chip control method
By allowing at least two storage unit controllers to share one register in the storage and computing integrated chip, the problem of a large number of registers in the existing technology is solved, the integration and function optimization of the chip are realized, and the cost is reduced.
Patent Information
- Application Number
- PCT/CN2023/077657
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-29
AI Technical Summary
When existing storage and computing integrated chips have large amounts of calculations and high storage requirements, they have a large number of registers, which is not conducive to chip integration and function optimization.
In the storage and computing integrated chip, at least two storage unit controllers share a logic control unit and a register. When the logic control unit detects a read request from the storage unit, it controls the storage unit controller to send a read address to the storage unit. Store data in the register.
The number of registers is reduced, the integration and function optimization of the chip are improved, and the cost of chip manufacturing is reduced.
Smart Images

Figure CN2023077657_29082024_PF_FP_ABST
Abstract
Description
Storage and computing integrated chip and chip control method Technical Field
[0001] The embodiments of the present application relate to the field of integrated circuits, and in particular to a storage and computing integrated chip and a chip control method. Background Art
[0002] With the rapid rise of applications such as big data, the Internet of Things, and artificial intelligence, data is growing at an explosive rate. Efficient storage, migration, and processing of massive amounts of data have become a major challenge in the current electronic information industry. Integrated storage and computing chip technology aims to transform the traditional compute-centric architecture into a data-centric one. It directly utilizes memory for data processing, integrating data storage and computing within the same chip.
[0003] The integrated storage and computing chip in the related art includes multiple storage cells and storage cell controllers connected to each of the storage cells. Each storage cell controller has a register at its data interface. When a storage cell controller receives a read request, it reads data from the corresponding storage cell and writes the data to the register. The data in the registers of all storage cell controllers is arbitrated and read by the computing unit. Once the arbitrated register is read, it is released and can receive new read data.
[0004] However, in the storage-computing integrated chip in the related art, if the chip has a large amount of computing power and a high storage demand, the chip includes a large number of components such as registers, which is not conducive to chip integration and chip function optimization. Technical Solutions
[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0006] Embodiments of the present application provide a storage and computing integrated chip and a chip control method.
[0007] In a first aspect, the present application provides a storage-computing integrated chip, the chip comprising N storage units, M of the N storage units being connected to at least two storage unit controllers, the at least two storage unit controllers being commonly connected to a logic control unit and a register, where N and M are both positive integers greater than 1;
[0008] a logic control unit, configured to, upon detecting a read request from a first storage unit among the M storage units, control a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a first read address to the first storage unit;
[0009] The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0010] In a second aspect, an embodiment of the present application provides a chip control method, which is applied to a storage-computing integrated chip, wherein the storage-computing integrated chip includes N storage units, M of the N storage units are connected to at least two storage unit controllers, and the at least two storage unit controllers are commonly connected to a logic control unit and a register, where N and M are both positive integers greater than 1. The chip control method includes:
[0011] When the logic control unit detects a read request from a first storage unit among the M storage units, the logic control unit controls a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit;
[0012] The first storage unit sends data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0013] In summary, the storage and computing integrated chip provided by the embodiment of the present application includes N storage units, M storage units among the N storage units are connected to at least two storage unit controllers, and at least two storage unit controllers are commonly connected to a logic control unit and a register, and N and M are both positive integers greater than 1; the logic control unit is used to control the first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit when a read request of the first storage unit among the M storage units is detected; the first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register. Through the technical solution of the present application, when storage and computing are performed in the storage and computing integrated chip, two or more storage unit controllers connected to the storage unit share the same register.
[0014] Still other aspects will become apparent upon reading and understanding the accompanying drawings and detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0016] FIG1 is a schematic diagram of the structure of a storage device in a storage-computing integrated chip of the related art;
[0017] FIG2 is a schematic diagram of the structure of a storage and computing integrated chip of the related art;
[0018] FIG3 is a schematic diagram of the structure of a storage and computing integrated chip provided in an embodiment of the present application;
[0019] FIG4 is a schematic diagram of the structure of a storage and computing integrated chip provided in an embodiment of the present application;
[0020] FIG5 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application;
[0021] FIG6 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application;
[0022] FIG7 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application;
[0023] FIG8 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application;
[0024] FIG9 is a schematic diagram of the structure of a storage and computing integrated chip provided in an embodiment of the present application;
[0025] FIG10 is a flow chart of a chip control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0027] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0028] To facilitate understanding of the technical solution of this application, before introducing the technical solution of this application, the functional structure of the storage and computing integrated chip of the related art is briefly introduced as follows:
[0029] FIG1 is a schematic diagram of the structure of a storage device in a storage-computing integrated chip of the related art.
[0030] As shown in Figure 1, in a storage-computing integrated chip, the data interface of the storage unit controller has a bit width of B. To complete a calculation, the computing unit needs to read a set of data with a bit width of W, which is Q times the storage unit controller's data bit width B, that is, W = Q × B. Typically, when designing a storage-computing integrated chip, a register R with a bit width of W is set at the data interface of each storage unit controller. This register R serially receives Q data with a bit width of B from the storage unit controller's data interface, and concatenates N data with a bit width of B, ultimately combining them into data with a bit width of W.
[0031] FIG2 is a schematic diagram of the structure of a storage and computing integrated chip of the related technology.
[0032] As shown in Figure 2, the integrated storage and computing chip integrates a number of storage unit controllers, equal to the number of storage units. Each storage controller's data interface contains a register R. If the chip has M storage units, then there are M corresponding storage unit controllers and M registers R. Each storage unit operates independently. When a read request is received, the corresponding storage unit controller reads the data into register R. The data in registers R within all storage unit controllers undergoes arbitration before being read by the computing unit. Once the arbitrated register R is read, it is released and can receive new read data.
[0033] However, in the storage-computing integrated chip of the related art, if the chip has a large amount of computing power and a high storage demand, the chip includes a large number of components such as registers, which is not conducive to chip integration and chip function optimization.
[0034] In order to solve the above technical problems, an embodiment of the present application provides a storage and computing integrated chip, which includes N storage units, M storage units in the N storage units are connected to at least two storage unit controllers, and at least two storage unit controllers are commonly connected to a logic control unit and a register, where N and M are both positive integers greater than 1; the logic control unit is used to control the first storage unit controller connected to the first storage unit in the at least two storage unit controllers to send a first read address to the first storage unit when a read request from the first storage unit in the M storage units is detected; the first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register. Through the technical solution of the present application, when storage and computing are performed in the storage and computing integrated chip, two or more storage unit controllers connected to the storage unit share the same register. In this way, the storage and computing integrated chip greatly reduces the number of registers without affecting the volume of stored data and computing power, facilitates chip integration and function optimization, and reduces the cost of chip manufacturing.
[0035] The storage and computing integrated chip provided in the embodiments of the present application can be applied to any field that requires the design of a storage and computing integrated chip.
[0036] The following describes the technical solutions of the embodiments of the present application in detail through some embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0037] FIG3 is a schematic diagram of the structure of a storage and computing integrated chip provided in an embodiment of the present application.
[0038] As shown in FIG3 , the storage-computing integrated chip includes N storage units, M of the N storage units are connected to at least two storage unit controllers, and the at least two storage unit controllers are commonly connected to a logic control unit and a register, where N and M are both positive integers greater than 1;
[0039] a logic control unit, configured to, upon detecting a read request from a first storage unit among the M storage units, control a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a first read address to the first storage unit;
[0040] The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0041] It should be noted that: 1. N is a positive integer greater than 1, which can be understood as a storage and computing integrated chip including at least two storage units. M is set to a positive integer greater than 1, that is, to illustrate that there are at least 2 storage units in the storage and computing integrated chip connected to at least 2 storage unit controllers. 2. A storage unit controller generally includes a command register module, a data transmission control module, an address temporary storage module, a register, etc. In an embodiment of the present application, at least two storage unit controllers share the same register, while other modules inside the storage unit controller, such as the command register module, the data transmission control module, and the address temporary storage module are not shared, and each storage unit controller includes a command register module, a data transmission control module, and an address temporary storage module. 3. The first storage unit involved in the embodiment of the present application is any one of the M storage units, and the response made by the logic control unit to the read request of any one of the M storage units is the same. For the convenience of description, the embodiment of the present application takes the first storage unit among the M storage units as an example to illustrate the technical solution of the present application.
[0042] It should be noted that the first read address includes Q read addresses corresponding to Q groups of data, where Q is a positive integer. As can be seen from the integrated storage and computing chip, the bit width of the computing unit data interface in the chip is Q times the bit width of the storage unit controller data interface. Therefore, the first storage unit controller responds to a read request from the computing unit, for example, in response to a read request issued by the computing unit to the first storage unit, and needs to continuously issue Q read addresses to the first storage unit. The first storage unit sends Q groups of data to the first storage unit controller based on the Q read addresses, so that the first storage unit stores the Q groups of data in a register to meet the needs of a single read request from the computing unit.
[0043] It should be understood that, when implemented specifically, the integrated storage and computing chip includes not only storage units, storage unit controllers, and registers, but also other functional modules, such as computing units and arbitration units, etc., and the embodiments of the present application do not impose any restrictions on this.
[0044] FIG4 is a schematic diagram of the structure of a storage and computing integrated chip provided in an embodiment of the present application.
[0045] As shown in Figure 4, a storage and computing integrated chip includes 4 storage units, which are respectively connected to 4 storage unit controllers in a one-to-one correspondence. Every two storage unit controllers are commonly connected to a register and a logic control unit. The register is connected to an arbitration unit, and the arbitration unit is connected to a computing unit.
[0046] For example, storage unit 1 and storage unit 2 are connected to storage unit controller 1 and storage unit controller 2 respectively in a one-to-one correspondence, and storage unit controller 1 and storage unit controller 2 are commonly connected to register 1 and logic control unit 1; storage unit 3 and storage unit 4 are connected to storage unit controller 3 and storage unit controller 4 respectively, and storage unit controller 3 and storage unit controller 4 are commonly connected to register 2 and logic control unit 2; register 1 and register 2 are commonly connected to the arbitration unit, and the arbitration unit is connected to the calculation unit.
[0047] Exemplarily, the computing unit sends a read request for the storage unit 2 to the logic control unit 1; when the logic control unit 1 detects that the read request is for the storage unit 2, it controls the storage unit controller 2 to send a read address to the storage unit 2; the storage unit 2 sends data to the storage unit controller 2 according to the read address sent by the storage unit controller 2, and the storage unit controller 2 stores the data sent by the storage unit 2 in the register 1; the arbitration unit arbitrates and reads the data of the storage unit 2 stored in the register 1, and sends the read data of the storage unit 2 to the computing unit; the computing unit performs calculations based on the data sent by the register.
[0048] In some embodiments, the logic control unit is configured to, upon detecting a read request from a first storage unit among the M storage units, activate at least two storage unit controllers and control a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a first read address to the first storage unit;
[0049] The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0050] In this possible implementation, when the logic control unit detects that there is a storage unit with a read request among the M storage units, it simultaneously activates at least two storage unit controllers connected to the M storage units. In this way, all storage unit controllers are in a standby state, which can reduce the response time of the storage unit controllers.
[0051] In some embodiments, the logic control unit is further configured to control at least two storage unit controllers to perform a read initialization operation on the M storage units when a read request from the first storage unit is detected;
[0052] The first storage unit is specifically configured to send data to the first storage unit controller based on a first read address after read initialization.
[0053] After read initialization, the other storage units except the first storage unit among the M storage units are in a state of waiting to receive a read address sent by the storage unit controller.
[0054] It should be noted that the read operation initialization of the storage unit described in the embodiment of the present application (in the embodiment of the present application, the read operation initialization can also be described as a read initialization operation) refers to the storage unit controller sending relevant signals to the storage unit, or operating the relevant interface of the storage unit, to inform the storage unit in advance that the storage unit controller is going to obtain data from M storage units, so that the M storage units are ready to send data.
[0055] In this implementation, the working process of the storage-computing integrated chip includes:
[0056] The computing unit sends a read request to the logic control unit based on the computing requirements;
[0057] a logic control unit, configured to, upon detecting a read request from a first storage unit among the M storage units, activate the at least two storage unit controllers; after the activation is completed, control the at least two storage unit controllers to perform a read initialization operation on the M storage units; and after the initialization is completed, control the storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a read address to the first storage unit;
[0058] The first storage unit is used to send data to the first storage unit controller based on a first read address, so that the first storage unit controller stores the data sent by the first storage unit into a register.
[0059] After the logic control unit controls at least two storage unit controllers to perform read operation initialization operation on M storage units, the other storage units except the first storage unit in the M storage units are in a state of waiting to receive a read address request sent by the storage unit controller.
[0060] In some embodiments, the logic control unit is further configured to control the M storage cells to return to an initial state when it is detected that data of the first storage cell in the register is read by arbitration and no storage cell with a read request is detected among the M storage cells.
[0061] It should be noted that the initial state of the storage unit is the state of the storage unit before the read operation initialization is completed. At this time, the storage unit is in an idle state with no read request.
[0062] Among them, when realizing that the logic control unit can detect whether the data in the register is read by arbitration, the logic control unit and the register can be connected through a signal line. The high and low levels of the signal levels transmitted on the signal line are used to indicate whether the register is full or empty. For example, when the storage unit controller stores data into the register, the signal level transmitted on the signal line changes from a low level to a high level, indicating that the register is full. When the data stored in the register is read by the arbitration unit, the signal level transmitted on the signal line changes from a high level to a low level, so that the logic control unit knows that the register is empty at this time, and can read the data from the storage unit again and store it in the register. The logic control unit can also detect whether the data in the register has been read in other ways, and the embodiments of the present application are not limited to this.
[0063] In this implementation, the working process of the storage-computing integrated chip includes:
[0064] The computing unit sends a read request to the logic control unit based on the computing requirements;
[0065] a logic control unit, configured to, upon detecting a read request from a first storage unit among the M storage units, activate the at least two storage unit controllers; after the activation is completed, control the at least two storage unit controllers to perform a read initialization operation on the M storage units; and after the initialization is completed, control the storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a read address to the first storage unit;
[0066] The first storage unit is used to send data to the first storage unit controller based on a first read address, so that the first storage unit controller stores the data sent by the first storage unit into a register.
[0067] The arbitration unit arbitrates and reads the data in the register;
[0068] When the logic control unit detects that the data in the register is read by arbitration and does not detect that there is a memory cell with a read request among the M memory cells, the logic control unit controls the M memory cells to return to an initial state.
[0069] In some embodiments, the logic control unit is further configured to, upon detecting that data of the first storage unit in the register is read by arbitration and detecting a read request of a second storage unit among the M storage units, control a second storage unit controller connected to the second storage unit among the at least two storage unit controllers to issue a second read address to the second storage unit;
[0070] The second storage unit is used to send data to the second storage unit controller based on the second read address, so that the second storage unit controller stores the data sent by the second storage unit into the register.
[0071] It should be noted that the second storage unit involved in the embodiments of the present application can be the first storage unit, or it can be any other storage unit among the M storage units except the first storage unit. That is, the objects of the read requests detected twice by the logic control unit may be the same storage unit or different storage units. However, regardless of whether the objects of the two read requests are the same storage unit, the storage unit controller will respond to the read request, send a read address to the storage unit, accept the data sent by the storage unit based on the read address, and store the data in the register.
[0072] In this implementation, the working process of the storage-computing integrated chip includes:
[0073] The computing unit sends a read request to the logic control unit based on the computing requirements;
[0074] a logic control unit, configured to, upon detecting a read request from a first storage unit among the M storage units, activate the at least two storage unit controllers; after the activation is completed, control the at least two storage unit controllers to perform a read initialization operation on the M storage units; and after the initialization is completed, control a first storage unit controller among the at least two storage unit controllers that is connected to the first storage unit to issue a read address to the first storage unit;
[0075] a first storage unit, configured to send data to the first storage unit controller based on a first read address, so that the first storage unit controller stores the data sent by the first storage unit into a register;
[0076] The arbitration unit arbitrates and reads the data in the register;
[0077] The logic control unit, upon detecting that data in the register is read by arbitration and detecting a read request from a second storage unit among the M storage units, controls a second storage unit controller connected to the second storage unit among the at least two storage unit controllers to issue a second read address to the second storage unit;
[0078] The second storage unit is used to send data to the second storage unit controller based on the second read address, so that the second storage unit controller stores the data sent by the second storage unit into the register.
[0079] It should be noted that when the at least two storage cell controllers involved in the embodiments of the present application initialize the read operation on the M storage cells, the at least two storage cell controllers may initialize the read operation on the M storage cells simultaneously, or may initialize the read operation on the M storage cells in batches. The embodiments of the present application do not impose any specific limitation on this.
[0080] Method 1: Initialize read operations on M storage units at different time points.
[0081] For example, when the logic control unit receives a read request, it first controls the storage unit controller to initialize the read operation on the storage unit with the read request, and then controls the storage unit controller to initialize the read operation on other storage units.
[0082] Specifically, when the logic control unit detects a read request of the first storage unit among the M storage units, it activates the above-mentioned at least two storage unit controllers, and after completing the activation, it controls the first storage unit controller connected to the first storage unit among the at least two storage unit controllers to perform a read initialization operation on the first storage unit, and after the initialization is completed, it controls the storage unit controller to perform a read initialization operation on other storage units among the M storage units, and after the initialization is completed, it controls the first storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a first read address to the first storage unit; the first storage unit sends data to the first storage unit controller based on the first read address issued by the first storage unit controller; the first storage unit controller stores the data sent by the first storage unit in a register; the arbitration unit performs arbitration reading on the data in the register, and sends the data read from the register to the calculation unit, and the calculation unit completes data calculation according to the data sent by the arbitration unit.
[0083] When the logic control unit detects that the data in the register is read by arbitration, and when a read request of the second storage unit in the M storage units is detected, the logic control unit controls the second storage unit controller connected to the second storage unit among the at least two storage unit controllers to send a second read address to the second storage unit; the second storage unit sends data to the second storage unit controller based on the second read address, and the second storage unit controller stores the data sent by the second storage unit in the register; the arbitration unit performs arbitration reading on the data in the register and sends the data read from the register to the calculation unit, and the calculation unit completes data calculation based on the data sent by the arbitration unit.
[0084] Mode 2: Initializing read operations on M storage units simultaneously. That is, when the logic control unit detects a read request from any one of the M storage units, it controls at least two storage unit controllers to initialize the M storage units simultaneously.
[0085] Specifically, at the beginning, the storage units are all in an initial state. When the logic control unit detects that the first storage unit among the M storage units has a read request, it controls at least two storage unit controllers to initialize the read operation on the M storage units at the same time, and after completing the read operation initialization, controls the first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit; the first storage unit sends data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0086] When the logic control unit detects that the data of the first storage unit stored in the register is read by arbitration, and detects that the second storage unit among the M storage units has a read request, it controls the second storage unit controller connected to the second storage unit in at least two storage unit registers to send a second read address to the second storage unit; the second storage unit sends data to the second storage unit controller based on the second read address, so that the second storage unit controller stores the data sent by the second storage unit into the register.
[0087] In the storage and computing integrated chip in the related technology, one storage unit controller controls one storage unit and cannot initialize read operations on multiple storage units at the same time. When the data required by the reading request of the computing unit comes from different storage units, it is necessary to initialize read operations on different storage units multiple times.
[0088] In this possible implementation, when any one of the M storage cells has a read request, the logic control unit can control at least two storage cell controllers to initialize the read operation on the M storage cells at the same time. When one of the M storage cells has a read request, the storage cell controller initializes the read operation on the M storage cells at the same time, obtains data from the storage cell with the read request, and stores the data in the register; when the storage cell controller detects that the data in the register has been read by arbitration, and detects that there are still storage cells with read requests among the M storage cells, it is no longer necessary to initialize the read operation on the storage cells, and directly sends a read address to the storage cell with the read request, and receives the data sent by the storage cell based on the read address. Through this possible implementation, the chip eliminates the time of performing read operation initialization on different storage cells in batches during the storage and calculation process. Overall, it reduces the time for the calculation unit to obtain calculation data and reduces the delay in obtaining the calculation results.
[0089] In this application, at least two storage unit controllers are connected to one register. That is to say, in a storage and computing integrated chip, two storage unit controllers can share the same register, or multiple storage unit controllers can share the same register. This application does not impose any specific restrictions on this.
[0090] FIG5 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application.
[0091] As shown in Figure 5, the integrated storage and computing chip has six storage units, each of which is connected to one of six storage unit controllers. Among them, every three storage unit controllers in the six storage unit controllers are connected to a register and a logic control unit. For example, storage unit 1, storage unit 2, and storage unit 3 are connected to storage unit controller 1, storage unit controller 2, and storage unit controller 3, respectively. Storage unit controller 1, storage unit controller 2, and storage unit controller 3 are connected to logic control unit 1 and register 1. Storage unit 4, storage unit 5, and storage unit 6 are connected to storage unit controller 4, storage unit controller 5, and storage unit controller 6, respectively. Storage unit controller 4, storage unit controller 5, and storage unit controller 6 are connected to logic control unit 2 and register 2.
[0092] For example, storage unit 4, storage unit 5, and storage unit 6 send the stored data to storage unit controller 4, storage unit controller 5, and storage unit controller 6, respectively. Storage unit controller 4, storage unit controller 5, and storage unit controller 6 then store the data in storage unit 4, storage unit 5, and storage unit 6 in register 2. Compared to the chip shown in FIG2 , the chip of the embodiment of the present application greatly reduces the number of registers, thereby reducing the chip size, facilitating chip integration and function optimization, and reducing chip manufacturing costs.
[0093] FIG6 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application.
[0094] As shown in Figure 6, the storage and computing integrated chip includes 5 storage units, and the 5 storage units are respectively connected to 5 storage unit controllers one by one. Among them, 2 storage unit controllers among the 5 storage unit controllers are commonly connected to a logic control unit and a register; the other 3 storage unit controllers among the 5 storage unit controllers are commonly connected to a logic control unit and a register.
[0095] For example, storage unit 1 and storage unit 2 are connected one-to-one with storage unit controller 1 and storage unit controller 2 respectively, and storage unit controller 1 and storage unit controller 2 are commonly connected with register 1 and logic control unit 1; storage unit 3, storage unit 4 and storage unit 5 are connected one-to-one with storage unit controller 3, storage unit controller 4 and storage unit controller 5 respectively, and storage unit controller 3, storage unit controller 4 and storage unit controller 5 are commonly connected with register 2 and logic control unit 2.
[0096] Exemplarily, when the logic control unit 2 detects a read request from the storage unit 5, it controls the storage unit controller 5 to send a read address to the storage unit 5; the storage unit 5 sends data to the storage unit controller 5 according to the read address sent by the storage unit controller 5; the storage unit controller 5 stores the data sent by the storage unit 5 in the register 2.
[0097] In this way, the logic control unit 1 can jointly control the storage unit controller 1 and the storage unit controller 2 so that the storage unit controller 1 and the storage unit controller 2 can share the same register 1, and the logic control unit 2 can jointly control the storage unit controller 3, the storage unit controller 4 and the storage unit controller 5 so that the storage unit controller 3, the storage unit controller 4 and the storage unit controller 5 can share the same register 2.
[0098] Compared with the chip shown in FIG2 , the chip of the embodiment of the present application greatly reduces the number of registers, thereby reducing the size of the chip, facilitating chip integration and function optimization, and reducing chip manufacturing costs.
[0099] In the present application, a storage unit controller may control only one storage unit or may control multiple storage units at the same time, and the present application does not impose any specific restrictions on this.
[0100] In some embodiments, the at least two storage unit controllers include M storage unit controllers. That is, the storage-computing integrated chip includes N storage units, M of the N storage units are connected to the M storage unit controllers in a one-to-one correspondence, and the M storage unit controllers are connected to a logic control unit and a register.
[0101] For the i-th storage unit controller among M storage unit controllers, it is used to send a read address to the i-th storage unit based on a read request of the i-th storage unit connected to the i-th storage unit controller, receive data sent by the i-th storage unit based on the read address, and store the data sent by the i-th storage unit into a register, where i is a positive integer less than or equal to M.
[0102] In some embodiments, one storage unit controller controls multiple storage units simultaneously.
[0103] FIG7 is a schematic diagram of the structure of another storage and computing integrated chip provided in an embodiment of the present application.
[0104] As shown in FIG7 , the storage-computing integrated chip includes 6 storage units, where 3 storage units form a group, each group of storage units is connected to a storage unit controller, and 2 storage unit controllers are commonly connected to a logic control unit and a register.
[0105] For example, storage unit 1, storage unit 2 and storage unit 3 are all connected to storage unit controller 1; storage unit 4, storage unit 5 and storage unit 6 are all connected to storage unit controller 2; storage unit controller 1 and storage unit controller 2 are commonly connected to a register and logic control unit.
[0106] Exemplarily, at the start, storage units 1 to 6 are all in an initial state. When the logic control unit detects a read request from storage unit 1, it simultaneously activates storage unit controller 1 and storage unit controller 2 connected to the logic control unit, controls storage unit controller 1 and storage unit controller 2 to simultaneously initialize read operations on storage units 1 to 6, and after completing the read operation initialization, controls storage unit controller 1 connected to storage unit 1 to issue a read address to storage unit 1.
[0107] Storage unit 1, used to send data to storage unit controller 1 based on the read address issued by storage unit controller 1;
[0108] The storage unit controller 1 stores the data sent by the storage unit 1 into the register.
[0109] When the logic control unit detects that the data of the storage unit 1 stored in the register is read by arbitration and detects a read request from the storage unit 5, it controls the storage unit controller 2 connected to the storage unit 5 to send a read address to the storage unit 5;
[0110] The storage unit 5 is configured to send data to the storage unit controller 2 based on the read address sent by the storage unit controller 2;
[0111] The storage unit controller 2 stores the data sent by the storage unit 5 into the register.
[0112] When the logic control unit detects that the data of the storage unit 5 stored in the register is read by arbitration and no read request of the storage unit 1 to the storage unit 6 is detected, it controls the storage unit controller 1 and the storage unit controller 2 to process the storage unit 1 to the storage unit 6 respectively, so that the storage unit 1 to the storage unit 3 are converted from the read operation completion initialization state to the initial state.
[0113] FIG8 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application.
[0114] As shown in Figure 8, there are 5 storage units in the storage and computing integrated chip, and 3 storage units among the 5 storage units are connected to 3 storage unit controllers one by one; the other 2 storage units among the 5 storage units are connected to one storage unit controller together; among them, every 2 storage unit controllers among the 4 storage unit controllers are connected to a logic control unit and a register.
[0115] For example, storage unit 1 and storage unit 2 are connected to storage unit controller 1 and storage unit controller 2 respectively in a one-to-one correspondence, and storage unit controller 1 and storage unit controller 2 are commonly connected to register 1 and logic control unit 1; storage unit 3 is connected to storage unit controller 3, and storage unit 4 and storage unit 5 are commonly connected to storage unit controller 4; storage unit controller 3 and storage unit controller 4 are commonly connected to register 2 and logic control unit 2.
[0116] In this way, storage cell controller 1 and storage cell controller 2 control storage cell 1 and storage cell 2 respectively, and logic control unit 1 controls storage cell controller 1 and storage cell controller 2 jointly, so that storage cell controller 1 and storage cell controller 2, storage cell 1 and storage cell 2 can share the same register 1; storage cell controller 3 controls storage cell 3, storage cell controller 4 controls storage cell 4 and storage cell 5 jointly, and logic control unit 2 controls storage cell controller 3 and storage cell controller 4 jointly, so that storage cell controller 3, storage cell controller 4, storage cell 3, storage cell 4 and storage cell 5 can share the same register 2.
[0117] Compared with the chip shown in FIG2 , the chip of the embodiment of the present application greatly reduces the number of registers, thereby reducing the size of the chip, facilitating chip integration and function optimization, and reducing chip manufacturing costs.
[0118] FIG9 is a schematic diagram of the structure of another integrated storage and computing chip provided in an embodiment of the present application.
[0119] As shown in Figure 9, there are M storage units in the storage and computing integrated chip, and 2 storage units among the M storage units are connected to two storage unit controllers one-to-one; the other 2 storage units among the M storage units are connected to two storage unit controllers one-to-one; the other storage units among the M storage units except the above 4 storage units are connected to one storage unit controller together, among which 2 storage unit controllers are connected to a logic control unit and a register respectively, and the other 3 storage unit controllers are connected to a logic control unit and a register together.
[0120] For example, storage unit 1 and storage unit 2 are connected one-to-one with storage unit controller 1 and storage unit controller 2 respectively, and storage unit controller 1 and storage unit controller 2 are both connected to register 1 and logic control unit 1; storage unit 3 and storage unit 4 are connected one-to-one with storage unit controller 3 and storage unit controller 4 respectively, storage unit 5 to storage unit M are all connected to storage unit controller 5, and storage unit controller 3, storage unit controller 4 and storage unit controller 5 are collectively connected to register 2 and logic control unit 2.
[0121] In this way, storage cell controller 1 and storage cell controller 2 control storage cell 1 and storage cell 2 respectively, and the logic control unit controls storage cell controller 1 and storage cell controller 2 jointly, so that storage cell controller 1 and storage cell controller 2, storage cell 1 and storage cell 2 can share the same register 1; storage cell controller 3 and storage cell controller 4 control storage cell 3 and storage cell 4 respectively, storage cell controller 5 controls storage cell 5 to storage cell M jointly, and the logic control unit 2 controls storage cell controller 3, storage cell controller 4 and storage cell controller 5 jointly, so that storage cell controller 3, storage cell controller 4, storage cell controller 5, storage cell 3, storage cell 4, storage cell 5...storage cell M share the same register 2.
[0122] Compared with the chip shown in FIG2 , the chip of the embodiment of the present application greatly reduces the number of registers, thereby reducing the size of the chip, facilitating chip integration and function optimization, and reducing chip manufacturing costs.
[0123] In summary, an embodiment of the present application provides a storage-computing integrated chip, which includes N storage units, M storage units among the N storage units are connected to at least two storage unit controllers, and at least two storage unit controllers are commonly connected to a logic control unit and a register, where N and M are both positive integers greater than 1; the logic control unit is used to control the first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit when a read request of the first storage unit among the M storage units is detected; the first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register. In such a storage-computing integrated chip, at least two storage unit controllers share the same register, so that the storage-computing integrated chip greatly reduces the number of registers without affecting the volume of stored data and computing power, which is beneficial to the integration and function optimization of the chip and reduces the cost of chip manufacturing.
[0124] Figure 10 is a flow chart of a chip control method provided in one embodiment of the present application. This method is applied to the aforementioned integrated storage and computing chip. The integrated storage and computing chip includes N storage cells, M of which are connected to at least two storage cell controllers, which are jointly connected to a logic control unit and a register. N and M are both positive integers greater than 1. As shown in Figure 10, the chip control method includes the following steps:
[0125] S101: When a logic control unit detects a read request from a first storage unit among M storage units, the logic control unit controls a first storage unit controller connected to the first storage unit among at least two storage unit controllers to issue a first read address to the first storage unit.
[0126] S102 : The first storage unit sends data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into a register.
[0127] In some embodiments, the chip control method further includes:
[0128] When the logic control unit detects a read request from a first storage unit among the M storage units, it activates at least two storage unit controllers and controls a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to issue a first read address to the first storage unit;
[0129] The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
[0130] In some embodiments, the chip control method further includes:
[0131] The logic control unit controls at least two storage unit controllers to perform a read initialization operation on the M storage units when detecting a read request from the first storage unit;
[0132] After read initialization, the first storage unit sends data to the first storage unit controller based on the first read address.
[0133] In some embodiments, the method further includes: when the logic control unit detects that the data of the first storage unit in the register is read by arbitration and does not detect that there is a storage unit with a read request among the M storage units, controlling the M storage units to return to an initial state.
[0134] In some embodiments, the above method further comprises:
[0135] The logic control unit, upon detecting that data of the first storage unit in the register is read by arbitration and detecting a read request of a second storage unit among the M storage units, controls a second storage unit controller connected to the second storage unit among the at least two storage unit controllers to issue a second read address to the second storage unit;
[0136] The second storage unit sends data to the second storage unit controller based on the second read address, so that the second storage unit controller writes the data sent by the second storage unit into the register.
[0137] In some embodiments, the storage-computing integrated chip includes N storage units, wherein M storage units of the N storage units are respectively connected to the M storage unit controllers in a one-to-one correspondence, and the M storage unit controllers are commonly connected to a logic control unit and a register;
[0138] The chip control method further includes:
[0139] For the i-th storage unit controller among M storage unit controllers, based on the read request of the i-th storage unit connected to the i-th storage unit controller, a read address is sent to the i-th storage unit, and data sent by the i-th storage unit based on the read address is received, and the data sent by the i-th storage unit is stored in a register, where i is a positive integer less than or equal to M.
[0140] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, a variety of simple modifications can be made to the technical solution of the present application, and these simple modifications all fall within the scope of protection of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner unless there is any contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, and as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.
[0141] It should be understood that the method embodiments and the device embodiments may correspond to each other, and similar descriptions may refer to the device embodiments. To avoid repetition, they will not be described here. Specifically, the device shown in FIG3 can execute the above-mentioned chip control method embodiment, and the aforementioned and other operations and / or functions of each module in the device are respectively for implementing the chip method embodiment corresponding to the computing device. For the sake of brevity, they will not be described here.
[0142] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A storage and computing integrated chip, characterized in that: The device comprises N storage units, wherein M storage units of the N storage units are connected to at least two storage unit controllers, and the at least two storage unit controllers are commonly connected to a logic control unit and a register, and both N and M are positive integers greater than 1; The logic control unit is configured to control a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit when a read request of the first storage unit among the M storage units is detected; The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
2. The chip according to claim 1, characterized in that: The logic control unit is used to activate the at least two storage unit controllers when a read request of a first storage unit among the M storage units is detected, and control a first storage unit controller among the at least two storage unit controllers connected to the first storage unit to send a first read address to the first storage unit; The first storage unit is used to send data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
3. The chip according to claim 2, characterized in that: The logic control unit is further configured to control the at least two storage unit controllers to perform a read initialization operation on the M storage units when a read request of the first storage unit is detected; The first storage unit is specifically configured to send data to the first storage unit controller based on the first read address after read initialization.
4. The chip according to claim 3, characterized in that: The logic control unit is further used to control the M storage units to return to an initial state when it is detected that the data of the first storage unit in the register is read by arbitration and no storage unit with a read request is detected among the M storage units.
5. The chip according to claim 4, characterized in that: The logic control unit is further configured to detect the first storage unit in the register When data is read by arbitration and a read request of a second storage unit among the M storage units is detected, a second storage unit controller connected to the second storage unit among the at least two storage unit controllers is controlled to send a second read address to the second storage unit; The second storage unit is used to send data to the second storage unit controller based on the second read address, so that the second storage unit controller writes the data sent by the second storage unit into the register.
6. The chip according to any one of claims 3 to 5, characterized in that: The at least two storage unit controllers include M storage unit controllers, and the M storage unit controllers are connected to the M storage units in a one-to-one correspondence; For the i-th storage unit controller among the M storage unit controllers, it is used to send a read address to the i-th storage unit based on a read request of the i-th storage unit connected to the i-th storage unit controller, receive data sent by the i-th storage unit based on the read address, and store the data sent by the i-th storage unit into the register, where i is a positive integer less than or equal to M.
7. A chip control method, characterized in that: Applied to a storage-computing integrated chip, the chip includes N storage units, M storage units of the N storage units are connected to at least two storage unit controllers, the at least two storage unit controllers are commonly connected to a logic control unit and a register, N and M are both positive integers greater than 1, and the method includes: When the logic control unit detects a read request of a first storage unit among the M storage units, the logic control unit controls a first storage unit controller connected to the first storage unit among the at least two storage unit controllers to send a first read address to the first storage unit; The first storage unit sends data to the first storage unit controller based on the first read address, so that the first storage unit controller stores the data sent by the first storage unit into the register.
8. The method according to claim 7, characterized in that The method further comprises: When the logic control unit detects a read request of the first storage unit, the logic control unit controls the at least two storage unit controllers to perform a read initialization operation on the M storage units; After read initialization, the first storage unit sends data to the first storage unit controller based on the first read address.
9. The method according to claim 8, characterized in that The method further comprises: When the logic control unit detects that the data of the first storage unit in the register is read by arbitration and does not detect that there is a storage unit with a read request among the M storage units, the logic control unit controls the M storage units to return to an initial state.
10. The method according to claim 9, characterized in that The method further comprises: When the logic control unit detects that the data of the first storage unit in the register is read by arbitration and detects a read request of a second storage unit in the M storage units, the logic control unit controls a second storage unit controller connected to the second storage unit among the at least two storage unit controllers to send a second read address to the second storage unit; The second storage unit sends data to the second storage unit controller based on the second read address, so that the second storage unit controller writes the data sent by the second storage unit into the register.
Citation Information
Patent Citations
Storage and calculation integrated neural network reasoning and training accelerator, and operation method thereof
CN110334799A
Storage and calculation integrated chip capable of being defined by software and software definition method thereof
CN111611195A
Method for realizing progressive CNN operation by using storage and calculation integrated chip
CN111950718A
Nor Flash programming method, Nor Flash modeling method and storage and calculation integrated chip
CN111951858A
Read-out unit for memory cell array and storage and calculation integrated chip comprising same
CN112349316A
Cited By
Compute-in-memory apparatus, main device and method for reading data
WO2026188915A1
