Product-sum operator, product-sum operation method, logic operation device and neuromorphic device

By designing a sum-of-product operator containing multiple variable resistance elements, and using a combination of multiplication, addition, and differential circuits, the complexity of the sum-of-product operation that exists when positive and negative weights are mixed in neural networks is solved, and the efficiency is improved Array yield and efficiency.

CN112771533BActive Publication Date: 2024-10-01TDK CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880098174.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-08
Publication Date
2024-10-01
Estimated Expiration
2038-11-08

AI Technical Summary

Technical Problem

When the existing technology implements mixed product-sum operations with positive and negative weights in neural networks, the control is complex and the yield is reduced, and it cannot effectively handle large-scale arrays, resulting in lengthy areas and reduced yield. .

Method used

A sum-of-product operator is designed, which uses multiple variable resistance elements to generate signals through the first circuit, the second circuit performs multiplication, and the third circuit performs addition, and outputs the result difference through a differential circuit to implement the sum-of-product operation. , which simplifies the product-sum operation process where there is a mixture of positive and negative weights, and corrects it by setting a common conductance range and coefficient to ensure the accuracy and efficiency of the operation.

Benefits of technology

It implements simplified product-sum operations, improves the yield and efficiency of large-scale arrays, avoids the appearance of lengthy regions, and can effectively handle the mixed situation of positive and negative weights in neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112771533B_ABST
    Figure CN112771533B_ABST
Patent Text Reader

Abstract

The product-sum operator of the present invention includes: a first circuit for generating signals corresponding to multiple data respectively; a second circuit having a first operation circuit, the first operation circuit uses each of multiple variable resistance elements with variable resistance values ​​to multiply the multiple signals generated by the first circuit by a weight to calculate the sum of these multiple multiplication results; a third circuit, which calculates the addition result of the values ​​corresponding to the multiple data respectively, or calculates the result obtained by adjusting the addition result; and a fourth circuit having a differential circuit, the differential circuit outputs the difference between the result calculated by the first operation circuit of the second circuit and the result calculated by the third circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a product-sum operator, a product-sum operation method, a logic operation device and a neuromorphic device. Background Art

[0002] For example, in a circuit such as a neural network, a product-sum operation is performed. Research on a technology for performing such a product-sum operation in an analog manner is progressing. With regard to this technology, a structure using a variable resistance element (for the sake of convenience, all referred to as a "variable resistance element") is being studied. In particular, the use of a variable resistance element whose resistance changes linearly is being studied as an element with good characteristics.

[0003] As such variable resistance elements, neuromorphic elements whose conductance (the inverse of resistance) changes in an analog manner have attracted much attention in recent years. Research is underway on a new computing mechanism that can perform product-sum operations at a low power consumption and high speed using neuromorphic elements.

[0004] More specifically, a circuit that represents the connection between layers of a neural network is realized by using an array of signal lines and variable resistance elements. For example, an input signal modulated according to a pulse length or voltage is applied to the array. Furthermore, a structure is set to use the amount of current flowing through a predetermined signal line as the result of a product-sum operation. In this structure, the array is used as a circuit constituting an analog product-sum operator. In addition, an array that is used as a circuit constituting a digital product-sum operator can also be constructed.

[0005] For example, in a neural network, sometimes the weights of a connection have negative values. In order to realize the sum-of-product operations performed by arrays in such a neural network, it is necessary to represent weights having positive values ​​and weights having negative values.

[0006] Here, since the variable resistance element cannot have a negative conductance, research is being conducted to express a weight having a negative value in the product-sum operator.

[0007] As an example, the product-sum operation device described in Patent Document 1 uses the following structure to separate component columns by weights having positive values ​​and weights having negative values, assign absolute values ​​to these weights, and after multiplying the weights, calculate the difference between the results of the positive component column and the results of the negative component column (see Patent Document 1).

[0008] Prior art literature

[0009] Patent Literature

[0010] Patent Document 1: International Publication No. 2018 / 034163 Summary of the invention

[0011] Problems to be solved by the invention

[0012] However, the technique described in Patent Document 1 requires a mechanism for allocating different element rows according to the positive and negative signs of weights, for example, and this mechanism and the control of the allocation may become complicated.

[0013] In addition, Patent Document 1 does not explain the structure of performing a product-sum operation in which weights having positive values ​​and weights having negative values ​​are mixed, and does not clarify the structure of an integrated circuit installed therein to perform a product-sum operation in which weights having positive values ​​and weights having negative values ​​are mixed.

[0014] In addition, as another structural example, consider the following structure, where two elements are assigned to each weight, and for each weight, two elements are used to store positive and negative values. However, in this structure, two elements are required for each weight, so the physical size of the array becomes larger; a circuit corresponding to the distribution of positive and negative signs is required, or a single element fails and cannot function as a weight, so the following issues arise, that is, in the case of large-scale arraying, the yield of the array decreases and strategies such as the need to set up a redundant area corresponding to this situation.

[0015] The present invention was developed in consideration of this situation, and its object is to provide a product-sum operator, a product-sum operation method, a logic operation device and a neuromorphic device that can simply realize product-sum operations in which weights with positive values ​​and weights with negative values ​​are mixed.

[0016] Technical solutions to solve problems

[0017] One aspect of the present invention is a product-sum operator, which includes: a first circuit that generates signals corresponding to multiple data respectively; a second circuit having a first operation circuit, the first operation circuit uses each of multiple variable resistance elements with variable resistance values ​​to multiply the multiple signals generated by the first circuit by a weight to calculate the sum of these multiple multiplication results; a third circuit that calculates the addition result of the values ​​corresponding to the multiple data respectively, or calculates the result after adjusting the addition result; and a fourth circuit having a differential circuit, the differential circuit outputs the difference between the result calculated by the first operation circuit of the second circuit and the result calculated by the third circuit.

[0018] One aspect of the present invention is that in a product-sum operator, a result obtained by the first operation circuit of the second circuit and a result obtained by the third circuit are analog signals, and the differential circuit of the fourth circuit is an analog circuit.

[0019] According to one aspect of the present invention, in a product-sum operator, a result obtained by the first operation circuit of the second circuit and a result obtained by the third circuit are digital data, and the differential circuit of the fourth circuit is a digital circuit.

[0020] One aspect of the present invention is that in a product-sum operator, a common variable range of conductance is set among the plurality of variable resistance elements, the first operation circuit of the second circuit has a capacity for obtaining the sum of the plurality of multiplication results, and the result obtained by the operation of the third circuit is a result obtained by multiplying the addition result of the values ​​corresponding to each of the plurality of data, the center value of the variable range of conductance of the variable resistance element, and (1 / the capacity).

[0021] One aspect of the present invention is that in a product-sum operator, a common variable range of conductance is set in the plurality of variable resistance elements, the first operation circuit of the second circuit has a capacity for obtaining the sum of the plurality of multiplication results, and the result obtained by the operation of the third circuit is equivalent to the sum of the addition result of the values ​​corresponding to each of the plurality of data, the center value of the variable range of conductance of the variable resistance element and the product of (1 / the capacity) multiplied by the first coefficient and the second coefficient.

[0022] According to one aspect of the present invention, in the product-sum operator, the first circuit generates the signal corresponding to each of the plurality of data, and the first circuit generates a pulse width modulation signal corresponding to each of the plurality of data.

[0023] According to one aspect of the present invention, in the product-sum operator, the first circuit generates the signal corresponding to each of the plurality of data, and the first circuit generates an amplitude modulation signal corresponding to each of the plurality of data.

[0024] According to one aspect of the present invention, in a product-sum operator, the second circuit includes a plurality of the first operation circuits, and the fourth circuit includes the differential circuit for each of the plurality of the first operation circuits.

[0025] According to one aspect of the present invention, in the product-sum operator, the plurality of data are input to the third circuit in a time series order, and the third circuit adds values ​​corresponding to the plurality of data in the time series order.

[0026] According to one aspect of the present invention, in the product-sum operator, the variable resistance element is a magnetoresistive effect element that exhibits a magnetoresistive effect.

[0027] One aspect of the present invention is a product-sum operation method, wherein the product-sum operator includes a first circuit, a second circuit, a third circuit and a fourth circuit, the second circuit has a first operation circuit, the fourth circuit has a differential circuit, the first circuit generates a signal corresponding to each of a plurality of data, the first operation circuit of the second circuit uses each of a plurality of variable resistance elements with variable resistance values ​​to multiply each of the plurality of signals generated by the first circuit by a weight to calculate the sum of these plurality of multiplication results, the third circuit calculates the addition result of the values ​​corresponding to each of the plurality of data, or calculates the result obtained after adjusting the addition result, and the differential circuit of the fourth circuit outputs the difference between the result calculated by the first operation circuit of the second circuit and the result calculated by the third circuit.

[0028] One aspect of the present invention is a logic operation device, which includes any one of the above-mentioned product-sum operators and performs logic operations.

[0029] One embodiment of the present invention provides a neuromorphic device including any one of the above-mentioned product-sum operators, wherein the variable resistance element of the product-sum operator is a neuromorphic element.

[0030] Effects of the Invention

[0031] According to one embodiment of the present invention, it is possible to easily implement a product-sum operation in which weights having positive values ​​and weights having negative values ​​are mixed. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a diagram showing a schematic structure of a product-sum operator according to an embodiment (first embodiment) of the present invention.

[0033] Figure 2 It is a diagram showing a specific example of theoretical values ​​according to the embodiment of the present invention.

[0034] Figure 3 It is a diagram showing a specific example (correction of voltage) of the simulation of the actual measurement value according to the embodiment of the present invention.

[0035] Figure 4 It is a diagram showing a specific example of the simulation of the actual measurement value according to the embodiment of the present invention (correction of the charge amount).

[0036] Figure 5 It is a diagram showing a schematic structure of a product-sum operator according to an embodiment (second embodiment) of the present invention. DETAILED DESCRIPTION

[0037] Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[0038] (First Embodiment)

[0039] [Structure of the product-sum operator]

[0040] Figure 1 It is a diagram showing a schematic configuration of a product-sum operator 1 according to an embodiment (first embodiment) of the present invention.

[0041] The product-sum operator 1 includes an input unit 11 , an array unit 12 , a conversion unit 13 , and an output unit 14 .

[0042] in addition, Figure 1 , represents a control unit 15 that controls the product-sum operator 1. In the present embodiment, the control unit 15 is configured as a functional unit different from the product-sum operator 1. In this case, it can also be considered that the product-sum operator 1 and the control unit 15 are included in, for example, a prescribed device (e.g., a product-sum operation device) or a prescribed system (e.g., a product-sum operation system). As another example, the control unit 15 can also be configured integrally with the product-sum operator 1. In this case, it can also be considered that the product-sum operator 1 has the control unit 15.

[0043] In this embodiment, the array unit 12 is composed of an array of N rows and M columns. In this embodiment, N is an integer greater than 2, and M is an integer greater than 2. In addition, Figure 1 In the example, for the convenience of illustration, N is an integer greater than 3, but N may be 2. In addition, in the present embodiment, a multi-row multi-column array is shown, but as another example, M may be 1, that is, a multi-row 1-column array may also be used.

[0044] Here, a plurality of circuit elements are connected by signal lines in the product-sum operator 1. In this embodiment, for convenience of explanation, some signal lines are described with reference numerals, and reference numerals and detailed descriptions of other signal lines are omitted.

[0045] In addition, a structure for transmitting signals wirelessly may be used instead of a signal line for transmitting signals by wire.

[0046] The input unit 11 includes: N input registers 31-1 to 31-N corresponding to N rows, N input signal generating circuits 32-1 to 32-N corresponding to N rows, and a signal line 33. Here, the input signal generating circuits 32-1 to 32-N may also include, for example, a combination of a drive circuit such as an output buffer or an input / output buffer and a modulation circuit in the preceding stage. In this case, the modulation circuit of the input signal generating circuit 32-1 to 32-N functions to output a signal obtained by modulating the value of the input register 31-1 to 31-N from a source signal (not shown) for the input signal to the drive circuit.

[0047] The array unit 12 includes (N×M) variable resistance elements 41 - 11 to 41 -NM corresponding to (N×M) rows and M signal lines 42 - 1 to 42 -M corresponding to M columns.

[0048] Figure 1 In the example of , the variable resistive element 41 - ij represents the variable resistive element of the i-th row and the j-th column. i is an integer from 1 to N, and j is an integer from 1 to M. Figure 1 In the example of Figure 1 In a system where N variable resistance elements are arranged in the longitudinal direction ( Figure 1 In the example of , M are arranged in the horizontal direction. In this embodiment, for the sake of convenience, i and j are sometimes used for description.

[0049] In the present embodiment, each variable resistance element 41 - ij is a neuromorphic element.

[0050] Each variable resistance element 41 - ij may be, for example, a nonvolatile element.

[0051] Each variable resistance element 41 - ij may be, for example, a magnetoresistive element that exhibits a magnetoresistive effect. The magnetoresistive element may be an element that changes resistance using spin.

[0052] For example, there are known magnetoresistance effect elements that have linearity in the change of conductance. In such magnetoresistance effect elements, for example, conductance changes linearly according to the change of the physical quantity that causes the conductance to change (the relationship between the magnetization of the two ferromagnetic layers possessed by the magnetoresistance effect element). In addition, among such magnetoresistance effect elements, there are known elements that have symmetry in the change of conductance. This symmetry is the symmetry between the way the conductance increases and the way the conductance decreases. That is, the absolute value of the rate of change of the conductance when the conductance increases from one value to another value and the absolute value of the rate of change of the conductance when the conductance decreases from the other value to the one value are consistent except for the difference caused by the error. In this way, as each variable resistance element 41-ij, it is preferable to use a magnetoresistance effect element that has linearity and symmetry in the change of conductance.

[0053] In addition, any element may be used as a neuromorphic element. In addition, as a neuromorphic element, for example, a plurality of neuromorphic elements may be combined for use, or two or more neuromorphic elements may be combined for use. As one example, a PCM (Phase Change Memory) element that controls the phase change of crystallization and amorphous phases in stages may be applied as a neuromorphic element. As another example, a CBRAM (Conductive Bridge Random Access Memory) element may be used as a neuromorphic element, wherein the CBRAM utilizes electrochemical reactions to form and eliminate the path between metal precipitation and ionization. As another example, a neuromorphic element may also utilize an element using spintronics, for example, a domain wall type element that generates a linear resistance change through the control of a magnetic wall, or an SOT (Spin Orbit Torque) type element that uses a magnetization reversal caused by a spin-orbit torque. As another example, a neuromorphic element may also utilize an element using ReRAM (Resistive Random Access Memory) that forms filaments in a medium such as TaO2 by metal precipitation and utilizes resistance change.

[0054] The conversion unit 13 includes an adding circuit 111, an adjusting circuit 112, and a digital analog converter (DAC: Digital Analog Converter) 113. The output unit 14 includes M detection circuits 61-1 to 61-M corresponding to M columns, M differential circuits 131-1 to 131-M corresponding to M rows, and M output terminals 151-1 to 151-M corresponding to M columns. Each of the M differential circuits 131-1 to 131-M may be, for example, a differential circuit, and may be an operational amplifier as an example.

[0055] Here, in this embodiment, for the sake of convenience, each circuit in the product-sum operator 1 is divided into several functional units (such as the input unit 11, the array unit 12, the conversion unit 13, and the output unit 14) for description, but this division is an example, and other arbitrary divisions may also be used. In addition, this division may not necessarily be used.

[0056] [Functions and Operations of Each Circuit in the Product-Sum Calculator]

[0057] An example of the function and operation of each circuit in the product-sum computing unit 1 will be described.

[0058] Each of the N input registers 31 - 1 to 31 -N stores data input from an external device (for convenience of explanation, all are referred to as “input data”). The data is digital data (may also be referred to as a “digital signal”).

[0059] Here, the external device may also be any device. The external device may be, for example, a storage device that stores data, or may be a component such as a computer and a sensor that outputs data. The external device inputs data that will be the object of operation by the product-sum operator 1 into each of the N input registers 31-1 to 31-N. In the present embodiment, the data input to the product-sum operator 1 is a combination of N data equivalent to N rows. In addition, as input of data to the product-sum operator 1, for example, an external device may take the lead in inputting the data to the product-sum operator 1, or the product-sum operator 1 may take the lead in inputting the data from an external device.

[0060] The i-th row input register 31-i outputs the stored data to the i-th row input signal generating circuit 32-i. Here, in the present embodiment, the N input registers 31-1 to 31-N each output the N data input to the N input registers 31-1 to 31-N in the order of time series. Therefore, in the present embodiment, the combination of the N data of N rows input to the product sum operator 1 is also processed as the combination. In addition, if such processing is realized, any timing can be used as the timing of inputting data to each of the N input registers 31-1 to 31-N or the timing of outputting data from each of the N input registers 31-1 to 31-N.

[0061] Data outputted from the N input registers 31 - 1 to 31 -N are also transmitted to the adding circuit 111 . In the present embodiment, data outputted from the N input registers 31 - 1 to 31 -N are inputted to the same signal line 33 and transmitted to the adding circuit 111 via the signal line 33 .

[0062] Here, each input register 31-1 to 31-N has, for example, a function of storing a value in a specified range as a count value. The specified range may be an arbitrary range, for example, a range of 256 values ​​from 0 to 255. In this case, the input data is set to, for example, a value in the same range as the specified range or a value in a range narrower than the specified range. In the present embodiment, the length (pulse length) of the waveform of the pulse of the pulse width modulation (PWM: Pulse Width Modulation) signal generated based on the count value is equivalent to the count value. The count value may also be considered to be the value of the input data or a value obtained by converting the value of the input data.

[0063] The i-th row input signal generating circuit 32-i generates a signal (for the sake of convenience, all referred to as "input signal") input to the array unit 12 based on the data input from the i-th row input register 31-i. Specifically, the i-th row input signal generating circuit 32-i generates a signal (pulse width modulation signal) having a width (pulse length) corresponding to the value of the input data as an input signal. Furthermore, the i-th row input signal generating circuit 32-i outputs the generated input signal to each of the M variable resistance elements 41-i1 to 41-iM in the i-th row in the array unit 12.

[0064] Here, Figure 1 2 shows examples of input signals 1011 - 1 to 1011 -N generated by N input signal generating circuits 32 - 1 to 32 -N, respectively. Figure 1 The shapes and timings of the input signals 1011-1 to 1011-N are schematic and not necessarily accurate. Each input signal 1011-1 to 1011-N is a voltage pulse signal. In the present embodiment, the height (voltage value) of the pulse is the same (constant). Each input signal generating circuit 32-1 to 32-N processes, for example, in a predetermined time unit. The predetermined time unit may also be, for example, 10 [ns] or 10 [μs].

[0065] The input signal output from the i-th row input signal generating circuit 32-i is input to each of the M variable resistance elements 41-i1 to 41-iM in the i-th row. In addition, each of the M variable resistance elements 41-i1 to 41-iM in the i-th row outputs a current determined by the voltage of the input signal input and the resistance value of the variable resistance element 41-i1 to 41-iM.

[0066] Each of the N variable resistance elements 41-1j to 41-Nj in the j-th column outputs a current to the same signal line 42-j common to each column. In the present embodiment, the current outputted from each of the N variable resistance elements 41-1j to 41-Nj in the j-th column is inputted to the same signal line 42-j, and flows into the detection circuit 61-j in the j-th column via the signal line 42-j.

[0067] Here, the weight is realized according to the conductance value of each variable resistance element 41-11 to 41-NM. That is, in each variable resistance element 41-11 to 41-NM, a current equivalent to the multiplication result of the pulse of the voltage as the input signal and the weight is output. It can be considered that the current is the result obtained by calculating the product of the input signal and the weight (the value of conductance in this embodiment) according to Ohm's law. In this case, each variable resistance element 41-11 to 41-NM can be considered as a product operation unit. Conductance represents the reciprocal of resistance, so each variable resistance element 41-11 to 41-NM can obtain two or more different resistance values, and therefore, two or more different conductance values ​​can be obtained.

[0068] In addition, the current output from the N variable resistance elements (the N variable resistance elements 41-1j to 41-Nj in the jth column) is transmitted in the common signal line in each column (the signal line 42-j in the jth column). As a result, the sum of their currents can be calculated in the detection circuit in each column (the detection circuit 61-j in the jth column). That is, the product sum calculation in the jth column is realized.

[0069] By performing this operation of performing the product-sum operation on all the M columns, the product-sum operation of the M columns is realized.

[0070] The adding circuit 111 adds the data input from the signal line 33. That is, the adding circuit 111 adds the data output from each of the N input registers 31-1 to 31-N by digital operation. The adding circuit 111 outputs the data of the addition result to the adjustment circuit 112. In the present embodiment, the adding circuit 111 calculates the sum of the count values ​​of the N input signal generating circuits 32-1 to 32-N by sequentially adding the data output from each of the N input registers 31-1 to 31-N in a time series order.

[0071] In addition, in the present embodiment, the case where the adding circuit 111 adds all the data outputted from each of the N input registers 31-1 to 31-N is shown, but as another example, for example, a structure may be used in which data having a value of 0 is excluded from the objects to be added by the adding circuit 111. That is, in the adding circuit 111, even if data having a value of 0 is excluded from the objects to be added, the addition result is the same.

[0072] The adjustment circuit 112 performs a predetermined operation on the data input from the adding circuit 111 to perform a predetermined adjustment, and outputs the adjusted data (the data after the operation) to the digital-to-analog converter 113. The predetermined adjustment may be, for example, an operation of multiplying the input data by a predetermined coefficient, an operation of adding a predetermined coefficient to the input data, or an operation of adding a predetermined coefficient to the result of operating the input data with the predetermined coefficient.

[0073] The digital-to-analog converter 113 converts the data input from the adjustment circuit 112 from digital data to an analog signal, and outputs the converted analog signal to each of the M differential circuits 131-1 to 131-M. In the analog signal, the value of the digital data is reflected as the value of the voltage of the analog signal. That is, the digital-to-analog converter 113 converts the input digital data into an analog signal within a predetermined range. This range may also be referred to as a dynamic range, for example. In the digital-to-analog converter 113, for example, the value of the input digital data and the output analog signal correspond linearly one to one.

[0074] The analog signal output from the digital-to-analog converter 113 is represented by, for example, equation (1). When the digital-to-analog conversion performed by the digital-to-analog converter 113 is a one-to-one conversion, equation (1) can be considered to indirectly represent the adjusted data output from the adjustment circuit 112 .

[0075] Vc, Pr, Vr, Gm, and Cd as parameters in equation (1) are described. Vc represents the voltage of the analog signal output from the digital-to-analog converter 113. Pr represents the value of the data output from the input register 31-r in the r-th row. This value is equivalent to the pulse width of the pulse width modulated signal output from the input signal generating circuit 32-r in the r-th row. R is an integer greater than 1 and less than N. Vr represents the voltage of the pulse width modulated signal output from the input signal generating circuit 32-r in the r-th row. In the present embodiment, the voltage of the pulse width modulated signal output from all the input signal generating circuits 32-1 to 32-N is the same.

[0076] Σ(Pr×Vr) represents the sum of (Pr×Vr) when r takes a value from 1 to N. In addition, in this embodiment, Vr is constant, so Σ(Pr×Vr) is equal to {(ΣPr)×Vr}. In this embodiment, the sum of Pr is calculated by the adder circuit 111. In addition, calculations other than the sum are performed by the adjustment circuit 112 and the digital-to-analog converter 113.

[0077] Gm represents the center value of the variable range of conductance of the variable resistance elements 41-11 to 41-NM. In this embodiment, it is assumed that the variable range of conductance is the same for all variable resistance elements 41-11 to 41-NM under ideal conditions. In addition, it is actually difficult to manufacture all elements with exactly the same variable conductance range, so, for example, as a practical method, a conductance range that can be commonly applied to all elements of a shared bit line is set.

[0078] Cd represents the capacitance of the capacitor constituting the detection circuits 61-1 to 61-M. In the present embodiment, the capacitance of the capacitor is the same for all the detection circuits 61-1 to 61-M. K1 and K2 represent coefficients, respectively. These coefficients K1 and K2 are coefficients used, for example, to correct uneven errors caused by individual differences in actual circuit elements or errors caused by temperature fluctuations. Coefficient K1 is a coefficient for correcting gain, and coefficient K2 is a coefficient for correcting offset. In addition, a structure that does not use one or both of coefficients K1 and K2 may be adopted.

[0079] [Formula 1]

[0080] Vc=∑(Pr×Vr)×Gm / Cd×K1+K2...(1)

[0081] Here, the coefficient K1 and the coefficient K2 may be reflected in one or both of the adjustment method performed by the adjustment circuit 112 and the characteristics of the digital-to-analog converter 113, for example, based on the results obtained by measuring the calculation results in the product-sum calculator 1 in advance or other reference information. In the adjustment circuit 112, for example, a method of calculating the adjusted data based on the data before adjustment is preset. This method may also be determined using information on the method of calculating the adjusted data based on the data before adjustment.

[0082] In addition, a configuration may be adopted in which the coefficient K1 and the coefficient K2 are not used. In this case, the analog signal output from the digital analog converter 113 is expressed by, for example, equation (2). Equation (2) is equivalent to the case in which the coefficient K1 is set to 1 and the coefficient K2 is set to 0 in equation (1).

[0083] [Formula 2]

[0084] Vc=∑(Pr×Vr)×Gm / Cd...(2)

[0085] Here, in this embodiment, generally speaking, a predetermined operation is performed by both the adding circuit 111 and the adjusting circuit 112. In this embodiment, a structure in which the adding circuit 111 and the adjusting circuit 112 perform the operation separately is shown, but as another example, a structure in which the same operation is performed by one circuit or a structure in which the same operation is performed by a combination of two or more arbitrary circuits may be adopted.

[0086] The detection circuit 61-j in the jth column totals the currents outputted from the N variable resistance elements 41-1j to 41-Nj in the jth column to the same signal line 42-j, and outputs an analog signal having a voltage corresponding to the sum of the totaled currents to the difference circuit 131-j in the jth column.

[0087] Here, in the present embodiment, each of the M detection circuits 61-1 to 61-M is formed using a capacitor. In the detection circuit 61-j of the j-th column, a charge is stored in the capacitor by outputting a current from each of the N variable resistance elements 41-1j to 41-Nj in the j-th column to the same signal line 42-j. The charge is proportional to the sum of the currents. The detection circuit 61-j of the j-th column outputs an analog signal having a voltage corresponding to the charge stored in the capacitor as an analog signal having a voltage corresponding to the sum result of the total current to the differential circuit 131-j of the j-th column. In addition, in the present embodiment, for the M detection circuits 61-1 to 61-M, the capacitance of the capacitor of each detection circuit 61-1 to 61-M is the same.

[0088] Each of the M detection circuits 61 - 1 to 61 -M can be considered as a QV conversion circuit that converts the sum of the currents flowing through each signal line (in the case of the detection circuit 61 - j in the jth column, the signal line 42 - j ) into a voltage.

[0089] The differential circuit 131-j of the jth column has a positive terminal (+ terminal) as one input terminal, a negative terminal (- terminal) as the other input terminal, and an output terminal. The differential circuit 131-j of the jth column inputs an analog signal output from the detection circuit 61-j of the jth column from the positive terminal, and inputs an analog signal output from the digital-to-analog converter 113 from the negative terminal. The differential circuit 131-j of the jth column outputs a signal obtained by subtracting an input signal from the negative terminal from an input signal from the positive terminal from an output terminal. The signal is output to the output terminal 151-j of the jth column. The signal is an analog signal. In the present embodiment, the differential circuit 131-j of the jth column outputs a signal having a voltage equivalent to the difference between the voltages of the two input signals. In the present embodiment, the difference is the result of subtracting an input signal from the negative terminal from an input signal from the positive terminal.

[0090] The output terminal 151 - j of the j-th column outputs the signal input from the differential circuit 131 - j of the j-th column.

[0091] Here, the signal may be used in any application. For example, the signal may be input to a circuit (not shown) that uses a product-sum calculation result in a neural network and used.

[0092] In addition, in the present embodiment, a set of circuits is allocated to each of the M columns as the detection circuits 61-1 to 61-M and the differential circuits 131-1 to 131-M, but it is not necessarily necessary to have the same number of circuit sets as the columns. For example, one detection circuit and one differential circuit may be allocated to each of the M columns in a time-division manner and multiplexed.

[0093] The control unit 15 controls the weight of each of the (N×M) variable resistor elements 41-11 to 41-NM. The control unit 15 controls the weight of each variable resistor element 41-11 to 41-NM by, for example, controlling the value of the voltage applied to the control terminal of each variable resistor element 41-11 to 41-NM or the magnetic field (magnetic field) given to each variable resistor element 41-11 to 41-NM. The weight is a value corresponding to the conductance (or it can also be considered as a value corresponding to the resistance), which can be changed according to the control of the control unit 15. The control unit 15 can make the weight of each variable resistor element 41-11 to 41-NM become a desired value within a variable range. In addition, the control unit 15 can also set an arbitrary setting value of the product-sum operator 1. As such a setting, for example, it can be an initial setting, or it can be a setting that changes an already set value. The setting value can also include one or more parameters included in equations (1) and (2).

[0094] [Negative weight of array part]

[0095] In the product-sum operator 1 of the present embodiment, by correcting the detection results of each detection circuit 61-1 to 61-M, the same operation result as the case where negative weights are used in the array of product-sum operations can be calculated (or, it can also be a different but related operation result, the same applies below.). That is, each of the (N×M) variable resistance elements 41-11 to 41-NM can take a positive conductance (positive resistance value), but cannot take a negative conductance (negative resistance value). Therefore, negative weights cannot be expressed in the structure of the array unit 12 of the present embodiment alone. Therefore, in the present embodiment, by correcting the detection results of each detection circuit 61-1 to 61-M, a case where negative weights are used can be expressed. In addition, in the present embodiment, the weight that can be expressed by positive conductance (positive resistance value) is set to a positive weight (a weight with a positive value). Moreover, the weight whose positive and negative signs are opposite to such a positive weight is set to a negative weight (a weight with a negative value).

[0096] [Specific example of theoretical value]

[0097] Figure 2 It is a diagram showing a specific example of theoretical values ​​according to the embodiment of the present invention.

[0098] Figure 2 2011 showing specific examples of theoretical values.

[0099] The following describes the contents of Table 2011. Table 2011 shows two cases, Case 1 ("Case 1" in Table 2011) and Case 2 ("Case 2" in Table 2011).

[0100] Example 1 is described. In this example, a case where the j-th column in the array unit 12 has 5 (N=5) variable resistance elements 41-1j to 41-5j is shown as an example. In Table 2011, the 5 variable resistance elements 41-1j to 41-5j are represented by "1" to "5" (i=1 to 5) indicating the number of rows. In Table 2011, the sum of "1" to "5" is represented in "sum". In Table 2011, the value of the input data is represented by "input".

[0101] In Table 2011, examples of numerical values ​​when weights having positive values ​​and weights having negative values ​​are used without performing corrections to the product-sum operation of the present embodiment are shown in "Calculated Weights". In "Calculated Weights", "Weight" indicates the values ​​of the respective weights of the five variable resistor elements 41-1j to 41-5j. In this example, the respective weights of the five variable resistor elements 41-1j to 41-5j take values ​​in the range of greater than -0.5 and less than +0.5. In addition, in "Calculated Weights", "Product-Sum Operation" indicates the results of the respective products of the five variable resistor elements 41-1j to 41-5j and the results of their product sums (the "sum" column).

[0102] In Table 2011, an example of numerical values ​​when the array unit 12 uses a structure with a positive weight but does not use a negative weight, and the correction of the product-sum operation of this embodiment is performed is shown in "Transfer weight to positive value". In "Transfer weight to positive value", "weight" shows the value of each transferred weight of the five variable resistance elements 41-1j to 41-5j. In this example, the result of adding +0.5 to the "weight" in "calculated weight" becomes the "weight" in "transfer weight to positive value". That is, in this example, each weight of the five variable resistance elements 41-1j to 41-5j is transferred by +0.5, thereby obtaining a value in the range of 0.0 or more and +1.0 or less. In addition, in "Transfer weight to positive value", "product-sum operation" shows the result of each product of the five variable resistance elements 41-1j to 41-5j and the result of their product sum (column of "sum"). In addition, the information of such weight transfer can also be pre-set in the control unit 15, for example. That is, the control unit 15 may control the weights of the variable resistance elements 41 - 11 to 41 -NM (in this example, the variable resistance elements 41 - 1 j to 41 - 5 j ) so as to obtain the transferred weights.

[0103] For the sum-of-products calculation result (the "sum" column) of "1.55" in "transferring the weight to a positive value", for the sum-of-products calculation result (the "sum" column) of "0.3" in "transferring the weight to a positive value", "1.25" which is the result of multiplying "2.5" of the total sum of "inputs" by 1 / 2 is transferred. That is, for the sum-of-products calculation result of "1.55" in "transferring the weight to a positive value", when a transfer opposite to this transfer (that is, a transfer of "-1.25") is given, the sum-of-products calculation result of "0.3" in "transferring the weight to a positive value" is obtained. In the present embodiment, such an opposite transfer is performed using the conversion unit 13 and the differential circuits 131-1 to 131-M. The information for performing such an opposite transfer may also be pre-set in the adjustment circuit 112 and the digital-to-analog converter 113 of the conversion unit 13, for example.

[0104] Thus, in the case where weights having negative values ​​and weights having positive values ​​are mixed, when a prescribed value A1 (A1 is a prescribed positive value) is added to all weights so that all weights have positive values, it is possible to perform an operation in which only weights having positive values ​​(or 0) exist. In addition, by subtracting a prescribed value B1 (B1 is a prescribed positive value) from the result of such an operation, it is possible to obtain the same operation result as the initial case, i.e., the operation result in which weights having negative values ​​and weights having positive values ​​are mixed.

[0105] This principle is used in the product-sum operator 1 of the present embodiment. That is, the array unit 12 performs a product-sum operation equivalent to "transferring the weights to positive values." In addition, the conversion unit 13 and the differential circuits 131-1 to 131-M are used to correct the operation result for the initial case, that is, the case where weights with negative values ​​and weights with positive values ​​are mixed. In the product-sum operator 1 of the present embodiment, variable resistance elements 41-11 to 41-NM are used to simulate the product-sum operation on the converted weights (transferred weights), and the result is corrected, thereby obtaining the operation result for the case where weights with negative values ​​and weights with positive values ​​are mixed.

[0106] In addition, Case 2 in Table 2011 is also described in the same manner as Case 1. Case 2 shows an example of numerical values ​​different from those in Case 1.

[0107] Here, Example 1 and Example 2 in Table 2011 represent, for example, a product-sum operation of a one-layer neural network having a 5-dimensional input ("1" to "5" in Table 2011). The information of "calculated weights" represents information of the simulation results calculated by the computer when weights having negative values ​​and weights having positive values ​​are mixed. The information of "weights transferred to positive values" represents information of the simulation results calculated by the computer when the weights are transferred in a manner that only weights having positive values ​​(which may also be 0) exist.

[0108] [Specific example of simulation of actual measured values: Correction of voltage]

[0109] Figure 3 It is a diagram showing a specific example (correction of voltage) of the simulation of the actual measurement value according to the embodiment of the present invention. Figure 3 Table 2021 shows a specific example (correction of voltage) of the simulation result of the actual measured value. Figure 2 The example is a theoretical example. Figure 3 The example is an example of measured values. Therefore, Figure 3 In the example, a value that deviates from the theoretical value may be adopted. In addition, some calculation errors may occur due to the relationship between the number of significant digits in the calculation.

[0110] The contents of Table 2021 will be described. Table 2021 shows Case 1 ("Case 1" in Table 2021) and Case 2 ("Case 2" in Table 2021) as two cases.

[0111] Case 1 is described.

[0112] In this example, a case where the j-th column in the array unit 12 has 5 (N=5) variable resistance elements 41-1j to 41-5j is shown as an example. In Table 2021, the 5 variable resistance elements 41-1j to 41-5j are represented by "1" to "5" (i=1 to 5) indicating the number of rows. In Table 2021, the sum of "1" to "5" is represented in "sum". In Table 2021, the value of the input data is represented by "input". In this example, the range of the input data is a range of 0 to 1.

[0113] In Table 2021, examples of numerical values ​​when weights having positive values ​​and weights having negative values ​​are used without performing corrections for the product-sum operation of the present embodiment are shown in "Calculations in Computer". In "Calculations in Computer", "Weights" show the values ​​of the respective weights of the five variable resistor elements 41-1j to 41-5j. In this example, the range of weights is -1 to +1. In addition, in "Calculations in Computer", "Product-Sum Operation" shows the results of the products of the five variable resistor elements 41-1j to 41-5j and the results of their product sums (the "sum" column). In this example, the range of the results of the product-sum operation is -5 to +5.

[0114] In Table 2021, an example of numerical values ​​when a configuration in which weights having positive values ​​are used but weights having negative values ​​are not used in the array unit 12 and correction of the sum-of-products operation of the present embodiment is performed is shown in "Calculation using neuromorphic array". In "Calculation using neuromorphic array", "input characteristics", "element", "array output", "capacity", "voltage output", "voltage correction", and "normalization" are shown.

[0115] "Input characteristics" indicates information about input data. "Input characteristics" indicates "count value", "pulse width (ns)", and "E (V)". "Count value" indicates the value of input data. In this example, this value is equivalent to the value that determines the length (pulse width) of the pulse-shaped wave. "Pulse width" indicates the pulse width of the input signal as a pulse width modulated signal. In this example, "pulse width" becomes a value 10 times the "count value" when the unit pulse width is set to 10 (ns), for example.

[0116] "E(V)" represents the voltage of the input signal as the pulse width modulation signal. In this example, the voltage is constant.

[0117] "Element" indicates information about the variable resistance elements 41-1j to 41-5j. "Element" indicates "G (μS)". "G (μS)" indicates the conductance value of each of the five variable resistance elements 41-1j to 41-5j. In this example, the conductance ranges from 1 (μS) to 2 (μS).

[0118] The "array output" indicates the output from the array unit 12 and information on the detection circuit 61-j. The "array output" indicates "I (μA)" and "Q (C)".

[0119] "I (μA)" indicates the current outputted from each of the five variable resistance elements 41-1j to 41-5j. In this example, the range of each current is 0.2 (μA) to 0.4 (μA). In this example, the range of the total value of the current is 1 (μA) to 2 (μA).

[0120] “Q(C)” indicates the amount of charge accumulated in the detection circuit 61 - j .

[0121] “Capacity” indicates information on the detection circuit 61 - j.

[0122] "Capacity" is indicated by "C(F)".

[0123] “C(F)” indicates the capacitance of the capacitor constituting the detection circuit 61 - j .

[0124] In addition, in Table 2021, for convenience, the capacity is recorded in the "sum" column.

[0125] “Voltage output” indicates information on the detection circuit 61 - j .

[0126] “Output voltage (μV)” is indicated in “voltage output.” In this example, the range of the voltage output is 1275 (μV) to 2550 (μV).

[0127] “Output voltage (μV)” indicates a voltage output from the detection circuit 61 - j .

[0128] In addition, in Table 2021, for convenience, the voltage is recorded in the "sum" column.

[0129] “Voltage correction” indicates information on the digital-to-analog converter 113 and the differential circuit 131 - j .

[0130] “Voltage correction” indicates “Δ” and “output voltage (μV)”.

[0131] “Δ” indicates the voltage of the analog signal output from the digital-to-analog converter 113 to the differential circuit 131 - j.

[0132] “Output voltage (μV)” indicates the voltage output from the differential circuit 131 - j .

[0133] In addition, in Table 2021, for convenience, the Δ and the voltage are recorded in the "sum" column.

[0134] "Standardization" indicates information about standardization.

[0135] "Standardization" means "Value range: ±5".

[0136] "Value range: ±5" indicates a value obtained by normalizing the voltage to the values ​​of ±5.

[0137] In addition, in Table 2021, for convenience, the value is recorded in the "sum" column.

[0138] Here, the calculation of the voltage correction amount "Δ" of the "voltage correction" is expressed, for example, by Δ={the sum of the lengths of the pulses of the input signal (s)}×(average current) / (detection capacity), or a mathematical formula including a coefficient greater than 1. As the coefficient, for example, one or both of a gain coefficient and a shift coefficient may be used.

[0139] In addition, in the normalization, matching is performed with the result of the product-sum operation.

[0140] In this example, the range of -1275 (μV) to +1275 (μV) as the corrected voltage corresponds to the range of -5 to +5 as the result of the product-sum operation. Therefore, the "normalization" operation is expressed as the normalization result value = (corrected voltage) / {2550 (μV) / 2}×5.

[0141] In addition, Case 2 in Table 2021 is also described in the same manner as Case 1. Case 2 shows an example of numerical values ​​different from those in Case 1.

[0142] For example, by setting predetermined setting values ​​to the product-sum operator 1 and the control unit 15 of this embodiment in order to perform operations that match the numerical values ​​shown in Example 1 in Table 2021, the operations shown in Example 1 in Table 2021 are implemented.

[0143] In addition, the numerical value shown in Example 1 in Table 2021 is only an example, and the product-sum operator 1 can be used to implement operations matching various other numerical values.

[0144] [Specific example of simulation of actual measured values: Correction of charge amount]

[0145] Figure 4 It is a diagram showing a specific example of the simulation of the actual measurement value according to the embodiment of the present invention (correction of the charge amount).

[0146] Figure 4 2 shows a table 2031 which records a specific example of the result of the simulation in which the actual measured values ​​were performed (correction of the charge amount).

[0147] Here, Figure 3 The example in Figure 1 shows the voltage correction, while Figure 4 The correction of the charge amount is illustrated in the example of FIG.

[0148] Figure 4 In the example of , it is assumed that the amount of charge accumulated in the detection circuit 61 - j of the j-th column is corrected.

[0149] As an example, in the multiplication and summation operator 1, instead of the combination of the detection circuit 61-j of the j-th column and the differential circuit 131-j of the j-th column, there is a circuit for detecting and correcting the sum of the currents (charge amounts) of the j-th column. The circuit accumulates the current flowing through the signal line 42-j of the j-th column, subtracts the charge amount corresponding to the voltage output from the conversion unit 13 from the sum of the accumulated currents (charge amount), and outputs a signal having a voltage corresponding to the result of the subtraction to the output terminal 151-j of the j-th column, thereby also realizing correction of the charge amount.

[0150] The contents of Table 2031 are explained.

[0151] In addition, for Figure 3 The parts that are the same as those in Table 2021 shown in the figure are omitted in detailed description.

[0152] Table 2031 shows case 1 ("Case 1" in table 2031) and case 2 ("Case 2" in table 2031) as two cases.

[0153] Case 1 is described.

[0154] In this example, the case where the j-th column in the array unit 12 has 5 (N=5) variable resistance elements 41-1j to 41-5j is shown as an example. In Table 2031, the 5 variable resistance elements 41-1j to 41-5j are represented by "1" to "5" (i=1 to 5) indicating the number of rows. In Table 2031, the sum of "1" to "5" is represented in "sum".

[0155] The "input" in Table 2031 indicates the same Figure 3 In Table 2031, an example of numerical values ​​when the product-sum operation is corrected without using weights having positive values ​​and weights having negative values ​​is shown in "Calculations in Computer". "Weights" and "Product-sum Operations" in "Calculations in Computer" in Table 2031 are shown as Figure 3 The same information as in Table 2021 is shown.

[0156] In Table 2031, an example of numerical values ​​when a configuration is used in which the array unit 12 uses weights having positive values ​​but does not use weights having negative values ​​and performs correction of the sum-of-products operation of this embodiment is shown in "Calculation using neuromorphic array".

[0157] In “Computation using neuromorphic array”, “input characteristics”, “element”, “array output”, “charge correction”, “capacity”, “voltage output”, and “normalization” are shown.

[0158] In Table 2031, "Count value", "Pulse width (ns)", "E (V)" of "Input characteristics", "G (μS)" of "Element", "I (μA)" of "Array output", "Q (C)", "C (F)" of "Capacitance", and "Standardization" are expressed in the same way as Figure 3 The same information as in Table 2021 is shown.

[0159] In Table 2031, "Charge Correction" indicates information on the correction of the charge amount. "Δ" and "Q after correction" are indicated in "Charge Correction". "Δ" indicates the total current (charge amount) of the analog signal output from the digital-to-analog converter 113. "Q after correction" indicates the charge amount after correction.

[0160] In the table 2031, "voltage output" indicates information on the voltage output from the output terminal 151-j. "Voltage output" indicates "output voltage (μV)". "Output voltage (μV)" indicates the value of the voltage output from the output terminal 151-j.

[0161] When the charge amount is corrected as shown in Table 2031, similar to the case where the voltage is corrected as shown in Table 2021, a product-sum operation in which positive weights and negative weights are mixed can be realized.

[0162] [Another example of input signal]

[0163] In this embodiment, a case where a pulse width modulated signal is generated by the input signal generating circuits 32-1 to 32-N is shown, but as another example, an amplitude modulated signal may be generated. In this case, each of the N input signal generating circuits 32-1 to 32-N generates an amplitude modulated signal having an amplitude corresponding to the value of the input data as an input signal. In this case, the height of the waveform of the amplitude modulated signal corresponds to the count value of the input registers 31-1 to 31-N.

[0164] Here, the result of integrating the amplitude over time (width) is correlated when a pulse width modulation signal is generated as an input signal and when an amplitude modulation signal is generated as an input signal. For example, by adjusting the coefficients when the input signal is generated by each input signal generating circuit 32-1 to 32-N, the result of integrating the amplitude over time (width) can be made the same when a pulse width modulation signal is generated as an input signal and when an amplitude modulation signal is generated as an input signal.

[0165] [Another Example of Adjustment Circuit in Converter]

[0166] In this embodiment, the conversion unit 13 includes the adding circuit 111, the adjusting circuit 112, and the digital-to-analog converter 113, but as another example, the adjusting circuit 112 may not be included. For example, in the case where the accuracy is obtained to a degree that is not a hindrance in practical use even without adjusting the adjusting circuit 112, the adjusting circuit 112 may not be included. That is, the conversion unit 13 may include the adding circuit 111 and the digital-to-analog converter 113, and the output from the adding circuit 111 is input to the digital-to-analog converter 113. In addition, for example, in the case where sufficient accuracy cannot be obtained without adjusting the adjusting circuit 112, it is preferable to have a structure including the adjusting circuit 112. For example, various mechanisms for dynamically correcting actual element manufacturing unevenness and temperature drift of the circuit may be provided in the adjusting circuit 112.

[0167] [Summary of the First Embodiment]

[0168] As described above, the product-sum operation unit 1 of the present embodiment can easily realize a product-sum operation in which weights having positive values ​​and weights having negative values ​​are mixed. The product-sum operation unit 1 of the present embodiment performs the product-sum operation in an analog manner.

[0169] In the product-sum operator 1 of this embodiment, a negative weight can be expressed by correcting the product-sum operation result generated by the array unit 12 and the detection circuits 61-1 to 61-M. Thus, in the product-sum operator 1, for example, each variable resistance element 41-11 to 41-NM can express a weight having a positive or negative value.

[0170] In the present embodiment, it is preferable to use an element having symmetry in the change characteristics of the conductance value as the variable resistive element 41 - 11 to 41 -NM. For example, the element may be an element utilizing the symmetry of spin.

[0171] In addition, the existing neuromorphic elements are elements in which the change characteristics of the conductance value are not symmetrical. Therefore, currently, it is essentially a premise to use two such elements. Or, there is a problem that when such an operation mechanism is to be constructed using elements with poor symmetry, the control for appropriately setting the values ​​of each positive and negative weight to the asymmetric conductance of the element becomes complicated. In contrast, in recent years, elements in which the change characteristics of the conductance value are symmetrical have been realized. Correspondingly, the present application considers using such elements to express a product-sum operation in which weights with positive values ​​and weights with negative values ​​are mixed. That is, currently, there is no subject that serves as an opportunity to develop the product-sum operator 1 of the present embodiment, and this subject is re-recognized in the present application.

[0172] [Structure example]

[0173] The following shows a configuration example of the product-sum operator 1, etc. In addition, the present invention is not limited to the following configuration example.

[0174] The product-sum operator 1 of this embodiment includes: a first circuit ( Figure 1 In the example of the input signal generating circuit 32-1 to 32-N), the second circuit ( Figure 1 In the example of the array unit 12 and the detection circuits 61-1 to 61-M), the third circuit ( Figure 1 In the example of the conversion unit 13), the fourth circuit ( Figure 1 In the example of , the differential circuits 131 - 1 to 131 -M may also include output terminals 151 - 1 to 151 -M. ). The second circuit has a first operation circuit ( Figure 1 In the example, for any j in one row or more, the variable resistance elements 41-1j to 41-Nj in the j-th column, the signal line 42-j, and the detection circuit 61-j). The fourth circuit has a differential circuit ( Figure 1 In the example, for any j in one row or more, the difference circuit 131-j in the jth column) The first circuit generates a plurality of data ( Figure 1 In the example of input data), the corresponding signals ( Figure 1 The first operation circuit of the second circuit uses a plurality of variable resistance elements ( Figure 1 In the example, for any j in one row or more, each variable resistance element (41-1j~41-Nj) in the j-th column multiplies each of the plurality of signals generated by the first circuit by a weight, and calculates the sum of the plurality of multiplication results ( Figure 1 In the example of , for any j in one row or more, the output from the detection circuit 61-j in the j-th column) The third circuit calculates the value corresponding to each of the plurality of data ( Figure 1 In the example, the addition result ( Figure 1 In the example, it is assumed that the output from the adding circuit 111 is directly converted by the digital-to-analog converter 113 (the conversion result), or the result obtained by adjusting the addition result ( Figure 1 In the example, the output from the adjustment circuit 112 is converted by the digital-to-analog converter 113. The difference circuit output of the fourth circuit is the difference between the result obtained by the first operation circuit of the second circuit and the result obtained by the third circuit. Therefore, in the multiplication and sum operation unit 1 of the present embodiment, the correction value ( Figure 1 In the example of the output from the digital-to-analog converter 113), for example, it is possible to eliminate the need to distinguish between positive and negative elements according to the weights of the neural network ( Figure 1 In the example, the variable resistance elements are 41 - 11 to 41 -NM).

[0175] In the product-sum operator 1 of this embodiment, the result obtained by the first operation circuit of the second circuit and the result obtained by the third circuit are analog signals. In addition, the differential circuit of the fourth circuit is an analog circuit. Therefore, in the product-sum operator 1 of this embodiment, the product-sum operation can be corrected by analog operation.

[0176] In the product-sum operator 1 of this embodiment, a common variable range of conductance is set in a plurality of variable resistance elements. The first operation circuit of the second circuit has a capacity ( Figure 1 In the example, for any j in more than one row, the capacitance of the capacitor constituting the detection circuit 61-j in the jth column). The result obtained by the third circuit operation is the result of multiplying the addition result of the values ​​corresponding to each of the plurality of data, the center value of the variable range of the conductance of the variable resistance element, and 1 / capacitance. Therefore, in the product-sum operator 1 of the present embodiment, the product-sum operation can be corrected using an analytical correction value through theoretical operation such as shown in formula (1).

[0177] In the product-sum operator 1 of the present embodiment, a common variable range of conductance is set in a plurality of variable resistance elements. The first operation circuit of the second circuit has a capacity for obtaining the sum of a plurality of multiplication results. The result obtained by the third circuit operation is equivalent to the sum of the addition result of the values ​​corresponding to each of the plurality of data, the product of the center value of the variable range of conductance of the variable resistance element and 1 / capacity multiplied by the first coefficient (K1 in the example of formula (2)) and the second coefficient (K2 in the example of formula (2)). Therefore, in the product-sum operator 1 of the present embodiment, the product-sum operation can be corrected using an analytical correction value by theoretical operation such as shown in formula (2). In this case, for example, elements such as unevenness in installation or temperature variation of the correction circuit can be included in the analytical correction value using a prescribed coefficient. Thus, in the product-sum operator 1, for example, uneven variation caused by characteristics such as analog installation, temperature or process dependence can be suppressed.

[0178] In the product-sum operator 1 of the present embodiment, the first circuit generates a signal corresponding to each of the plurality of data means that the first circuit generates a pulse width modulated signal corresponding to each of the plurality of data. Therefore, in the product-sum operator 1 of the present embodiment, when the pulse width modulated signal is generated by the input signal generating circuits 32-1 to 32-N, the product-sum operation can be corrected using a correction value based on the total value of the pulse widths of the N input signals.

[0179] In the product-sum operator 1 of the present embodiment, the first circuit generates a signal corresponding to each of the plurality of data means that the first circuit generates an amplitude modulated signal corresponding to each of the plurality of data. Therefore, in the product-sum operator 1 of the present embodiment, when the amplitude modulated signal is generated by the input signal generating circuits 32-1 to 32-N, the product-sum operation can be corrected using a correction value based on the total value of the amplitudes of the N input signals.

[0180] In the product-sum operator 1 of this embodiment, the second circuit has a plurality of ( Figure 1 In the example, there are a total of M first operation circuits.

[0181] The fourth circuit has a differential circuit ( Figure 1 In the example of , there are a total of M differential circuits 131-1 to 131-M). Therefore, in the product-sum operator 1 of the present embodiment, the output from one conversion section 13 is input to each of the M differential circuits 131-1 to 131-M. That is, the output from one conversion section 13 is reflected in the outputs of the plurality of signal lines 42-1 to 42-M constituting the array section 12. With this structure, in the product-sum operator 1, for example, the circuit scale can be reduced compared to the case where a conversion section (equivalent to the functional section of the conversion section 13) is provided in each of the plurality of signal lines 42-1 to 42-M constituting the array section 12.

[0182] In the product-sum operator 1 of the present embodiment, a plurality of data are input to the third circuit in a time-series order. The third circuit adds the values ​​corresponding to each of the plurality of data in a time-series order. Therefore, in the product-sum operator 1 of the present embodiment, when the data output from the plurality of input registers 31-1 to 31-N are input to the adder circuit 111 via the signal line 33 in a time-series order, the data can be sequentially added in the adder circuit 111. In this case, for example, the structure of the adder circuit 111 can be simplified compared to a case where timing control is performed when adding a plurality of data.

[0183] In the product-sum operator 1 of this embodiment, the variable resistance element is a magnetoresistive element that exhibits a magnetoresistive effect. Therefore, in the product-sum operator 1 of this embodiment, as a preferred mode, a magnetoresistive element can also be used as the variable resistance element 41-11 to 41-NM. As a result, in the product-sum operator 1, it is easy to express a weight having a positive value and a weight having a negative value.

[0184] In this embodiment, the same product-sum calculation method as the processing performed by the product-sum calculation unit 1 of this embodiment can be implemented. Therefore, in the product-sum calculation method of this embodiment, the same effect as the case of the product-sum calculation unit 1 of this embodiment can be obtained.

[0185] In this embodiment, a logic operation device that includes the product-sum operator 1 of this embodiment and performs a logic operation can be implemented. Thus, in the logic operation device of this embodiment, for example, the performance of the logic operator can be improved by a product-sum operation with less error. In addition, any operation can be performed as a logical operation.

[0186] In this embodiment, a neuromorphic device using neuromorphic elements as variable resistor elements 41 - 11 to 41 -NM can be implemented by including the product-sum operator 1 of this embodiment. Thus, in the neuromorphic device of this embodiment, for example, the performance of the neuromorphic device can be improved by product-sum operations with less errors.

[0187] Furthermore, arbitrary computations can be performed in neuromorphic devices.

[0188] Here, a neuromorphic device is a device for performing neuromorphic computing, for example, computing that mimics brain activity. A neuromorphic device may be, for example, a device that combines circuits such as an array, or a device that constitutes a neural network. By using the technology of a neural network, a high degree of information recognition or classification can be performed. This neural network technology has been put into practical use in a wide range of fields, such as deep learning, medicine, health care, finance, marketing, authentication, and security.

[0189] (Second Embodiment)

[0190] [Structure of the product-sum operator]

[0191] Figure 5 2 is a diagram showing a schematic structure of a product-sum operator 201 according to an embodiment (second embodiment) of the present invention. Figure 1 The same components as those of the product and the operator 1 are described with the same reference numerals, and detailed descriptions thereof are omitted. In addition, in this embodiment, for the sake of convenience, the i and j used in the description of the first embodiment are used for description.

[0192] The product-sum operator 201 includes an input unit 11 , an array unit 12 , a conversion unit 221 , and an output unit 222 .

[0193] in addition, Figure 5, there is shown a control unit 15 that controls the product-sum operator 201. In the present embodiment, the control unit 15 is configured as a functional unit different from the product-sum operator 201. In this case, it can also be considered that the product-sum operator 201 and the control unit 15 are, for example, included in a prescribed device (e.g., a product-sum operation device) or a prescribed system (e.g., a product-sum operation system). As another example, the control unit 15 can also be configured integrally with the product-sum operator 201. In this case, it can also be considered that the product-sum operator 201 has the control unit 15.

[0194] Here, the input unit 11, the array unit 12, and the control unit 15 are the same as those of the first embodiment. Figure 1 The product shown in FIG. 1 is the same component as the arithmetic unit 1. In addition, the control method performed by the control unit 15 may also be, for example, Figure 1 The product-sum operator 1 shown is different from the product-sum operator 201 of this embodiment.

[0195] In this embodiment, the conversion unit 221 and the output unit 222 are described in detail.

[0196] The conversion unit 221 has the same Figure 1 The adding circuit 111 is the same as the circuit shown in the first embodiment. Figure 1 The adjustment circuit 112 is the same as the circuit shown.

[0197] The output unit 222 has: Figure 1 The circuit shown has the same M detection circuits 61 - 1 to 61 -M, M analog digital converters (ADCs) 261 - 1 to 261 -M, M differential circuits 281 - 1 to 281 -M, and M output terminals 311 - 1 to 311 -M.

[0198] As an example, each of the M differential circuits 281-1 to 281-M may be a logic circuit for calculating a difference. In addition, as the detection circuits 61-1 to 61-M, the differential circuits 281-1 to 281-M, and the analog-to-digital converters 261-1 to 261-M, a set of circuits is allocated to each of the M columns, but it is not necessarily necessary to have a set of circuits with the same number of columns. For example, one detection circuit, one differential circuit, and one analog-to-digital converter may be allocated to each of the M columns in time division and multiplexed.

[0199] [Functions and Operations of Each Circuit in the Product-Sum Calculator]

[0200] The following describes an example of the functions and operations of each circuit in the product-sum operator 201. Figure 1Compared with the structure and operation of the conversion unit 13 shown in the figure, the structure and operation of the conversion unit 221 are different in that the conversion unit 221 does not include the digital-to-analog converter 113 of the conversion unit 13 .

[0201] The conversion unit 221 outputs the digital data of the adjustment result output from the adjustment circuit 112 to each of the M differential circuits 281-1 to 281-M. This digital data corresponds to the digital data of the first embodiment. Figure 1 The conversion section 13 shown is the digital data output from the adjustment circuit 112 to the digital-to-analog converter 113 .

[0202] The analog-to-digital converter 261 - j in the jth column inputs the analog signal output from the detection circuit 61 - j in the jth column, converts the input analog signal into digital data, and outputs the converted digital data to the differential circuit 281 - j in the jth column.

[0203] The differential circuit 281-j of the jth column has: a positive terminal (+ terminal) as one input terminal, a negative terminal (- terminal) as the other input terminal, and an output terminal. The differential circuit 281-j of the jth column inputs the digital data output from the analog-to-digital converter 261-j of the jth column from the positive terminal, and inputs the digital data output from the adjustment circuit 112 from the negative terminal. The differential circuit 281-j of the jth column outputs data obtained by subtracting the input data of the negative terminal from the input data of the positive terminal from the output terminal. The data is output to the output terminal 311-j of the jth column. In this embodiment, the differential circuit 281-j of the jth column outputs data representing the difference between the two input data. The difference can also be represented by a voltage value, for example. In this embodiment, the difference is the result obtained by subtracting the input data of the negative terminal from the input data of the positive terminal.

[0204] The output terminal 311-j of the jth column outputs the data input from the difference circuit 281-j of the jth column. Here, the data can also be used for any purpose. As an example, the data can also be input to a circuit (not shown) that uses the product-sum operation result in a neural network and used.

[0205] In addition, for example, a digital-to-analog converter (not shown) of the jth column may be provided between the differential circuit 281-j of the jth column and the output terminal 311-j of the jth column. In this case, the digital-to-analog converter of the jth column inputs the digital data output from the differential circuit 281-j of the jth column, converts the input digital data into an analog signal, and outputs the converted analog signal to the output terminal 311-j of the jth column. In this case, the output terminal 311-j of the jth column outputs the analog signal output from the digital-to-analog converter of the jth column.

[0206] [Summary of the Second Embodiment]

[0207] As described above, the product-sum operator 201 of this embodiment can perform the same operation as the product-sum operator 1 of the first embodiment, and can obtain the same effect except that the difference from the product-sum operator 1 of the first embodiment brings different effects. Therefore, in the product-sum operator 201 of this embodiment, for example, a product-sum operation in which weights having positive values ​​and weights having negative values ​​are mixed can be easily realized.

[0208] [Structure example]

[0209] The product-sum operator 201 of this embodiment includes: a first circuit ( Figure 5 In the example of the input signal generating circuit 32-1 to 32-N), the second circuit ( Figure 5 In the example of the array unit 12, the detection circuits 61-1 to 61-M, and the analog-to-digital converters 261-1 to 261-M), the third circuit ( Figure 5 In the example of the conversion unit 221), the fourth circuit ( Figure 5 In the example of , the differential circuits 281 - 1 to 281 -M may also include output terminals 311 - 1 to 311 -M. ) The second circuit has a first operation circuit ( Figure 5 In the example, for any j in one row or more, the variable resistance elements 41-1j to 41-Nj in the j-th column, the signal line 42-j, the detection circuit 61-j, and the analog-to-digital converter 261-j). The fourth circuit has a differential circuit ( Figure 5 In the example, for any j in one row or more, the difference circuit 281-j in the jth column) is generated by the first circuit in accordance with the plurality of data ( Figure 5 In the example of input data), the corresponding signals ( Figure 5 The first operation circuit of the second circuit uses a plurality of variable resistance elements ( Figure 5 In the example, for any j in one row or more, each variable resistance element (41-1j~41-Nj) in the j-th column multiplies each of the plurality of signals generated by the first circuit by a weight, and calculates the sum of the plurality of multiplication results ( Figure 5 In the example of , for any j in one row or more, the output from the detection circuit 61-j in the j-th column) The third circuit calculates the value corresponding to each of the plurality of data ( Figure 5 In the example, the addition result (count value corresponding to the input data) Figure 5 In the example, it is assumed that the output from the adding circuit 111 is directly output from the adjusting circuit 112) or the result obtained by adjusting the addition result ( Figure 5In the example, the output from the adjustment circuit 112). The difference circuit of the fourth circuit outputs the difference between the result obtained by the first operation circuit of the second circuit and the result obtained by the third circuit. Therefore, in the product-sum operator 201 of this embodiment, the outputs ( Figure 5 In the example of , the output is the result of conversion by the analog-to-digital converters 261 - 1 to 261 -M) minus the value calculated based on the sum of the input data ( Figure 5 In the example of the output from the adjustment circuit 112), for example, it is possible to eliminate the need to distinguish between positive and negative elements according to the weights of the neural network ( Figure 5 In the example, the variable resistance elements 41 - 11 to 41 -NM).

[0210] In addition, although the analog-to-digital converters 261-1 to 261-M are described as being included in the second circuit, as another example, the analog-to-digital converters 261-1 to 261-M may be included in the third circuit. That is, the analog-to-digital converters 261-1 to 261-M may be considered to be different from those in the first embodiment. Figure 1 The digital-to-analog converter 113 shown is also used for adjusting the correction value circuit.

[0211] In the product-sum operator 201 of this embodiment, the result obtained by the first operation circuit of the second circuit and the result obtained by the third circuit are digital data. The difference circuit of the fourth circuit is a digital circuit. Therefore, in the product-sum operator 201 of this embodiment, by converting the output of the array unit 12 into digital data, the product-sum operation can be corrected by digital operation.

[0212] (Summary of the above embodiments)

[0213] The product-sum operator 1, 201 as described above, or the neuromorphic device using the same can be used as the brain of various sensors and robots. When the signal output from the sensor is input into the control device using the neuromorphic device, it can be used as an Edge element. As far as the sensor signal is concerned, there is usually a lot of noise, and the sensor signal to be obtained cannot be extracted from the noise in the ordinary sensor module. Therefore, the following method is adopted, such as using signal processing technology to remove the noise from the timing signal of the sensor signal and extract the signal to be obtained. In this case, in addition to the obtained signal, only energy consumption is generated without generating information. By inputting the sensor signal into the control device using the neuromorphic device, high-precision recognition can be performed. At present, the observation signal with noise superimposed on the source signal is separated into the source signal and the noise, and first extracted as meaningful information, but when using this control device, the source signal to be obtained can be predicted from the timing signal containing noise, and even if the output intensity and statistical value of the source signal are small, it can be extracted as a meaningful signal. It is a module in which the sensor and the control device are integrated, and can be used as an AI Edge sensor module. When the present control device is used, the recognition accuracy becomes higher, so information can be extracted through a smaller calculation function than before, which can achieve low cost, power saving, and volume saving.

[0214] It is also preferred to input signals of multiple sensors to the control device at the same time. By inputting signals of multiple sensors at the same time, it is possible to obtain identification related to the correlation between the sensors. For example, sensors are set on the hands, feet, and torso of the robot. When the signals from the sensors are input to the control device at the same time, it is possible to compositely judge whether the robot is walking or falling, etc. based on the signals. Moreover, in a robot or car equipped with multiple AI Edge sensor modules, by simultaneously inputting signals to the control device, further power saving and high functionality can be expected. In the case where multiple sensors are sensors of different types, it is necessary to set a control device corresponding to the voltage and current corresponding to each sensor. In this case, a transformer and an analog-to-digital converter (ADC) are required in the interface of the control device, and energy is consumed by energy conversion. In the AI ​​Edge sensor module, energy is consumed, but the signal output from the AI ​​Edge sensor module to the central control device is a signal after certain recognition and identification by the AI ​​Edge sensor module, and only necessary information can be sent. Through these functions, the communication between the AI ​​Edge sensor module and the central control device can be reduced, and therefore, the energy consumption of the system as a whole can be reduced.

[0215] In addition, the processing can also be performed by recording the program for realizing the functions of each part (such as the control part 15, etc.) of the above-mentioned embodiment in a computer-readable recording medium (storage medium), and reading the program recorded in the recording medium into the computer system and running it. In addition, the "computer system" mentioned here may also include hardware such as operation, system (OS: Operating System) or peripheral equipment. In addition, "computer-readable recording medium" refers to a writable non-volatile memory such as a floppy disk, a magneto-optical disk, a ROM (Read Only Memory), a flash memory, a portable medium such as a DVD (Digital Versatile Disc), a hard disk built into the computer system, and the like. In addition, as a recording medium, for example, a recording medium that temporarily records data can also be used.

[0216] In addition, "computer-readable recording medium" includes a medium that retains the program for a certain period of time, such as a volatile memory (e.g., DRAM (Dynamic Random Access Memory)) inside a computer system that serves as a server or a client when the program is transmitted via a network such as the Internet or a communication line such as a telephone line.

[0217] In addition, the above-mentioned program may also be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or through a transmission wave in the transmission medium. Here, the "transmission medium" for transmitting the program refers to a medium having the function of transmitting information, such as a network (communication network) such as the Internet or a communication wire (communication line) such as a telephone line. In addition, the above-mentioned program may also be a program for realizing a part of the above-mentioned function. In addition, the above-mentioned program may also be a so-called differential file (differential program) that can be realized by combining with a program that has already recorded the above-mentioned function in a computer system.

[0218] As mentioned above, although the embodiment of the present invention is described in detail with reference to the drawings, the specific structure is not limited to this embodiment, and design changes and the like are also included without departing from the scope of the gist of the present invention.

[0219] Industrial Applicability

[0220] According to the product-sum operator, product-sum operation method, logic operation device and neuromorphic device of the present invention, it is possible to simply implement a product-sum operation in which weights with positive values ​​and weights with negative values ​​are mixed.

[0221] Description of Reference Numerals

[0222] 1, 201…product-sum operator, 11…input unit, 12…array unit, 13, 221…conversion unit, 14, 222…output unit, 15…control unit, 31-1 to 31-N…input register, 32-1 to 32-N…input signal generation circuit, 33, 42-1 to 42-M…signal line, 41-11 to 41-NM…variable resistance element, 61-1 to 61-M…detection circuit, 1 11…addition circuit, 112…adjustment circuit, 113…digital-to-analog converter, 131-1~131-M, 281-1~281-M…differential circuit, 151-1~151-M, 311-1~311-M…output end, 261-1~261-M…analog-to-digital converter, 1011-1~1011-N…input signal, 2011, 2021, 2031…table.

Claims

1. A product-sum operator, It is characterized in that include: A first circuit for generating a signal corresponding to each of a plurality of data; a second circuit having a first operation circuit for multiplying a plurality of signals generated by the first circuit by a weight using each of a plurality of variable resistance elements having a variable resistance value, and calculating a sum of the plurality of multiplication results; A third circuit is configured to calculate an addition result of the values ​​corresponding to the plurality of data, or to calculate a result obtained by adjusting the addition result; A fourth circuit includes a differential circuit that outputs a difference between a result obtained by operation of the first operation circuit of the second circuit and a result obtained by operation of the third circuit.

2. The product-sum operator according to claim 1, Features: The result obtained by the operation of the first operation circuit of the second circuit and the result obtained by the operation of the third circuit are analog signals, The differential circuit of the fourth circuit is an analog circuit.

3. The product-sum operator according to claim 1, Features: The result obtained by the operation of the first operation circuit of the second circuit and the result obtained by the operation of the third circuit are digital data, The differential circuit of the fourth circuit is a digital circuit.

4. The product-sum operator according to any one of claims 1 to 3, Features: setting a common variable range of conductance in the plurality of variable resistance elements, The first operation circuit of the second circuit has a capacity to obtain a sum of the plurality of multiplication results, The result obtained by the third circuit operation is a result obtained by multiplying the addition result of the values ​​corresponding to each of the plurality of data, the center value of the variable range of the conductance of the variable resistance element, and 1 / the capacity.

5. The product-sum operator according to any one of claims 1 to 3, Features: setting a common variable range of conductance in the plurality of variable resistance elements, The first operation circuit of the second circuit has a capacity to obtain a sum of the plurality of multiplication results, The result obtained by the third circuit operation is equivalent to the sum of the addition result of the values ​​corresponding to each of the multiple data, the center value of the variable range of the conductance of the variable resistance element and 1 / the product of the capacitance and the first coefficient and the second coefficient.

6. The product-sum operator according to any one of claims 1 to 3, Features: The first circuit generates the signal corresponding to each of the plurality of data, and the first circuit generates a pulse width modulation signal corresponding to each of the plurality of data.

7. The product-sum operator according to any one of claims 1 to 3, Features: The first circuit generates the signal corresponding to each of the plurality of data, and the first circuit generates an amplitude modulation signal corresponding to each of the plurality of data.

8. The product-sum operator according to any one of claims 1 to 3, Features: The second circuit includes a plurality of the first operation circuits. The fourth circuit includes the differential circuit for each of the plurality of first operational circuits.

9. The product-sum operator according to any one of claims 1 to 3, Features: The plurality of data are input to the third circuit in a time-series order, The third circuit adds values ​​corresponding to the respective ones of the plurality of data in the order of the time series.

10. The product-sum operator according to any one of claims 1 to 3, Features: The variable resistance element is a magnetoresistive effect element that exhibits a magnetoresistive effect.

11. A product-sum operation method performed in a product-sum operator, wherein the product-sum operator comprises a first circuit, a second circuit, a third circuit and a fourth circuit, the second circuit has a first operation circuit, the fourth circuit has a differential circuit, and the product-sum operation method is characterized in that: The first circuit generates a signal corresponding to each of the plurality of data. The first operation circuit of the second circuit uses each of a plurality of variable resistance elements having variable resistance values ​​to multiply a plurality of the signals generated by the first circuit by a weight, and calculates a sum of the plurality of multiplication results. The third circuit calculates the addition result of the values ​​corresponding to the plurality of data, or calculates the result obtained by adjusting the addition result. The differential circuit of the fourth circuit outputs a difference between a result obtained by operation by the first operation circuit of the second circuit and a result obtained by operation by the third circuit.

12. A logic operation device, Features: The product-sum operator according to any one of claims 1 to 10, Performs logical operations.

13. A neuromorphic device, Features: The product-sum operator according to any one of claims 1 to 10, The variable resistance element of the product-sum operator is a neuromorphic element.