Multi-bit in-memory computing array and circuit

By arranging high and low resistance amplification units and storage units in the in-memory computing array, and using the resistance state to control the current ratio, the problem of low computing accuracy of magnetic random access memory is solved and higher in-memory computing accuracy is achieved.

CN118737217APending Publication Date: 2024-10-01BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410870314.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The ratio of high to low resistance values ​​of magnetic random access memory is small, resulting in low accuracy of in-memory calculations based on magnetic random access memory.

Method used

Design a multi-bit in-memory computing array. By arranging matrix-arranged in-memory computing modules in the computing sub-array, and using the resistance states of high and low resistance amplification units and storage units for voltage control, high and low configuration current ratios can be achieved. Zoom in to improve calculation accuracy.

Benefits of technology

It effectively reduces the impact of the high and low resistance ratio of the storage device on in-memory calculations and improves the accuracy of in-memory calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737217A_ABST
    Figure CN118737217A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-bit in-memory computing array and a multi-bit in-memory computing circuit. The multi-bit in-memory computing array comprises at least one computing sub-array, wherein a plurality of in-memory computing modules are arranged in a matrix in the computing sub-array; the in-memory calculation modules in the same column are connected with the same top-layer bit line; the in-memory calculation module comprises a first storage unit, a second storage unit and a high-low resistance amplification unit; the first storage unit is respectively connected with a source electrode line, a word line, the high-low resistance amplification unit and a first writing bit line; the second storage unit is respectively connected with the bit line, the read word line, the high-low resistance amplification unit and the second write bit line; the high-low resistance amplification unit is also connected with a top-layer source line and a top-layer bit line; the first storage unit and the second storage unit are used for controlling the high-low resistance amplification unit to amplify the current in the top-layer bit line; and the amplified current output by each in-memory calculation module in the same column is accumulated to realize in-memory calculation. The multi-bit in-memory computing array provided by the embodiment of the invention is beneficial to improving the precision of in-memory computing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a multi-bit in-memory computing array and circuit. Background Art

[0002] In the post-Moore era, the storage and computation of large amounts of data has become one of the major challenges in today's information field. The new in-memory computing architecture achieves the integration of storage and computing, avoids the continuous movement of data in storage and computing, reduces system latency and power consumption, and breaks the "storage wall" and "power wall" bottlenecks brought by the traditional von Neumann architecture. It can provide energy-efficient solutions for intelligent scenarios such as the Internet of Things that require massive data computing.

[0003] The basis and key to the realization of in-memory computing is the memory medium, which determines the performance of the in-memory computing chip. The memory medium can be divided into traditional memory (dynamic random access memory DRAM, static random access memory, etc.) and new non-volatile memory (memristor, magnetic random access memory, etc.). The performance and applicable scenarios of in-memory computing chips with different storage media are different. Among them, magnetic random access memory has the advantages of high durability, low power consumption and high speed, and its application prospects are broad.

[0004] However, the ratio of high resistance to low resistance of the magnetic random access memory is relatively small, which also results in low calculation accuracy of in-memory calculation based on the magnetic random access memory. Summary of the invention

[0005] The present invention provides a multi-bit in-memory computing array and circuit to reduce the influence of the high-low resistance ratio of a storage device on the in-memory computing and improve the accuracy of the in-memory computing.

[0006] According to one aspect of the present invention, a multi-bit in-memory computing array is provided, the multi-bit in-memory computing array comprising: at least one computing subarray,

[0007] The computing subarray is provided with a plurality of in-memory computing modules arranged in a matrix; the output ends of the in-memory computing modules in the same column are connected to the same top-level bit line;

[0008] The in-memory calculation module includes a first storage unit, a second storage unit and a high-low resistance amplifying unit; the first end of the first storage unit is connected to the source line; the second end of the first storage unit is connected to the word line; the third end of the first storage unit is connected to the control end of the high-low resistance amplifying unit; the fourth end of the first storage unit is connected to the first write bit line; the first end of the second storage unit is connected to the bit line; the second end of the second storage unit is connected to the read word line; the third end of the second storage unit is connected to the control end of the high-low resistance amplifying unit; the fourth end of the second storage unit is connected to the second write bit line; the first end of the high-low resistance amplifying unit is connected to the top source line; the second end of the high-low resistance amplifying unit is connected to the top bit line;

[0009] The first storage unit and the second storage unit are used to control the voltage of the control end of the high and low resistance amplification unit to amplify the current in the top bit line; the amplified currents output by multiple in-memory calculation modules located in the same column are accumulated to realize in-memory calculation.

[0010] Optionally, the first storage unit includes: a first transistor, a second transistor and a first storage device;

[0011] The first end of the first transistor is connected to the source line; the second end of the first transistor is connected to the first storage device; the control end of the first transistor is connected to the word line; the first end of the second transistor is connected to the first write bit line; the second end of the second transistor is connected to the first storage device; the control end of the second transistor is connected to the write word line;

[0012] And / or, the second storage unit includes: a third transistor, a fourth transistor and a second storage device;

[0013] The first end of the third transistor is connected to the bit line; the second end of the third transistor is connected to the second storage device; the control end of the third transistor is connected to the read word line; the first end of the fourth transistor is connected to the second write bit line; the second end of the fourth transistor is connected to the second storage device; and the control end of the fourth transistor is connected to the write word line.

[0014] Optionally, both the first storage device and the second storage device include SOT-MRAM devices.

[0015] Optionally, the first storage device and the second storage device have opposite resistance states.

[0016] Optionally, the multi-bit in-memory computing array includes three computing sub-arrays;

[0017] Each of the high and low resistance amplifying units in the first computing subarray comprises an amplifying transistor; the amplifying transistor is connected between the top source line and the top bit line; the control end of the amplifying transistor is connected to the first storage unit;

[0018] Each of the high and low resistance amplifying units in the second computing subarray comprises two amplifying transistors; each of the amplifying transistors is connected in series between the top source line and the top bit line; and a control terminal of each of the amplifying transistors is connected to the first storage unit;

[0019] Each of the high and low resistance amplifying units in the third computing subarray includes four amplifying transistors; each of the amplifying transistors is connected in series between the top source line and the top bit line; and the control end of each of the amplifying transistors is connected to the first storage unit.

[0020] Optionally, the second end of the second storage unit of the in-memory computing module in the same row is connected to the same read word line; the second end of the first storage unit of the in-memory computing module in the same column is connected to the same word line.

[0021] According to another aspect of the present invention, there is further provided a multi-bit in-memory computing circuit, the multi-bit in-memory computing circuit comprising: an input module, a decoding module, an output module, a control module and the multi-bit in-memory computing array described in any one of the above embodiments;

[0022] The input module, the multi-bit in-memory computing array and the output module are connected in series in sequence; the multi-bit in-memory computing array is also connected to the decoding module; the control module is respectively connected to the input module, the decoding module and the output module;

[0023] The control module is used to generate a clock control signal to control the overall timing of in-memory calculations; the input module is used to convert a high-bit digital signal into multiple low-bit analog voltage pulse width signals; the decoding module is used to control a multi-bit in-memory calculation array according to the clock control signal; and the output module is used to convert the current signal output by the multi-bit in-memory calculation array into a digital signal.

[0024] Optionally, the decoding module includes: a row decoding unit and a column decoding unit;

[0025] The input end of the row decoding unit is connected to the control module; the first output end of the row decoding unit is connected to the multi-bit in-memory computing array through a bit line; the input end of the column decoding unit is connected to the second output end of the row decoding unit; the output end of the column decoding unit is connected to the multi-bit in-memory computing array through a word line and a write word line;

[0026] The row decoding unit and the column decoder are used to activate the sub-computation array in the multi-bit in-memory calculation array according to the clock control signal.

[0027] Optionally, the output module includes: a current mirror capacitor unit and a single slope analog-to-digital conversion unit;

[0028] The current mirror capacitor unit is respectively connected to the multi-bit in-memory calculation array, the single slope analog-to-digital conversion unit and the control module; the single slope analog-to-digital conversion unit is also connected to the control module;

[0029] The current mirror capacitor unit is used to convert the current signal output by the multi-bit in-memory computing array into a voltage amplitude signal; the single-slope analog-to-digital conversion unit is used to convert the voltage amplitude signal output by the current mirror capacitor unit into a digital signal.

[0030] Optionally, the current mirror capacitor unit includes: a first current mirror transistor, a second current mirror transistor, a third current mirror transistor, a fourth current mirror transistor, a clamp transistor, a first switch, a second switch, a third switch, a fourth switch and a capacitor;

[0031] The first end of the first current mirror transistor is connected to the power supply voltage; the second end of the first current mirror transistor is connected to the first end of the first switch; the first end of the second current mirror transistor is connected to the power supply voltage; the second end of the second current mirror transistor is connected to the first end of the second switch; the first end of the third current mirror transistor is connected to the power supply voltage; the second end of the third current mirror transistor is connected to the third switch; the control end of the first current mirror transistor, the control end of the second current mirror transistor and the control end of the third current mirror transistor are connected in parallel; the control end of the first current mirror transistor is connected to the control end of the fourth current mirror transistor; The first end of the fourth current mirror transistor is connected to the power supply voltage; the second end of the fourth current mirror transistor is connected to the control end of the first current mirror transistor; the second end of the fourth current mirror transistor is also connected to the first end of the clamp transistor; the second end of the clamp transistor is connected to the multi-bit in-memory computing array; the control end of the clamp transistor is connected to the clamp voltage; the second end of the first switch, the second end of the second switch and the second end of the third switch are all connected to the first end of the fourth switch; the second end of the fourth switch is connected to the first end of the capacitor; the first end of the capacitor is also connected to the single-slope analog-to-digital conversion unit; the second end of the capacitor is grounded.

[0032] The embodiment of the present invention controls the voltage of the control end of the high-low resistance amplification unit by controlling the resistance state of the first storage unit and the resistance state of the second storage unit. The high-low resistance amplification unit converts the voltage change of its control end into the change of current, thereby amplifying the ratio of high and low configuration currents, that is, amplifying the ratio of high and low resistances. Compared with the prior art, the embodiment of the present invention amplifies the ratio of high and low resistances by changing the resistance state of the first storage unit and the resistance state of the second storage unit, which is beneficial to reduce the influence of the high and low resistance ratio of the storage device on the in-memory calculation and improve the accuracy of the in-memory calculation.

[0033] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 is a schematic diagram of a multi-bit in-memory computing array provided by an embodiment of the present invention;

[0036] Figure 2 is a schematic diagram of an in-memory computing module provided by an embodiment of the present invention;

[0037] Figure 3 is a schematic diagram of a multi-bit in-memory computing circuit provided by an embodiment of the present invention;

[0038] Figure 4 is a schematic diagram of a 2-bit voltage pulse width modulation provided by an embodiment of the present invention;

[0039] Figure 5 is a schematic diagram of another multi-bit in-memory computing circuit provided by an embodiment of the present invention;

[0040] Figure 6 is a schematic diagram of a current mirror capacitor unit provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] The embodiment of the present invention provides a multi-bit in-memory computing array. The multi-bit in-memory computing array can reduce the influence of the high-low resistance ratio of the storage device on the in-memory computing and improve the accuracy of the in-memory computing. Figure 1 Schematic diagram of a multi-bit in-memory computing array provided by an embodiment of the present invention. Figure 1 The multi-bit in-memory computing array 10 includes: at least one computing sub-array 200, in which a plurality of in-memory computing modules 110 arranged in a matrix are arranged; the output ends of the in-memory computing modules 110 in the same column are connected to the same top-level bit line. Figure 2 Schematic diagram of an in-memory computing module provided by an embodiment of the present invention. Figure 2The in-memory calculation module 110 includes a first storage unit 111, a second storage unit 112 and a high-low resistance amplifying unit 113; the first end of the first storage unit 111 is connected to the source line SL; the second end of the first storage unit 111 is connected to the word line WL; the third end of the first storage unit 111 is connected to the control end of the high-low resistance amplifying unit 113; the fourth end of the first storage unit 111 is connected to the first write bit line WBL1; the first end of the second storage unit 112 is connected to the bit line BL; the second end of the second storage unit 112 is connected to the read word line RWL; the second storage unit 112 The third end of the second storage unit 112 is connected to the control end of the high and low resistance amplification unit 113; the fourth end of the second storage unit 112 is connected to the second write bit line WBL2; the first end of the high and low resistance amplification unit 113 is connected to the top source line TSL; the second end of the high and low resistance amplification unit 113 is connected to the top bit line TBL; the first storage unit 111 and the second storage unit 112 are used to control the voltage of the control end of the high and low resistance amplification unit 113 to amplify the current in the top bit line TBL; the amplified currents output by the multiple in-memory calculation modules 110 located in the same column are accumulated to realize in-memory calculation. Among them, the source line SL and the top source line TSL are grounded, and the top bit line TBL is connected to the power supply voltage.

[0044] Specifically, the first storage unit 111 and the second storage unit 112 form a complementary symmetrical structure, that is, the state of the first storage unit 111 and the state of the second storage unit 112 are opposite, for example, when the first storage unit 111 is in a high resistance state, the second storage unit 112 is in a low resistance state; when the first storage unit 111 is in a low resistance state, the second storage unit 112 is in a high resistance state. The resistance states of the first storage unit 111 and the second storage unit 112 can be written as "0" or "1" for control. Exemplarily, when "0" is written in the first storage unit 111, the first storage unit 111 is in a high resistance state; when "1" is written in the first storage unit 111, the first storage unit 111 is in a low resistance state, and the resistance state control method of the second storage unit 112 is the same as that of the first storage unit 111, which will not be repeated here.

[0045] When the resistance state of the first storage unit 111 and the resistance state of the second storage unit 112 change, the voltage of the control end of the high-low resistance amplification unit 113 also changes accordingly. The current amplification capability of the high-low resistance amplification unit 113 is related to the voltage magnitude of the control end of the high-low resistance amplification unit 113. When the voltage of the control end of the high-low resistance amplification unit 113 changes, the magnitude of the current in the top bit line TBL also changes accordingly. Therefore, by controlling the resistance state of the first storage unit 111 and the resistance state of the second storage unit 112, the current in the top bit line TBL can be controlled, and the high-low resistance amplification unit 113 converts a smaller voltage change into a larger current change, thereby realizing the amplification of the high-low configuration current ratio, that is, realizing the amplification of the high-low resistance ratio.

[0046] Exemplarily, the scale of the multi-bit in-memory computing array can be 63 rows × 64 columns. In this structure, the in-memory computing module 110 in each row is input through a shared read word line RWL; the in-memory computing module 110 in each column is activated through a shared word line WL, and current is accumulated through a shared top bit line TBL to achieve output, thereby realizing in-memory computing.

[0047] The embodiment of the present invention controls the voltage of the control end of the high-low resistance amplifying unit 113 by controlling the resistance state of the first storage unit 111 and the resistance state of the second storage unit 112. The high-low resistance amplifying unit 113 converts the voltage change of its control end into the change of current, thereby amplifying the ratio of high and low configuration currents, that is, amplifying the ratio of high and low resistances. Compared with the prior art, the embodiment of the present invention amplifies the ratio of high and low resistances by changing the resistance state of the first storage unit 111 and the resistance state of the second storage unit 112, which is conducive to reducing the influence of the high and low resistance ratio of the storage device on the in-memory calculation and improving the accuracy of the in-memory calculation.

[0048] Based on the above embodiments, optionally, continue to refer to Figure 2 , the first storage unit 111 includes: a first transistor N1, a second transistor N2 and a first storage device M1.

[0049] The first end of the first transistor N1 is connected to the source line SL; the second end of the first transistor N1 is connected to the first storage device M1; the control end of the first transistor N1 is connected to the word line WL; the first end of the second transistor N2 is connected to the first write bit line WBL1; the second end of the second transistor N2 is connected to the first storage device M1; the control end of the second transistor N2 is connected to the write word line WWL.

[0050] And / or, the second storage unit 112 includes: a third transistor N3, a fourth transistor N4, and a second storage device M2.

[0051] A first end of the third transistor N3 is connected to the bit line BL; a second end of the third transistor N3 is connected to the second storage device M2; a control end of the third transistor N3 is connected to the read word line RWL; a first end of the fourth transistor N4 is connected to the second write bit line WBL2; a second end of the fourth transistor N4 is connected to the second storage device M2; and a control end of the fourth transistor N4 is connected to the write word line WWL.

[0052] Specifically, the first storage device M1 and the second storage device M2 are written through the first write bit line WBL1 and the second write bit line WBL2, respectively, to achieve the setting of the resistance state. When the first storage device M1 and the second storage device M2 are written, the second transistor N2 and the fourth transistor N4 are controlled through the write word line WWL to turn on the second transistor N2 and the fourth transistor N4, so that the first storage device M1 and the second storage device M2 can be written. Exemplarily, the write word line WWL is connected to a power supply, and the control of the second transistor N2 and the fourth transistor N4 can be achieved by controlling the output of the power supply. The first transistor N1 is controlled by the word line WL, and the third transistor N3 is controlled by the read word line RWL.

[0053] When the resistance state of the first storage device M1 and the resistance state of the second storage device M2 change, the voltage of the control end of the high-low resistance amplification unit 113 also changes accordingly, and the high-low resistance amplification unit 113 converts the small voltage change of its control end into a large current change between the top bit line TBL and the top source line TSL, thereby realizing the amplification of the high-low configuration current ratio, that is, realizing the amplification of the high-low resistance ratio. Exemplarily, the first storage device M1 and the second storage device M2 can both be SOT-MRAM (Spin-Orbit Torque Magnetic Random Access Memory, spin-orbit torque magnetic memory) devices. Among them, the SOT-MRAM device includes a magnetic tunnel junction and a spin-orbit torque layer. The magnetic tunnel junction is composed of two magnetic layers and an insulating layer, and data is stored by changing the magnetization direction of the magnetic layer. The spin-orbit torque layer is used to generate a spin-orbit torque, thereby realizing the magnetization reversal of the magnetic tunnel junction.

[0054] Based on the above embodiments, optionally, the multi-bit in-memory computing array includes three computing sub-arrays 200 .

[0055] Each high-low resistance amplifying unit 113 in the first calculation sub-array 200 includes an amplifying transistor N5; the amplifying transistor N5 is connected between the top source line TSL and the top bit line TBL; the control end of the amplifying transistor N5 is connected to the first storage unit 111; each high-low resistance amplifying unit 113 in the second calculation sub-array 200 includes two amplifying transistors N5; each amplifying transistor N5 is connected in series between the top source line TSL and the top bit line TBL; the control end of each amplifying transistor N5 is connected to the first storage unit 111; each high-low resistance amplifying unit 113 in the third calculation sub-array 200 includes four amplifying transistors N5; each amplifying transistor N5 is connected in series between the top source line TSL and the top bit line TBL; the control end of each amplifying transistor N5 is connected to the first storage unit 111.

[0056] Based on the above embodiments, optionally, the second end of the second storage unit 112 of the in-memory computing module 110 in the same row is connected to the same read word line RWL; the second end of the first storage unit 111 of the in-memory computing module 110 in the same column is connected to the same word line WL. Specifically, each computing module 110 in each row is input through the shared read word line RWL; the in-memory computing module 110 in each column is activated through the shared word line WL.

[0057] An embodiment of the present invention also provides a multi-bit in-memory computing circuit. Figure 3 Schematic diagram of a multi-bit in-memory computing circuit provided by an embodiment of the present invention. Figure 3 The multi-bit in-memory computing circuit includes: an input module 20, a decoding module 30, an output module 40, a control module 50 and a multi-bit in-memory computing array 10 provided in any of the above embodiments.

[0058] The input module 20, the multi-bit in-memory computing array 10 and the output module 40 are connected in series in sequence; the multi-bit in-memory computing array 10 is also connected to the decoding module 30; the control module 50 is respectively connected to the input module 20, the decoding module 30 and the output module 40. The control module 50 is used to generate a clock control signal to control the overall timing of the in-memory computing; the input module 20 is used to convert a high-bit digital signal into a plurality of low-bit analog voltage pulse width signals; the decoding module 30 is used to control the multi-bit in-memory computing array 10 according to the clock control signal; the output module 40 is used to convert the current signal output by the multi-bit in-memory computing array 10 into a digital signal.

[0059] Specifically, the input module 20 performs voltage pulse width modulation on the input signal. Exemplarily, taking 4 bits as an example, the input module 20 divides the 4 bits into high 2 bits and low 2 bits for input. Figure 4 Schematic diagram of a 2-bit voltage pulse width modulation provided by an embodiment of the present invention. Figure 4 ,The 2-bit input is realized by 4 voltage signals with different pulse widths. On the basis of realizing 2-bit input by voltage pulse width, the 4-bit input is considered to be divided into high 2-bit input and low 2-bit input. Similar to the 4-bit input, when the 6-bit input is used, the 6-bit input can be divided into 3 2-bit inputs.

[0060] Figure 5 is a schematic diagram of another multi-bit in-memory computing circuit provided by an embodiment of the present invention. Based on the above embodiments, optionally, referring to Figure 5 The decoding module 30 includes: a row decoding unit 31 and a column decoding unit 32.

[0061] The input end of the row decoding unit 31 is connected to the control module 50; the first output end of the row decoding unit 31 is connected to the multi-bit in-memory computing array 10 through the bit line BL; the input end of the column decoding unit 32 is connected to the second output end of the row decoding unit 31; the output end of the column decoding unit is connected to the multi-bit in-memory computing array 10 through the word line WL and the write word line WBL; the row decoding unit 31 and the column decoder 32 are used to activate the sub-computing array 200 in the multi-bit in-memory computing array 10 according to the clock control signal.

[0062] Specifically, the control module 50 controls the in-memory computing module 110 in the sub-computing array 200 through the row decoding unit 31 and the column decoding unit 32. The computing sub-array 200 is provided with a plurality of in-memory computing modules 110 arranged in a matrix, that is, the computing sub-array 200 has a plurality of row / column in-memory computing modules 110. The row decoding unit 31 and the column decoding unit 32 decode the clock control signal and activate the corresponding row or column according to the decoding result to realize the multiplication of the input and the weight.

[0063] Based on the above embodiments, optionally, continue to refer to Figure 5 The output module 40 includes: a current mirror capacitor unit 41 and a single slope analog-to-digital conversion unit 42.

[0064] The current mirror capacitor unit 41 is respectively connected to the multi-bit in-memory computing array 10, the single-slope analog-to-digital conversion unit 42 and the control module 50; the single-slope analog-to-digital conversion unit 42 is also connected to the control module 50; the current mirror capacitor unit 41 is used to convert the current signal output by the multi-bit in-memory computing array 10 into a voltage amplitude signal; the single-slope analog-to-digital conversion unit 42 is used to convert the voltage amplitude signal output by the current mirror capacitor unit 41 into a digital signal.

[0065] Taking the lower 2-bit digital signal as an example, the control module 50 generates a clock control signal, the column decoding unit 32 activates the corresponding column through the word line WL, and the input module 20 converts the lower 2-bit digital signal into an analog voltage signal, that is, the input module 20 applies a voltage signal of a certain pulse width to the in-memory calculation module 100 through the read word line RWL, multiplies the analog voltage signal with the weight stored in the in-memory calculation module 110, and the current in the top bit line TBL changes accordingly, thereby obtaining the output result. The current mirror capacitor unit 41 performs a single width-to-length ratio copy of the current on the top bit line TBL to achieve weighting of the input signal; after copying the current on the top bit line TBL, the current mirror capacitor unit 41 converts the current signal into a voltage amplitude signal, thereby completing the calculation of the multiplication of the lower 2-bit input and the weight. The calculation process of the upper 2-bit digital signal is the same as that of the lower 2-bit digital signal, which will not be repeated here. The single slope analog-to-digital conversion unit 42 converts the voltage amplitude signal output by the current mirror capacitor unit 41 into a digital signal, and outputs it through the output terminal OUT. It should be noted that, when calculating the high 2-bit digital signal, the current mirror capacitor unit 41 performs a four-fold width-to-length ratio replication on the current on the top bit line TBL. The single-slope analog-to-digital conversion unit 42 may be a single-slope analog-to-digital converter. In practical applications, the input module 20 may reuse the counter in the single-slope analog-to-digital conversion unit 42, thereby reducing the area required for the input module 20.

[0066] Figure 6 is a schematic diagram of a current mirror capacitor unit provided by an embodiment of the present invention. Based on the above embodiments, optionally, referring to Figure 6 The current mirror capacitor unit 41 includes: a first current mirror transistor P1, a second current mirror transistor P2, a third current mirror transistor P3, a fourth current mirror transistor P4, a clamping transistor P CLP , a first switch S1, a second switch S2, a third switch S3, a fourth switch S4 and a capacitor C.

[0067] The first end of the first current mirror transistor P1 is connected to the power supply voltage VCC; the second end of the first current mirror transistor P1 is connected to the first end of the first switch S1; the first end of the second current mirror transistor P2 is connected to the power supply voltage VCC; the second end of the second current mirror transistor P2 is connected to the first end of the second switch S2; the first end of the third current mirror transistor P3 is connected to the power supply voltage VCC; the second end of the third current mirror transistor P3 is connected to the third switch S3; the control end of the first current mirror transistor P1, the control end of the second current mirror transistor P2 and the control end of the third current mirror transistor P3 are connected in parallel; the control end of the first current mirror transistor P1 is connected to the control end of the fourth current mirror transistor P4; the first end of the fourth current mirror transistor P4 is connected to the power supply voltage VCC; the second end of the fourth current mirror transistor P4 is connected to the control end of the first current mirror transistor P1; the second end of the fourth current mirror transistor P4 is also connected to the clamp transistor P CLP The first end of the clamp transistor P CLP The second end of the clamp transistor P is connected to the multi-bit in-memory computing array 10; CLP The control terminal and the clamp voltage V CLP The second end of the first switch S1, the second end of the second switch S2 and the second end of the third switch S3 are all connected to the first end of the fourth switch S4; the second end of the fourth switch S4 is connected to the first end of the capacitor C; the first end of the capacitor C is also connected to the single-slope analog-to-digital conversion unit 42; the second end of the capacitor C is grounded.

[0068] Exemplarily, taking the input of 6 bits as an example, the input module 20 divides the 6-bit input into three 2-bit inputs, namely, the high 2-bit input, the middle 2-bit input and the low 2-bit input. When the low 2-bit input is applied, the first switch S1 is closed, the second switch S2 and the third switch S3 are opened, and the current of the top bit line TBL is replicated at a single aspect ratio through the single slope analog-to-digital conversion unit 42, and the capacitor C is charged; when the middle 2-bit input is applied, the second switch S2 is closed, the first switch S1 and the third switch S3 are opened, and the current of the top bit line TBL is replicated at a quadruple aspect ratio through the single slope analog-to-digital conversion unit 42, and the capacitor C is charged; when the high 2-bit input is applied, the third switch S3 is closed, the first switch S1 and the second switch S2 are opened, and the current of the top bit line TBL is replicated at a sixteenth aspect ratio through the single slope analog-to-digital conversion unit 42, and the capacitor C is charged. The voltage on the capacitor C is the result of multiplying the 6-bit input by the weight.

[0069] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0070] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-bit in-memory computing array, characterized in that: include: at least one computational subarray, The computing subarray is provided with a plurality of in-memory computing modules arranged in a matrix; the output ends of the in-memory computing modules in the same column are connected to the same top-level bit line; The in-memory calculation module includes a first storage unit, a second storage unit and a high-low resistance amplifying unit; the first end of the first storage unit is connected to the source line; the second end of the first storage unit is connected to the word line; the third end of the first storage unit is connected to the control end of the high-low resistance amplifying unit; the fourth end of the first storage unit is connected to the first write bit line; the first end of the second storage unit is connected to the bit line; the second end of the second storage unit is connected to the read word line; the third end of the second storage unit is connected to the control end of the high-low resistance amplifying unit; the fourth end of the second storage unit is connected to the second write bit line; the first end of the high-low resistance amplifying unit is connected to the top source line; the second end of the high-low resistance amplifying unit is connected to the top bit line; The first storage unit and the second storage unit are used to control the voltage of the control end of the high and low resistance amplification unit to amplify the current in the top bit line; the amplified currents output by multiple in-memory calculation modules located in the same column are accumulated to realize in-memory calculation.

2. The multi-bit in-memory computing array according to claim 1, characterized in that: The first storage unit includes: a first transistor, a second transistor and a first storage device; The first end of the first transistor is connected to the source line; the second end of the first transistor is connected to the first storage device; the control end of the first transistor is connected to the word line; the first end of the second transistor is connected to the first write bit line; the second end of the second transistor is connected to the first storage device; the control end of the second transistor is connected to the write word line; And / or, the second storage unit includes: a third transistor, a fourth transistor and a second storage device; The first end of the third transistor is connected to the bit line; the second end of the third transistor is connected to the second storage device; the control end of the third transistor is connected to the read word line; the first end of the fourth transistor is connected to the second write bit line; the second end of the fourth transistor is connected to the second storage device; and the control end of the fourth transistor is connected to the write word line.

3. The multi-bit in-memory computing array according to claim 2, characterized in that: The first memory device and the second memory device each include a SOT-MRAM device.

4. The multi-bit in-memory computing array according to claim 2, characterized in that: The resistance states of the first storage device and the second storage device are opposite.

5. The multi-bit in-memory computing array according to claim 1, characterized in that: The multi-bit in-memory computing array includes three computing sub-arrays; Each of the high and low resistance amplifying units in the first computing subarray comprises an amplifying transistor; the amplifying transistor is connected between the top source line and the top bit line; the control end of the amplifying transistor is connected to the first storage unit; Each of the high and low resistance amplifying units in the second computing subarray comprises two amplifying transistors; each of the amplifying transistors is connected in series between the top source line and the top bit line; and a control terminal of each of the amplifying transistors is connected to the first storage unit; Each of the high and low resistance amplifying units in the third computing subarray includes four amplifying transistors; each of the amplifying transistors is connected in series between the top source line and the top bit line; and the control end of each of the amplifying transistors is connected to the first storage unit.

6. The multi-bit in-memory computing array according to claim 1, characterized in that: The second ends of the second storage units of the in-memory computing modules in the same row are connected to the same read word line; the second ends of the first storage units of the in-memory computing modules in the same column are connected to the same word line.

7. A multi-bit in-memory computing circuit, characterized in that: include: An input module, a decoding module, an output module, a control module, and a multi-bit in-memory computing array as claimed in any one of claims 1 to 5; The input module, the multi-bit in-memory computing array and the output module are connected in series in sequence; the multi-bit in-memory computing array is also connected to the decoding module; the control module is respectively connected to the input module, the decoding module and the output module; The control module is used to generate a clock control signal to control the overall timing of in-memory calculations; the input module is used to convert a high-bit digital signal into multiple low-bit analog voltage pulse width signals; the decoding module is used to control a multi-bit in-memory calculation array according to the clock control signal; and the output module is used to convert the current signal output by the multi-bit in-memory calculation array into a digital signal.

8. The multi-bit in-memory computing circuit according to claim 7, characterized in that: The decoding module includes: a row decoding unit and a column decoding unit; The input end of the row decoding unit is connected to the control module; the first output end of the row decoding unit is connected to the multi-bit in-memory computing array through a bit line; the input end of the column decoding unit is connected to the second output end of the row decoding unit; the output end of the column decoding unit is connected to the multi-bit in-memory computing array through a word line and a write word line; The row decoding unit and the column decoder are used to activate the sub-computation array in the multi-bit in-memory calculation array according to the clock control signal.

9. The multi-bit in-memory computing circuit according to claim 7, characterized in that: The output module includes: a current mirror capacitor unit and a single slope analog-to-digital conversion unit; The current mirror capacitor unit is respectively connected to the multi-bit in-memory calculation array, the single slope analog-to-digital conversion unit and the control module; the single slope analog-to-digital conversion unit is also connected to the control module; The current mirror capacitor unit is used to convert the current signal output by the multi-bit in-memory computing array into a voltage amplitude signal; the single-slope analog-to-digital conversion unit is used to convert the voltage amplitude signal output by the current mirror capacitor unit into a digital signal.

10. The multi-bit in-memory computing circuit according to claim 9, characterized in that: The current mirror capacitor unit includes: a first current mirror transistor, a second current mirror transistor, a third current mirror transistor, a fourth current mirror transistor, a clamp transistor, a first switch, a second switch, a third switch, a fourth switch and a capacitor; The first end of the first current mirror transistor is connected to the power supply voltage; the second end of the first current mirror transistor is connected to the first end of the first switch; the first end of the second current mirror transistor is connected to the power supply voltage; the second end of the second current mirror transistor is connected to the first end of the second switch; the first end of the third current mirror transistor is connected to the power supply voltage; the second end of the third current mirror transistor is connected to the third switch; the control end of the first current mirror transistor, the control end of the second current mirror transistor and the control end of the third current mirror transistor are connected in parallel; the control end of the first current mirror transistor is connected to the control end of the fourth current mirror transistor; The first end of the fourth current mirror transistor is connected to the power supply voltage; the second end of the fourth current mirror transistor is connected to the control end of the first current mirror transistor; the second end of the fourth current mirror transistor is also connected to the first end of the clamp transistor; the second end of the clamp transistor is connected to the multi-bit in-memory computing array; the control end of the clamp transistor is connected to the clamp voltage; the second end of the first switch, the second end of the second switch and the second end of the third switch are all connected to the first end of the fourth switch; the second end of the fourth switch is connected to the first end of the capacitor; the first end of the capacitor is also connected to the single-slope analog-to-digital conversion unit; the second end of the capacitor is grounded.