Method and apparatus for combined control of in-memory computing circuits for storage media

By adding computing circuitry to the storage device, low-latency data bit operations are achieved, solving the problem of large time overhead in data transmission, improving the processing efficiency of computing tasks, and supporting multiple operands and multiple basic operations.

CN114898787BActive Publication Date: 2026-11-17TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210430927.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2026-11-17
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

In existing technologies, the transfer of data from storage media to processor requires significant time overhead, resulting in low processing efficiency for computing tasks.

Method used

By adding computing circuitry to storage devices and combining and expanding basic computing circuitry, low-latency data bit operations can be achieved, including three traditional bit operations (AND, OR, NOT) and other custom bit operations, supporting multiple operands and multiple basic operations.

Benefits of technology

It reduces the high time overhead caused by data transmission, improves the processing efficiency of computing tasks, and enables complex computing operations on storage media.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898787B_ABST
    Figure CN114898787B_ABST
Patent Text Reader

Abstract

This application proposes a combinational control method for in-memory computing circuits oriented towards storage media. The method includes: applying corresponding bit data read operations to different types of storage cells to obtain bit data; controlling the switching of transistors in the basic arithmetic circuit according to the bit operation type to implement specific basic bit operation operations; implementing combinational operations of the bit data based on the combination of the basic arithmetic circuits; and transmitting the calculation result of the final arithmetic circuit out of the arithmetic circuit, returning it as a calculation result to the host or performing the next bit operation calculation. This application, employing the above scheme, can offload data computation to the storage device, reducing the amount of data transferred between the storage device and the processor, and improving system performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method and apparatus for controlling in-memory computing circuit combinations for storage media. Background Technology

[0002] Storage memory is a device for storing data, mainly including Dynamic Random Access Memory (DRAM), Flash Memory, Resistive Random Access Memory (ReRAM), Phase-Change Memory (PCM), and Spin-Torque Magnetoresistive Random Access Memory (STT-RAM). Compared with traditional disk media, storage devices have the characteristics of high read / write bandwidth, low access latency, low power consumption, and strong stability, and are now beginning to be widely used in data centers, personal computers, and mobile devices.

[0003] To improve the data read performance of the memory, a data conversion circuit can be configured inside the memory device. The conversion circuit applies a corresponding read operation to the memory, obtains the read data signal, and converts it into output data information, thereby realizing the reading and transmission of bit data.

[0004] Traditional near-memory computing reduces the overhead of data transfer from storage devices to the host by offloading computational tasks to the processor inside the storage device. However, traditional methods still face the storage wall problem, where data transfer from the storage medium to the processor still incurs significant time overhead due to limitations in existing interface transmission speeds. Summary of the Invention

[0005] This application aims to at least partially address one of the technical problems in the related art.

[0006] Therefore, the first objective of this application is to propose a combined control method for in-memory computing circuits oriented towards storage media. This method solves the technical problem of significant time overhead in data transmission required by existing methods. By adding computing circuits to the storage device, low-latency bitwise operations are achieved, reducing the high time overhead caused by data transmission and improving the processing efficiency of computing tasks. Furthermore, in addition to being defined as the three traditional bitwise operations (AND, OR, and NOT), the basic computing circuits can be extended to other custom bitwise operations that only require one or zero data inversions. Through the combined extension of the basic computing circuits, this application can realize complex computing circuits oriented towards multiple operands and multiple basic operations, thereby enabling computing operations on the storage medium. These complex computing circuits include, but are not limited to, NAND, XOR, XNOR, and NOR bitwise operations.

[0007] The second objective of this application is to provide a storage device for a storage computing circuit oriented towards a storage medium.

[0008] The third objective of this application is to provide a non-transitory computer-readable storage medium.

[0009] To achieve the above objectives, the first aspect of this application proposes a storage-oriented in-memory arithmetic circuit combination control method, comprising: applying corresponding bit data read operations to obtain bit data for different types of storage cells; controlling the transistor switches in the basic arithmetic circuit according to the bit operation type to implement specific basic bit operation operations; implementing combination operations of bit data according to the combination of basic arithmetic circuits; and transmitting the calculation result of the final arithmetic circuit out of the arithmetic circuit as the calculation result back to the host or for the next bit operation calculation.

[0010] Optionally, in one embodiment of this application, the storage units are divided into volatile storage media and non-volatile storage media according to their different types. Different types of storage media have different read operation control methods. According to the type of storage media, the corresponding read operation behavior is applied to read the bit data of the storage media and store it in the initial node of the computing circuit.

[0011] Optionally, in one embodiment of this application, if the operands of a bitwise operation are located in different storage media, the operand contents are read separately according to the order of execution and transmitted into the same computing circuit to achieve the purpose of the bitwise operation.

[0012] Optionally, in one embodiment of this application, the transistor switches in the basic arithmetic circuit are controlled according to the bit operation type to implement specific basic bit operation operations, specifically as follows:

[0013] By controlling the switching signals of the transistors in the basic bit operation circuit, the read bit data is inverted at different circuit nodes. Depending on the type of basic bit operation, the bit data is inverted zero or once to realize the basic bit operation.

[0014] Optionally, in one embodiment of this application, the method further includes recalculating the result of the basic bit operation by combining the basic bit operation circuits according to the basic bit operation calculation process. Specifically, according to a predetermined complex calculation process, multiple basic bit operation circuits are sorted and connected in a node manner by using the output of the preceding basic bit operation circuit as the input of the subsequent basic bit operation circuit, thereby realizing complex calculation operations with multiple operands and multiple operators.

[0015] Optionally, in one embodiment of this application, a buffer outside the computing circuitry is further used to reduce data migration overhead due to operands being located in different parallel operation units, specifically:

[0016] After reading and calculating the data, it is stored in a buffer and the calculation circuit is reset. Then, the data in the buffer is written back to the corresponding circuit node of the calculation circuit. Subsequently, the reading and calculation of subsequent operands and the control logic of the transistor switching circuit are continued to complete the subsequent bit operations.

[0017] Optionally, in one embodiment of this application, when using a buffer outside the computing combinational circuit for temporary data storage, support for specific location operations can be achieved by adding additional hardware components.

[0018] To achieve the above objectives, a second aspect of this application provides a storage device computing apparatus for storage media, comprising: a storage module, a reading module, a circuit combination module, and a result processing module, wherein...

[0019] The storage module is used to store the operands of bitwise operations in the storage unit according to the storage medium type;

[0020] The reading module is used to apply corresponding bit data read operations to different types of storage units to obtain bit data;

[0021] The circuit combination module is used to perform combined operations on bit data based on the combination of basic arithmetic circuits.

[0022] The result processing module is used to transmit the calculation result of the final calculation circuit out of the calculation circuit, and return it to the host as the bit operation calculation result or to perform the next bit operation calculation.

[0023] To achieve the above objectives, a third aspect of this application provides a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor, enables the execution of a storage medium-oriented in-memory circuit combination control method.

[0024] The present application's in-memory computing circuit combination control method for storage media, storage device computing apparatus for storage media, and non-transitory computer-readable storage medium solve the technical problem of large time overhead for data transmission in existing methods. By adding computing circuits to the storage device, low-latency data bit operations are achieved, reducing the high time overhead caused by data transmission and improving the processing efficiency of computing tasks. Furthermore, the basic computing circuits can be defined not only as the three traditional bit operations (AND, OR, NOT), but also extended to other custom bit operations that only require one or zero data inversions. Through the combination and extension of the basic computing circuits, this application can realize complex computing circuits oriented towards multiple operands and multiple basic operations, thereby realizing computing operations on the storage medium. These complex computing circuits include, but are not limited to, NAND, XOR, XNOR, and NOR bit operations.

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

[0026] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:

[0027] Figure 1 A flowchart illustrating a memory-based computing circuit combination control method for storage media provided in Embodiment 1 of this application;

[0028] Figure 2 This is a structural diagram of the storage unit, computing combination circuit, and buffer of the storage device in the storage medium-oriented storage circuit combination control method according to an embodiment of this application.

[0029] Figure 3 This is a schematic diagram of the AND operation calculation circuit of the storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0030] Figure 4 This is a schematic diagram of the OR operation calculation circuit of the storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0031] Figure 5 This is a schematic diagram of the NOT operation calculation and latch operation circuit of the storage medium-oriented in-memory computing circuit combination control method according to an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of a controllable inverter circuit for a storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0033] Figure 7 This is a schematic diagram of the XOR operation calculation circuit combination of the storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0034] Figure 8 This is a schematic diagram of multiple calculations in the storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0035] Figure 9 This is a schematic diagram of the structure of a storage device for a storage medium-oriented storage computing circuit provided in Embodiment 2 of this application. Detailed Implementation

[0036] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0037] The following description, with reference to the accompanying drawings, describes a storage-medium computing circuit combination control method and apparatus according to embodiments of this application.

[0038] Figure 1 This is a flowchart of a memory-based computing circuit combination control method for storage media provided in Embodiment 1 of this application.

[0039] like Figure 1 As shown, the memory-based computing circuit combination control method for storage media includes the following steps:

[0040] Step 101: For different types of storage units, apply the corresponding bit data read operation to obtain bit data;

[0041] Step 102: According to the bit operation type, control the transistor switches in the basic arithmetic circuit to implement the specific basic bit operation;

[0042] Step 103: Based on the combination of basic arithmetic circuits, perform combined operations on bit data;

[0043] Step 104: The calculation result of the final arithmetic circuit is transmitted out of the arithmetic circuit and returned to the host as the calculation result or used for the next bit operation calculation.

[0044] The storage-medium computing circuit combination control method of this application embodiment obtains bit data by applying corresponding bit data read operations to different types of storage cells; controls the transistor switches in the basic computing circuit according to the bit operation type to realize specific basic bit operation operations; realizes the combination operation of bit data according to the combination of basic computing circuits; and transmits the calculation result of the final computing circuit out of the computing circuit as the calculation result back to the host or for the next bit operation calculation. This solves the technical problem of large time overhead for data transmission in existing methods. By adding computing circuits to the storage device, low-latency data bit operations are achieved, reducing the high time overhead caused by data transmission and improving the processing efficiency of computing tasks. Furthermore, the basic computing circuit can be defined not only as the three traditional bit operations (AND, OR, NOT), but also extended to other custom bit operation calculations that only perform one or zero data inversions. This application, through the combination and extension of the basic computing circuit, can realize complex computing circuits for multiple operands and multiple basic operations, thereby realizing computing operations on the storage medium. These complex computing circuits include, but are not limited to, NAND, XOR, XNOR, and NOR bit operations.

[0045] This application applies different read operation behaviors according to different types of storage media, and uses a combination control method of basic bit operation circuits to realize complex bit operation.

[0046] Furthermore, in this embodiment, the storage units are divided into volatile storage media and non-volatile storage media according to their different types. Different types of storage media have different read operation control methods. According to the type of storage media, the corresponding read operation behavior is applied to read the bit data of the storage media and store it in the initial node of the computing circuit.

[0047] Furthermore, in this embodiment, if the operands of the bitwise operation are located in different storage media, the operand contents are read according to the order of execution and transmitted into the same computing circuit to achieve the purpose of the bitwise operation.

[0048] Furthermore, in this embodiment, the transistor switches in the basic arithmetic circuit are controlled according to the bit operation type to implement specific basic bit operation operations, specifically:

[0049] By controlling the switching signals of the transistors in the basic bit operation circuit, the read bit data is inverted at different circuit nodes. Depending on the type of basic bit operation, the bit data is inverted zero or once to realize the basic bit operation.

[0050] Furthermore, in this embodiment of the application, the basic bit operation result is recalculated by combining basic bit operation circuits according to the basic bit operation calculation process. Specifically, according to a predetermined complex calculation process, multiple basic bit operation circuits are sorted and connected at nodes by using the output of the preceding basic bit operation circuit as the input of the subsequent basic bit operation circuit, so as to realize complex calculation operations with multiple operands and multiple operators.

[0051] Furthermore, in this embodiment, a buffer outside the computing circuit is also used to reduce the data migration overhead due to operands being located in different parallel operation units. Specifically, after reading and calculating the data, it is stored in the buffer and the computing circuit is reset. Then, the buffer data is written back to the corresponding circuit node of the computing circuit. Subsequently, the reading of subsequent operands and the transistor switching control logic of the circuit continue to complete the subsequent bit operations.

[0052] Furthermore, in the embodiments of this application, when using a buffer other than the computing combinational circuit for temporary data storage, support for specific complex bitwise operations is achieved by adding additional hardware components.

[0053] To further reduce the overhead of rereading and writing operands, a buffer device in the computational combinational circuit is used to temporarily store operands. The buffer data is then transferred to the circuit nodes of the computational combinational circuit for subsequent transistor switching control, enabling bitwise operations. To support low-overhead bitwise operations, this application adds additional hardware components to the computational combinational circuit, such as inverters and transistor switches, to achieve various bitwise operations.

[0054] The in-memory computing circuit combination control method proposed in this application has the following additional technical features: the host application software, by pre-awarely sensing the semantics of bitwise operations, transmits computation process information, including operand addresses, sizes, bitwise operation types, and the number of bitwise operations, to the memory side using instruction definitions; the memory side parses the instruction information and controls the switching of circuit transistors and optimizes data layout according to the semantics of bitwise operations; the data layout method includes using the internal buffer of the storage device to temporarily store operands and load them into the computing combination circuit.

[0055] Figure 2 This is a structural diagram of the storage unit, computing circuit, and buffer of a storage device according to an embodiment of the storage medium-oriented memory-computing circuit combination control method of this application.

[0056] like Figure 2As shown, in this storage-oriented in-memory computing circuit combination control method, each storage unit corresponds to a computing combination circuit. The storage unit is connected to the computing combination circuit and performs data transmission. The computing combination circuit is connected to an external buffer, and data can be transferred between the computing combination circuit and the buffer.

[0057] Figure 3 This is a schematic diagram of the AND operation calculation process of the storage medium-oriented in-memory computing circuit combination control method according to an embodiment of this application.

[0058] like Figure 3 As shown, in the AND operation calculation process of the memory-based computing circuit combination control method for storage media, the operands are located at positions A and MIn, respectively, and the AND operation calculation is triggered by turning on the ENa switch. To implement this operation, this application first reads the data of the storage cell and stores it at position A, then reads the data of the second storage cell and stores it at position MIn, and connects the computing circuit by applying a high voltage to ENa. If the data stored in node A is 1 and the data stored in node MIn is 1, then node A retains the existing stored data, therefore, the output result of node MOut is 1. If the data stored in node A is 1 and the data stored in node MIn is 0, then node A is grounded and reversed to 0, therefore, the output result of node MOut is 0. If the data stored in node A is 0 and the data stored in node MIn is 1, then node A retains the existing stored data, therefore, the output result of node MOut is 0. If the data stored in node A is 0 and the data stored in node MIn is 0, then node A retains the existing stored data, therefore, the output result of node MOut is 0.

[0059] Figure 4 This is a schematic diagram of the OR operation calculation process of the storage medium-oriented memory circuit combination control method according to an embodiment of this application.

[0060] like Figure 4As shown, in the OR operation calculation process of the memory-based computing circuit combination control method for storage media, the operands are located at positions B and MIn, respectively, and the OR operation calculation is triggered by turning on the ENb switch. To implement this operation, this application first reads the data of the storage cell and stores it at position B, then reads the data of the second storage cell and stores it at position MIn, and applies a high voltage to ENb to turn on the OR operation circuit. If the data stored at node B is 1, then node T is 0; if the data stored at node MIn is 1, then node T retains the existing stored data, and node MOut outputs a result of 1. If the data stored at node B is 1, then node T is 0; if the data stored at node MIn is 0, then node T retains the existing stored data, and node MOut outputs a result of 1. If the data stored at node B is 0, then node T stores data 1; if the data stored at node MIn is 1, then node T is grounded and reversed to 0, and node MOut outputs a result of 1. If node B stores 0 data, then node T stores 1 data. If node Min stores 0 data, then node T retains its existing stored data, and node MOut outputs 0.

[0061] Figure 5 This is a schematic diagram of the NOT operation calculation and latch operation circuit of the storage medium-oriented in-memory circuit combination control method according to an embodiment of this application.

[0062] like Figure 5 As shown, in the NOT operation calculation process of the in-memory computing circuit combination control method for storage media, if the operand is located at the MIn position, then its inverse node C is the NOT operation result of the data stored in MIn. Since this inversion operation is implemented through two inverters, this circuit can temporarily store the currently stored data content.

[0063] Figure 6 This is a schematic diagram of a controllable inverter circuit for a storage medium-oriented in-memory circuit combination control method according to an embodiment of this application.

[0064] like Figure 6 As shown, in order to reduce the hardware overhead of the basic bit operation calculation circuit, this application proposes to achieve a simpler circuit control and multiplexing design by adding additional transistor elements to the calculation circuit. Figure 6 This demonstrates how to control the inverter switch by adding a transistor to the MIn line. This control circuit can be applied to inverter control processes in other locations.

[0065] Figure 7 This is a schematic diagram of the XOR operation calculation circuit combination of the storage medium-oriented memory computing circuit combination control method according to an embodiment of this application.

[0066] like Figure 7As shown, the XOR operation can be broken down into a combination of NOT, AND, and OR operations, and the expression can be represented as follows: Therefore, as Figure 7 As shown, NOT and AND operations are performed on the two operands respectively, and the results are temporarily stored in the latch circuit. Finally, the two operation results are read and written to the corresponding node of the OR operation, thus realizing the XOR operation. Other types of bit operation calculations can be realized by combining the basic bit operation calculation circuit.

[0067] Figure 8 This is a schematic diagram of multiple calculations in the memory-based computing circuit combination control method for storage media according to an embodiment of this application.

[0068] like Figure 8 As shown in the diagram, the four operands in the operand relocation schematic undergo two bitwise operations each. This application stores the result of the first calculation in a buffer and then rewrites it into a new storage unit, thereby enabling the first calculation result to be used as the operand for the second calculation. This application can be extended to read one operand into a buffer and transfer it to the computational combinational circuit corresponding to another operand, thereby reducing the number of read and write operations.

[0069] Figure 9 This application provides a schematic diagram of the structure of a storage device for a storage medium-oriented storage computing circuit, as shown in Embodiment 2.

[0070] like Figure 9 As shown, the storage device for storing and computing circuits oriented towards storage media includes: a storage module, a reading module, a circuit combination module, and a result processing module, wherein...

[0071] Storage module 10 is used to store bitwise operands in storage units according to the storage medium type;

[0072] Read module 20 is used to apply corresponding bit data read operations to different types of storage units to obtain bit data;

[0073] The circuit combination module 30 is used to perform combination operations on bit data based on the combination of basic arithmetic circuits;

[0074] The result processing module 40 is used to transmit the calculation result of the final calculation circuit out of the calculation circuit, and return it to the host as the bit operation calculation result or to perform the next bit operation calculation.

[0075] This application's embodiment of the storage device computing apparatus for storage media includes: a storage module, a reading module, a circuit combination module, and a result processing module. The storage module stores bitwise operands in storage units according to the storage medium type. The reading module applies corresponding bit data read operations to different types of storage units to obtain bit data. The circuit combination module performs combined operations on the bit data based on the combination of basic computing circuits. The result processing module transmits the calculation result of the final computing circuit out of the computing circuit, returning it as the bitwise operation result to the host or performing the next bitwise operation. This solves the technical problem of high time overhead in data transmission in existing methods. By adding computing circuits to the storage device, low-latency data bitwise operations are achieved, reducing the high time overhead caused by data transmission and improving the processing efficiency of computing tasks. Furthermore, the basic computing circuit can be defined not only as the three traditional bitwise operations (AND, OR, NOT) but also extended to other custom bitwise operations that only require one or zero data inversions. This application enables complex computing circuits that support multiple operands and multiple basic operations by combining and expanding basic computing circuits, thereby realizing computing operations on storage media. The complex computing circuits include, but are not limited to, NAND, XOR, XNOR, and NOR bitwise operations.

[0076] The storage device in-memory computing apparatus for storage media in this application embodiment further includes an in-memory computing chip based on the storage device, including: a storage module, a computing combination circuit and a computing control method;

[0077] The storage module is connected to the computing combinational circuit, and bitwise operations are performed in the computing combinational circuit using computing control methods.

[0078] The storage module contains multiple parallel storage units, which can simultaneously read data and pass it to the corresponding input node in the computational combinational circuit. The operands for bitwise operations are stored in the storage module. The operands are split into bits and stored in multiple parallel-accessible storage units. Based on the storage medium type, a corresponding read operation is applied, storing the read bit data in the corresponding input node of the computational combinational circuit. Subsequently, the transistor switching of the computational combinational circuit is controlled according to the bitwise operation type, realizing the transformation and storage of data within the circuit. Subsequent read operations and transistor switching control are applied based on the bitwise operation type, ensuring that the output node of the computational combinational circuit displays the bitwise operation result.

[0079] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the storage medium-oriented in-memory circuit combination control method of the above embodiments.

[0080] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0081] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0082] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0083] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0084] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0085] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0086] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0087] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A method for combined control of in-memory computing circuits for storage media, characterized in that, Includes the following steps: For different types of storage units, apply the corresponding bit data read operation to obtain bit data; Based on the type of bit operation, control the transistor switches in the basic arithmetic circuit to implement specific basic bit operation; Based on the combination of basic arithmetic circuits, the combined operations of the bit data are realized; The final calculation result of the arithmetic circuit is transmitted out of the arithmetic circuit and returned to the host as the calculation result or used for the next bit operation calculation; By using a buffer outside the computing circuit, the data migration overhead caused by operands being located in different parallel operation units is reduced. Specifically, after reading and computing the data, it is stored in the buffer and the computing circuit is reset. Then, the buffer data is written back to the corresponding circuit node of the computing circuit. Subsequently, the reading of subsequent operands and the transistor switching control logic of the circuit continue to complete the subsequent bit operations. When using a buffer outside of the computational combinational circuit for temporary data storage, support for specific location operations can be achieved by adding additional hardware components.

2. The memory-based computing circuit combination control method for storage media as described in claim 1, characterized in that, Based on the different types of storage cells, storage cells are divided into volatile storage media and non-volatile storage media. Different types of storage media have different read operation control methods. According to the type of storage media, the corresponding read operation behavior is applied to read the bit data of the storage media and store it in the initial node of the computing circuit.

3. The memory-based computing circuit combination control method for storage media as described in claim 2, characterized in that, If the operands of a bitwise operation are located in different storage media, the operand contents are read according to the order of their execution and transmitted into the same computing circuit to achieve the purpose of the bitwise operation.

4. The memory-based computing circuit combination control method for storage media as described in claim 1, characterized in that, Based on the bitwise operation type, the transistor switches in the basic arithmetic circuit are controlled to implement specific basic bitwise operations, as follows: By controlling the switching signals of the transistors in the basic bit operation circuit, the read bit data is inverted at different circuit nodes. Depending on the type of basic bit operation, the bit data is inverted zero or once to realize the basic bit operation.

5. The memory-based computing circuit combination control method for storage media as described in claim 1, characterized in that, It also includes recalculating the results of basic bit operations by combining basic bit operation circuits based on the basic bit operation calculation process, specifically: According to a predetermined complex calculation process, multiple basic bit operation circuits are sorted and connected node by using the output of the preceding basic bit operation circuit as the input of the subsequent basic bit operation circuit, so as to realize complex calculation operations with multiple operands and multiple operators.

6. A storage device for in-memory computing circuitry oriented towards a storage medium, characterized in that, It includes a storage module, a reading module, a circuit combination module, and a result processing module, among which, The storage module is used to store the operands of bitwise operations in storage units according to the storage medium type; The reading module is used to apply corresponding bit data read operations to different types of storage units to obtain bit data; The circuit combination module is used to perform combination operations on the bit data based on the combination of basic arithmetic circuits. The result processing module is used to transmit the calculation result of the final calculation circuit out of the calculation circuit, and return it to the host as the bit operation calculation result or perform the next bit operation calculation. It also includes a buffer module, which is used to reduce the data migration overhead due to operands being located in different parallel operation units by utilizing a buffer outside the computing circuit. Specifically, after reading and computing the data, it is stored in the buffer and the computing circuit is reset. Then, the buffer data is written back to the corresponding circuit node of the computing circuit, and then the subsequent operand reading and computing circuit transistor switching control logic is continued to complete the subsequent bit operation. The hardware expansion module is used to support specific positional operations by adding additional hardware components when using buffers outside of the computing combinational circuit for temporary data storage.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the storage-medium computing circuit combination control method as described in any one of claims 1-5.