A method for designing a weight-separated storage and computation array for matrix multiplication

By separating the weight bits of the matrix multiplication operation in the storage and calculation array and inputting electrical pulses of different amplitudes, the problems of high data transmission energy consumption and low calculation accuracy in the traditional storage and calculation separation architecture are solved, and a more efficient matrix multiplication operation is achieved. .

CN113343585BActive Publication Date: 2024-08-23JIANGNAN UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110733207.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2024-08-23
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

The traditional storage and calculation separation architecture results in high data transmission energy consumption and asynchronous storage rate and operation rate. Floating gate devices have problems with high bit error rate and low calculation accuracy in the storage and calculation unit, especially in matrix multiplication operations, which are difficult to perform efficiently. Input of multi-bit data.

Method used

Using a weight-bit discrete storage and calculation array design, each weight bit of the multi-bit input data is separated and input into different storage and calculation matrices through electrical pulses of different amplitudes for calculation, thereby reducing the number of electrical input bits for each storage and calculation unit. , improve calculation precision and algorithm accuracy.

Benefits of technology

The power consumption of the storage array is reduced, the accuracy and energy efficiency ratio of matrix multiplication operations are improved, and the loss of calculation accuracy caused by input voltage fluctuations is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113343585B
    Figure CN113343585B
Patent Text Reader

Abstract

The present invention discloses a method for designing a weight-separated storage and calculation array for matrix multiplication operation, the method comprising: step 1: designing a same weight array according to the binary bit number a of the electrical input data to form a storage and calculation array; step 2: weight-separating the binary electrical input data of the storage and calculation array, and inputting different weights into the input end of the corresponding weight array with electrical pulses of different amplitudes; step 3: each storage and calculation unit of the storage and calculation array performs multiplication operation on the received electrical pulse input and pre-programmed scalar data; step 4: in the storage and calculation array, the current of all storage and calculation units on each row is accumulated and output from the analog output port to complete the matrix multiplication operation. The method of the present invention minimizes the number of electrical input bits of each storage and calculation unit, reduces the power consumption of the storage and calculation array, and improves the energy efficiency ratio, while improving the calculation accuracy of the matrix multiplication of the storage and calculation array and the accuracy of the algorithm deployed by the storage and calculation array.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for designing a weight-separated storage and computing array for matrix multiplication operations, and belongs to the field of storage and computing integration and brain-like computing. Background Art

[0002] Most traditional computer architectures are von Neumann architectures. This architecture with separated storage and computing will not only lead to excessive energy consumption during data transmission, but also cause the data storage rate and computing rate to be out of sync, thus affecting the overall computing speed of the computer. In-memory computing realizes the integration of storage and computing, breaking the "speed wall" and "power consumption wall" of storage and computing. At the same time, by utilizing the characteristics of non-volatile storage and computing devices, a single device can complete a multiplication and addition operation, and the entire device array can also have the characteristics of fast speed, high parallelism, and good energy efficiency, which is suitable for neural networks that need to perform a large number of multiplication and addition operations.

[0003] In the design of in-memory computing, each storage and computing unit not only stores data but also performs operations on the data. Compared with traditional storage units, the biggest difference between storage and computing units is that each unit needs to store more information. As the information that needs to be stored in a single device increases, the voltage band in the linear working area of ​​the device will increase exponentially. As a result, there is a high probability of overlap between voltage bands, resulting in bit errors in data storage. When a traditional floating gate unit is used as a storage unit, in order to maintain the stability of the stored data, a single device only stores 3-bit data at most. When a floating gate device is used as a storage and computing unit, at least 8-bit information needs to be stored, that is, there are 256 voltage bands in each storage and computing unit, which results in a relatively high bit error rate and read and write operation accuracy.

[0004] Due to the limitation of the linear region of the floating gate device itself, if the number of voltage bands is large, each voltage band will be very narrow; and each storage and calculation unit has two storage and calculation operands, the pre-programmed stored information is used as an operand, and the other operand is the input data obtained through electrical input. When multi-bit data is input, and the pre-programmed stored operand is multi-bit data, even a small input voltage fluctuation will cause calculation errors. However, reducing the number of bits of input data will reduce the calculation precision and accuracy of the original algorithm. Therefore, when multi-bit data is input according to the traditional electrical input method, the overall calculation precision of the storage and calculation array is low. Summary of the invention

[0005] In order to solve the above-mentioned problems that currently exist, the present invention provides a method for designing a weighted discrete storage and calculation array for matrix multiplication operations, which designs the storage and calculation array with weighted discreteness, separates each weight bit of multi-bit input data and inputs it through electric pulses by different storage and calculation matrices, thereby improving the overall calculation accuracy of the storage and calculation array. The number of electrical input bits of each storage and calculation unit is minimized to improve the calculation accuracy, while also ensuring the accuracy of the original algorithm.

[0006] The present invention provides a weight-separated storage and calculation array design method for matrix multiplication operation, which is suitable for matrix multiplication operation in in-memory calculation.

[0007] According to the weighted bit separation storage and computing array design method of the present invention, weighted bit separation refers to separating the different weighted bits of the electrical input data of the storage and computing array. The basic idea of ​​the present invention is to perform weighted bit separation on the electrical input data of the storage and computing array, and input the different weighted bits of the electrical input data into different arrays for calculation with electrical pulses of different amplitudes.

[0008] According to the weight-separated storage and calculation array design method for matrix multiplication operation of the present invention, the storage and calculation array is composed of storage and calculation units, each storage and calculation unit (CIM) adopts a floating gate device, each floating gate device is connected to a fixed bias voltage at the source, and has two operands: electric pulse input data and pre-programmed scalar data, and the electric pulse input of each column of CIM in the storage and calculation array is the same. The pre-programmed scalar data is expressed as the channel conductance of the CIM, and the electric pulse input data is applied to the CIM by the gate. When the electric pulse is at a high level, the channel of the CIM is opened, and under the action of the source bias voltage, the CIM will output an analog quantity; when the electric pulse is at a low level, the channel of the CIM is closed, and the analog quantity output by the CIM is zero. Therefore, the output analog quantity of the CIM can be regarded as the product of the two operands with coefficients; at the same time, according to Kirchhoff's law, the analog quantity of the analog quantity output port of the storage and calculation array is the accumulation of the analog quantities of all CIMs on a row, so that the matrix multiplication operation is completed through this series of multiplication and addition processes.

[0009] According to the method for designing a weight-separated storage and computing array for matrix multiplication operation of the present invention, the method specifically comprises the following steps:

[0010] Step 1: design a identical weight arrays according to the number of binary bits a of the electrical input data, wherein the a weight arrays constitute a storage and calculation array;

[0011] Step 2: weighting the binary electrical input data of the storage and calculation array, and inputting different weights of the electrical input data into the input end of the corresponding weight array with electrical pulses of different amplitudes;

[0012] Step 3: Each storage unit of the storage array performs a multiplication operation on the received electric pulse input and the pre-programmed scalar data;

[0013] Step 4: In the storage and calculation array, the currents of all storage and calculation units on each row are accumulated and output from the analog output port to complete the matrix multiplication operation.

[0014] According to the storage and computing array design method of the present invention, the electrical input data is a binary number with a bit width of 8 bits, which is represented by a 1×n vector D shown in the following formula (1):

[0015] D=[d1 d2 ... d n ] (1);

[0016] Furthermore, the binary numbers of the first weight of vector D form the vector [d 11 d 21 ... d n1 ], the vector composed of the binary numbers of the second weight of vector D [d 12 d 22 ...d n2 ], the vector composed of the binary numbers of the 8th weight bit of vector D [d 18 d 28 ... d n8 ], where d 11 ~d 18 Represents each weight of data d1, and so on. n1 ~d n8 Represents data d n Each weight of ; then the vector D is expressed as:

[0017] D=[d 11 d 21 ... d n1 ]+2×[d 12 d 22 ... d n2 ]+…+128×[d 18 d 28 ...d n8 ] (2).

[0018] According to the storage and calculation array design method of the present invention, since the electrical input data vector D of the present invention is an 8-bit binary number, 8 identical weight arrays are designed, namely weight 1 array, weight 2 array, weight 3 array, weight 4 array, weight 5 array, weight 6 array, weight 7 array and weight 8 array. The same weight matrix W is pre-programmed in each array, and different binary weight electrical pulses of vector D are input respectively. The weight matrix W composed of the scalar data pre-programmed in each array is shown in the following formula (3):

[0019]

[0020] According to the storage and calculation array design method of the present invention, specifically, the data input end of the weight 1 array inputs a vector [d 11 d 21 ... d n1 ], complete the matrix multiplication of the current binary weight, the specific process is as follows:

[0021] Pre-programmed weight matrix in Weight1 array Then the weight 1 array completes the calculation of the following formula (4):

[0022]

[0023] Similarly, the input of the weight 2 array is a vector [d 12 d 22 ... d n2 ], complete Y2 = 2 × [d 12 d 22 ... dn2]×W operation; the input end of the weight 3 array is a vector composed of the binary numbers of the third weight bit of the pulse input vector D with an amplitude of 4X mV [d 13 d 23 ...d n3 ], and complete Y3 = 4 × [d 13 d 23 ... d n3 ]×W operation; the input end of the weight 4 array is a pulse with an amplitude of 8X mV input vector D, which is composed of the fourth weighted binary number. 14 d 24 ... d n4 ], and complete Y4 = 8 × [d 14 d 24 ... d n4 ]×W operation; the input end of the weight 5 array is a vector composed of the binary number of the fifth weight bit of the pulse input vector D with an amplitude of 16X mV [d 15 d 25 ... d n5 ], and complete Y5 = 16 × [d 15 d 25 ... d n5 ]×W operation; the input end of the weight 6 array is a vector composed of the binary number of the sixth weight bit of the pulse input vector D with an amplitude of 32X mV [d16 d 26 ... d n6 ], and complete Y6 = 32 × [d 16 d 26 ... d n6 ]×W operation; the input end of the weight 7 array is a vector composed of the binary number of the seventh weight bit of the pulse input vector D with an amplitude of 64XmV [d 17 d 27 ... d n7 ], and complete Y7 = 64 × [d 17 d 27 ... dn7]×W operation; the input end of the weight 8 array is a pulse with an amplitude of 128X mV input vector D, which is composed of the binary number of the eighth weight bit [d 18 d 28 ... d n8 ], and complete Y8 = 128 × [d 18 d 28 ... d n8 ]×W operation.

[0024] The currents after the above 8 array operations are superimposed at the analog output port of the storage array, and the analog output port finally outputs the 1×n vector Y calculated by the following formula (5):

[0025] Y=[d 12 d 22 ... d n2 ]×W+2×[d 12 d 22 ... d n2 ]×W+4×[d 13 d 23 ... d n3 ]×W+8×[d 14 d 24 ... d n4 ]×W+16×[d 15 d 25 ... d n5 ]×W+32×[d 16 d 26 ... d n6 ]×W+64×[d 17 d 27 ... d n7 ]×W+128×[d 18 d 28 ... d n8 ]×W (5);

[0026] Finally, the entire storage and computation array can complete the matrix multiplication operation shown in the following formula (6):

[0027]

[0028] According to the storage and computing array design method of the present invention, the weights of the electrical input are separated, and different weight positions of the electrical input are input by different weight arrays in the form of electric pulses, which can reduce the loss of computing accuracy caused by input voltage fluctuations and effectively improve the computing accuracy of the overall architecture.

[0029] The beneficial effects of the present invention are:

[0030] In the traditional storage and computing array design, for the electrical input data vector D, a digital / analog converter (DAC) is generally used to convert the digital quantity into an analog quantity and then input the analog quantity into the storage and computing unit through the current. This method not only requires the use of a large number of DACs, resulting in a sharp increase in power consumption, but also causes the storage and computing unit to have a low calculation accuracy due to factors such as the bit error rate and linear range limitation of the storage and computing unit. The present invention adopts a design method for weight separation of the electrical input data of the storage and computing array, designs a identical weight matrix according to the binary bit number a of the electrical input data, forms a storage and computing array, and inputs different weight bits of the electrical input data into the corresponding weight array with electrical pulses of different amplitudes; each floating gate device of the storage and computing array performs multiplication operation on the received electrical pulse input and the pre-programmed scalar data, so that the number of electrical input bits of each storage and computing unit is minimized, which can not only reduce the power consumption of the storage and computing array, and improve the energy efficiency ratio, but also improve the calculation accuracy of the matrix multiplication of the storage and computing array, and improve the accuracy of the algorithm deployed by the storage and computing array. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] 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.

[0032] Figure 1 is a schematic diagram of the structure of a storage and computing array according to an embodiment of the present invention;

[0033] Figure 2 is a flow chart of a storage and computing array design method according to an embodiment of the present invention;

[0034] Figure 3 Schematic diagram of the working principle of the CIM according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0036] Embodiment 1:

[0037] The present invention provides a weight-separated storage and calculation array design method for matrix multiplication operation, which is suitable for matrix multiplication operation in in-memory calculation.

[0038] According to the weighted bit separation storage and computing array design method of the present embodiment, weighted bit separation refers to separating the different weights of the electrical input data of the storage and computing array. The basic idea of ​​the present invention is to perform weighted bit separation on the electrical input data of the storage and computing array, and input the different weights of the electrical input data into different arrays for calculation with electrical pulses of different amplitudes.

[0039] According to the weight-separated storage and calculation array design method for matrix multiplication operation of this embodiment, the storage and calculation array is composed of storage and calculation units, each storage and calculation unit (CIM) adopts a floating gate device, each floating gate device is connected to a fixed bias voltage at the source, and has two operands: electric pulse input data and pre-programmed scalar data, and the electric pulse input of each column of CIM in the storage and calculation array is the same. The pre-programmed scalar data is expressed as the channel conductance of the CIM, and the electric pulse input data is applied to the CIM by the gate. When the electric pulse is at a high level, the channel of the CIM is opened, and under the action of the source bias voltage, the CIM will output an analog quantity; when the electric pulse is at a low level, the channel of the CIM is closed, and the analog quantity output by the CIM is zero. Therefore, the output analog quantity of the CIM can be regarded as the product of the two operands with coefficients. At the same time, according to Kirchhoff's law, the analog quantity of the analog output port of the storage and calculation array is the accumulation of the analog quantities of all CIMs on a row, so that the matrix multiplication operation is completed through this series of multiplication and addition processes.

[0040] According to the weight-separated discrete memory and computation array design method for matrix multiplication operation of this embodiment, the memory and computation array is composed of memory and computation units, each memory and computation unit (CIM) adopts a floating gate device, and each floating gate device has two operands: electric pulse input data and pre-programmed scalar data. The method specifically includes the following steps:

[0041] Step 1: design a identical weight arrays according to the number of binary bits a of the electrical input data, wherein the a weight arrays constitute a storage and calculation array;

[0042] Step 2: weighting the binary electrical input data of the storage and calculation array, and inputting different weights of the electrical input data into the input end of the corresponding weight array with electrical pulses of different amplitudes;

[0043] Step 3: Each storage unit of the storage array performs a multiplication operation on the received electric pulse input and the pre-programmed scalar data;

[0044] Step 4: In the storage and calculation array, the currents of all storage and calculation units on each row are accumulated and output from the analog output port to complete the matrix multiplication operation.

[0045] According to the storage and computation array design method of this embodiment, the storage and computation array also has two computation quantities, one of which is composed of the electrical pulse input data of each CIM. The electrical input data is a binary number with a bit width of 8 bits, which is represented by a 1×n vector D shown in the following formula (1):

[0046] D=[d1 d2 ... d n ] (1);

[0047] Furthermore, the binary numbers of the first weight of vector D form the vector [d 11 d 21 ...d n1 ], the vector composed of the binary numbers of the second weight of vector D [d 12 d 22 ...d n2 ], the vector composed of the binary numbers of the 8th weight bit of vector D [d 18 d 28 ...d n8 ], where d 11 ~d 18 Represents each weight of d1, and so on. n1 ~d n8 Represents d n Each weight of ; then the vector D is expressed as:

[0048] D=[d 11 d 21 ...d n1 ]+2×[d 12 d 22 ...d n2 ]+…+128×[d 18 d 28 ...d n8 ] (2);

[0049] According to the storage and calculation array design method of this embodiment, specifically, since the electrical input data of the present invention is 8 bits, the storage and calculation array is divided into 8 weight arrays, namely weight 1 array, weight 2 array, weight 3 array, weight 4 array, weight 5 array, weight 6 array, weight 7 array and weight 8 array. The same weight matrix W is pre-programmed in each array, and different binary weight electrical pulses of vector D are input respectively; the weight matrix W composed of pre-programmed scalar data is shown in the following formula (3):

[0050]

[0051] Specifically, the data input end of the weight 1 array uses the first binary weight of the pulse input vector D with an amplitude of X mV ​​to complete the matrix multiplication of the current binary weight. The specific process is as follows:

[0052] Pre-programmed weight matrix in Weight1 array Then the weight 1 array completes the operation of the following formula (4):

[0053]

[0054] Similarly, the input of the weight 2 array is a vector [d 12 d 22 ...d n2 ]Complete Y2=2×[d 12 d 22 ...d n2 ]×W operation; the input end of the weight 3 array is a vector composed of the binary numbers of the third weight bit of the pulse input vector D with an amplitude of 4X mV [d 13 d 23 ...d na ] and complete Y3 = 4 × [d 13 d 23 ...d n3 ]×W operation; the input end of the weight 4 array is a vector composed of the binary number of the fourth weight bit of the pulse input vector D with an amplitude of 8X mV [d 14 d 24 ... dn4], and complete Y4 = 8 × [d 14 d 24 ...d n4 ]×W operation; the input end of the weight 5 array is a vector composed of the binary number of the fifth weight bit of the pulse input vector D with an amplitude of 16X mV [d 15 d 25 ...d n5 ], and complete Y5 = 16 × [d 15 d 25 ...d n5 ]×W operation; the input end of the weight 6 array is a vector composed of the binary number of the sixth weight bit of the pulse input vector D with an amplitude of 32X mV [d 16 d 26 ...d n6 ], and complete Y6 = 32 × [d 16 d 26 ...dn6 ]×W operation; the input end of the weight 7 array is a vector composed of the binary number of the seventh weight bit of the pulse input vector D with an amplitude of 64XmV [d 17 d 27 ... d n7 ], and complete Y7 = 64 × [d 17 d 27 ... d n7 ]×W operation; the input end of the weight 8 array is a vector composed of the binary number of the eighth weight bit of the pulse input vector D with an amplitude of 128X mV [d 18 d 28 ... d n8 ], and complete Y8 = 128 × [d 18 d 28 ...d n8 ]×W operation.

[0055] The currents after the above 8 array operations are superimposed at the analog output port of the storage array, and the analog output port finally outputs the 1×n vector Y calculated by the following formula (5):

[0056] Y=[d 12 d 22 ... d n2 ]×W+2×[d 12 d 22 ... d n2 ]×W+4×[d 13 d 23 ... d n3 ]×W+8×[d 14 d 24 ... d n4 ]×W+16×[d 15 d 25 ... d n5 ]×W+32×[d 16 d 26 ... d n6 ]×W+64×[d 17 d 27 ... d n7 ]×W+128×[d 1a d 28 ... d n8 ]×W (5);

[0057] Finally, the entire storage and computation array can complete the matrix multiplication operation shown in the following formula (6):

[0058]

[0059] According to the storage and computing array design method of this embodiment, the weights of the electrical input are separated, and different weight positions of the electrical input are input by different weight arrays in the form of electric pulses. This can reduce the loss of computing accuracy caused by input voltage fluctuations and effectively improve the computing accuracy of the overall architecture.

[0060] This embodiment adopts a design method for weighting the electrical input data of the storage and computing array, divides the storage and computing array into different weight matrices according to the number of binary bits of the electrical input data, and inputs different weight bits of the electrical input data into different weight arrays in the form of electrical pulses of different amplitudes; each floating gate device of the storage and computing array performs multiplication operations on the received electrical pulse input and pre-programmed scalar data, so as to minimize the number of electrical input bits of each storage and computing unit, which can not only reduce the power consumption of the storage and computing array and improve the energy efficiency ratio, but also improve the calculation accuracy of the matrix multiplication of the storage and computing array and improve the accuracy of the algorithms deployed by the storage and computing array.

[0061] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.

[0062] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for designing a weight-separated storage and calculation array for matrix multiplication operation, wherein the storage and calculation array is composed of storage and calculation units, each storage and calculation unit adopts a floating gate device, and each floating gate device has two calculation quantities: electric pulse input data and pre-programmed scalar data. The method comprises the following steps: Step 1: design a identical weight arrays according to the number of binary bits a of the electrical input data, wherein the a identical weight arrays constitute a storage and calculation array; Step 2: weighting the binary electrical input data of the storage and computing array. The weighting separation refers to separating the different weights of the electrical input data of the storage and computing array, and inputting the different weights of the electrical input data into the input end of the corresponding weight array with electrical pulses of different amplitudes. in, Assuming that the first weight of the electrical input data is input to the input end of the corresponding weight array with an electrical pulse of amplitude XmV, then the mth weight of the electrical input data is input to the input end of the corresponding weight array with an electrical pulse of amplitude 2 m- 1 An electric pulse of XmV is input to the input of the corresponding weight array, 1<m≤a; Step 3: Each storage unit of the storage array performs a multiplication operation on the received electrical pulse input and the weight array; Step 4: In the storage and calculation array, the currents of all storage and calculation units on each row are accumulated and output from the analog output port to complete matrix multiplication; In a weight array, the electric pulse input of each column of floating gate devices is the same; each floating gate device performs multiplication operation on the electric pulse input and the weight array, and the analog output port of the weight array outputs the total current of all floating gate devices in a row, completing the matrix multiplication of the weight array; The loss of calculation accuracy caused by fluctuation of input voltage is reduced by weighting the electrical input data and inputting different weights of the electrical input data into different weight arrays in the form of electrical pulses.

2. The method according to claim 1, It is characterized in that The electrical input data is a binary number with a bit width of 8 bits, as shown by the following formula The vector D represents: ; The binary number of the first weight bit of the vector D forms a vector , the vector consisting of the binary numbers of the second weight bit of the vector D , the vector composed of the binary numbers of the 8th weight bit of the vector D , where d 11 ~ Represents data Each position of n1 ~ Represents data every position of authority; Then the vector D is expressed as: 。 3. The method according to claim 2, It is characterized in that The method comprises: According to the binary digits of the electrical input data, 8 identical weight arrays are designed, namely weight 1 array, weight 2 array, weight 3 array, weight 4 array, weight 5 array, weight 6 array, weight 7 array and weight 8 array, and the same weight matrix W is pre-programmed in each weight array, as shown in the following formula: 。 4. The method according to claim 3, It is characterized in that The method comprises: Vectors composed of binary numbers of different binary weights of the vector D are respectively input into the data input terminals of the weight arrays using electric pulses of different amplitudes.

5. The method according to claim 3, It is characterized in that The method comprises: The data input end of the weight 1 array inputs the vector composed of the first binary weight of the vector D with a pulse of amplitude XmV to complete the matrix multiplication of the current binary weight, and the process is as follows: Input the vector D consisting of the binary numbers of the first weight bit , the pre-programmed weight matrix in the weight 1 array is , then the weight 1 array performs the following operations: 。 6. The method according to claim 3, It is characterized in that The method comprises: The input end of the weight 2 array inputs a pulse with an amplitude of 2X mV, which is a vector of binary numbers of the second weight bit of the vector D. , and complete Operation; The input end of the weight 3 array inputs a pulse with an amplitude of 4X mV, which is a vector of binary numbers of the third weight bit of the vector D. , and complete Operation; The input end of the weight 4 array inputs a pulse with an amplitude of 8X mV into the vector consisting of the binary number of the fourth weight bit of the vector D , and complete Operation; The input end of the weight 5 array inputs a pulse with an amplitude of 16X mV into the vector consisting of the binary number of the fifth weight bit of the vector D , and complete Operation; The input end of the weight 6 array inputs a pulse with an amplitude of 32X mV into the vector consisting of the binary number of the sixth weight bit of the vector D , and complete Operation; The input end of the weight 7 array inputs a pulse with an amplitude of 64X mV into the vector consisting of the binary number of the seventh weight bit of the vector D , and complete Operation; The input end of the weight 8 array inputs a pulse with an amplitude of 128X mV into the vector consisting of the binary number of the eighth weight bit of the vector D , and complete Operation.

7. The method according to claim 5, It is characterized in that The method comprises: The currents of the eight weight arrays after calculation are superimposed on the analog output port of the storage array, and the analog output port finally outputs the currents after the following calculations: Vector : 。 8. The method according to claim 7, It is characterized in that The method comprises: After the operation, the storage array completes the matrix multiplication operation shown in the following formula: 。

Citation Information

Patent Citations

  • A system for multiplying matrix vectors and a method for performing neural network operations

    CN109359269A

  • Neural network online learning system based on a memristor

    CN109800870A

  • In-memory operation-oriented fully-expanded non-orthogonal wiring memory calculation array design

    CN112989268A

  • Method for carrying out in-memory operation by using complement coding

    CN112989273A

  • High-speed probability calculation multiplier and calculation method

    CN113031917A