Storage and calculation integrated circuit and storage and calculation integrated device
By implementing an integrated storage and calculation circuit that implements matrix multiplication and addition operations in the charge domain, the problem of low calculation accuracy in the existing technology is solved, the calculation accuracy and energy efficiency are improved, and a high-precision, energy-efficient integrated storage and calculation system is realized.
Patent Information
- Application Number
- CN202410703521.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-27
AI Technical Summary
Existing integrated storage and computing circuits have the problem of low calculation accuracy under high-parallel operation. This is mainly due to the nonlinear characteristics and clamping noise between the current on the source line and the voltage drop at both ends of the circuit device, causing the calculation results to differ from the ideal There is a deviation between the values.
Design an integrated storage and calculation circuit. By realizing matrix multiplication and addition operations in the charge domain, using weight unit groups, readout circuits and calculation units, combined with capacitance and switch structures, the nonlinearity, clamping noise and array path of circuit devices can be reduced. To reduce the impact of line voltage drop on calculation accuracy, a logic control circuit is used to enable multiple storage and calculation units and output circuits to jointly implement multiplication and addition operations in the charge domain.
It improves the calculation accuracy, reduces the nonlinearity and noise interference of circuit devices, enhances the energy efficiency and computing power density of the system, and realizes a high-precision and energy-efficient integrated storage and computing system.
Smart Images

Figure CN118551817A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a storage-computing-in-one circuit and a storage-computing-in-one device. Background Art
[0002] With the rapid growth in the scale and parameter capacity of deep neural networks and large language models, neural network operations require hardware platforms with higher computing power and larger weight capacity. The storage-computing integrated architecture based on non-volatile memory is a hardware architecture that can be used to accelerate the computing speed of neural networks. The storage unit and the computing circuit are integrated, which improves the parallelism of calculations while avoiding the frequent movement of data, thereby improving the overall energy efficiency, computing power density and weight density of the system. Depending on the type of operation signal, the implementation of the storage-computing integrated architecture can be divided into the current domain, voltage domain, charge domain and time domain. These different signal domains have different characteristics in terms of computing accuracy, system density and energy efficiency. Summary of the invention
[0003] At least one embodiment of the present disclosure provides a storage-computation integrated circuit, comprising: a plurality of storage-computation units arranged in n rows and m columns; wherein each of the storage-computation units comprises a weight unit group, a readout circuit and a calculation unit, wherein the weight unit group comprises a plurality of weight units, and each of the weight units is configured to store weights in the form of resistance values; the readout circuit is configured to couple with each of the weight units in the weight unit group to read the weights stored in each of the weight units; the calculation unit is configured to couple with the readout circuit, use the weights read by the readout circuit and the received input voltage to implement multiplication-addition operations in the charge domain, and output the multiplication-addition operation results.
[0004] For example, the integrated storage and computing circuit provided in at least one embodiment of the present disclosure also includes: n input circuits, each used to provide the input voltage to one row of n rows of storage and computing units; and m output circuits, each used to receive the multiplication and addition operation results from one column of m columns of storage and computing units.
[0005] For example, the integrated storage and computing circuit provided by at least one embodiment of the present disclosure also includes: m data lines extending along the column direction, wherein each of the data lines is used to couple a column of storage and computing units and an output circuit corresponding to the column of storage and computing units; n groups of word lines extending along the row direction, wherein each group of word lines is used for a row of storage and computing units; m source lines extending along the column direction and respectively used for the column of storage and computing units, and m bit lines extending along the column direction and respectively used for the column of storage and computing units.
[0006] For example, the storage and computing integrated circuit provided by at least one embodiment of the present disclosure also includes: a word line driving circuit, configured to be connected to the multiple weight units in the weight unit group in each of the storage and computing units through the word lines, respectively, for selecting the multiple weight units; a bit line and source line driving circuit, configured to be connected to the weight unit group in each of the storage and computing units and the read-out circuit through the bit lines and the source lines, respectively, for providing an operating voltage to the weight unit group in each of the storage and computing units and the read-out circuit.
[0007] For example, in the storage and calculation integrated circuit provided in at least one embodiment of the present disclosure, the calculation unit includes: a first input terminal, a second input terminal, a first capacitor, a second capacitor, a first switch and a second switch, wherein the first input terminal and the second input terminal are configured to receive the weight read by the readout circuit; the second end of the first capacitor is coupled to the second end of the second capacitor and serves as the output end of the calculation unit, wherein the capacitance value of the first capacitor is equal to the capacitance value of the second capacitor; the first switch is configured to couple to the first end of the first capacitor to control the first end of the first capacitor to couple to the input circuit or the clamping voltage source, and the second switch is configured to couple to the first end of the second capacitor to control the first end of the second capacitor to couple to the input circuit or the clamping voltage source.
[0008] For example, in the storage and computing integrated circuit provided in at least one embodiment of the present disclosure, each of the output circuits includes: a third capacitor, a third switch and a fourth switch, wherein the capacitance value of the third capacitor is equal to the sum of the capacitance values of the first capacitor and the second capacitor of each computing unit in a column of storage and computing units corresponding to the output circuit.
[0009] For example, the storage-computation integrated circuit provided by at least one embodiment of the present disclosure also includes: a logic control circuit, configured to control the first switch and the second switch of each of the computing units, and the third switch and the fourth switch of each of the output circuits, so that the multiple storage-computation units and the m output circuits jointly implement the multiplication and addition operations in the charge domain.
[0010] For example, in the storage-computation integrated circuit provided in at least one embodiment of the present disclosure, the weight unit group of each storage-computation unit includes: p weight units and a fifth switch, wherein the p weight units are connected to each other through a first connection line, and the fifth switch is configured to control the first connection line to be connected to the bit line corresponding to the column where the weight unit group is located for weight editing operation, or to be connected to the first read end for weight reading operation of the readout circuit.
[0011] For example, in the storage-computation-in-one circuit provided in at least one embodiment of the present disclosure, the logic control circuit is further configured as follows:
[0012] Controlling the third switch of each output circuit to be closed and the fourth switch to be opened, and controlling the first switch and the second switch in each calculation unit to be coupled to the clamping voltage source respectively, so that the voltage across the first capacitor and the voltage across the second capacitor are both the clamping voltage;
[0013] Control the third switch of each output circuit to be opened and the fourth switch to be closed, so that the first capacitor and the second capacitor located in the same column of storage and calculation units, and the third capacitor in the output circuit used for the same column of storage and calculation units share the charge stored by the third capacitor in the previous round of multiplication and addition operation;
[0014] According to the weight read by each readout circuit, control the first switch and the second switch in the calculation unit coupled to each readout circuit to be coupled to the input circuit respectively, or to keep being coupled to the clamping voltage source;
[0015] Controlling the fourth switch of each output circuit to be turned off, and starting to perform the next round of multiplication and addition operation;
[0016] The charge stored in the third capacitor during the current round of multiplication and addition operations is used for the next round of multiplication and addition operations.
[0017] For example, in the storage-computation integrated circuit provided in at least one embodiment of the present disclosure, the weight unit group of each storage-computation unit includes: p weight units, a sixth switch and a seventh switch, wherein each weight unit includes a positive weight sub-unit and a negative weight sub-unit, and the positive weight sub-unit and the negative weight sub-unit belonging to the same weight unit share a word line, the p positive weight sub-units are connected to each other through a second connection line, and the p negative weight sub-units are connected to each other through a third connection line; the sixth switch is configured to control the second connection line to be connected to the first bit line corresponding to the column where the weight unit group is located for weight editing operations on the positive weight sub-unit, or to be connected to the second read end for the weight reading operation of the positive weight sub-unit by the readout circuit; the seventh switch is configured to control the third connection line to be connected to the second bit line corresponding to the column where the weight unit group is located for weight editing operations on the negative weight sub-unit, or to be connected to the third read end for the weight reading operation of the negative weight sub-unit by the readout circuit.
[0018] For example, in the storage-computation integrated circuit provided in at least one embodiment of the present disclosure, each storage-computation unit also includes: a multiplexer configured to couple with the second read end, the third read end and the readout circuit, and sequentially select the positive weight sub-unit and the negative weight sub-unit of the same weight unit so that the readout circuit performs the weight reading operation.
[0019] For example, in the storage-computation-in-one circuit provided in at least one embodiment of the present disclosure, the logic control circuit is further configured as follows:
[0020] Controlling the third switch of each output circuit to be closed and the fourth switch to be opened, and controlling the first switch and the second switch in each calculation unit to be coupled to the clamping voltage source respectively, so that the voltage across the first capacitor and the voltage across the second capacitor are both the clamping voltage;
[0021] According to the weight of the negative weight sub-unit read by each readout circuit, control the first switch in the calculation unit coupled to the readout circuit to couple with the negative voltage output terminal of the input circuit, or keep coupling with the clamp voltage source;
[0022] Control the third switch of each output circuit to be opened and the fourth switch to be closed, so that the first capacitor and the second capacitor located in the same column of storage and calculation units, and the third capacitor in the output circuit used for the same column of storage and calculation units share the charge stored by the third capacitor in the previous round of multiplication and addition operation;
[0023] Controlling the first switch in the calculation unit coupled to each readout circuit to be coupled to the clamp voltage source, and controlling the second switch in the calculation unit coupled to the readout circuit to be coupled to the positive voltage output terminal of the input circuit or to remain coupled to the clamp voltage source according to the weight of the positive weight subunit belonging to the same weight unit as the negative weight subunit read by each readout circuit;
[0024] Controlling the fourth switch of each output circuit to be turned off, and starting to perform the next round of multiplication and addition operation;
[0025] In which, during the current round of multiplication and addition operations, the charge stored in the third capacitor is used for the next round of multiplication and addition operations, the negative voltage output end of the input circuit is configured to provide a negative input voltage to the calculation unit, and the positive voltage output end of the input circuit is configured to provide a positive input voltage to the calculation unit.
[0026] At least one embodiment of the present disclosure further provides a storage-computing integrated device, including the storage-computing integrated circuit provided by any of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.
[0028] Figure 1A It is a structural schematic diagram of a current-type storage-computation integrated circuit;
[0029] Figure 1B It is a structural schematic diagram of a voltage-type storage-computation integrated circuit;
[0030] Figure 2 A schematic diagram of the structure of a storage-computation integrated circuit provided in at least one embodiment of the present disclosure;
[0031] Figure 3 A schematic diagram of the structure of a storage and computing unit provided for at least one embodiment of the present disclosure;
[0032] Figure 4 A schematic diagram of the structure of a computing unit provided in at least one embodiment of the present disclosure;
[0033] Figure 5 A schematic diagram of the structure of a readout circuit provided by at least one embodiment of the present disclosure;
[0034] Figure 6 A schematic diagram of the structure of an output circuit provided by at least one embodiment of the present disclosure;
[0035] Figure 7 A schematic diagram of the structure of a storage and computing unit group provided for at least one embodiment of the present disclosure;
[0036] Figure 8A-8D A schematic diagram of a process for performing a z-th round of unipolar multiplication-addition operations provided by at least one embodiment of the present disclosure;
[0037] Fig. 9 A schematic diagram of the structure of another storage and computing unit group provided for at least one embodiment of the present disclosure;
[0038] Fig.10 A schematic diagram of the structure of another storage and computing unit provided for at least one embodiment of the present disclosure;
[0039] Figure 11A-11E A schematic diagram of a process for performing a z-th round of differential multiplication and addition operations provided by at least one embodiment of the present disclosure;
[0040] Fig.12 A schematic block diagram of an electronic device provided for at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0042] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0043] Memristor (e.g., resistive random access memory, phase change memory, conductive bridge memory, etc.) is a non-volatile device whose conductance state can be adjusted by applying external stimuli. As a two-terminal device, memristor has the characteristics of adjustable resistance and non-volatility, so it is widely used in storage-computing integrated architecture. According to Kirchhoff's current law and Ohm's law, an array composed of memristors can complete multiplication and accumulation calculations in parallel, and storage and calculation occur in each device in the array. Based on this storage-computing integrated architecture, storage-computing integrated computing can be realized without the need for large-scale data movement.
[0044] The traditional structures of the storage-computing integrated architecture based on non-volatile storage include current type and voltage type, which are combined with Figure 1A and Figure 1B Instructions are as follows.
[0045] For example, Figure 1A The figure is a schematic diagram of the structure of a current-type storage and calculation integrated circuit. Figure 1A As shown, the current-type storage-computation integrated circuit includes weight units 101 arranged in n rows and m columns and multiple digital-to-analog conversion circuits (DAC). The multiple digital-to-analog conversion circuits (DAC) convert the corresponding input signals into voltages of different amplitudes and apply them to the corresponding bit lines (BL). At the same time, the m source lines (SL[0]-SL[m-1]) are clamped to a fixed voltage. Each weight unit 101 converts the voltage difference between the source line and the bit line into a current and finally converges it to the corresponding source line. The current (ISL[0]-ISL[m-1]) on each source line (SL[0]-SL[m-1]) is the result of the multiplication and addition operation.
[0046] In this current-type storage-computation integrated circuit, there is a clamped noise voltage on the source line, which directly affects the voltage drop across the weight unit, resulting in errors in the calculation results. In addition, since the relationship between the current flowing through the circuit device and the voltage drop across the circuit device presents a significant nonlinear characteristic, and under high parallel operation, the large current on the source line may cause a significant voltage drop on the source line itself, resulting in a deviation between the calculation result and the ideal value, which seriously affects the calculation accuracy.
[0047] For example, Figure 1B This is a schematic diagram of the structure of a voltage-type storage and calculation integrated circuit. Figure 1B As shown, multiple digital-to-analog conversion circuits (DACs) convert corresponding input signals into voltages of different amplitudes and apply them to corresponding bit lines (BL). Figure 1A The current type storage and calculation integrated circuit, Figure 1B The source line (SL[0]-SL[m-1]) in the circuit is used as a high-resistance node, and the source line voltage (VSL[0]-VSL[m-1]) is used as the multiplication and addition operation result.
[0048] In this voltage-type storage and computing integrated circuit, the final floating voltage on the source line is within the input voltage range. However, too high an input voltage may cause circuit devices to malfunction, so that the range of variation of the source line voltage is limited, and thus a higher quantization resolution is required.
[0049] In view of the above shortcomings, one or more embodiments of the present disclosure propose a storage-computation integrated circuit and a storage-computation integrated device, which can be used to realize a high-precision, high-energy-efficiency storage-computation integrated system. The storage-computation integrated circuit includes: a plurality of storage-computation units arranged in n rows and m columns; wherein each storage-computation unit includes a weight unit group, a readout circuit and a calculation unit, wherein the weight unit group includes a plurality of weight units, and each weight unit is configured to store weights in the form of resistance values; the readout circuit is configured to couple with each weight unit in the weight unit group to read the weight stored in each weight unit; the calculation unit is configured to couple with the readout circuit, use the weight read by the readout circuit and the received input voltage to realize multiplication and addition operations in the charge domain, and output the multiplication and addition operation results. The storage-computation integrated circuit provided by the above embodiments of the present disclosure can realize matrix multiplication and addition operations in the charge domain, reduce the influence of nonlinearity, clamping noise, read interference and array wiring voltage drop of circuit devices on calculation accuracy, thereby improving calculation accuracy.
[0050] The present disclosure is described below by means of several specific examples. In order to keep the following description of the embodiments of the present disclosure clear and concise, detailed descriptions of known functions and known components may be omitted. When any component of the embodiments of the present disclosure appears in more than one figure, the component is represented by the same or similar reference numeral in each figure.
[0051] For example, Figure 2 A schematic diagram of the structure of a storage-computation-in-one circuit provided for at least one embodiment of the present disclosure.
[0052] like Figure 2 As shown, the storage-computation integrated circuit includes a plurality of storage-computation units arranged in n rows and m columns, for example, storage-computation unit [0,0], storage-computation unit [0,1] and storage-computation unit [n-1,m-1], etc. Each storage-computation unit includes a weight unit group, a readout circuit and a calculation unit ( Figure 2 Not marked in the figure, will be introduced below).
[0053] The storage-computation integrated circuit further includes: m data lines (DL[0]-DL[m-1]) extending in the column direction, n groups of word lines (WL[p-1:0]-WL[np-1:(n-1)p]) extending in the row direction, m source lines (SL[0]-SL[m-1]) extending in the column direction and respectively used for a column of storage-computation units, and m bit lines (BL[0]-BL[m-1]) extending in the column direction and respectively used for a column of storage-computation units. G [0]~BL G [m-1]). Each group of word lines is used for a row of storage units; each data line is used to couple a column of storage units and an output circuit (eg, output circuit 2030) corresponding to the column of storage units (eg, the first column of storage units).
[0054] like Figure 2 As shown, the integrated storage and computing circuit may also include: n input circuits (such as input circuit 2040 to input circuit 204 (n-1) as shown in the figure) and m output circuits (such as output circuit 2030 to output circuit 203 (m-1) as shown in the figure).
[0055] For example, the input circuit can be a digital-to-analog conversion circuit (DAC) for providing an input voltage for one row of n rows of storage and computing units. For example, the input circuit 2040 converts the input signal IN[0] into an input voltage VI[0] and provides it to the storage and computing units in the 0th row (storage and computing unit [0,0], storage and computing unit [0,1], ... and storage and computing unit [0,m-1]).
[0056] For example, the output circuit can be an analog-to-digital conversion circuit (ADC), which is used to receive the multiplication and addition operation results from one column of m columns of storage units and perform quantization operations on the multiplication and addition operation results. For example, the output circuit 2030 receives the multiplication and addition operation results of the storage units in the 0th column (storage unit [0,0], storage unit [1,1],... and storage unit [n-1,0]), and after quantizing the multiplication and addition operation results, outputs the final result DOUT[0].
[0057] like Figure 2As shown, the storage-computation integrated circuit further includes a bit line and source line driving circuit 201 and a word line driving circuit 202. The bit line and source line driving circuit 201 is configured to be connected to the weight unit group and the readout circuit in each storage-computation unit (through the bit line and the source line, respectively), so as to provide an operating voltage for the weight unit group and the readout circuit in each storage-computation unit. The word line driving circuit 202 is configured to be connected to multiple weight units in the weight unit group of each storage-computation unit through word lines, respectively, so as to select multiple weight units.
[0058] For example, in an embodiment of the present disclosure, the weight unit may be, for example, a 1T1R structure or a 2T2R structure, wherein the weight unit of the 1T1R structure includes a switching transistor and a memristor, and the weight unit of the 2T2R structure includes two switching transistors and two memristors. For example, the 2T2R structure is arranged as a difference type, which can be used to characterize positive and negative weight values. For example, a memristor may be a resistive memory, a phase change memory, a conductive bridge memory, etc., which is a non-volatile device whose conductivity state can be adjusted. The embodiments of the present disclosure have no restrictions on the type, structure, etc. of the memristor device.
[0059] For example, Figure 3 A schematic diagram of the structure of a storage and computing unit provided for at least one embodiment of the present disclosure.
[0060] like Figure 3 As shown, the storage computing unit [0,0] is described as an example, and other storage computing units storage computing unit [1,0]...storage computing unit [n-1,0] are the same. These storage computing units are located in the same column and are connected to the same data line DL. A group of word lines is used for a storage computing unit. For example, a group of word lines WL[p-1:0] is used for storage computing unit [0,0]. The storage computing unit [0,0] includes a weight unit group 310, a readout circuit 320 and a calculation unit 330. The weight unit group 310 includes p weight units (weight unit [0] to weight unit [p-1]), each weight unit is configured to store a weight in the form of a resistance value (or a conductance value). The input terminal BL of the readout circuit 320 R The input terminal BLD of the readout circuit 320 is coupled to each weight unit in the weight unit group 310 to read the weight stored in each weight unit in the weight unit group 310. The input terminal BLD of the readout circuit 320 is used to receive the reference voltage inputted externally by the storage unit [0,0]. The specific implementation of the readout circuit 320 will be described below in conjunction with Figure 5 The calculation unit 330 is configured to be coupled to the readout circuit 320, implement a unipolar multiplication-addition operation in the charge domain using the weight read by the readout circuit 320 and the received input voltage VI[0], and output the unipolar multiplication-addition operation result through the corresponding data line DL.
[0061] For example, Figure 4A schematic diagram of a computing unit provided in at least one embodiment of the present disclosure, wherein the computing unit is Figure 3 An example of the computing unit 330 in FIG.
[0062] like Figure 4 As shown, the calculation unit includes: a first input terminal IN1, a second input terminal IN2, a capacitor C U1 , capacitor C U2 , switch SW.CBN and switch SW.CBP. The first input terminal IN1 is configured to receive the weight W read by the readout circuit. N The second input terminal IN2 is configured to receive the weight W read by the readout circuit. P Capacitor C U1 The second end ( Figure 4 Medium Capacitor C U1 The right end of the capacitor C U2 The second end ( Figure 4 Medium Capacitor C U2 The right end of the computing unit is coupled to the node Out as the output end of the computing unit, and the output end Out of the computing unit is connected to the corresponding output circuit ( Figure 4 Not marked, please refer to Figure 2 ) coupling. Capacitor C U1 The capacitance value and capacitance C U2 The capacitance values are equal.
[0063] like Figure 4 As shown, the switch SW.CBN is configured to connect to the capacitor C U1 The first end ( Figure 4 The first capacitor C U1 The left end of the readout circuit is coupled to the weight W N Control capacitor C U1 The first end of is coupled to the input circuit or the clamping voltage source (not shown in the figure), that is, the capacitor C U1 The first terminal provides the input voltage VI N Or clamping voltage VCM as capacitor C U1 The switch SW.CBP is configured to connect to the capacitor C U2 The first end ( Figure 4 Medium Capacitor C U2 The left end of the readout circuit is coupled to the weight W P Control capacitor C U2 The first end of is coupled to the input circuit or the clamping voltage source (not shown in the figure), that is, the capacitor C U2 The first terminal provides the input voltage VI P Or clamping voltage VCM as capacitor C U2The positive bottom plate voltage. The input voltage VI is generated by the input circuit converting the input signal, and the clamping voltage VCM = 0. Capacitor C U1 The negative bottom plate voltage can be expressed as W N ×VI N , capacitor C U2 The positive bottom plate voltage can be expressed as W P ×VI P , where W N =0 or W P =0, W N ×VI N =0,W P ×VI P =0, which is equivalent to coupling with the clamping voltage source.
[0064] It should be noted that Figure 4 The calculation circuit shown is suitable for weight 1 bit (i.e., weight is 0 or 1), and it can be modified to be suitable for 2-bit weight, 3-bit weight, etc. For example, when the weight is 2 bits (i.e., weight W is 00, 01, 10, and 11), 4 voltage sources (e.g., clamp voltage source, first input voltage source, second input voltage source, and third input voltage source) can be set in the calculation circuit, and according to the weight read by the readout circuit, the switch controls the capacitor C in the calculation circuit. U1 or capacitor C U2 The first end is coupled to one of the above-mentioned four voltage sources, that is, according to the weight read by the read-out circuit, a clamping voltage VCM (corresponding to W=00), a first input voltage VI1 (corresponding to W=01), a second input voltage VI2 (corresponding to W=10) or a third input voltage VI3 (corresponding to W=11) is provided for the bottom plate voltage of the capacitor, and the values of voltage VI1, voltage VI2 and voltage VI3 are different.
[0065] For example, Figure 5 A schematic diagram of a readout circuit provided in at least one embodiment of the present disclosure, wherein the readout circuit is suitable for storing a weight of 0 (high resistance state) or 1 (low resistance state) in a storage unit. Figure 3 An example of the readout circuit 320 in FIG.
[0066] like Figure 5 As shown, the readout circuit includes 7 NMOS transistors, 6 PMOS transistors, an input terminal BL R , input terminal BL D and output terminal OUT. 7 NMOS transistors and 6 PMOS transistors follow Figure 5 The gates of transistors NM3 and NM4 are used to control the clamping voltage V of the read operation. CLAMP . Input terminal BLR The input terminal BL is coupled to each weight unit in the weight unit group to read the weight stored in the weight unit. D is configured to provide a set of reference signals to enable the readout circuit to distinguish the input terminal BL R The weight of the connected weight unit is 0 or 1. R When the weight of the connected weight unit is 0, the output terminal OUT outputs 0 (i.e., outputs a low-level signal); when the input terminal BL R When the weight of the connected weight unit is 1, the output terminal OUT outputs 1 (i.e., outputs a high-level signal). When the weight unit in the weight unit group is a 1T1R structure (1T1R represents a 1-bit weight), the input terminal BL D The provided reference signal can be generated by an external bias structure.
[0067] The readout process of the readout circuit includes three stages. The first stage is the pre-charge stage, providing a low-level signal for the gate SEN of transistor PM1 and transistor PM2, providing a low-level signal for the gate PRE of transistor PM3 and transistor PM4, charging the gates of transistors NM1 and transistor NM2, so that the gate voltages of transistors NM1 and transistor NM2 are equal to the power supply voltage VDD, at which time, the output terminal OUT outputs 1 (i.e., outputs a high-level signal). The second stage is the voltage difference establishment stage, providing a high-level signal for the gate PRE of transistors PM3 and transistor PM4, the weight (0 or 1) read by the readout circuit and the reference signal provided make the discharge speeds of transistors NM1 and transistor NM2 different, thereby establishing a voltage difference between the gate of transistor NM1 and the gate of transistor NM2. The third stage is the comparison readout stage, providing a high-level signal for the gate of transistor PM1 and transistor PM2, the readout circuit can compare the gate voltage of transistor NM1 and the gate voltage of transistor NM2, and output the comparison result (i.e., the readout weight) through the output terminal OUT. For example, if the weight read by the readout circuit is 0 (the weight unit is in a high-resistance state), in the second stage, the discharge speed of transistor NM1 is slower than the discharge speed of transistor NM2, so that the gate voltage of transistor NM1 is greater than the gate voltage of transistor NM2, and the output terminal OUT outputs 0. For example, if the weight read by the readout circuit is 1 (the weight unit is in a low-resistance state), in the second stage, the discharge speed of transistor NM1 is faster than the discharge speed of transistor NM2, so that the gate voltage of transistor NM1 is less than the gate voltage of transistor NM2, and the output terminal OUT outputs 1.
[0068] Combine the following Figure 4 The calculation circuit shown and Figure 5The readout circuit shown in FIG. 1 exemplarily describes the switch in the computing circuit according to the weight W read out by the readout circuit. N Method to control the bottom plate voltage of the capacitor. For example, when reading the weight W N =0, W N ×VI N =0×VI N =0, that is, the low level signal output by the output circuit (output terminal OUT) controls the switch SW.CBN to make the capacitor C U1 The first end of the capacitor C is coupled to the clamp voltage source. U1 The negative bottom plate voltage is equal to the clamping voltage VCM; when the weight W is read N =1, W N ×VI N =1×VI N =VI N That is, the high level signal output by the output circuit (output terminal OUT) controls the switch SW.CBN to make the capacitor C U1 The first end of the capacitor C is coupled to the input circuit. U1 The negative plate voltage is equal to the input voltage VI N The switch SW.CBP is set according to the weight W P Control capacitor C U2 The positive bottom plate voltage is controlled by the switch SW.CBN and the capacitor C U1 The method of measuring the negative bottom plate voltage is similar and will not be repeated here. It should be noted that in addition to the readout circuit provided in the above example, the storage and calculation integrated circuit provided in the embodiment of the present disclosure can also use other readout circuits to read the weights stored in the weight unit, and the embodiment of the present disclosure does not limit this.
[0069] For example, Figure 6 A schematic diagram of the structure of an output circuit provided in at least one embodiment of the present disclosure.
[0070] like Figure 6 As shown, the exemplary output circuit includes: a capacitor C DAC , switch SW.RST, switch SW.SP and switch control circuit. Capacitor C DAC Including capacitor Cr, capacitor C DAC[0] -Capacitor C DAC[k - 1] and capacitor C DAC[0] -Capacitor C DAC[k-1] Corresponding connected switch (C DAC Bottom plate switch), where capacitor Cr, capacitor C DAC[0] , ... and capacitor C DAC[k-1] in parallel, The switch control circuit is configured to control the capacitors CDAC[0] ~Capacitor C DAC[k-1] The corresponding connected switch makes the capacitor C DAC The capacitance value is equal to the capacitance C of all computing units in a column of storage units corresponding to the output circuit. U1 With capacitor C U2 Since a column of storage and computing units has n computing units, each computing unit includes a capacitor C U1 and a capacitor C U2 , and the capacitor C U1 The capacitance value is equal to the capacitance C U2 The switch control circuit controls the capacitance value of C DAC The bottom plate switch enables the capacitor C DAC The capacitance value satisfies Among them, C U =C U1 =C U2 The voltage terminal VCM, the voltage terminal VRP and the voltage terminal VRN in the output circuit are used to provide reference voltages for multiplication and addition calculations.
[0071] The storage-computation integrated circuit provided by at least one embodiment of the present disclosure further includes a logic control circuit. The logic control circuit is configured to control the switch SW.CBN and the switch SW.CBP of each computing unit and the switch SW.RST and the switch SW.SP of each output circuit, so that the multiple storage-computation units and the m output circuits in the storage-computation integrated circuit jointly realize multiplication and addition operations in the charge domain.
[0072] In the embodiments of the present disclosure, the structure and electronic devices of the storage and computing unit in the storage and computing integrated circuit can be adjusted according to the specific multiplication and addition operation type (for example, unipolar multiplication and addition operation, differential multiplication and addition operation or other multiplication and addition operation), and the present disclosure does not limit this.
[0073] For example, the multiplication and addition operation that can be implemented by the storage and calculation unit of the embodiment of the present disclosure is a unipolar multiplication and addition operation. For example, the storage and calculation unit can use Figure 3 The storage and computing unit shown, the weight unit group of the storage and computing unit may include: p weight units and a fifth switch, wherein the p weight units are connected to each other through a first connection line, and the fifth switch is configured to control the first connection line to be connected to the bit line corresponding to the column where the weight unit group is located for weight editing operation, or to be connected to the first read end for weight reading operation of the readout circuit.
[0074] For example, Figure 7 A schematic diagram of the structure of a storage and computing unit group provided for at least one embodiment of the present disclosure, wherein the storage and computing unit group is used for unipolar multiplication and addition operations.
[0075] like Figure 7As shown, the weight unit group 700 includes p weight units and a switch SW.B1, wherein the weight units in the weight unit group 700 are of 1T1R structure, and all weight units share a source line SL and a connection line BL. L (The above-mentioned example of the first connection line, also called a “local bit line”, is coupled only to the weight units of the weight unit group), and the gate of each weight unit is correspondingly connected to a word line WL.
[0076] Figure 7 The "weight unit [1:0]" in the table represents weight unit [0] and weight unit [1]. Figure 7 The connection between weight unit [0] and weight unit [1] is shown. Figure 7 As shown, the weight unit [0] includes a memristor R0 and a transistor T0, and the weight unit [1] includes a memristor R1 and a transistor T1, and the source of the transistor T0 and the source of the transistor T1 are coupled to the source line SL. The switch SW.B1 is configured to control the connection line BL L The bit line BL corresponding to the column where the weight unit group is located G (also called "global bit line", coupled to all weight unit groups in the column) is connected for weight editing operation on the weight unit, that is, modifying the weight stored in the weight unit; or, switch SW.B1 is configured to control the connection line BL L With the reading end BL R (For example, Figure 5 The input terminal BL of the readout circuit shown R ) is connected for use in the readout circuit's weight reading operation on the weight unit.
[0077] It should be noted that if Figure 7 As shown, since the weight unit group of each storage unit includes p weight units, the process of performing unipolar multiplication and addition operations requires a total of p rounds of unipolar multiplication and addition operations, and each weight unit in the weight unit group is selected in turn through the word line (WL[0]~WL[p-1]) to perform the unipolar multiplication and addition operation.
[0078] For example, Figure 8A-8D A schematic diagram of performing the zth round of unipolar multiplication and addition operations provided in at least one embodiment of the present disclosure, wherein z=[0, p-1]. In performing the unipolar multiplication and addition operations, the storage and calculation unit can use Figure 3 The storage unit shown, the weight unit group in the storage unit can be used Figure 7 The weight unit group shown; the calculation unit can use Figure 4 The calculation unit shown, and the weight W used by the calculation unit N and weight W P is the weight W of a weight unit read out by the readout circuit, that is, W N=W P =W, the input voltage VI in the calculation circuit N and input voltage VI P Equal means the same input voltage is provided by the same input circuit, that is, VI N =VI P =VI.
[0079] It should be noted that the logic control circuit controls the multiple storage and calculation units and m output circuits in the storage and calculation integrated circuit to jointly realize unipolar multiplication and addition operations in the charge domain. Figure 8A-8D The equivalent circuit of a column of storage and calculation units and a corresponding output circuit performing a unipolar multiplication and addition operation in the storage and calculation integrated circuit provided in at least one embodiment of the present disclosure, wherein the total capacitance of n calculation units in a column of storage and calculation units can be equivalent to capacitance C1, and the total capacitance of the output circuit coupled to the column of storage and calculation units can be equivalent to capacitance C DAC As mentioned above, due to the capacitance C of each computing unit U1 With capacitor C U2 In parallel, capacitor C1 and capacitor C DAC Satisfies the relationship:
[0080] like Fig. 8A As shown, before starting the zth round of unipolar multiplication and addition operations, the capacitor C DAC The top plate retains the calculation result V[z-1] of the z-1th round of unipolar multiplication and addition operations (i.e., the capacitor C DAC The top plate voltage is V[z-1]). The logic control circuit controls the switch SW.RST of each output circuit to be closed, the switch SW.SP to be opened, and controls the switch SW.CBN and the switch SW.CBP in each computing unit to be coupled to the clamp voltage source at the same time (see Figure 4 ) so that both ends of the capacitor C1 are coupled to the clamping voltage source, that is, the voltage across the capacitor C1 is the clamping voltage VCM (the clamping voltage VCM is represented as a 0 level).
[0081] like Figure 8B As shown, the logic control circuit controls the switch SW.RST of each output circuit to be disconnected and the switch SW.SP to be closed, so that all the capacitors C in the same column of storage and calculation units are U1 and capacitor C U2 , and the capacitor C used for the output circuit of the storage unit in the same column DAC Shared capacitor C DAC The charge stored in the z-1th round of unipolar multiplication and addition operation (i.e., the equivalent capacitance C1 of a column of storage units and the capacitance C1 of the output circuit for the column of storage units) DAC Shared capacitor C DAC The charge stored in the z-1th round of unipolar multiplication and addition operation) is stored in the capacitor C at this time.DAC The top plate voltage becomes V[z-1] / 2.
[0082] like Figure 8C As shown, the logic control circuit controls the switches SW.CBN and SW.CBP in the calculation unit coupled to the readout circuit to couple to the input circuit at the same time (when the read weight W is 1), or to keep coupling to the clamp voltage source (when the read weight W is 0) according to the weight read out by each readout circuit. At this time, the input circuit provides the input voltage VI (VI N =VI P =VI), Figure 8C The bottom plate voltage of capacitor C1 can be expressed as According to the charge conservation theorem, the capacitance C DAC The top plate voltage becomes (V [z-1] +ΣVI×W) / 2.
[0083] like Fig.8D As shown, the logic control circuit controls the switch SW.SP of each output circuit to be turned off to end the zth round of unipolar multiplication and addition operations, and at the same time, the z+1th round of unipolar multiplication and addition operations can be started. The calculation result of the zth round of unipolar multiplication and addition operations, that is, the capacitance C DAC The top plate voltage V [z] =(V [z-1] +ΣVI×W) / 2, used for the z+1th round of unipolar multiplication and addition operations. Specifically, the capacitor C DAC The stored charge is used for the z+1th round of unipolar multiplication-addition operations.
[0084] The process of implementing unipolar multiplication and addition is to repeat the above Figure 8A-8D As shown in the operation process, after p rounds of unipolar multiplication and addition operations, the top plate voltage of capacitor CDAC becomes Among them, V [p] That is, the result of the unipolar multiplication and addition operation of a column of storage cells.
[0085] For example, the multiplication and addition operation that can be implemented by the storage and calculation unit of the embodiment of the present disclosure can be a differential multiplication and addition operation. For example, the weight unit group of the storage and calculation unit includes: p weight units, a sixth switch and a seventh switch. Each weight unit includes a positive weight sub-unit and a negative weight sub-unit, and the positive weight sub-unit and the negative weight sub-unit belonging to the same weight unit share a word line. The p positive weight sub-units are connected via a second connection line (for example, the connection line BL in the example below). LP ) are connected to each other, and the p negative weight sub-units are connected to each other through a third connection line (for example, the connection line BL in the example below) LN) are connected to each other. The sixth switch is configured to control the second connection line to be connected to the first bit line corresponding to the column where the weight unit group is located for weight editing operation on the positive weight sub-unit, or to be connected to the second read end for the weight reading operation of the readout circuit on the positive weight sub-unit. The seventh switch is configured to control the third connection line to be connected to the second bit line corresponding to the column where the weight unit group is located for weight editing operation on the negative weight sub-unit, or to be connected to the third read end for the weight reading operation of the readout circuit on the negative weight sub-unit.
[0086] For example, Fig. 9 A schematic diagram of the structure of another storage and computing unit group provided for at least one embodiment of the present disclosure, wherein the storage and computing unit group is used for differential multiplication and addition operations.
[0087] like Fig. 9 As shown, the storage and computing unit group 900 includes p weight units, a switch SW.BP and a switch SW.BN. Each weight unit includes a positive weight sub-unit and a negative weight sub-unit, and the positive weight sub-unit and the negative weight sub-unit belonging to the same weight unit share a word line. For example, weight unit 0 (not marked in the figure) includes positive weight sub-unit 0 and negative weight sub-unit 0, and positive weight sub-unit 0 and negative weight sub-unit 0 share word line WL[0]. The p positive weight sub-units and the p negative weight sub-units share a source line SL. The p positive weight sub-units (positive weight sub-unit 0 to positive weight sub-unit p-1) are connected via the connection line BL LP (Example of the above second connection line) is connected to each other, and p negative weight sub-units (negative weight sub-unit 0 to negative weight sub-unit p-1) are connected to each other through the connection line BL LN The switch SW.BP is configured to control the connection line BL. LP The bit line BL corresponding to the column where the weight unit group 900 is located GP Connected to the weight edit operation of the positive weight subunit, or to the read end BL RP The switch SW.BN is configured to control the connection line BL. GN The bit line BL corresponding to the column where the weight unit group 900 is located GN Connected to the weight edit operation for negative weight subunits, or to the read port BL RN Connected for use in the readout circuit's weight read operation on the negative weight sub-unit.
[0088] like Fig. 9 As shown, the positive weight sub-unit and the negative weight sub-unit in the weight unit group 900 are both 1T1R structures. Fig. 9 FIG. 1 shows the connection mode of positive weight subunit 0, positive weight subunit 1, negative weight subunit 0 and negative weight subunit 1. Fig. 9As shown, the positive weight subunit 0 includes a transistor T P0 and memristor R P0 , the positive weight subunit 1 includes a transistor T P1 and memristor R P1 , the negative weight subunit 0 includes transistor T N0 and memristor R N0 , the negative weight subunit 1 includes a transistor T N1 and memristor R N1 . Transistor T P0 、T P1 、T N0 and T N1 The sources of transistors T P0 and transistor T N0 The gate of transistor T is coupled to word line WL[0]. P1 and transistor T N1 The gate of the memristor R is coupled to the word line WL[1]. P0 One end and transistor T P0 The drain connection of the memristor R P0 The other end of the connection line BL LP Connection: Memristor R P1 One end and transistor T P1 The drain connection of the memristor R P1 The other end of the connection line BL LP Connection: Memristor R N0 One end and transistor T N0 The drain connection of the memristor R N0 The other end of the connection line BL LN (Example of the third connection line above) connection; memristor R N1 One end and transistor T N1 The drain connection of the memristor R N1 The other end of the connection line BL LN Connection. Based on the connection mode of positive weight subunit 0, positive weight subunit 1, negative weight subunit 0 and negative weight subunit 1, the connection mode between the p positive weight subunits and the p negative weight subunits in the weight unit group 900 is not repeated. In addition, the embodiment of the present disclosure does not limit the structure (1T1R or 2T2R) of the positive weight subunit and the negative weight subunit in the weight unit group 900.
[0089] For example, when the multiplication and addition operation to be implemented is a differential multiplication and addition operation, the storage and calculation unit also includes a multiplexer for sequentially selecting the positive weight subunit and the negative weight subunit of the same weight unit so that the readout circuit can perform a weight reading operation.
[0090] For example, Fig.10A schematic diagram of the structure of another storage and calculation unit provided in at least one embodiment of the present disclosure, wherein the storage and calculation unit adopts Fig. 9 The weight unit group shown is used to implement differential multiplication and addition operations.
[0091] like Fig.10 As shown, the storage unit [0,0] is taken as an example for description, and other storage units [1,0] ... storage units [n-1,0] are the same, and these storage units are located in the same column and connected to the same data line DL. The storage unit [0,0] includes: a weight unit group 1010, a readout circuit 1020, a calculation unit 1030 and a multiplexer MUX. The weight unit group 1010 can be, for example, Fig. 9 The storage and computing unit group 900 is shown, and will not be described in detail here. RP , Read end BL RN and coupled to the readout circuit 1020. The multiplexer MUX is configured to sequentially select the positive weight subunit and the negative weight subunit of the same weight unit so that the readout circuit 1020 performs a weight reading operation. For example, the multiplexer MUX first selects the positive weight subunit [0] of the weight unit 10100 for the readout circuit 1020 to read the weight, and then the multiplexer MUX first selects the negative weight subunit [0] of the weight unit 10100 for the readout circuit 1020 to read the weight. The structure and function of the readout circuit 1020 and the calculation unit 1030 can refer to the readout circuit and the calculation unit provided in the above example, and will not be repeated here.
[0092] It should be noted that if Fig.10 As shown, since the weight unit group of each storage unit includes p weight units, and each weight unit includes a positive weight sub-unit and a negative weight sub-unit, the process of performing differential multiplication and addition operations requires a total of p rounds of differential multiplication and addition operations, and in each round of differential multiplication and addition operations, it is necessary to first select a weight unit in the weight unit group through the word line, and then select the positive weight sub-unit and the negative weight sub-unit of the weight unit in turn through the multiplexer so that the readout circuit can perform a weight reading operation.
[0093] For example, Figure 11A-11E A schematic diagram of performing the zth round of differential multiplication and addition operations provided in at least one embodiment of the present disclosure, wherein z=[0, p-1]. In performing the differential multiplication and addition operations, the storage and calculation unit can use Fig.10 The storage unit shown, the weight unit group in the storage unit can be used Fig. 9 The weight unit group shown; the calculation unit in the storage unit can be Figure 4 The calculation unit shown, and the weight W used by the calculation unit Nis the weight of a positive weight sub-unit read out by the readout circuit, and the weight W used is P The weight of a negative weight sub-unit read out by the readout circuit.
[0094] It should be noted that the logic control circuit controls the multiple storage and calculation units and m output circuits in the storage and calculation integrated circuit to jointly realize differential multiplication and addition operations in the charge domain. Figure 11A-11E The equivalent circuit of a column of storage and calculation units and a corresponding output circuit performing differential multiplication and addition operations in the storage and calculation integrated circuit provided by at least one embodiment of the present disclosure, wherein the capacitance C of n calculation units in a column of storage and calculation units is U1 The capacitance C of n computing units is connected in parallel. U2 If the n calculation units are connected in parallel, the capacitance C U1 It can be equivalent to capacitor C2, the capacitance C of n computing units U2 It can be equivalent to capacitor C3, and the total capacitance of the output circuit coupled to the column of storage and calculation units can be equivalent to capacitor C DAC , and satisfy the relationship: C U1 =C U2 , C2=nC U1 , C3=nC U2 ,
[0095] like Fig.11A As shown, before starting the zth round of differential multiplication and addition operations, the capacitor C DAC The top plate retains the calculation result V[z-1] of the z-1th round of differential multiplication and addition (i.e., the capacitor C DAC The top plate voltage is V[z-1]). The logic control circuit controls the switch SW.RST of each output circuit to be closed, the switch SW.SP to be opened, and controls the switch SW.CBN and the switch SW.CBP in each computing unit to be coupled to the clamp voltage source at the same time (see Figure 4 ) so that both ends of capacitor C2 and both ends of capacitor C3 are coupled to the clamping voltage source, that is, the voltage across capacitor C2 is the clamping voltage VCM, and the voltage across capacitor C3 is the clamping voltage VCM (the clamping voltage VCM is represented as 0 level).
[0096] like Fig. 11B As shown, the logic control circuit controls the switch SW.CBN in the calculation unit coupled to the readout circuit to couple with the negative voltage output terminal of the input circuit according to the weight of the negative weight sub-unit read by each readout circuit (that is, the read weight W N =1), or remain coupled to the clamp voltage source (ie, the read weight W N =0), wherein the negative voltage output terminal of the input circuit is the negative input voltage VI provided by the calculation unit N , Fig. 11BThe bottom plate voltage of capacitor C2 can be expressed as
[0097] like Fig. 11C As shown, the logic control circuit controls the switch SW.RST of each output circuit to be opened and the switch SW.SP to be closed, so that the capacitors C2, C3 and C DAC Shared capacitor C DAC The charge stored in the z-1th round of differential multiplication and addition operation. At this time, the capacitor C DAC The top plate voltage becomes V[z-1] / 2.
[0098] like Fig.11D As shown, the logic control circuit controls the switch SW.CBN in the calculation unit coupled to each readout circuit to couple with the clamp voltage source, and reads the positive weight sub-unit (with the positive weight sub-unit) read by each readout circuit. Fig. 11B The negative weight sub-unit read from the readout circuit belongs to the same weight unit), controls the switch SW.CBP in the calculation unit coupled to each readout circuit to couple with the positive voltage output terminal of the input circuit (that is, the read weight W P =1), or maintain coupling with the clamp voltage source (ie, the read weight W P =0), where the positive voltage output terminal of the input circuit provides a positive input voltage VI for the calculation circuit. P , Fig.11D The bottom plate voltage of capacitor C3 can be expressed as According to the charge conservation theorem, the capacitance C DAC The top plate voltage becomes (2V[z-1]+ΣVI P ×W P -ΣVI N ×W N ) / 4.
[0099] like Fig.11E As shown, the logic control circuit controls the switch SW.SP of each output circuit to be turned off to end the zth round of differential multiplication and addition operations, and at the same time, the z+1th round of differential multiplication and addition operations can be started. The calculation result of the zth round of unipolar multiplication and addition operations, that is, the capacitance C DAC The top plate voltage V [z] =(2V[z-1]+ΣVI P ×W P -ΣVI N ×W N ) / 4, used for the z+1th round of differential multiplication and addition operations. Specifically, the capacitor C DAC The stored charge is used for the z+1th round of unipolar multiplication-addition operations.
[0100] The process of implementing differential multiplication and addition is to repeat the above Figure 11A-11EThe operation process shown in the figure shows that after p rounds of differential multiplication and addition operations, the capacitor C DAC The top plate voltage becomes Among them, V [p] That is, the calculation result of a column of storage cells performing a differential multiplication and addition operation.
[0101] For example, after completing the multiplication and addition operation of the input signal in the charge domain, the output circuit can directly compare the capacitor C DAC The top plate voltage and reference voltage are determined and the subsequent quantization process is completed.
[0102] For example, based on the storage-computation integrated circuit provided by at least one embodiment of the present disclosure, the input voltage provided by the input circuit is set to a voltage value representing an 8-bit input. Accordingly, each group of weight units includes 8 weight units, and 8-bit weights (code words input from W[0] to W[7]) are stored therein respectively. After executing 8 rounds of multiplication and addition operations, the storage-computation integrated circuit can realize matrix-vector multiplication operations with a parallelism of n, an output parallelism of m, and a calculation accuracy of INT8.
[0103] At least one embodiment of the present disclosure further provides a storage-computing integrated device, which includes the storage-computing integrated circuit provided by any embodiment of the present disclosure.
[0104] For example, Fig.12 A schematic block diagram of an electronic device provided by at least one embodiment of the present disclosure is shown.
[0105] The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc., and may also be any combination of data processing devices and hardware, which is not limited by the embodiments of the present disclosure. Fig.12 The electronic device 1200 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0106] For example, Fig.12As shown, in some examples, the electronic device 1200 includes a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which may include the above-mentioned storage-computing integrated device and the storage-computing integrated device includes the storage-computing integrated circuit of any of the above-mentioned embodiments. The processing device can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage device 1208 to the random access memory (RAM) 1203. In RAM 1203, various programs and data required for the operation of the computer system are also stored. The processor 1201, ROM 1202 and RAM 1203 are connected to each other through a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0107] For example, the following components may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209 which may also include, for example, a network interface card such as a LAN card, a modem, etc. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or by wire to exchange data, and perform communication processing via a network such as the Internet. The drive 1210 is also connected to the I / O interface 1205 as needed. Removable media 1211, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive 1210 as needed, so that the computer program read therefrom can be installed into the storage device 1208 as needed. Although Fig.12 The electronic device 1200 is shown to include various devices, but it should be understood that it is not required to implement or include all of the devices shown. More or fewer devices may be implemented or included instead.
[0108] For example, the electronic device 1200 may further include a peripheral interface ( Fig.1211a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n standards), Voice over Internet Protocol (VoIP), Wi-MAX, protocols for email, instant messaging and / or short message service (SMS), or any other suitable communication protocol.
[0109] In addition to the above exemplary descriptions, there are a few points that need to be explained:
[0110] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure, and other structures may refer to the general design.
[0111] (2) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.
[0112] The above description is merely an exemplary embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure. The protection scope of the present disclosure is determined by the appended claims.
Claims
1. A storage and computing integrated circuit, comprising: A plurality of storage and computation units arranged in n rows and m columns; Each of the storage and calculation units includes a weight unit group, a readout circuit and a calculation unit, wherein: The weight unit group includes a plurality of weight units, each of the weight units is configured to store a weight in the form of a resistance value; The readout circuit is configured to be coupled to each of the weight units in the weight unit group to read the weight stored in each of the weight units; The calculation unit is configured to be coupled to the readout circuit, implement a multiplication-addition operation in the charge domain using the weight read by the readout circuit and the received input voltage, and output a multiplication-addition operation result.
2. The storage-computation-in-one circuit according to claim 1, further comprising: n input circuits, respectively used to provide the input voltage to one row of the n rows of storage and calculation units; The m output circuits are respectively used to receive the multiplication and addition operation results from one column of the m columns of storage and calculation units.
3. The storage-computation-in-one circuit according to claim 2, further comprising: m data lines extending along the column direction, wherein each of the data lines is used to couple a column of storage and calculation units and an output circuit corresponding to the column of storage and calculation units; n groups of word lines extending along the row direction, wherein each group of word lines is used for a row of storage and computing units; m source lines extending along the column direction and respectively used for the storage and computing units in the column, and m bit lines extending along the column direction and respectively used for the storage and computing units in the column.
4. The storage-computation-in-one circuit according to claim 3, further comprising: A word line driving circuit is configured to be connected to the plurality of weight units in the weight unit group in each of the storage and calculation units through the word lines respectively, so as to select the plurality of weight units; The bit line and source line driving circuit is configured to be connected to the weight unit group and the readout circuit in each storage unit through the bit line and the source line respectively, so as to provide an operating voltage to the weight unit group and the readout circuit in each storage unit.
5. The storage-computation-in-one circuit according to claim 2, wherein: The calculation unit includes: a first input terminal, a second input terminal, a first capacitor, a second capacitor, a first switch and a second switch, wherein: The first input terminal and the second input terminal are configured to receive the weight read by the readout circuit; The second end of the first capacitor is coupled to the second end of the second capacitor and serves as an output end of the calculation unit, wherein the capacitance value of the first capacitor is equal to the capacitance value of the second capacitor; The first switch is configured to couple to the first end of the first capacitor to control the first end of the first capacitor to couple to the input circuit or the clamping voltage source, and the second switch is configured to couple to the first end of the second capacitor to control the first end of the second capacitor to couple to the input circuit or the clamping voltage source.
6. The storage-computation-in-one circuit according to claim 5, wherein: Each of the output circuits comprises: a third capacitor, a third switch and a fourth switch, wherein: The capacitance value of the third capacitor is equal to the sum of the capacitance values of the first capacitor and the second capacitor of each computing unit in a column of storage and computing units corresponding to the output circuit.
7. The storage-computation-in-one circuit according to claim 6, further comprising: The logic control circuit is configured to control the first switch and the second switch of each of the computing units, and the third switch and the fourth switch of each of the output circuits, so that the multiple storage and computing units and the m output circuits jointly implement the multiplication and addition operation in the charge domain.
8. The storage-computation-in-one circuit according to claim 7, wherein: The weight unit group of each storage and calculation unit includes: p weight units and a fifth switch, wherein: The p weight units are connected to each other via a first connection line, The fifth switch is configured to control the first connection line to be connected to the bit line corresponding to the column where the weight unit group is located for weight editing operation, or to be connected to the first reading end for weight reading operation of the readout circuit.
9. The storage-computation-in-one circuit according to claim 8, wherein: The logic control circuit is further configured to: Controlling the third switch of each of the output circuits to be closed and the fourth switch to be opened, and controlling the first switch and the second switch in each calculation unit to be coupled to the clamping voltage source respectively, so that the voltage across both ends of the first capacitor and the voltage across both ends of the second capacitor are both the clamping voltage; Controlling the third switch of each output circuit to be opened and the fourth switch to be closed, so that the first capacitor and the second capacitor located in the same column of storage and calculation units, and the third capacitor in the output circuit used for the same column of storage and calculation units share the charge stored by the third capacitor in the previous round of multiplication and addition operation; According to the weight read by each of the readout circuits, control the first switch and the second switch in the calculation unit coupled to each of the readout circuits to be coupled to the input circuit respectively, or to keep being coupled to the clamping voltage source; as well as Control the fourth switch of each output circuit to be turned off, and start to perform the next round of multiplication and addition operation, The charge stored in the third capacitor during the current round of multiplication and addition operations is used for the next round of multiplication and addition operations.
10. The storage-computation-in-one circuit according to claim 7, wherein: The weight unit group of each storage and calculation unit includes: p weight units, a sixth switch and a seventh switch, wherein: Each of the weight units includes a positive weight sub-unit and a negative weight sub-unit, and the positive weight sub-unit and the negative weight sub-unit belonging to the same weight unit share a word line, the p positive weight sub-units are connected to each other through a second connection line, and the p negative weight sub-units are connected to each other through a third connection line, The sixth switch is configured to control the second connection line to be connected to the first bit line corresponding to the column where the weight unit group is located for weight editing operation on the positive weight sub-unit, or to the second read terminal BL RP connected for the readout circuit to perform a weight read operation on the positive weight subunit, The seventh switch is configured to control the third connection line to be connected to the second bit line corresponding to the column where the weight unit group is located for weight editing operation on the negative weight sub-unit, or to the third read terminal BL RN The device is connected for the readout circuit to perform a weight read operation on the negative weight sub-unit.
11. The storage-computation-in-one circuit according to claim 10, wherein: Each of the storage and calculation units also includes: A multiplexer is configured to be coupled to the second read terminal, the third read terminal and the readout circuit, and sequentially select the positive weight subunit and the negative weight subunit of the same weight unit so that the readout circuit performs the weight read operation.
12. The storage-computation-in-one circuit according to claim 10, wherein: The logic control circuit is further configured to: Controlling the third switch of each of the output circuits to be closed and the fourth switch to be opened, and controlling the first switch and the second switch in each calculation unit to be coupled to the clamping voltage source respectively, so that the voltage across both ends of the first capacitor and the voltage across both ends of the second capacitor are both the clamping voltage; According to the weight of the negative weight sub-unit read by each of the readout circuits, control the first switch in the calculation unit coupled to the readout circuit to couple to the negative voltage output terminal of the input circuit, or keep coupling to the clamp voltage source; Controlling the third switch of each output circuit to be opened and the fourth switch to be closed, so that the first capacitor and the second capacitor located in the same column of storage and calculation units, and the third capacitor in the output circuit used for the same column of storage and calculation units share the charge stored by the third capacitor in the previous round of multiplication and addition operation; Controlling the first switch in the calculation unit coupled to each of the readout circuits to be coupled to the clamping voltage source, and controlling the second switch in the calculation unit coupled to the readout circuit to be coupled to the positive voltage output terminal of the input circuit or to remain coupled to the clamping voltage source according to the weight of the positive weight subunit belonging to the same weight unit as the negative weight subunit read by each of the readout circuits; Control the fourth switch of each output circuit to be turned off, and start to perform the next round of multiplication and addition operation, In which, during the current round of multiplication and addition operations, the charge stored in the third capacitor is used for the next round of multiplication and addition operations, the negative voltage output end of the input circuit is configured to provide a negative input voltage to the calculation unit, and the positive voltage output end of the input circuit is configured to provide a positive input voltage to the calculation unit.
13. A storage and computing integrated device, comprising the storage and computing integrated circuit as described in any one of claims 1-12.
Citation Information
Patent Citations
Nonvolatile memory device performing multiplicaiton and accumulation operation
CN112447228A
Cited By
Storage and calculation integrated calculation error low-power-consumption test circuit
CN120913620A
A low-power test circuit for computing errors of a memory-computing integrated circuit
CN120913620B
