A unilaterally controlled in-memory computing circuit and memory

By adopting a one-sided control design in the in-memory computing circuit and controlling the bit line connection using high and low level signals, the problems of high power consumption and high current consumption in traditional in-memory computing are solved, and higher energy efficiency and current consumption are achieved reduce.

CN117708042BActive Publication Date: 2024-11-26NANJING INST OF INTELLIGENT TECH INST OF MICROELECTRONICS OF THE CHINESE ACAD OF
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311841634.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2024-11-26
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

In in-memory computing, traditional designs have problems with high power consumption and high current consumption, especially in deep network operations of single-bit neural networks, resulting in low energy efficiency.

Method used

The in-memory computing circuit design adopts a one-sided control, and connects the first storage terminal and the second storage terminal of the storage circuit through the first read and write circuit and the second read and write circuit respectively, and controls the connection and disconnection of the bit lines using high and low level signals. , realizes a one-sided read operation, thereby reducing current consumption on the bit line.

Benefits of technology

It effectively reduces the current consumption on the bit line, and compared with the traditional 6T SRAM-CIM design, it improves energy efficiency and does not require the pre-determining of the input weight multiplication result distribution at the software algorithm level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117708042B_ABST
    Figure CN117708042B_ABST
Patent Text Reader

Abstract

The present invention discloses a unilaterally controlled in-memory computing circuit and a memory, which relates to the field of artificial intelligence technology. The in-memory computing circuit includes a storage circuit, a first read-write circuit and a second read-write circuit. The first read-write circuit is respectively connected to a first word line, a first bit line and a first storage end of the storage circuit, and the second read-write circuit is respectively connected to a second word line, a second bit line and a second storage end of the storage circuit. When reading data, when the data at the first storage end of the storage circuit is a high-level signal and the data at the second storage end is a low-level signal, the first bit line is connected to the first storage end of the storage circuit, and the second bit line is disconnected from the second storage end of the storage circuit; when the data at the first storage end of the storage circuit is a low-level signal and the data at the second storage end is a high-level signal, the first bit line is disconnected from the first storage end of the storage circuit, and the second bit line is connected to the second storage end of the storage circuit. The present application adopts unilateral reading to reduce power consumption loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a unilaterally controlled in-memory computing circuit and a memory. Background Art

[0002] With the slowdown of Moore's Law and the long-standing "storage wall" defect of the von Neumann architecture, computer chips cannot continue to improve performance while maintaining good power consumption and size. Faced with a series of challenges, the integrated storage and computing architecture has been proposed to continue to improve chip performance. The integrated storage and computing combines the storage unit and the computing unit into one, eliminating the intermediate data transfer link, thereby eliminating the delay and power consumption caused by data transfer, and greatly improving energy efficiency. Currently, in-memory computing faces many problems that need to be solved, such as limited noise tolerance, read interference write, area and power consumption caused by peripheral circuits, etc.

[0003] For single-bit neural networks, although it sacrifices recognition accuracy, it greatly compresses the data volume of the neural network model, reduces the amount of data transmission, and improves energy efficiency. In order to further reduce overhead and improve energy efficiency, a modified single-bit neural network that quantizes input data to "0 / 1" and weight data to "+1 / -1" is proposed. As the network operation depth of various neural networks continues to increase, the distribution of multiplication results in different fully connected layers becomes sparse. Summary of the invention

[0004] The object of the present invention is to provide a unilaterally controlled in-memory computing circuit and a memory, and the unilaterally controlled in-memory computing circuit of the present application is used to perform unilateral reading, thereby reducing power consumption loss on the bit line.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] An aspect of an embodiment of the present invention provides a unilaterally controlled in-memory computing circuit, the in-memory computing circuit comprising: a storage circuit, the storage circuit being used to store data; a first read-write circuit and a second read-write circuit, the first read-write circuit being respectively connected to a first word line, a first bit line and a first storage terminal of the storage circuit, the first read-write circuit being used to read or write data to the first storage terminal of the storage circuit, the second read-write circuit being respectively connected to a second word line, a second bit line and a second storage terminal of the storage circuit, the second read-write circuit being used to read or write data to the second storage terminal of the storage circuit; when the data at the first storage terminal of the storage circuit is a high level signal, the data at the second storage terminal of the storage circuit is a low level signal, and when the data at the first storage terminal of the storage circuit is When the data at the first storage end of the storage circuit is a low-level signal, the data at the second storage end of the storage circuit is a high-level signal; when reading data, when the data at the first storage end of the storage circuit is a high-level signal, and the data at the second storage end of the storage circuit is a low-level signal, the first read-write circuit controls the first bit line to be connected to the first storage end of the storage circuit, and the second read-write circuit controls the second bit line to be disconnected from the second storage end of the storage circuit; when the data at the first storage end of the storage circuit is a low-level signal, and the data at the second storage end of the storage circuit is a high-level signal, the first read-write circuit controls the first bit line to be disconnected from the first storage end of the storage circuit, and the second read-write circuit controls the second bit line to be connected to the second storage end of the storage circuit.

[0007] In some embodiments, the first read-write circuit includes a first selection switch and a first read-write switch connected to a first storage terminal of the storage circuit, and a first read-write control switch connected to the first selection switch and the first read-write switch; the second read-write circuit includes a second selection switch and a second read-write switch connected to a second storage terminal of the storage circuit, and a second read-write control switch connected to the second selection switch and the second read-write switch; the first selection switch and the second selection switch both receive a control signal, the first selection switch outputs a high-level signal to the control terminal of the first read-write control switch or outputs a data signal of the first storage terminal of the storage circuit according to the control signal, the control terminal of the first read-write control switch controls the first word line to be connected to the control terminal of the first read-write switch when receiving a high-level signal, and the control terminal of the first read-write switch controls the first bit line to be connected to the first storage terminal of the storage circuit when receiving a high-level signal; the second selection switch outputs a high-level signal to the control terminal of the second read-write control switch or outputs a data signal of the second storage terminal of the storage circuit according to the control signal, the control terminal of the second read-write control switch controls the second word line to be connected to the control terminal of the second read-write switch when receiving a high-level signal, and the control terminal of the second read-write switch controls the second bit line to be connected to the second storage terminal of the storage circuit when receiving a high-level signal.

[0008] In some embodiments, the first selection switch includes a first PMOS tube and a first NMOS tube, the gate of the first PMOS tube and the gate of the first NMOS tube are both used to receive control signals, the source of the first PMOS tube is used to receive high-level signals, the source of the first NMOS tube is connected to the first storage end of the storage circuit, and the drain of the first PMOS tube is connected to the drain of the first NMOS tube and the control end of the first read-write control switch; the second selection switch includes a second PMOS tube and a second NMOS tube, the gate of the second PMOS tube and the gate of the second NMOS tube are both used to receive control signals, the source of the second PMOS tube is used to receive high-level signals, the source of the second NMOS tube is connected to the second storage end of the storage circuit, and the drain of the second PMOS tube is connected to the drain of the second NMOS tube and the control end of the second read-write control switch.

[0009] In some embodiments, the first read-write control switch uses a third NMOS transistor, and the second read-write control switch uses a fourth NMOS transistor.

[0010] In some embodiments, the first read-write switch uses a fifth NMOS transistor, and the second read-write switch uses a sixth NMOS transistor.

[0011] In some embodiments, the storage circuit includes a first storage PMOS tube, a second storage PMOS tube, a first storage NMOS tube and a second storage NMOS tube, the source of the first storage PMOS tube and the source of the second storage PMOS tube both receive a high-level signal, the source of the first storage NMOS tube and the source of the second storage NMOS tube both receive a low-level signal, the gate of the first storage PMOS tube is connected to the gate of the first storage NMOS tube, the drain of the second storage PMOS tube, the drain of the second storage NMOS tube and the source of the second NMOS tube, and the gate of the second storage PMOS tube is connected to the gate of the second storage NMOS tube, the drain of the first storage PMOS tube, the drain of the first storage NMOS tube and the source of the first NMOS tube.

[0012] In some embodiments, when high-level data is written to the first storage terminal of the storage circuit and low-level data is written to the second storage terminal, the second bit line is discharged to a low-level signal, and the control signal inputs a low-level signal; when high-level data is written to the second storage terminal of the storage circuit and low-level data is written to the first storage terminal, the first bit line is discharged to a low-level signal, and the control signal inputs a low-level signal.

[0013] In some embodiments, when reading data, the control signal is input as a high level signal, and the first read-write circuit or the second read-write circuit performs a unilateral read operation.

[0014] One aspect of an embodiment of the present invention provides a memory, wherein the memory includes the in-memory computing circuit as described above.

[0015] According to an embodiment of the present invention, a unilaterally controlled in-memory computing circuit and memory have at least the following beneficial effects: the present application can perform unilaterally controlled reading and writing. When the first storage terminal of the storage circuit is at a high level, the circuit works to read at the first storage terminal, a charging current is generated on the first bit line, and no current is consumed on the second bit line; similarly, when the second storage terminal of the storage circuit is at a high level, the circuit works to read at the second storage terminal, a charging current is generated on the second bit line, and no current is consumed on the first bit line. Through this unilateral reading method, compared with the traditional 6TSRAM-CIM design, the current consumption on the bit line can be effectively reduced, and the unilaterally controlled in-memory computing circuit using the present application does not require additional pre-determination of the input weight multiplication result distribution at the software algorithm level.

[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 4 is a schematic diagram of an in-memory computing circuit according to an embodiment.

[0019] The description of the accompanying drawings is as follows: 1. First read-write circuit; 2. Second read-write circuit; 3. First selection switch; 4. Second selection switch. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] The terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0022] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected", "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0023] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present disclosure will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0024] The technical solution of the embodiment of the present application is briefly described below:

[0025] According to some embodiments, Figure 1 As shown, the present application provides a unilaterally controlled in-memory computing circuit, wherein the in-memory computing circuit includes a storage circuit, a first read-write circuit 1 and a second read-write circuit 2.

[0026] Its connection structure is:

[0027] The first read / write circuit 1 is respectively connected to the first word line WLL, the first bit line BLL and the first storage end of the storage circuit, and the second read / write circuit 2 is respectively connected to the second word line WLR, the second bit line BLR and the second storage end of the storage circuit.

[0028] Based on the working principle of the above embodiment, the storage circuit is used to store data.

[0029] The first read / write circuit 1 is used to read data from or write (store) data to a first storage terminal of the storage circuit, and the second read / write circuit 2 is used to read data from or write (store) data to a second storage terminal of the storage circuit.

[0030] When the data at the first storage terminal of the storage circuit is a high level signal, the data at the second storage terminal of the storage circuit is a low level signal. When the data at the first storage terminal of the storage circuit is a low level signal, the data at the second storage terminal of the storage circuit is a high level signal.

[0031] When reading data, when the data at the first storage terminal of the storage circuit is a high level signal, and the data at the second storage terminal of the storage circuit is a low level signal, the first read-write circuit 1 controls the first bit line BLL to be connected to the first storage terminal of the storage circuit, and the second read-write circuit 2 controls the second bit line BLR to be disconnected from the second storage terminal of the storage circuit. When the first storage terminal of the storage circuit is at a high level, the circuit works to read at the first storage terminal, a charging current is generated on the first bit line BLL, and no current is consumed on the second bit line BLR.

[0032] When the data at the first storage terminal of the storage circuit is a low-level signal, and the data at the second storage terminal of the storage circuit is a high-level signal, the first read-write circuit 1 controls the first bit line BLL to be disconnected from the first storage terminal of the storage circuit, and the second read-write circuit 2 controls the second bit line BLR to be connected to the second storage terminal of the storage circuit. When the second storage terminal of the storage circuit is at a high level, the circuit works to read at the second storage terminal, and a charging current is generated on the second bit line BLR, while no current is consumed on the first bit line BLL. Through this unilateral reading method, the current consumption on the bit line can be effectively reduced compared to the traditional 6T SRAM-CIM design.

[0033] The following is combined with the appendix of this manual Figure 1 , the preferred implementation modes of the present disclosure are further elaborated in detail.

[0034] According to some embodiments, Figure 1 As shown, the first read-write circuit 1 includes a first selection switch 3 and a first read-write switch N5 connected to the first storage terminal of the storage circuit, and a first read-write control switch N3 connected to the first selection switch 3 and the first read-write switch N5;

[0035] The second read-write circuit 2 includes a second selection switch 4 and a second read-write switch N6 connected to the second storage terminal of the storage circuit, and a second read-write control switch N4 connected to the second selection switch 4 and the second read-write switch N6.

[0036] Based on the working principle of the above embodiment, the first selection switch 3 and the second selection switch 4 both receive a control signal, and the first selection switch 3 outputs a high-level signal to the control end of the first read-write control switch N3 or outputs a data signal of the first storage end of the storage circuit according to the control signal. The data signal of the first storage end of the storage circuit can be a high-level signal or a low-level signal. When reading data, the control signal controls the first selection switch 3 to output the data signal of the first storage end of the storage circuit to the control end of the first read-write control switch N3. When writing data, the control signal controls the first selection switch 3 to output a high-level signal to the control end of the first read-write control switch N3.

[0037] When the control end of the first read-write control switch N3 receives a high level signal, the first word line WLL is controlled to be connected to the control end of the first read-write switch N5. When the control end of the first read-write switch N5 receives a high level signal, the first bit line BLL is controlled to be connected to the first storage end of the storage circuit. When data is to be written or read, the first word line WLL is a high level signal.

[0038] The second selection switch 4 outputs a high level signal to the control end of the second read-write control switch N4 or outputs a data signal of the second storage end of the storage circuit according to the control signal. The data signal of the second storage end of the storage circuit can be a high level signal or a low level signal. When reading data, the control signal controls the second selection switch 4 to output the data signal of the second storage end of the storage circuit to the control end of the second read-write control switch N4. When writing data, the control signal controls the second selection switch 4 to output a high level signal to the control end of the second read-write control switch N4.

[0039] When the control end of the second read-write control switch N4 receives a high level signal, the second word line WLR is controlled to be connected to the control end of the second read-write switch N6. When the control end of the second read-write switch N6 receives a high level signal, the second bit line BLR is controlled to be connected to the second storage end of the storage circuit. When data is to be written or read, the second word line WLR is a high level signal.

[0040] According to some embodiments, Figure 1 As shown, the first selection switch 3 includes a first PMOS transistor P1 and a first NMOS transistor N1, and the connection structure thereof is as follows:

[0041] The gate of the first PMOS tube P1 and the gate of the first NMOS tube N1 are both used to receive control signals, the source of the first PMOS tube P1 is used to receive a high-level signal VDD, the source of the first NMOS tube N1 is connected to the first storage end of the storage circuit, and the drain of the first PMOS tube P1 is connected to the drain of the first NMOS tube N1 and the control end of the first read-write control switch N3.

[0042] Based on the working principle of the above embodiment, when the control signal is at a high level, the first NMOS tube N1 is turned on, the first PMOS tube P1 is turned off, and the first selection switch 3 outputs the data signal of the first storage end of the storage circuit. When the control signal is at a low level, the first NMOS tube N1 is turned off, the first PMOS tube P1 is turned on, and the first selection switch 3 outputs a high level signal VDD.

[0043] The second selection switch 4 includes a second PMOS transistor P2 and a second NMOS transistor N2, and the connection structure thereof is as follows:

[0044] The gate of the second PMOS tube P2 and the gate of the second NMOS tube N2 are both used to receive control signals, the source of the second PMOS tube P2 is used to receive a high-level signal, the source of the second NMOS tube N2 is connected to the second storage end of the storage circuit, and the drain of the second PMOS tube P2 is connected to the drain of the second NMOS tube N2 and the control end of the second read-write control switch N4.

[0045] Based on the working principle of the above embodiment, when the control signal is at a high level, the second NMOS tube N2 is turned on, the second PMOS tube P2 is turned off, and the second selection switch 4 outputs the data signal of the second storage end of the storage circuit. When the control signal is at a low level, the second NMOS tube N2 is turned off, the second PMOS tube P2 is turned on, and the second selection switch 4 outputs a high level signal VDD.

[0046] According to some embodiments, Figure 1As shown, the first read-write control switch N3 adopts the third NMOS transistor N3, and the second read-write control switch N4 adopts the fourth NMOS transistor N4.

[0047] According to some embodiments, Figure 1 As shown, the first read-write switch N5 adopts the fifth NMOS transistor N5, and the second read-write switch N6 adopts the sixth NMOS transistor N6.

[0048] Based on the working principle of the above embodiment, the first read-write control switch N3, the second read-write control switch N4, the first read-write switch N5 and the second read-write switch N6 may use other electronic components with switching functions in addition to NMOS tubes. This application does not limit this, but this application preferably uses MOS tubes.

[0049] According to some embodiments, Figure 1 As shown, the storage circuit includes a first storage PMOS tube PUL, a second storage PMOS tube PUR, a first storage NMOS tube PDL and a second storage NMOS tube PDR, the source of the first storage PMOS tube PUL and the source of the second storage PMOS tube PUR both receive a high level signal, the source of the first storage NMOS tube PDL and the source of the second storage NMOS tube PDR both receive a low level signal, the gate of the first storage PMOS tube PUL is connected to the gate of the first storage NMOS tube PDL, the drain of the second storage PMOS tube PUR, the drain of the second storage NMOS tube PDR and the source of the second NMOS tube N2, and the gate of the second storage PMOS tube PUR is connected to the gate of the second storage NMOS tube PDR, the drain of the first storage PMOS tube PUL, the drain of the first storage NMOS tube PDL and the source of the first NMOS tube N1.

[0050] According to some embodiments, when high level data is written to the first storage terminal of the storage circuit and low level data is written to the second storage terminal, the second bit line BLR is first discharged to a low level signal, and then the control signal is controlled to input a low level signal.

[0051] When high level data is written into the second storage terminal of the storage circuit and low level data is written into the first storage terminal, the first bit line BLL is first discharged to a low level signal, and then the control signal is controlled to input a low level signal.

[0052] According to some embodiments, when reading data, the control signal is input as a high level signal, and the first read-write circuit 1 or the second read-write circuit 2 performs a unilateral read operation.

[0053] The working principle based on the above embodiment is as follows: Figure 1As shown, when reading data, the control signal inputs a high-level signal. If the data signal at the first storage end of the storage circuit is a high-level signal, the third NMOS tube N3 is turned on, and the fifth NMOS tube N5 is turned on to perform a unilateral reading operation. If the data signal at the second storage end of the storage circuit is a high-level signal, the fourth NMOS tube N4 is turned on, and the sixth NMOS tube N6 is turned on to perform a unilateral reading operation. Through this unilateral reading method, the current consumption on the bit line can be effectively reduced compared to the traditional 6T SRAM-CIM design.

[0054] In some embodiments, it is specified that input data is connected to WLL and WLR at the same time. When reading from the left side, WLL is used as input data, and when reading from the right side, WLR is used as input data. Assuming that the input data value is "0", it corresponds to "WLL = 0, WLR = 0", and the input data is "1", it corresponds to "WLL = 1, WLR = 1", and assuming that the weight data values ​​are "-1" and "+1", they correspond to "Q = 0" and "Q = 1" respectively. The weight can be read out according to the difference in voltage between the left and right bit lines.

[0055] When F=1, Q=1, QB=0, and the in-memory calculation circuit performs left-side reading. When the input data is "0", WLL=0, WLR=0, and the weight data W (Weight) is "+1". Since the in-memory calculation circuit will not provide any current to BLL. And since WLR=0 on BLR, there is no current consumption, so the value of the multiplication result IWP of the input and weight is "0", and the result of the multiplication will be presented on BLL and BLR. By judging the voltage value on BLL or BLR, the final multiplication and addition result can be obtained. When the input IN="1", WLL=1, WLR=1, and the weight W="+1", the in-memory calculation circuit will provide a charging current IC to BLL, and there is still no current consumption on BLR, so IWP="+1". This realizes the left-side reading and multiplication operations.

[0056] When F=1, Q=0, QB=1, the in-memory calculation circuit reads the right side. When IN=“0”, WLL=0, WLR=0, and W=“-1”. Since the in-memory calculation circuit does not provide any current to BLR, and there is no current consumption on BLL, IWP=“0”; when the input IN=“1”, WLL=1, WLR=1, and weight W=“-1”, the in-memory calculation circuit will generate a charging current I on BLR. C , there is still no current consumption on the BLL, so IWP = "-1". This implements the right-hand side reading and multiplication operations.

[0057] According to the above analysis, the operation truth table is shown in Table 1.

[0058] Table 1

[0059]

[0060] In the field of artificial intelligence, single-bit neural networks are widely used in many intelligent scenarios with low recognition accuracy. In this design, the input data is quantized to "0 / 1" and the weight data is quantized to "+1 / -1". This operation reduces hardware overhead and improves energy efficiency. There is no need to predetermine the input weight multiplication result distribution at the software algorithm level.

[0061] According to some embodiments, the present application provides a memory, wherein the memory includes the in-memory computing circuit as described above.

[0062] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.

[0063] Although the present disclosure has been described with reference to several typical embodiments, it should be understood that the terms used are illustrative and exemplary, rather than restrictive. Since the present disclosure can be implemented in a variety of forms without departing from the spirit or essence of the present application, it should be understood that the above-mentioned embodiments are not limited to any of the foregoing details, but should be widely interpreted within the spirit and scope defined by the appended claims, so all changes and modifications falling within the scope of the claims or their equivalents should be covered by the appended claims.

Claims

1. A unilaterally controlled in-memory computing circuit, characterized in that: The in-memory computing circuit comprises: A storage circuit, wherein the storage circuit is used to store data; a first read-write circuit and a second read-write circuit, wherein the first read-write circuit is respectively connected to a first word line, a first bit line and a first storage terminal of the storage circuit, and the first read-write circuit is used to read or write data to the first storage terminal of the storage circuit, and the second read-write circuit is respectively connected to a second word line, a second bit line and a second storage terminal of the storage circuit, and the second read-write circuit is used to read or write data to the second storage terminal of the storage circuit; When the data at the first storage terminal of the storage circuit is a high level signal, the data at the second storage terminal of the storage circuit is a low level signal; when the data at the first storage terminal of the storage circuit is a low level signal, the data at the second storage terminal of the storage circuit is a high level signal; When reading data, when the data at the first storage terminal of the storage circuit is a high level signal and the data at the second storage terminal of the storage circuit is a low level signal, the first read-write circuit controls the first bit line to be connected to the first storage terminal of the storage circuit, and the second read-write circuit controls the second bit line to be disconnected from the second storage terminal of the storage circuit; When the data at the first storage terminal of the storage circuit is a low level signal, and the data at the second storage terminal of the storage circuit is a high level signal, the first read-write circuit controls the first bit line to be disconnected from the first storage terminal of the storage circuit, and the second read-write circuit controls the second bit line to be connected to the second storage terminal of the storage circuit; The first read-write circuit includes a first selection switch and a first read-write switch connected to a first storage terminal of the storage circuit, and a first read-write control switch connected to the first selection switch and the first read-write switch; The second read-write circuit includes a second selection switch and a second read-write switch connected to the second storage terminal of the storage circuit, and a second read-write control switch connected to the second selection switch and the second read-write switch; The first selection switch and the second selection switch both receive a control signal, the first selection switch outputs a high level signal to the control end of the first read-write control switch or outputs a data signal of a first storage end of a storage circuit according to the control signal, the control end of the first read-write control switch controls the first word line to be connected to the control end of the first read-write switch when receiving a high level signal, and the control end of the first read-write switch controls the first bit line to be connected to the first storage end of the storage circuit when receiving a high level signal; The second selection switch outputs a high level signal to the control end of the second read-write control switch or outputs a data signal of the second storage end of the storage circuit according to the control signal. The control end of the second read-write control switch controls the second word line to be connected to the control end of the second read-write switch when receiving a high level signal. The control end of the second read-write switch controls the second bit line to be connected to the second storage end of the storage circuit when receiving a high level signal.

2. The in-memory computing circuit according to claim 1, characterized in that: The first selection switch includes a first PMOS tube and a first NMOS tube, the gate of the first PMOS tube and the gate of the first NMOS tube are both used to receive a control signal, the source of the first PMOS tube is used to receive a high-level signal, the source of the first NMOS tube is connected to the first storage end of the storage circuit, and the drain of the first PMOS tube is connected to the drain of the first NMOS tube and the control end of the first read-write control switch; The second selection switch includes a second PMOS tube and a second NMOS tube, the gate of the second PMOS tube and the gate of the second NMOS tube are both used to receive a control signal, the source of the second PMOS tube is used to receive a high-level signal, the source of the second NMOS tube is connected to the second storage end of the storage circuit, and the drain of the second PMOS tube is connected to the drain of the second NMOS tube and the control end of the second read-write control switch.

3. The in-memory computing circuit according to claim 2, characterized in that: The first read-write control switch uses a third NMOS transistor, and the second read-write control switch uses a fourth NMOS transistor.

4. The in-memory computing circuit according to claim 3, characterized in that: The first read-write switch uses a fifth NMOS transistor, and the second read-write switch uses a sixth NMOS transistor.

5. The in-memory computing circuit according to claim 4, characterized in that: The storage circuit includes a first storage PMOS tube, a second storage PMOS tube, a first storage NMOS tube and a second storage NMOS tube, the source of the first storage PMOS tube and the source of the second storage PMOS tube both receive high-level signals, the source of the first storage NMOS tube and the source of the second storage NMOS tube both receive low-level signals, the gate of the first storage PMOS tube is connected to the gate of the first storage NMOS tube, the drain of the second storage PMOS tube, the drain of the second storage NMOS tube and the source of the second NMOS tube, and the gate of the second storage PMOS tube is connected to the gate of the second storage NMOS tube, the drain of the first storage PMOS tube, the drain of the first storage NMOS tube and the source of the first NMOS tube.

6. The in-memory computing circuit according to claim 5, characterized in that: When high-level data is written into the first storage terminal of the storage circuit and low-level data is written into the second storage terminal, the second bit line is discharged to a low-level signal, and the control signal inputs a low-level signal; When high-level data is written into the second storage terminal of the storage circuit and low-level data is written into the first storage terminal, the first bit line is discharged to a low-level signal, and the control signal inputs a low-level signal.

7. The in-memory computing circuit according to claim 5, characterized in that: When reading data, the control signal is input as a high level signal, and the first read-write circuit or the second read-write circuit performs a unilateral read operation.

8. A memory, characterized in that: The memory comprises an in-memory computing circuit as claimed in any one of claims 1 to 7.