Multiply-accumulate operation device, multiply-accumulate operation circuit, multiply-accumulate operation system and multiply-accumulate operation method
By designing a multiply-accumulate operation device in the analog system and using pulse signals and thresholds to output the multiply-accumulate signal, the problem of insufficient accuracy in the multiply-accumulate operation in the analog system is solved, achieving higher accuracy and lower power consumption.
Patent Information
- Application Number
- CN201980045393.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-13
- Filing Date
- 2019-07-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The accuracy of multiply-accumulate operations in existing simulation systems is insufficient, resulting in high power consumption of computing neural networks and other devices. It is necessary to improve the accuracy of multiply-accumulate operations.
A product-accumulation operation device is designed, including an input line, a product unit, an accumulation unit, a charging unit, and an output unit. The product value is generated by inputting pulse signals, accumulated and charged, and the threshold value associated with the accumulation state is used to output the product-accumulation signal. Set Charge speed and threshold for improved resolution and accuracy.
The accuracy of multiplication and accumulation operations is improved, power consumption is reduced, and higher operation resolution and accuracy are achieved.
Smart Images

Figure CN112384927B_ABST
Abstract
Description
Technical Field
[0001] The present technology relates to a multiply-accumulate operation device, a multiply-accumulate operation circuit, a multiply-accumulate operation system, and a multiply-accumulate operation method suitable for a multiply-accumulate operation using an analog system. Background Art
[0002] For example, patent document 1 describes an analog circuit in which processing of a multiplication-addition operation is performed by an analog system. In the analog circuit, a weight corresponding to each of a plurality of electrical signals is set. In addition, an electric charge corresponding to the product of the corresponding electrical signal and the weight is output, and the output electric charge is appropriately accumulated in a capacitor. Then, a signal representing the result of the multiplication-addition is calculated based on the voltage of the capacitor in which the electric charge is accumulated. Therefore, for example, the power consumed by the multiplication-addition operation can be reduced compared to processing using a digital system (paragraphs
[0003] ,
[0049] to
[0053] and
[0062] of the specification of patent document 1 and Figure 4 wait).
[0003] Citation List
[0004] Patent Literature
[0005] Patent Document 1: WO 2018 / 034163 Summary of the invention
[0006] Technical issues
[0007] The use of such circuits using an analog system is expected to lead to a reduction in power consumption of devices that calculate neural network models and the like, and a technology capable of improving the accuracy of multiply-add operations is required.
[0008] In view of the above circumstances, an object of the present technology is to provide a multiply-add operation device, a multiply-add operation circuit, a multiply-add operation system, and a multiply-add operation method capable of improving the accuracy of operations in an analog system that performs multiply-add operations.
[0009] Solution to the problem
[0010] In order to achieve the above-mentioned purpose, the multiplication and accumulation operation device according to the embodiment of the present invention is a multiplication and accumulation operation device that uses an analog circuit to perform multiplication and accumulation operations, and includes: multiple input lines; multiple product units; an accumulation unit; a charging unit; and an output unit.
[0011] A pulse signal having a pulse width corresponding to an input value is input to the plurality of input lines.
[0012] The plurality of product units generate charges corresponding to product values obtained by multiplying the input value by the weight value based on a pulse signal input to each of the plurality of input lines.
[0013] The accumulation unit accumulates a sum of charges corresponding to a product value generated by each of the plurality of product units.
[0014] The charging unit charges the accumulation unit in which the sum of charges corresponding to the product value has been accumulated at a charging speed associated with the accumulation state of the accumulation unit.
[0015] After the charging unit starts charging, the output unit outputs a product accumulation signal indicating a sum of product values by performing threshold determination on a voltage held by the accumulation unit using a threshold associated with an accumulation state of the accumulation unit.
[0016] In the multiplication and addition operation device, the charging speed of the accumulation unit and the threshold value for outputting the multiplication and addition signal representing the sum of the product values are set in association with the accumulation state of the accumulation unit. Therefore, the resolution representing the multiplication and addition operation result can be improved, and the operation accuracy can be improved.
[0017] A pulse signal may be input to each of the plurality of input lines within an input period having a predetermined length. In this case, the charging unit may start charging after the input period ends. In addition, within an output period having a predetermined length, the output unit may also output a multiplication accumulation signal based on the timing at which the voltage held by the accumulation unit increases (or decreases) to exceed a threshold value.
[0018] The charging speed and the threshold value may be set based on an effective maximum value and an effective minimum value of the sum of charges corresponding to the product value obtained from an estimation result of the sum of charges corresponding to the product value accumulated by the accumulation unit.
[0019] The charging speed and the threshold value are set so that the range from the effective maximum value to the effective minimum value is the range in which the product-accumulation signal can be output in the output period.
[0020] The timing when the voltage maintained by the accumulation unit increases (or decreases) to exceed the threshold is used as the calculation timing for calculating the product accumulation signal, and the charging speed and the threshold can be set so that the calculation timing corresponding to the effective maximum value is the timing immediately after the start timing of the output period, and the calculation timing corresponding to the effective minimum value is the timing immediately before the end timing of the output period.
[0021] The charging speed and threshold may be set based on the length of the output period.
[0022] The effective maximum value and the effective minimum value may be a theoretical maximum value and a theoretical minimum value respectively obtained from a theoretical value of the sum of the charges corresponding to the product value accumulated by the accumulation unit.
[0023] The length of the output period may be equal to the length of the input period.
[0024] The charging unit may start charging at the end timing of the input period. In this case, the output period may start at the charging start timing of the charging unit.
[0025] The plurality of product units may include a positive weight product unit and a negative weight product unit, the positive weight product unit generating a positive weight charge corresponding to a product value obtained by multiplying an input value by a positive weight value, and the negative weight product unit generating a negative weight charge corresponding to a product value obtained by multiplying an input value by a negative weight value. In this case, the accumulation unit may include a positive charge accumulation unit and a negative charge accumulation unit, the positive charge accumulation unit accumulating the sum of the positive weight charges generated by the positive weight product unit, and the negative charge accumulation unit accumulating the sum of the negative weight charges generated by the negative weight product unit. In addition, the charging unit may charge the positive charge accumulation unit and the negative charge accumulation unit at the same charging speed. In addition, the output unit may output a product accumulation signal by performing threshold determination on the positive charge accumulation unit and the negative charge accumulation unit using the same threshold.
[0026] The accumulation unit may accumulate charges corresponding to a difference between a total amount of positive weighted charges corresponding to a product value obtained by multiplying the input value by the positive weight value and a total amount of negative weighted charges corresponding to a product value obtained by multiplying the input value by the negative weight value.
[0027] The positive weight charge and the negative weight charge may be charges having the same sign as each other. In this case, the accumulation unit may accumulate the sum of the positive weight charge and release the sum of the negative weight charge.
[0028] The pulse signal may have a pulse width corresponding to a period from a timing corresponding to an input value in an input period to an end timing of the input period.
[0029] The multiplication and addition operation device may further include one or more output lines. In this case, a plurality of product units may be provided corresponding to the plurality of input lines. In addition, each of the plurality of product units may include a resistor defining a weight value and having a nonlinear characteristic, the resistor being connected between a corresponding input line of the plurality of input lines and any one of the one or more output lines, and each of the plurality of product units may output a charge corresponding to the product value to the output line to which the resistor is connected.
[0030] The multiplication and addition operation device may further include a positive charge output line and a negative charge output line. In this case, a plurality of product units may be provided corresponding to a plurality of input lines. In addition, the positive weight product unit may include a resistor defining a positive weight value and having a nonlinear characteristic, the resistor being connected between the corresponding input line of the plurality of input lines and the positive charge output line, and the positive weight product unit may output a positive weight charge corresponding to the product value to the positive charge output line. In addition, the negative weight product unit may include a resistor defining a negative weight value and having a nonlinear characteristic, the resistor being connected between the corresponding input line of the plurality of input lines and the negative charge output line, and the negative weight product unit may output a negative weight charge corresponding to the product value to the negative charge output line.
[0031] The resistor may be a fixed resistance element, a variable resistance element, or a MOS transistor operating in a subthreshold region.
[0032] The multiply-accumulate operation circuit according to the embodiment of the present technology is a multiply-accumulate operation circuit that performs a multiply-accumulate operation by an analog system, and includes a plurality of input lines, a plurality of product units, an accumulation unit, a charging unit, and an output unit.
[0033] A multiply-accumulate operation system according to an embodiment of the present technology includes a plurality of input lines and a network circuit including a plurality of analog circuits.
[0034] The plurality of analog circuits include a plurality of product units, accumulation units, charging units and output units.
[0035] The multiplication and addition operation method according to an embodiment of the present technology includes inputting a pulse signal having a pulse width corresponding to an input value to a plurality of input lines. Based on the pulse signal input to each of the plurality of input lines, a charge corresponding to a product value obtained by multiplying the input value by a weight value is generated.
[0036] The sum of the generated charges corresponding to the product value is accumulated in the accumulation unit.
[0037] The accumulation unit in which the sum of charges corresponding to the product value is accumulated is charged at a charging speed associated with the accumulation state of the accumulation unit.
[0038] After charging is started, threshold determination is performed on the voltage held by the accumulation unit by using a threshold value associated with an accumulation state of the accumulation unit to output a product accumulation signal representing the sum of product values.
[0039] Beneficial Effects of the Invention
[0040] As described above, according to the present technology, it is possible to improve the accuracy of operations in an analog system that performs multiply-add operations. Note that the effects described here are not necessarily restrictive, and any effects described in the present disclosure may be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] [ Figure 1 ] is a schematic diagram showing a configuration example of an operation device including a multiplication and addition operation device according to the first embodiment.
[0042] [ Figure 2 ] is a schematic diagram showing an example of an electrical signal input to a multiplication and addition operation device.
[0043] [ Figure 3 ] is a schematic diagram showing an example of a configuration of a multiplication and addition operation device for realizing the operation device.
[0044] [ Figure 4 ] is a schematic diagram showing an example configuration of a neuronal circuit.
[0045] [ Figure 5 ] is a schematic circuit diagram showing an example of a multiply-and-add operation device.
[0046] [ Figure 6 ] is used to describe Figure 5 FIG. 2 is a diagram showing an example of calculation of a multiply-and-accumulate signal by a multiply-and-accumulate operation device.
[0047] [ Figure 7 ] is a schematic diagram showing an example of calculation of a multiply-add signal representing the entire multiply-add result.
[0048] [ Figure 8 ] is a schematic diagram for describing the setting of charging speed and threshold value.
[0049] [ Fig. 9 ] is a schematic diagram for describing the setting of charging speed and threshold value.
[0050] [ Fig.10 ] is a schematic diagram for describing the setting of charging speed and threshold value.
[0051] [ Fig.11 ] is a circuit diagram showing an example of a multiplication and addition operation device according to the second embodiment.
[0052] [ Fig.12 ] is used to describe Fig.11 FIG. 2 is a diagram showing an example of calculation of a multiply-and-accumulate signal by a multiply-and-accumulate operation device.
[0053] [ Fig.13 ] is a schematic circuit diagram showing an example of a multiplication and addition operation device according to the third embodiment.
[0054] [ Fig.14 ] is a schematic circuit diagram showing an example of a multiplication and addition operation device according to the fourth embodiment.
[0055] [ Fig.15 ] is a schematic diagram showing another example of a pulse signal (PWM signal) having a pulse width corresponding to a signal value.
[0056] [ Fig.16 ] is shown Figure 4 Circuit diagram showing an example of a specific configuration of a neuronal circuit.
[0057] [ Fig.17 ] is shown Fig.16 Timing diagram of an example of the operation of the neuronal circuit shown.
[0058] [ Fig.18 ] is a circuit diagram showing another configuration example of a neuronal circuit.
[0059] [ Fig.19 ] is shown Fig.18 Timing diagram of an example of the operation of the neuronal circuit shown.
[0060] [ Fig. 20 ] is shown Fig.18 Timing diagram of another example of operation of the neuronal circuit shown. DETAILED DESCRIPTION
[0061] Hereinafter, with reference to the accompanying drawings, embodiments according to the present invention will be described.
[0062] <First Embodiment>
[0063] [Configuration of the multiplication and accumulation operation device]
[0064] Figure 1 1 is a schematic diagram showing a configuration example of an operation device including a multiplication-addition operation device according to a first embodiment of the present technology. The operation device 100 is an operation device using a simulation system, which performs predetermined arithmetic processing including a multiplication-addition operation. The operation device 100 is capable of performing arithmetic processing according to a mathematical model.
[0065] The operation device 100 includes a plurality of signal lines 1, a plurality of input units 2, and a plurality of product-addition operation devices 3. Each signal line 1 is a line for transmitting an electrical signal of a predetermined method. As the electrical signal, for example, an analog signal representing a signal value using an analog quantity such as the timing and width of a pulse is used. Figure 1 The transmission direction of the electrical signal is schematically shown by arrows.
[0066] For example, a plurality of signal lines 1 are connected to one multiplication-accumulation operation device 3. The signal line 1 that transmits an electrical signal to the multiplication-accumulation operation device 3 is an input signal line for inputting an electrical signal to the multiplication-accumulation operation device 3 connected to the signal line 1. In addition, the signal line 1 that transmits an electrical signal output by the multiplication-accumulation operation device 3 is an output signal line for outputting an electrical signal to the multiplication-accumulation operation device 3 that outputs the electrical signal. In the present embodiment, the input signal line corresponds to the input line.
[0067] Each of the plurality of input units 2 generates a plurality of electrical signals corresponding to input data 4. The input data 4 is, for example, data to be processed using a neural network or the like executed by the computing device 100. Therefore, it can also be said that each signal value of the plurality of electrical signals according to the input data 4 is an input value of the computing device 100.
[0068] As the input data 4, for example, arbitrary data such as image data, audio data, and statistical data to be processed by the operation device 100 is used. For example, in the case where image data is used as the input data 4, an electric signal having a signal value corresponding to a pixel value (RGB value, brightness value, etc.) of each pixel of the image data is generated. In addition, an electric signal corresponding to the input data 4 can be appropriately generated according to the type of the input data 4 and the processing content of the operation device 100.
[0069] The multiplication-addition operation device 3 is a multiplication-addition operation circuit using an analog system, which performs a multiplication-addition operation based on an input electrical signal. The multiplication-addition operation is an operation of adding a plurality of product values obtained by multiplying each of a plurality of input values by a weight value. Therefore, it can also be said that the multiplication-addition operation is a process of calculating the sum of the respective product values (hereinafter referred to as the multiplication-addition result).
[0070] like Figure 1 As shown, a plurality of input signal lines are connected to one multiplication-addition operation device 3 to provide a plurality of electrical signals. In the present embodiment, the total number of electrical signals input to one multiplication-addition operation device 3 is N. Note that the number N of electrical signals to be input to each multiplication-addition operation device 3 is appropriately set for each circuit according to, for example, a model of arithmetic processing, accuracy, etc.
[0071] In the multiplication and accumulation operation device 3, for example, a signal value (input value) x represented by the electric signal input from the i-th input signal line is calculated. i and corresponds to the signal value x i The weight value w i The product value w i ·x iHere, i is a natural number equal to or less than N (i = 1, 2, ..., N). A product value operation is performed on each electrical signal (input signal line), and N product values are calculated. The sum of the N product values is taken as a product accumulation result (the sum of the N product values). Therefore, the product accumulation result calculated by a product accumulation operation device 3 is expressed by the following formula.
[0072] [Mathematical formula 1]
[0073]
[0074] Weight value w i is set to, for example, -α≤w i ≤+α. Here, α represents an arbitrary real value. Therefore, the weight value w i Includes positive weight value w i , negative weight value w i , the weight value w is zero i wait.
[0075] In addition, for example, the weight value w can be set i In this case, in the range of -1≤w i Set the weight value w within the range of ≤1 i Therefore, for example, the maximum value, the minimum value, etc. of the multiply-add result can be adjusted, and the multiply-add operation can be performed with desired accuracy.
[0076] In neural networks and the like, a method called binary concatenation can be used, which converts the weight values w i Set to +α or -α. For example, by using binary connections in the field of image recognition such as deep neural networks (multi-layer neural networks), the binary connections can simplify the weight value w i settings without reducing recognition accuracy, etc.
[0077] As mentioned above, in binary connections, the weight value w i is binarized to binary values (±α). Therefore, for example, by switching the weight value w i The positive or negative value of can easily set the desired weight value w i In addition, the binary weight value w i Normalize the weight value w i Set to ±1. In addition, the weight value w i The setting range, value, etc. of are not limited and can be appropriately set to, for example, achieve desired processing accuracy.
[0078] Note that the target signal value x of the multiplication and accumulation operation iFor example, it is a value represented by an electrical signal output from each input unit 2, or a multiplication and accumulation result output from each multiplication and accumulation operation device 3. Therefore, it can also be said that each of the input unit 2 and the multiplication and accumulation operation device 3 outputs a signal value x. i signal source.
[0079] exist Figure 1 In the example shown, a single electrical signal (single signal value x) is output from a signal source (input unit 2, multiplication and accumulation operation device 3). i ). Therefore, the same electric signal is input to a plurality of signal lines 1 connected to the output side of one signal source. In addition, one signal source and the multiplication and addition operation device 3 to which the electric signal output from the signal source is input are connected to each other through a single input signal line.
[0080] Therefore, for example, in the case where M signal sources are connected to the multiplication and addition operation device 3, M input signal lines are connected to the multiplication and addition operation device 3. Then, the total number of electrical signals input to the multiplication and addition operation device 3 is M. Note that Figure 1 In the computing device 100 shown in FIG. 1 , N=M. Note that a pair of positive and negative electrical signals (a pair of signal values x i + and x i - ).
[0081] like Figure 1 As shown, the operation device 100 has a hierarchical structure in which a plurality of multiplication-addition operation devices 3 are provided in each of a plurality of layers. By configuring the layer structure of the multiplication-addition operation devices 3, for example, a neural network of a multilayer perceptron type or the like is constructed. For example, a multiplication-addition operation system can be constructed by connecting a plurality of multiplication-addition operation devices 3 to each other to obtain a network circuit. The number of multiplication-addition operation devices 3 provided in each layer, the number of layers, etc. are appropriately designed so that, for example, desired processing can be performed. In the following, in some cases, the number of multiplication-addition operation devices 3 provided in the layer of the jth level is referred to as N. j .
[0082] For example, N electrical signals generated by N input units 2 are input to each multiplication and addition operation device 3 provided in the first-order layer (lowest layer). Each multiplication and addition operation device 3 in the first stage calculates the signal value x of the input data. i The relevant multiplication and accumulation results are obtained, and the calculated multiplication and accumulation results are processed nonlinearly, and then output to the multiplication and accumulation operation device 3 set in the next layer (second level).
[0083] N represents the product-accumulation result calculated in the first layer. 1The electrical signals are input to the respective multiplication and accumulation operation devices 3 arranged in the second layer (upper layer). Therefore, when viewed from each multiplication and accumulation operation device 3 in the second layer, each accumulation result calculated in the first layer is the signal value x of the electrical signal. i . The signal value x of the first stage output i The relevant product-accumulation results are calculated by the product-accumulation operation device 3 in the second stage, processed by nonlinear transformation, and then output to the product-accumulation operation device 3 in the upper layer.
[0084] In this way, in the operation device 100, the multiplication-accumulation result of the multiplication-accumulation operation device 3 of the upper layer is calculated based on the multiplication-accumulation result calculated by the multiplication-accumulation operation device 3 of the lower layer and the result of the subsequent nonlinear transformation processing. Such processing is performed multiple times, and from the top layer ( Figure 1 The multiplication and addition operation device 3 in the third-level layer in the input data 4 outputs the processing result. Therefore, for example, a process such as image recognition that determines that the object is a cat based on the image data (input data 4) obtained by imaging a cat can be performed.
[0085] Note that the method of connecting the multiplication and addition operation devices 3 to each other is not limited, and, for example, a plurality of multiplication and addition operation devices 3 can be appropriately connected to each other so that desired processing can be performed. For example, even in the case where the multiplication and addition operation devices 3 are connected to each other to form another structure different from the hierarchical structure, the present technology is applicable.
[0086] In the above-mentioned neural network model, processing such as the following is performed: the multiplication and accumulation result of each multiplication and accumulation operation device 3 is non-linearly converted using an activation function, and the conversion result is input to the upper layer.
[0087] In the operation device 100, for example, a function conversion circuit 5 that performs nonlinear transformation on an electric signal by an activation function is used. The function conversion circuit 5 is, for example, a circuit provided between a lower layer and an upper layer, which appropriately converts the signal value of an electric signal to be input, and outputs an electric signal according to the conversion result. For example, a function conversion circuit 5 is provided for each signal line 1. For example, the number, arrangement, etc. of the function conversion circuits 5 are appropriately set according to a mathematical model executed in the operation device 100.
[0088] As the activation function, for example, a ReLU function (ramp function) or the like is used. In the ReLU function, for example, when the signal value x i If it is greater than 0, the signal value x is output as is. i , and outputs 0 in other cases.
[0089] Figure 2 is a schematic diagram showing an example of an electrical signal input to the product-and-add operation device 3 . Figure 2 A diagram showing waveforms of a plurality of electrical signals input to one multiplication-accumulation operation device 3 is schematically shown. The horizontal axis of the diagram represents the time axis, and the vertical axis represents the voltage of the electrical signal. Note that the time axis of each diagram is common.
[0090] In this embodiment, an electrical signal using a pulse width modulation (PWM) system is used. For example, a PWM system is a system that uses a pulse waveform with a pulse width τ i Represents the signal value x i That is, in the PWM system, the pulse width τ of the electrical signal i is the signal value x i The corresponding length. Usually, the longer the pulse width τ i Indicates a larger signal value x i .
[0091] Furthermore, the electrical signal is input to the multiplication-addition operation device 3 during a predetermined input period T. More specifically, each electrical signal is input to the multiplication-addition operation device 3 so that the pulse waveform of the electrical signal falls within the input period T. Therefore, the maximum value of the pulse width of the electrical signal is the same as the input period T. Note that the timing of inputting each pulse waveform (electrical signal) and the like are not limited as long as the pulse waveform falls within the input period T.
[0092] In a PWM system, for example, a pulse width τ can be used i The duty cycle R of the input period T i (=τ i / T) to normalize the signal value x i That is, the normalized signal value x i Represented as signal value x i =R i . Note that the signal value x i and pulse width τ i The method of associating with each other is not limited. For example, the value representing the signal x may be appropriately set i The pulse width τ i , so that arithmetic processing and the like can be performed with desired accuracy. In the following, it will be assumed that the signal value x represented by each electrical signal i The variable is greater than or equal to 0 and less than or equal to 1.
[0093] The multiplication and accumulation device 3 according to the present embodiment may also be referred to as a PWM multiplication and accumulation device 3. In the present embodiment, a time axis analog multiplication and accumulation operation using the PWM multiplication and accumulation device 3 can be performed.
[0094] Figure 3 is shown for implementing Figure 1FIG. 1 is a schematic diagram of a configuration example of the multiplication and accumulation operation device 3 of the operation device 100 shown in FIG. Figure 3 In the figure, a plurality of multiplication and addition operation devices 3 arranged in one layer are schematically shown.
[0095] Each product-addition operation device 3 includes a pair of output lines 7, a plurality of synaptic circuits 8 and a neuron circuit 9. Figure 3 As shown, one product-addition operation device 3 is arranged to extend in a predetermined direction (vertical direction in the figure). A plurality of accumulation operation devices 3 extending in the vertical direction are arranged side by side in the horizontal direction, thereby forming a hierarchy.
[0096] The pair of output lines 7 are spaced apart from each other along the extension direction of the product-add operation device 3. The pair of output lines 7 includes a positive charge output line 7a and a negative charge output line 7b. Each of the positive charge output line 7a and the negative charge output line 7b is connected to a neuron circuit 9 via a plurality of synaptic circuits 8.
[0097] Synaptic circuit 8 calculates the signal value x represented by the electrical signal i With weight value w i The product value w i ·x i Specifically, the charge (current) corresponding to the product value is output to any one of the positive charge output line 7a and the negative charge output line 7b.
[0098] As described below, a positive weight value w is set for synaptic circuit 8 i + Or negative weight value w i - For example, corresponding to a positive weight value w i + The positive weight charge corresponding to the product value of w is output to the positive charge output line 7a. i - The negative weighted charge of the product value is output to the negative charge output line 7b.
[0099] Note that in synaptic circuit 8, regardless of the weight value w i Regardless of the positive or negative sign of , a charge with the same sign (e.g., a positive charge) is output as the charge corresponding to the product value. That is, the positive weight charge and the negative weight charge are charges of the same sign.
[0100] As described above, the synaptic circuit 8 is configured to i The sign of the synaptic circuit 8 is used to output the charge corresponding to the product result to different output lines 7a or 7b. The specific configuration of the synaptic circuit 8 will be described in detail below. In the present embodiment, the synaptic circuit 8 corresponds to a product unit.
[0101] In the present embodiment, a single input signal line 1a and a pair of output lines 7 are connected to one synaptic circuit 8. That is, a single electric signal is input to one synaptic circuit 8, and a charge corresponding to a product value calculated based on the input electric signal is output to one of the output lines 7a and 7b. In this way, the synaptic circuit 8 is a single-input dual-output circuit connected to a single input signal line 1a and a pair of output lines 7 (a positive charge output line 7a and a negative charge output line 7b).
[0102] In one product-addition operation device 3, a plurality of synaptic circuits 8 are arranged along a pair of output lines 7. Each synaptic circuit 8 is connected in parallel to a positive charge output line 7a (negative charge output line 7b). Hereinafter, a synaptic circuit 8 located on the most downstream side (the side connected to the neuron circuit 9) is referred to as a first synaptic circuit.
[0103] like Figure 3 As shown, a plurality of input signal lines 1a are arranged to cross a pair of output lines 7 of each of a plurality of multiplication-addition operation devices 3. Typically, the input signal lines 1a are arranged perpendicularly to the respective output lines 7. That is, the operation device 100 has a crossbar configuration in which the input signal lines 1a and the output lines 7 cross each other. By using the crossbar configuration, for example, the multiplication-addition operation devices 3 and the like can be integrated at a high density.
[0104] Furthermore, in the operation device 100, the j-th synaptic circuit 8 included in each product-addition operation device 3 is connected in parallel to the j-th input signal line 1a. Therefore, similar electrical signals are input to the synaptic circuits 8 connected to the same input signal line 1a. Therefore, it is possible to realize Figure 1 The configuration shown is one in which a signal source included in a lower layer is connected to a plurality of product-addition operation devices 3 included in an upper layer.
[0105] Note that Figure 3 In the example shown, the multiplication and addition operation device 3 (front neuron) included in the lower layer is schematically shown as a signal source that inputs an electric signal to each input signal line 1a. The present technology is not limited to this, and for example, even in Figure 1 In the case where the input unit 2 illustrated in FIG. 1 is used as a signal source, a crossbar switch configuration may also be used.
[0106] As described above, in the operation device 100, a plurality of multiplication and accumulation operation devices 3 are connected in parallel to a plurality of input signal lines 1a. Therefore, for example, an electrical signal can be input in parallel to each multiplication and accumulation operation device 3 (each synaptic circuit 8), and arithmetic processing can be accelerated. Therefore, excellent operation performance can be exhibited.
[0107] The neuron circuit 9 calculates the product-addition result shown in the formula (Math. 1) based on the product value calculated by each synaptic circuit 8. Specifically, based on the charge input via the pair of output lines 7, an electrical signal representing the product-addition result is output.
[0108] Figure 4 is a schematic diagram showing a configuration example of the neuron circuit 9 . Figure 4 A dual-input single-output neuron circuit 9 connected to a pair of output lines 7 and a single output signal line 1b is shown. Note that a dual-input dual-output circuit or the like may be used as the neuron circuit 9 in some cases.
[0109] The neuron circuit 9 includes an accumulation unit 11 and an output unit 12. The accumulation unit 11 accumulates the sum of the charges outputted to a pair of output lines 7 by a plurality of synaptic circuits 8. The accumulation unit 11 includes two capacitors 13a and 13b. The capacitor 13a is connected between the positive charge output line 7a and GND. In addition, the capacitor 13b is connected between the negative charge output line 7b and GND. Therefore, the charges flowing in from the positive charge output line 7a and the negative charge output line 7b are accumulated in the capacitors 13a and 13b, respectively.
[0110] For example, at the timing when the input period T of the electric signal ends, the charge accumulated in the capacitor 13a is equal to the signal value x i and positive weight w i + Similarly, the charge accumulated in capacitor 13b is the sum of the positive weighted charges corresponding to the product value of the signal value x. i and negative weight w i - The product value corresponds to the sum of the negative weighted charges.
[0111] For example, when positive weighted charges are accumulated in capacitor 13a, the potential of positive charge output line 7a relative to GND rises. Therefore, the potential of positive charge output line 7a has a value corresponding to the sum of positive weighted charges. Note that the potential of positive charge output line 7a corresponds to the voltage held by capacitor 13a.
[0112] Similarly, when negative weighted charges are accumulated in capacitor 13b, the potential of negative charge output line 7b relative to GND rises. Therefore, the potential of negative charge output line 7b has a value corresponding to the sum of negative weighted charges. Note that the potential of negative charge output line 7b corresponds to the voltage maintained by capacitor 13b.
[0113] The output unit 12 outputs a value representing a product value w based on the charge accumulated in the accumulation unit 11. i ·x iHere, the product-accumulation signal is, for example, a signal representing the entire product-accumulation result, which is all positive and negative weight values w i With the signal value x i The sum of the product values of . For example, the product accumulation result represented by the above (Mathematical Formula 1) can be written as follows.
[0114] [Mathematical formula 2]
[0115]
[0116] Here, N+ and N- are positive weight values w i + The total number and negative weight value w i - Therefore, the entire multiplication and accumulation result can be calculated as the difference between the multiplication and accumulation result of the positive weight charge and the multiplication and accumulation result of the negative weight charge, and the multiplication and accumulation result of the positive weight charge is the product value w i + ·x i With positive weight w i + The product of the negative weighted charge is the product value |w i - |·x i With negative weight value w i - The sum of .
[0117] For example, the output unit 12 generates one signal representing the entire multiplication-addition result as the multiplication-addition signal (the left side of the formula (Math. 2)). Note that the present technology is not limited to this, and the output unit 12 may be configured to generate two signals, a positive multiplication-addition signal representing the multiplication-addition result of the positive weighted charge and a negative multiplication-addition signal representing the multiplication-addition result of the negative weighted charge, as the multiplication-addition signal.
[0118] For example, the output unit 12 calculates the multiplication and accumulation result of the positive weighted charge based on the potential of the positive charge output line 7a (the voltage held by the capacitor 13a). For example, the output unit 12 calculates the multiplication and accumulation result of the negative weighted charge based on the potential of the negative charge output line 7b (the voltage held by the capacitor 13b). Figure 4 In the example shown, the entire product-addition result is calculated based on the difference between the positive and negative product-addition results and output as a product-addition signal. In addition, for example, positive and negative product-addition signals can be output separately from the positive and negative product-addition results.
[0119] The method of generating the product-added signal based on the charge accumulated in the accumulating unit 11 is not limited. As an example, a method of detecting the charge accumulated in one capacitor 13 will be described. In the case of using a PWM electric signal, the charge corresponding to the product value is accumulated in the capacitor 13 during the input period T. That is, before and after the input period T, the accumulation of the charge corresponding to the product value does not occur.
[0120] For example, after the input period T ends, the capacitor 13 is charged at a predetermined charging speed. At this time, a comparator or the like is used to detect the timing at which the potential of the output line to which the capacitor 13 is connected reaches a predetermined threshold potential. For example, the more charge there is when charging starts, the earlier the potential reaches the threshold potential. Therefore, the charge accumulated during the input period T (the multiplication and addition result) can be expressed based on the timing. Note that the charging speed can be expressed by, for example, the amount of charge per unit time, and can also be referred to as a charging rate.
[0121] Note that this threshold value is determined corresponding to the voltage held by the charge-increasing capacitor 13, and the timing at which the threshold voltage is reached is detected.
[0122] As described above, by charging the accumulating unit 11 (capacitors 13a and 13b) after the end of the input period T, the timing indicating the multiplication and accumulation result is detected. The multiplication and accumulation signal of the positive weight charge, the multiplication and accumulation signal of the negative charge, or the entire multiplication and accumulation signal is appropriately generated according to the detection result. In addition, for example, after the input period T, the potential of the capacitor 13 can be directly read to calculate the multiplication and accumulation result.
[0123] Figure 5 1 is a schematic circuit diagram showing an example of a multiplication and addition operation device according to the present embodiment. The multiplication and addition operation device 3 is arranged to extend in a direction perpendicular to the plurality of input signal lines 1a. Figure 5 In the example shown, a crossbar configuration is used.
[0124] Each of the multiplication and addition operation devices 3 includes a pair of output lines (a positive charge output line 7a and a negative charge output line 7b), a plurality of synaptic circuits (a plurality of product units) 8, and a neuron circuit 9. Figure 5 In the example shown, the neuron circuit 9 includes a summing unit 11 , a charging unit 15 , an output unit 12 , and switches 16 a to 16 d .
[0125] has a value corresponding to the signal x i A pulse signal (PWM signal) with a pulse width of 1 to 6 Input to multiple input signal lines 1a. Figure 5In the example shown, six input signal lines 1a are illustrated, but the number of input signal lines 1a is not limited. An input signal in is input within an input period T having a predetermined length. 1 to 6 (See Figure 6 ).
[0126] The positive charge output line 7a outputs the signal value x i Multiply by the positive weight w i + The product value w i + ·x i The negative charge output line 7b outputs the same signal value x as the one i Multiply by the negative weight w i - The obtained product value |w i - |·x i In this embodiment, a pair of output lines 7 corresponds to one or more output lines.
[0127] A plurality of synaptic loops 8 are provided corresponding to the plurality of input signal lines 1a. In the present embodiment, one synaptic loop 8 is provided for one input signal line 1a. Each of the plurality of synaptic loops 8 includes a resistor 17 connected between a corresponding input signal line 1a of the plurality of input signal lines 1a and any one of the positive charge output line 7a and the negative charge output line 7b. The resistor 17 may have nonlinear characteristics and may have a function of preventing current from flowing back. Then, the resistor 17 corresponding to the product value w is i + ·x i (or |w i - |·x i ) is output to the output line 7a (or 7b) connected to the resistor 17.
[0128] For example, if we want to convert the signal value x into i Multiply by the positive weight w i + In the case of , the resistor 17 is connected between the input signal line 1a and the positive charge output line 7a, and the positive charge output line 7a outputs positive weighted charges. Figure 5 In the example shown, the input signal in 1 , in 3 and in 6 The synaptic circuit 8 is a synaptic circuit 8a configured as a positive weight product unit that generates positive weight charges. It can be said that the synaptic circuit 8a is a product unit in which a positive weight is set.
[0129] In each synaptic circuit 8, we want to i Multiply by the negative weight w i - In the case of , the resistor 17 is connected between the input signal line 1a and the negative charge output line 7b, and the negative charge output line 7b outputs negative weighted charges. Figure 5 In the example shown, the input signal in 2 , in 4 and in 5 The synaptic circuit 8 of is a synaptic circuit 8b configured as a negative weight product unit that generates negative weight charges. It can be said that the synaptic circuit 8b is a product unit in which a negative weight is set.
[0130] Note that as the resistor 17, a resistor having a weight value w i That is, the resistor 17 is used as a resistor for defining the weight value w in the operation device 100 that performs the multiplication and addition operation in the multiplication and addition operation device 3. i components.
[0131] As the resistor 17, for example, a fixed resistor element, a variable resistor element, a MOS transistor operating in a subthreshold region, etc. are used. For example, power consumption can be reduced by using a MOS transistor operating in a subthreshold region as the resistor 17. Needless to say, any other resistor can be used.
[0132] The accumulation unit 11 accumulates the product value w generated by each of the plurality of synaptic circuits 8. i ·x i In this embodiment, two capacitors 13a and 13b are provided as the accumulation unit 11.
[0133] The capacitor 13a is connected to the positive charge output line 7a via the switch 16b, and accumulates the sum of the positive weight charges generated by the synaptic circuit 8a. In the present embodiment, the capacitor 13a functions as a positive weight accumulation unit.
[0134] The capacitor 13b is connected to the negative charge output line 7b via the switch 16c, and accumulates the sum of the negative weight charges generated by the synaptic circuit 8b. In the present embodiment, the capacitor 13b functions as a negative weight accumulation unit.
[0135] The charging unit 15 charges the battery with the product value w accumulated therein at a predetermined charging speed. i ·x i The corresponding charge sum accumulation unit 11 is charged. In the present embodiment, two current sources 18a and 18b are provided as the charging unit 15. Note that charging is performed after the input period T ends.
[0136] The current source 18a is connected to one side (opposite to GND) of the positive charge output line 7a connected to the capacitor 13a via the switch 16a. The current source 18b is connected to one side (opposite to GND) of the negative charge output line 7b connected to the capacitor 13b via the switch 16d.
[0137] In the present embodiment, current sources 18a and 18b charge capacitors 13a and 13b at the same charging speed. This increases the potential V+ (voltage held by capacitor 13a) of the positive charge output line 7a and the potential V- (voltage held by capacitor 13b) of the negative charge output line 7b. The specific configuration of current source 18 is not limited and can be arbitrarily designed.
[0138] After the charging unit 15 starts charging, the output unit 12 performs threshold determination on the voltage held by the accumulating unit 11 by a predetermined threshold value to output a value representing the product value w i ·x i In the present embodiment, two comparators 20a and 20b and a signal generating unit 21 are provided as the output unit 12.
[0139] Comparator 20a detects timing when the voltage held by capacitor 13a is greater than a predetermined threshold value θ1. Note that the magnitude of the voltage held by capacitor 13a is determined by the total amount of positive weighted charges accumulated in capacitor 13a and the charge amount (charging speed×time).
[0140] Comparator 20b detects timing when the voltage held by capacitor 13b is greater than a predetermined threshold value θ2. Note that the magnitude of the voltage held by capacitor 13b is determined by the total amount of negative weight charges accumulated in capacitor 13b and the charge amount (charging speed×time).
[0141] Note that in the present embodiment, the product-addition signal is output by performing threshold determination on each of the capacitors 13a and 13b with the same threshold value. That is, the threshold value θ1 is set equal to the threshold value θ2.
[0142] The signal generating unit 21 outputs a signal indicating a product value w based on the timing detected by the comparator 20a and the timing detected by the comparator 20b. i ·x i That is, the signal generating unit 21 outputs a product-addition signal according to the timing when the voltage held by the capacitor 13a reaches the threshold value θ1 and the timing when the voltage held by the capacitor 13b reaches the threshold value θ2 (= θ1).
[0143] In the present embodiment, a PWM signal, which is a pulse signal in which a pulse width is modulated, is output as a product-accumulate signal. A specific circuit configuration and the like of the signal generating unit 21 are not limited and can be arbitrarily designed.
[0144] Figure 6 and Figure 7 They are described by Figure 5 1 is a diagram showing an example of calculation of a multiplication-addition signal performed by the multiplication-addition operation device 3. In the present embodiment, a signal representing the entire multiplication-addition result including positive and negative values is calculated based on the multiplication-addition result of the positive weighted charges accumulated in the capacitor 13a and the multiplication-addition result of the negative weighted charges accumulated in the capacitor 13b.
[0145] The calculation of the product-accumulation result of positive weighted charges and the calculation of the product-accumulation result of negative weighted charges are processed in the same way. Figure 6 A method of calculating a product-addition result based on the charge accumulated in the capacitor 13 without distinction between positive and negative (product-addition operation method) is described.
[0146] Will describe Figure 6 Parameters described in. "t" represents time. "T" represents each input period and output period. "t n " represents the end timing of the input period T, "t m " indicates the end timing of the output period T.
[0147] In the present embodiment, the length of the input period T and the length of the output period T are set equal to each other. n Therefore, the end timing of input period T is t n Corresponds to the start timing of the output period T.
[0148] "α" represents the slope of potential rise corresponding to charging of the charging unit 15 (current source 18), and corresponds to the charging speed. "θ" represents a threshold value used by the output unit 12 (comparator 20) for threshold value determination.
[0149] "S i (t)" is an input signal (PWM signal) to be input to the i-th input signal line 1a. "τ i " represents the pulse width of the input signal Si(t). i (t)" Figure 5 The change in the internal state (potential) of each synaptic circuit 8 is shown. i " represents the weight value, and is represented by Figure 5 The resistance value of the resistor 17 is shown as defined.
[0150] "V n (t)" means "P i (t)" and corresponds to the total amount of charge accumulated in capacitor 13. n (t)" represents a multiplication-accumulation signal (PWM signal) indicating a multiplication-accumulation result. "τ n " represents the pulse width of the product-accumulation signal to be output. Specifically, "τ n " represents the period from the timing when the voltage held by the capacitor 13 becomes greater than the threshold value θ in the output period T to the end timing t of the output period T. m The value corresponding to the length of .
[0151] In this example, the switches 16 b and 16 c are provided, and in particular, power consumption can be reduced and charging accuracy can be improved by disconnecting the output line with the switches.
[0152] Here, as shown in the following formula, the input value (signal value) x i The pulse width τ of the input signal Si(t) i The duty cycle R of the input period T i (=τ i / T) is given.
[0153] [Mathematical formula 3]
[0154]
[0155] Figure 5 The synaptic circuit 8 shown generates the signal value x by i With weight value w i Specifically, the resistance of the resistor 17 is at a constant slope w i Increase the internal state (potential).
[0156] Then, at the end timing t of the input period T n The change in the internal potential of each synaptic circuit 8 is P i (t n ) is given by the following equation. Note that the input signal S i The high level value of (t) is set to 1.
[0157] [Formula 4]
[0158] p i (t n )=w i R i T=w i x i T
[0159] The total amount of charge V accumulated in capacitor 13n (t n ) is P i (t n ), and is therefore given by the following formula.
[0160] [Mathematical formula 5]
[0161]
[0162] At the end timing t of the input period T n Department, Figure 5 The switches 16a and 16d shown are switched on, and the switches 16b and 16c are switched off. Then, at the end timing t of the input period T, n At t, the charging of the charging unit 15 (current source 18) starts. Therefore, in the present embodiment, the output period T starts at the charging start timing of the charging unit. That is, at the end timing t of the input period T n The charging and output periods start at the same time.
[0163] The current source 18 starts at the end timing t of the input period T. n The internal potential of each synaptic circuit 8 is increased at a slope (charging speed) α. Then, a voltage corresponding to the timing from when the voltage held by the capacitor 13 is greater than the threshold θ to the output timing T is generated. m The pulse width of the end timing length τ n The product and accumulation signal (PWM signal).
[0164] When the pulse width τ of the product-accumulated signal is n The duty cycle of the output period T is defined as R n (=τ n / T), R n It is given by the following equation. Note that the threshold θ is assumed to be equal to or greater than the total amount of charge V n (t n ).
[0165] [Mathematical formula 6]
[0166]
[0167] Therefore, by setting the signal value x i With weight value w i The product value w is obtained by multiplying i ·x i The product and accumulation of is given by the following formula.
[0168] [Mathematical formula 7]
[0169]
[0170] That is, the product-accumulation result is from αR n =α·(τ n / T) minus a constant defined by the charging speed α, the threshold θ, and the output period T. In this way, a multiplication-accumulation signal representing the multiplication-accumulation result can be output based on the timing at which the voltage held by the accumulating unit 11 is greater than the threshold θ in the output period T having a predetermined length.
[0171] Figure 7 is a schematic diagram showing an example of calculating a multiplication-accumulation signal of the entire multiplication-accumulation result based on the multiplication-accumulation result of the positive weight charge and the negative weight charge. Figure 7 In the above, the product-accumulate signal representing the product-accumulate result of the positive weighted charge is defined as "S n + (t)", and its pulse width is defined as "τ n + ". In addition, the product-accumulation signal representing the product-accumulation result of the negative weight charge is defined as "S n - (t)", and its pulse width is defined as "τ n - ". In addition, the product-accumulation signal representing the entire product-accumulation result is defined as "S n (t)", and its pulse width is defined as "τ n ".
[0172] At the end timing t of the input period T n At , the total amount of positive weight charge accumulated in capacitor 13a is V n + (t n ) is expressed by the following formula. Note that w i + Indicates a positive weight value.
[0173] [Mathematical formula 8]
[0174]
[0175] At the end timing t of the input period T n At , the total amount of negative weight charge accumulated in capacitor 13b is V n - (t n ) is expressed by the following formula. Note that w i - Negative weight value.
[0176] [Mathematical formula 9]
[0177]
[0178] When the positive product accumulation signal S n + The duty cycle of (t) is defined as R n + (=τ n + / T) by setting the signal value x i Multiply by the positive weight w i + The product value w i + ·x i The positive product accumulation result of the sum is given by the following formula. Note that it is assumed that the threshold θ is equal to or greater than the total amount of positive weight charge V n + (t n ).
[0179] [Formula 10]
[0180]
[0181] When the negative product accumulation signal S n - The duty cycle of (t) is defined as R n - (=τ n - / T) by setting the signal value x i Multiply by the negative weight w i - The obtained product value |w i - |·x i The negative product of the sum is given by the following formula. Note that the charging speed α and the threshold θ are equal to the values used in the formula (Math. 10). Note that the threshold θ is assumed to be equal to or greater than the total amount of negative weighted charge V n - (t n ).
[0182] [Mathematical formula 11]
[0183]
[0184] Therefore, when the above formula (Math 2) is used, the entire product-accumulation result is given by the following formula.
[0185] [Mathematical formula 12]
[0186]
[0187] That is, by the charging speed α, the product signal S n + (t) is the pulse width τn + , product signal S n - (t) is the pulse width τ n - , and the entire multiplication-accumulation result is obtained by inputting the period T. That is, the multiplication-accumulation result can be easily calculated based on the timing detected by the comparator 20a and the timing detected by the comparator 20b.
[0188] Then, if Figure 7 As shown, as a product-accumulate signal representing the entire product-accumulate result, a pulse width "τ n The product-accumulation signal "S n (t)".
[0189] Herein, the inventors of the present invention studied the charging speed α and the threshold θ to generate a multiplication-accumulation signal S representing the multiplication-accumulation result. n (t). Then, the inventors of the present invention devised a new technique for setting the charging speed α and the threshold θ. This will be described in detail below.
[0190] Figures 8 to 10 are schematic diagrams for explaining the setting of the charging speed α and the threshold θ. i ·x i The capacitor 13 corresponding to the sum of the charges is charged, and any one of the positive weight charge and the negative weight charge is converted into a timing in which the total charge is greater than the threshold value θ in the output period T. Therefore, it is expected to detect the total charge accumulated in the capacitor 13 with higher resolution and timing in the output period T.
[0191] Here, the inventor of the present invention redesigned the setting of the charging speed α and the threshold θ with attention to the accumulation state of the capacitor 13. That is, the inventor of the present invention newly designed a method of using the charging speed α and the threshold θ associated with the accumulation state of the capacitor 13 as a signal for generating a product signal S indicating the product accumulation result. n (t) The charging speed α and threshold θ.
[0192] Note that in the present disclosure, the accumulation state of the capacitor 13 includes information about how much charge is accumulated in the capacitor 13, and includes, for example, an estimation result and a simulation result of the charge accumulated in the capacitor 13. For example, by using the charging speed α and the threshold θ associated with the estimation result and the simulation result, the accuracy of the multiplication and accumulation operation can be improved.
[0193] For example, when a neural network is constructed using the operation device 100 using the product-add operation device 3, a learning process using learning data is performed. Then, weights to be set in each synaptic circuit 8 are set. The method of the learning process is not limited, and an arbitrary method such as a method using a computer simulation can be used.
[0194] For example, after each weight is set by a learning process (for example, after a predetermined resistor is set at a predetermined position), the total amount of weight accumulated in the capacitor 13 is estimated as the accumulation state of the capacitor 13 .
[0195] Based on the estimation result, the effective range to be calculated as the multiplication-addition signal is determined relative to the total amount of the accumulated weight. The method of estimating the total weight is not limited. For example, any method such as a method using computer simulation, a method using probability distribution, and an estimation method based on the result of inputting a plurality of sample data to the multiplication-addition operation device 3 can be used. Note that the estimation result obtained by estimating the total amount of charge can also be referred to as a simulation result obtained by simulating the total amount of charge.
[0196] For example, assuming that Figure 8 The distribution shown in part A of is taken as an estimation result of the total amount of charge accumulated in the predetermined capacitor 13. In this case, for example, a range from a minimum value min to a maximum value max of the distribution is set as an effective range E to be calculated as a product-addition signal.
[0197] Hereinafter, the minimum value min and the maximum value max of the effective range E are referred to as the effective minimum value min and the effective maximum value max. The effective minimum value min and the effective maximum value max are obtained from the product value w accumulated by the accumulation unit 11. i ·x i The parameters corresponding to the charge estimation results are obtained.
[0198] For example, the charging speed α and the threshold value θ are set based on the effective range E from the effective maximum value max to the effective minimum value min. Specifically, the charging speed α and the threshold value θ are set so that the effective range E is within the range in which the product-addition signal can be output in the output period T. That is, the charging speed α and the threshold value θ are set so that the total amount of charge included in the effective range E becomes greater than the threshold value θ by charging in the output period T.
[0199] For example, Fig. 9 As shown in parts A and B of FIG. 1 , when the total amount of accumulated charge is the effective maximum value max, the calculation timing for calculating the product accumulation signal (the timing when the holding voltage becomes larger than the threshold value θ) is immediately after the start timing t of the output period T. nFurthermore, in the case where the total amount of accumulated charge is the effective minimum value min, the calculation timing for calculating the product accumulation signal is the timing immediately before the end timing of the output period T. The charging speed α and the threshold θ are set to satisfy these conditions.
[0200] For example, a value slightly larger than the effective maximum value max is set as the threshold value θ. Then, the charging speed α is set so that the calculation timing corresponding to the effective maximum value max is at the start timing t of the output period T. n The calculation timing corresponding to the effective minimum value min is made to be the timing of the minimum unit of the pulse width before the end timing of the output period T.
[0201] In this case, if Fig. 9 As shown in parts A and B of , a PWM signal having a pulse width smaller than the minimum unit of the pulse width of the output period T is calculated as a product-accumulation signal corresponding to the effective maximum value max. In addition, a PWM signal having a pulse width corresponding to the minimum unit of the pulse width is calculated as a product-accumulation signal corresponding to the effective minimum value min. Note that the calculation timing may also be referred to as the output pulse timing.
[0202] For example, as described above, the charging speed α and the threshold value θ are set based on the effective minimum value min, the effective maximum value max, and the output period T. Therefore, the total amount of charge included in the effective range E can be detected with very high resolution and timing by using substantially the entire area of the output period T. That is, in the present embodiment, by appropriately setting the charging speed α and the threshold value θ, the effective range E to be calculated can be extended to the entire area of the output period T. This is equivalent to making the distribution of the output results of the multiplication-addition operation effectively correspond to the output period T. Therefore, the multiplication-addition result with very high accuracy can be calculated.
[0203] Note that how to make the distribution of the output results of the operation results correspond to the output period T is not limited and can be set arbitrarily.
[0204] Furthermore, the method of setting the effective range E based on the estimation result is not limited. Figure 8 As shown in part B of , a value greater than the minimum value of the distribution of the estimated total amount of charge can be set to the effective minimum value min. In addition, a value less than the maximum value of the distribution of the estimated total amount of charge can be set to the effective maximum value max.
[0205] In this case, for example, when the total amount of charge is less than the effective minimum value min, 0 is output as the multiplication and accumulation result. In addition, when the total amount of charge is greater than the effective maximum value max, the multiplication and accumulation result corresponding to the effective maximum value max is output as the multiplication and accumulation result. Needless to say, the present technology is not limited to this.
[0206] The effective range E can be arbitrarily set to achieve the desired processing accuracy in, for example, recognition processing using a neural network. For example, a probability distribution such as a normal distribution (Gaussian distribution) can be calculated as an estimation result, and the effective range E can be set with reference to a range of 1σ, 2σ, 3σ, etc.
[0207] exist Figure 5 In the multiplication-addition operation device 3 shown, the current sources 18a and 18b charge the capacitors 13a and 13b at the same charging speed. In addition, the threshold determination is performed on each of the capacitors 13a and 13b using the same threshold. That is, the multiplication-addition result of the positive weight charge and the multiplication-addition result of the negative weight charge are calculated using the same charging speed α and the same threshold θ.
[0208] For example, Fig.10 As shown, the effective range E of the positive weight charge is set based on the estimation result of the total amount of the positive weight charge accumulated in the capacitor 13a. + (Effective minimum value min + To the effective maximum value max + ). In addition, the effective range E of the negative weight charge is set based on the estimation result of the total amount of the negative weight charge accumulated in the capacitor 13b. - (Effective minimum value min - To the effective maximum value max - ).
[0209] Set the effective range E so that the effective range E+ and effective range E are detected with higher resolution - For a specific example, the effective range E + The effective minimum value min + and effective range E - The effective minimum value min - are compared with each other, and the smaller value is used as the effective minimum value min. In addition, the effective range E + The effective maximum value max + and effective range E - The effective maximum value max - The comparison is made and the larger value is used as the effective maximum value max.
[0210] The charging speed α and the threshold value θ are set based on the effective range E specified in the effective minimum value min and the effective maximum value max. Therefore, the entire product-accumulation result can be calculated with very high accuracy. Needless to say, the present technology is not limited to this method.
[0211] In addition, in Figure 1 In the configuration shown, generally, the same charging speed α and threshold value θ are commonly used for a plurality of multiplication and accumulation operation devices 3 included in the same layer. Therefore, the output represented by the multiplication and accumulation signal (PWM signal) output from each multiplication and accumulation operation device 3 is output to the next layer as a value according to the same standard. In addition, the design of each multiplication and accumulation operation device 3 can also be simplified.
[0212] As the setting of the common charging speed α and the α threshold value θ, for example, in each multiplication and accumulation operation device, an effective range E is set for the total amount of charge accumulated in the accumulation unit 11. Then, a common effective range is set to cover all effective ranges E. The common charging speed α and the common threshold value θ may be set based on the entire effective range. Needless to say, the present technology is not limited to this method, and any method may be used.
[0213] Note that the present technology is not limited to the case where a common charging speed α and a common threshold value θ are used, and an optimal charging speed α and an optimal threshold value θ may be set in each multiplication and addition operation device 3. That is, an effective range E may be set in each multiplication and addition operation device 3, and the charging speed α and the threshold value θ may be optimized. Even in this case, for example, desired processing accuracy may be achieved by appropriately performing, for example, a learning process.
[0214] When the charging speed α and the threshold value θ are set for the multiplication and accumulation operation device 3, for example, the pre-optimized charging speed α and the threshold value θ are set as fixed values when the multiplication and accumulation operation device 3 is configured. Alternatively, the multiplication and accumulation operation device 3 may be configured so that the charging speed α and the threshold value θ can be changed dynamically. Then, the optimization of the charging speed α and the threshold value θ can be dynamically performed while performing the identification process, etc. The specific circuit configuration capable of dynamically changing the charging speed α and the threshold value θ is not limited and can be arbitrarily designed.
[0215] As described above, in the operation device 100 and the product-addition operation device 3 according to the present embodiment, the charging speed for charging the accumulation unit 11 and the output signal indicating the product value w are set in association with the accumulation state of the accumulation unit 11. i ·x i Therefore, the resolution of the product-addition operation result can be improved, and the operation accuracy can be improved.
[0216] When converting the maximum and minimum values of the output results of the multiplication-addition operation into pulse timing within the pulse output period T, the distribution of the multiplication-addition operation results is checked in advance. Then, the value of the threshold θ and the current value of the current source ((independent) charge output unit) are set according to the maximum / minimum value. This makes it possible to maximize the resolution of the pulse output period. That is, the voltage corresponding to the multiplication-addition operation result can be effectively converted into the pulse timing.
[0217] For example, we can consider accumulating pulses in a capacitor corresponding to the signal value x i A method of calculating a multiplication-accumulation signal based on the timing at which the accumulated electronic signal is greater than the threshold voltage by detecting the electronic signal (spike timing signal) that rises at the timing of the output. In this method, the multiplication-accumulation operation process of the input and the process of converting the charge into the timing representing the output timing are interlocked, thereby constraining the control.
[0218] In the present embodiment, an input period T and an output period T are respectively set in the PWM multiplication and accumulation operation device 3. Then, the capacitor is charged after the input period T ends, and a threshold value determination is performed to calculate a multiplication and accumulation signal. Therefore, since the multiplication and accumulation operation process of the input and the process of converting the charge into the timing can be separated from each other, the above-mentioned problem can be prevented.
[0219] In addition, the positive and negative multiplication and accumulation operations and the timing output are performed, and then the difference between the timings is obtained. Therefore, the positive and negative multiplication and accumulation operations can be performed in the same circuit configuration, and the influence of circuit variation can be fully suppressed. Note that when the positive and negative multiplication and accumulation results are substantially equal to each other, the difference is small, and it is possible to reduce the resolution representing the entire positive and negative multiplication and accumulation results. However, in this embodiment, by optimizing the charging speed α and the threshold θ, the resolution of the pulse output period can be maximized, so such a problem can be fully prevented.
[0220] <Second Embodiment>
[0221] A multiplication and accumulation operation device according to a second embodiment of the present invention will be described. In the following description, description of configurations and effects similar to those of the multiplication and accumulation operation device 3 described in the above embodiment will be omitted or simplified.
[0222] Fig.11 , Fig.12
[0223] Fig.11 : is a schematic diagram showing an example of a multiply-and-add operation device according to the present embodiment. Fig.12 Is used to describe Fig.11 FIG. 2 is a diagram showing an example of calculation of a multiply-and-accumulate signal by a multiply-and-accumulate operation device.
[0224] In the multiplication and accumulation operation device 203 of this embodiment, the positive and negative results are input to a capacitor 213, and the charge (V + -V - ).
[0225] exist Fig.11 In the example shown, positive weight charges are generated by the synaptic circuit 208a configured as a positive weight product unit and accumulated via the positive charge output line 207a in the capacitor 213 included in the accumulation unit 211. At the same time, negative weight charges generated by the synaptic circuit 208b configured as a negative weight product unit are released from the capacitor 213 via the negative charge output line 207b.
[0226] Therefore, the charge corresponding to the difference between the total amount of positive weighted charge and the total amount of negative weighted charge (V + -V - ) is accumulated in the capacitor 213. That is, in the present embodiment, the positive weight charge is accumulated by the accumulation unit 211 and the negative weight charge is released by the accumulation unit 211.
[0227] Despite Fig.11 Although not shown in the figure, a discharge circuit or the like is configured to discharge the negative weight charge generated by the synaptic circuit 208b from the capacitor 213 through the negative charge output line 207b. 2 , in 4 and in 5 It is input to a discharge circuit, etc., so the negative weight charge is released.
[0228] A discharge circuit for releasing the negative charge and the like are elements included in the accumulating unit 211. In addition, a circuit for converting the input signal (PMW signal) into 2 , in 4 and in 5 An input signal line input to the discharge circuit, etc. is a signal line included in a plurality of input lines. The specific configuration of the discharge circuit, etc. is not limited and can be arbitrarily designed.
[0229] exist Fig.12 At the start timing of the input period T shown in FIG. 1 , switch 216a is turned off and switch 216b is turned on. Then, the input signal is input during the input period T. Note that Fig.12 In the figure, only the input signal in is shown. 1 , in 2 and in 3 To simplify the description. In the following, the input signal in 1 , in 2 and in 3The case of is described as an example.
[0230] With the input signal in 1 and in 3 The corresponding positive weight charge is accumulated in capacitor 213 and is proportional to the input signal in 2 The corresponding negative weighted charge is released. Note that in this embodiment, capacitor 213 is pre-charged until the capacitor voltage reaches a predetermined preset value (default value). Therefore, it is possible to handle the accumulation and release of charge and maintain the charge (V + -V - ). The preset value can be set arbitrarily.
[0231] At the end timing t of the input period T n At t, the switch 216a is switched on, and the switch 216b is switched off. Then, at the end timing t of the input period T, n At , charging by the charging unit 215 (current source 218) begins.
[0232] In addition, the timing at which the voltage held by the capacitor 213 becomes larger than the threshold value θ is detected by the comparator 220 of the output unit 212. The signal generation unit 221 calculates a product-addition signal (PWM signal) based on the detected timing.
[0233] In the present embodiment, the charging speed α and the threshold value θ associated with the accumulation state of the capacitor 213 are set similarly to the first embodiment. That is, as the accumulation state of the capacitor 213, the total amount of weight accumulated in the capacitor 213 is estimated. Based on the estimation result, the effective range E (effective minimum value min to effective maximum value max) is set for the total amount of accumulated weight.
[0234] As described in the first embodiment, the charging speed α and the threshold θ are set based on the set effective range E. Therefore, the charge (V + -V - ) The corresponding multiplication and accumulation signal. As described above, even when positive and negative weight charges are input to the accumulation unit 211, the multiplication and accumulation result can be obtained.
[0235] <Third Embodiment>
[0236] Fig.13 : is a circuit diagram showing an example of a multiply-and-add operation device according to the third embodiment of the present invention.
[0237] In the multiplication and addition operation device 303 according to the present embodiment, the capacitor 313a for accumulating positive weighted charges and the capacitor 313b for accumulating negative weighted charges are connected in series in opposite directions. Therefore, the charge (V ) corresponding to the difference between the total amount of positive weighted charges and the total amount of negative weighted charges can be maintained by the entire accumulation unit 311. + -V - ) as the terminal voltage of the combined capacitor.
[0238] At the start timing of the input period T, the switches 316a, 316d, and 316e are turned off, and the switches 316b, 316c, 316f, and 316g are turned on. Then, the input signal is input within the input period T. The positive weight charge corresponding to the input signal is accumulated in the capacitor 313a, and the negative weight charge corresponding to the input signal is accumulated in the capacitor 313b.
[0239] At the end timing t of the input period T n At , switches 316b, 316c and 316f are turned off. Then, when switch 316e is turned on, the negative side of capacitor 313a and the positive side of capacitor 313b are connected to each other. Therefore, the charge (V + -V - ) is held by two capacitors 313a and 313b.
[0240] In addition, the switch 316a is turned on, and charging by the charging unit 315 (current source 318) is started. The timing at which the voltage held by the capacitors 313a and 313b becomes greater than the threshold value θ is detected by the comparator 320 of the output unit 312. The product accumulation signal (PWM signal) is calculated based on the detected timing by the signal generating unit 321. Note that the switch 316d is used to refresh the capacitor 313a.
[0241] Also in the present embodiment, the charging speed α and the threshold value θ associated with the accumulation state of the capacitors 313a and 313b connected in series are set. That is, the total amount of weights accumulated in the capacitors 313a and 313b is estimated as the accumulation state of the capacitors 313 and 313b. Based on the estimation result, the effective range E (effective minimum value min to effective maximum value max) is set for the total amount of accumulated weights.
[0242] The charging speed α and the threshold θ are set based on the set effective range. Therefore, the charge (V + -V - ) corresponds to the product-accumulation signal.
[0243] <Fourth Embodiment>
[0244] Fig.14: is a schematic circuit diagram showing an example of a multiply-and-add operation device according to a fourth embodiment of the present invention.
[0245] In the multiplication and addition operation device 403 according to the present embodiment, the differential amplifier circuit 425 outputs a charge (V + -V - ), and the charge is accumulated in the capacitor 413 included in the accumulation unit 411. The specific structure of the differential amplifier circuit 425 is not limited and can be arbitrarily designed.
[0246] At the start timing of the input period T, switches 416a, 416b, and 416c are turned on, and switch 416b is turned off. Then, the input signal is input within the input period T. The charge (V + -V - ) is accumulated in capacitor 413.
[0247] At the end timing t of the input period T n At t, the switch 416c is turned off and the switch 416d is turned on. Then, at the end timing t of the input period T n At , charging through the charging unit 415 (current source 418) begins.
[0248] Furthermore, the timing at which the voltage held by the capacitor 413 becomes larger than the threshold value θ is detected by the comparator 420 of the output unit 412. The product-addition signal (PWM signal) is calculated by the signal generating unit 221 based on the detected timing.
[0249] Even in the present embodiment, a threshold value θ of the charging speed α associated with the accumulation state of the capacitor 413 is set. That is, the total amount of weights accumulated in the capacitor 413 is estimated as the accumulation state of the capacitor 413. Based on the estimation result, an effective range E (effective minimum value min to effective maximum value max) is set for the total amount of accumulated weights.
[0250] The charging speed α and the threshold θ are set based on the set effective range. Therefore, the charge (V + -V - ) corresponds to the product-accumulation signal.
[0251] <Other Implementation Methods>
[0252] The present invention is not limited to the above-described embodiments, and various other embodiments can be implemented.
[0253] Fig.15 is shown to have a signal value x iSchematic diagram of another example of a pulse signal (PWM signal) with a pulse width corresponding to the signal value x. i The corresponding timing makes the pulse rise, and at the end timing t of the input period T n That is, a pulse signal having a pulse width corresponding to the value x of the signal in the input period T is generated. i The corresponding timing to the end timing t of the input period T n Even when such a pulse signal is used as an input signal, the present technology is applicable.
[0254] That is, appropriately setting the falling timing of the pulse relative to the spike timing signal makes it possible to apply the present technology to a pulse having a value corresponding to the signal value x. i A pulse signal (PWM signal) with a corresponding pulse width.
[0255] For the setting of the charging speed α and the threshold θ, α is set to θ / T in the output period T. Therefore, the constants defined by the charging speed α, the threshold θ, and the output period T in formulas (Math. 6), (Math. 7), (Math. 10), and (Math. 11) can be set to zero, and the processing can be simplified.
[0256] As the effective maximum value and the effective minimum value of the effective range, the theoretical maximum value and the theoretical minimum value obtained from the theoretical value of the charge corresponding to the sum of the product values accumulated by the accumulation unit can be adopted. For example, after setting each weight by the learning process, the sum of the accumulated charges when the input signal corresponding to the maximum value of the input is input to all input lines is calculated as the theoretical maximum value. In addition, the sum of the accumulated charges when the input signal corresponding to the minimum value of the input is input to all input lines is calculated as the theoretical minimum value. Needless to say, the method of calculating the theoretical maximum value and the theoretical minimum value is not limited.
[0257] Fig.16 It is shown Figure 4 A circuit diagram showing a specific configuration example of the neuron circuit 9 is shown. Fig.16 The neuron circuit 9 shown is a circuit that charges the capacitor 13 at a constant charging speed after the input period T. In addition, the neuron circuit 9 receives a pair of positive and negative outputs from a pair of output lines 7 as inputs, and outputs a single output signal line 10 (at Figure 4 The signal line 1b in the figure outputs a multiplication and accumulation result, similar to Figure 4 .exist Fig.16 In the following, a case where the charge generated by the PWM signal is input to the neuron circuit 9 will be described.
[0258] In the following, the input period T is referred to as T in , in some cases will be in the input period Tin The output period for generating the product-accumulate signal is called T out . Note that the input period T in and output period T out Usually it is set to a period of the same continuous length T (T in =T out =T).
[0259] Apart from Figure 4 In addition to the accumulating unit 11 and the output unit 12 shown, the neuron circuit 9 also includes a charging unit 80. The charging unit 80 is charged during the input period T in After the output period T out The capacitor 13 is charged at a constant charging speed. As mentioned above, the PWM signal is input during the period T in The signal value is represented by the pulse width in the input period T in After that, all PWM signals are zero (see Figure 2 ). Therefore, in the output period T out In this case, the charge output to each output line 7 is substantially zero. Figure 4 The charging unit 80 shown in the figure is in the output period T out Works in order to connect the capacitor 13 to a predetermined current line In to charge the capacitor 13.
[0260] The charging unit 80 includes a first selection switch 81a, a second selection switch 82a, and a third selection switch 83a for changing the connection destination of the capacitor 13a, and a first selection switch 81b, a second selection switch 82b, and a third selection switch 83b for changing the connection destination of the capacitor 13b. In addition, the first control line SW1, the second control line SW2, and the current line In are connected to the charging unit 80. Note that the connection state (on or off) of each selector switch is as shown in FIG. Fig.16 The figure shows the input period T in The connection status in.
[0261] The first selection switch 81a is connected between the positive output line 7a (positive charge output line) and GND upstream of the capacitor 13a. The second selection switch 82a is connected between the current line In and the output node 84a of the capacitor 13a. Here, the output node 84a is a node (terminal) on the side opposite to the side of the capacitor 13a connected to GND. The third selection switch 83a is set between the output node 84a (capacitor 13a) and the positive output line 7a. In addition, the output node 84a is connected to the output unit 12 of the next stage.
[0262] The first selection switch 81b is connected between the negative output line 7b (negative charge output line) and GND upstream of the capacitor 13b. The second selection switch 82b is connected between the current line In and the output node 84b of the capacitor 13b. The third selection switch 83b is provided between the output node 84b (capacitor 13b) and the negative output line 7b. In addition, the output node 84b is connected to the output unit 12 of the next stage.
[0263] The first control line SW1 controls the first selection switches 81a and 81b. The second control line SW2 controls the second selection switches 82a and 82b and the third selection switches 83a and 83b. Note that the second selection switch 82a (82b) and the third selection switch 83a (83b) are configured so that their on / off states are opposite to each other. In the case where one of them is on, the other is off. The specific configuration of each selection switch is not limited, and, for example, an analog switch using a CMOS circuit or the like can be used. In addition, a control signal for operating the selection switch is appropriately input to each control line.
[0264] The output unit 12 outputs the out In the embodiment of the present invention, the potential of the capacitor 13 is determined by thresholding to output the product-accumulated signal. Here, the potential of the capacitor 13 is the potential of each output node 84a and 84b of the capacitors 13a and 13b. Specifically, the potential difference (voltage) between the potential of each of the output nodes 84a and 84b and the GND potential is determined by thresholding. In the following, in some cases, the potential of each output node 84a, 84b relative to GND is referred to as voltage.
[0265] The output unit 12 includes a positive comparator 85a and a negative comparator 85b and a ReLU function circuit 86. In addition, the output unit 12 is connected to a threshold voltage line Vth that provides a predetermined threshold voltage. The positive comparator 85a (negative comparator 85b) is connected to the output node 84a (output node 84b) and the threshold voltage line Vth, and when the voltage of the output node 84a (output node 85b) exceeds the threshold value θ (threshold voltage), the output level is switched from low to high. The specific configuration of each of the comparators 85a and 85b is not limited.
[0266] Note that, for example, during the output period T out , the value of the threshold value θ set to the threshold voltage line Vth is set together with the charging speed α of the capacitor 13 so that the positive and negative product accumulation results can be appropriately detected. Specifically, in the above-mentioned embodiment, the charging speed α and the threshold value θ associated with the accumulation state of the capacitor 13 are appropriately set. Alternatively, the threshold value θ can be set according to the capacitance of the capacitor 13, etc. In addition, the method of setting the threshold value θ, etc. is not limited.
[0267] ReLU function circuit 86 is implemented as reference Figure 1 The ReLU function circuit 86 can be configured using, for example, a logic circuit. In addition, the ReLU function circuit 86 is used as Figure 1 The function circuit 5 shown in the figure is Fig.16 The neuronal circuit 9 shown comprises a functional circuit 5 .
[0268] Fig.17 It is shown Fig.16 A timing diagram showing an example of the operation of the neuronal circuit 9 is shown. Fig.17 Part A and Fig.17 Part B is a timing diagram showing the multiplication and accumulation operations of positive weight values and negative weight values, respectively. In addition, Fig.17 Part C of FIG. 8 is a timing diagram showing the operation of the ReLU function circuit 86. Fig.16 and Fig.17 An example of operation of the neuron circuit 9 is described.
[0269] First, in the input period T in Before starting, the first selection switches 81a and 81b are respectively set to the on state by the first control line SW1, and the output lines 7a and 7b are grounded to GNDs. At this time, the second selection switches 82a and 82b are respectively in the off state. In addition, the third selection switches 83a and 83b are both in the on state, and the capacitors 13a and 13b are respectively connected to the positive output line 7a and the negative output line 7b. That is, in the input period T in Before starting, the charging unit 80 connects the capacitor 13 to GND.
[0270] Therefore, before performing the multiplication and addition operation, the output lines 7a and 7b can be initialized to the GND level (installation level) and reset to the initial state. Therefore, the charge accumulated in the capacitor 13 and the charge accumulated in the parasitic capacitance of the output line 7, etc. are released to GND. Therefore, the charge accumulated in the previous operation, etc. is reset, and therefore, appropriate arithmetic processing can be repeatedly performed.
[0271] Note that when the charge reset is completed, the first selection switches 81a and 81b are respectively set to the off state through the first control line SW1. In addition, the second selection switches 82a and 82b are both kept in the off state, and the third selection switches 83a and 83b are both kept in the on state. In this state, the input period T in Therefore, the charging unit 80 is in the input period T in A capacitor 13 is connected to a pair of output lines 7a and 7b.
[0272] During the input period T inIn the input period T, PWM signals are input from the plurality of input signal lines 6 (axon lines), and capacitors 13a and 13b are charged. in In the embodiment, a plurality of PWM signals (input signals) are input to each output line 7a and 7b via each synaptic circuit 8 (weight). Hereinafter, the signals input to the positive output line 7a and the negative output line 7b are referred to as ± axons (n).
[0273] For example, Fig.17 As shown in part A of FIG. 1 , the PWM signal from the +axon (1) to the +axon (n) is input to the positive output line 7a. Therefore, the capacitor 13a on the positive side is charged according to the pulse width (signal value) of each PWM signal, and the voltage (+dendrite) of the capacitor 13a is increased according to the input of each PWM signal to the positive output line 7a. For example, Fig.17 As shown in part B of FIG. 1 , the PWM signal from the -axon (1) to the -axon (n') is input to the negative output line 7a. Therefore, according to the input of each PWM signal to the negative output line 7a, the voltage of the capacitor 13a on the negative side (-dendrite) is increased. Note that during the input period T in Before the end, all PWM signals have been input.
[0274] When the input period T in At the end, the output period T out Start continuously. In the output period T out At the start timing, the second control line SW2 sets the third selection switches 83a and 83b to the off state, respectively. Therefore, the output lines 7a and 7b are separated from the next stage (the accumulating unit 11 and the output unit 12) of the neuron circuit 9.
[0275] In addition, substantially at the same time, the second selection switches 82a and 82b are respectively set to the on state, and the current line In is connected to the capacitors 13a and 13b. Therefore, the capacitors 13a and 13b are charged by the current line In. Specifically, Fig.17 As shown in Part A and Part B, In + andIn - The current flows into the capacitors 13a and 13b by connecting to the current line In.
[0276] In this embodiment, the current line In is used as a constant current source. Therefore, the current (In) flowing into each capacitor 13a and 13b + andIn - ) have the same value. These currents charge capacitors 13a and 13b at a constant charging rate α. Therefore, the charging unit 80 connects capacitor 13 to the output period T outThe current line In provides a current corresponding to the constant charging speed α. Therefore, it is easy to accurately detect the current in the input period T by threshold determination. in The charge accumulated in Fig.16 In the example shown, the current line In corresponds to a current source.
[0277] For example, Fig.17 As shown in parts A and B of FIG. 1 , the voltages of capacitors 13 a and 13 b are connected to the current lines and the voltages of capacitors 13 a and 13 b are connected to the current lines during the output period T. out Start of (input period T in The slope of this increase is equal to each other between capacitors 13a and 13b. Therefore, for example, the timing of the ± dendrite exceeding the threshold value θ represents the input period T of each of capacitors 13a, 13b. in Therefore, it can be appropriately expressed as in The accumulated charge is the result of the positive and negative multiplications.
[0278] The current line In provides current until the ± dendrites reach the threshold value θ. Then, when the ± dendrites reach the threshold value θ, output signals S are generated from comparators 85a and 85b, respectively. n + (t) and S n - (t) S n + (t) and S n - (t) are the multiplication-accumulation signals, indicating positive multiplication-accumulation results and negative multiplication-accumulation results, respectively.
[0279] like Fig.17 In the example shown, due to the input period T in At the end timing of S, the voltage of capacitor 13a is higher than the voltage of capacitor 13b, so S n + (t) than S n - (t) is generated earlier. As described above, the signal output from the comparator is a signal having a larger accumulation result as the rising timing is earlier.
[0280] Signals representing positive multiplication-accumulation results and negative multiplication-accumulation results (S n + (t) and S n - (t)) is input to the ReLU function circuit 86, and the difference between them is used as the PWM signal S n (t) Output. Fig.17 As shown in part C, S n (t) is when Sn + (t) high and S n - (t) is a high level signal when S is low. n The pulse width of (t) represents the difference between the positive multiplication-accumulation result and the negative multiplication-accumulation result, that is, the final result of the multiplication-accumulation operation output from an analog circuit 3. Note that only in S n + (t)>S n - S is generated only when (t) the difference between the positive multiplication-accumulation result and the negative multiplication-accumulation result is 0 or more. n (t).
[0281] Therefore, in Fig.16 In the neuron circuit 9 shown, the multiplication and accumulation result processed by the ReLU function can be output. Note that this technology is not limited to Fig.16 The circuit shown in the figure, and any circuit capable of reading the charge accumulated in the capacitor 13 or the like can be used as the neuron circuit 9.
[0282] Fig.18 is a circuit diagram showing another configuration example of the neuron circuit 509 . Fig.18 The neuron circuit 509 shown is a circuit that charges the capacitor 513 at a constant charging speed α after the input period T. In addition, the neuron circuit 509 receives a pair of positive and negative outputs from a pair of output lines 7 as inputs, and outputs positive and negative product accumulation results from a pair of output signal lines 10a and 10b. Fig.18 5 , a case where electric charge generated by a signal (step signal) of a TACT system (spike timing system) is input to the neuron circuit 509 will be described.
[0283] In addition to the accumulation unit 511 and the output unit 512, the neuron circuit 509 also includes a charging unit 580. The accumulation unit 511 and the charging unit 580 have, for example, Fig.16 The same configuration as described above for the charging unit 80. Note that Fig.18 In the neuron circuit 509 shown in FIG. 1 , a pair of product-accumulation signals S representing positive and negative product-accumulation results are outputted as is from the comparators 585a and 585b of the output unit 512, respectively. n + (t) and S n - (t). That is, it can be said that the output unit 512 has Fig.16 The output unit 12 shown is a configuration obtained by removing the ReLU function circuit 86.
[0284] The charging unit 580 inputs the time period T inAfter the output period T out The capacitor 513 is charged at a constant charging speed α. As described above, the step signal is generated by inputting a step signal during the input period T in Here, the timing in the input period T is used to represent the signal value. in The timing of the signal rising from a low value to a high value in FIG. 1 represents the signal value. Note that the rising step signal continues to maintain a high level thereafter.
[0285] Fig.19 It is shown Fig.18 A timing diagram of an example of the operation of neuronal circuit 509 is shown. Fig.19 Part A and Fig.19 Part B of FIG. 1 is a timing diagram showing the product-addition operation of positive weight values and negative weight values, respectively.
[0286] exist Fig.19 Even in the input period T in After the end (in the output period T out During the output period T, the step signal also remains at a high level. out During the output period T out During this period, the plurality of input signal lines 6 (axon lines) and the output line 7 constitute a current source, and the capacitor 13 is charged. Fig.19 In the above example, it is assumed that the number of ± axon lines is equal to each other (n=n'). Therefore, the output period T of the capacitors 513a and 513b can be made out The charging speed α is equal.
[0287] Therefore, in Fig.19 In the embodiment, each axon line and the positive and negative output lines 7a and 7b are used as part of the charging unit 580. In this case, for example, the neuron circuit 509 can be excluded Fig.18 The circuit 510 operates in a configuration in which the second selection switches 582a and 582b and the current line In are connected and the third selection switches 583a and 583b are short-circuited. Therefore, the circuit configuration for charging the capacitor 513 can be simplified.
[0288] First, in the input period T in Before starting, while connecting the positive output line 7a and the negative output line 7b and the capacitors 513a and 513b (the third selection switches 583a and 583b are short-circuited), the first selection switches 581a and 581b are respectively set to the on state through the first control line SW1. Therefore, before performing the multiplication and accumulation operation, the output lines 7a and 7b, etc. can be initialized to the GND level (installation level) and reset.
[0289] During the input period T inIn the TACT system, a step signal that rises at a timing corresponding to the signal value is input to multiple axon lines. in After that, a signal maintaining a high level is subsequently input from all axon lines. That is, during the input period T in The timing of the input step signal changes, but all axon lines are at a high level and in the output period T in Therefore, the capacitors 513a and 513b can be charged at a constant charging speed.
[0290] The voltages of the output nodes 584a and 584b of the capacitors 513a and 513b both increase at a constant rate. Then, when the voltages (± dendrites) of the output nodes 584a and 584b reach the thresholds θ (threshold voltages) of the comparators 585a and 585b, positive multiplication accumulation signals S are generated, respectively. n + (t) and the negative product accumulation signal S n - (t). Generated S n + (t) and S n - (t) is output to the next stage as a pair of product-addition signals. As described above, by using the step signal of the TACT system, a product-addition signal indicating the product-addition result can be generated with a simple configuration.
[0291] Fig. 20 It is shown Fig.18 A timing diagram of an example of the operation of neuronal circuit 509 is shown. Fig. 20 Part A and Fig. 20 Part B is a timing diagram showing the product-add operation of positive weight values and negative weight values, respectively. Fig. 20 In the input period T in After the end, the positive output line 7a and the negative output line 7b are separated. Then, in the output period T out During this period, the capacitor 513 is charged by the current line In.
[0292] After each of the output lines 7a and 7b, etc., is reset to the initial state, the input period T is started. in And a plurality of step signals are input. At this time, the selection switches 582a and 582b are set to the off state, and the third selection switches 583a and 583b are set to the on state. Therefore, the charge corresponding to the signal value of the step signal is accumulated from the positive output line 7a and the negative output line 7b to the capacitors 513a and 513b.
[0293] exist Fig. 20 In the input period T inAt the end of the timing, the second control line SW2 sets the third selection switches 583a and 583b to the off state, and the output lines 7a and 7b are separated from the next stage (accumulation unit 511 and output unit 512) of the neuron circuit 509. Fig. 20 As shown in part A and part B, during the output period T out Cut off the input from each axon line.
[0294] In addition, the second selection switches 582a and 582b are set to the on state substantially at the same time when the output lines 7a and 7b are separated. Therefore, each of the capacitors 513a and 513b is connected to the current line In and is respectively supplied with a constant current In. + andIn - Therefore, the capacitors 513a and 513b are charged at a constant charging speed. In addition, when the voltages (± dendrites) of the output nodes 584a and 584b reach the thresholds θ of the comparators 585a and 585b, positive multiplication accumulation signals S are generated respectively. n + (t) and the negative product accumulation signal S n - (t).
[0295] As described above, even in the case of using the TACT system, the current line In can be used to generate a multiplication-accumulation signal representing the multiplication-accumulation result. Therefore, for example, by using the neuron circuit 9 used in the PWM system (see Fig.16 ) design, the neuronal circuit 509 for the TACT system can be easily configured.
[0296] In the above description, an example has been given of a case where a multiplication-accumulation signal is output based on the timing at which the voltage maintained by the accumulation unit increases over a threshold value. However, a configuration may be adopted in which a multiplication-accumulation signal is output based on the timing at which the voltage maintained by the accumulation unit becomes less than a threshold voltage. For example, charging is performed in advance until the voltage of the capacitor acting as the accumulation unit reaches a predetermined preset value. After that, after accumulating the sum of the charges corresponding to the product value of the signal value and the weight value, the capacitor is discharged at a predetermined rate. In this case, a multiplication-accumulation signal may be output based on the timing at which the voltage maintained by the capacitor is less than a threshold value. Needless to say, the present technology is not limited to such a configuration. Note that in the present disclosure, capacitor discharge is included in charging a capacitor with a negative charge. By appropriately setting the threshold and the discharge speed, the multiplication-accumulation signal can be calculated with very high accuracy.
[0297] In the above description, the case of using a pair of output lines has been described. The present technology is not limited to this, and three or more output lines may be set. That is, even in the case of using an arbitrary number of output lines greater than or equal to 1, the above-mentioned present technology is applicable. For example, the product unit includes a resistor connected between the corresponding input line and any one of the one or more output lines and defining a weight value, and outputs a charge corresponding to the product value to the output line to which the resistor is connected. Needless to say, the present technology is not limited to this.
[0298] The configuration of the operation device, the multiplication-accumulation operation device, the analog circuit, the synaptic circuit, the neuron circuit, etc., the method of generating the multiplication-accumulation signal, etc. described with reference to the drawings is only one embodiment, and can be arbitrarily modified without departing from the essence of the present invention. That is, any other arbitrary configuration, method, etc. for implementing the present invention can be adopted.
[0299] In the present disclosure, “same”, “equal”, “perpendicular”, etc. are concepts including “substantially the same”, “substantially equal”, “substantially perpendicular”, etc. For example, a state included in a predetermined range (e.g., ±10%) with reference to “exactly the same”, “completely equal”, “completely perpendicular”, etc. is also included.
[0300] At least two of the above-mentioned features according to the present technology can be combined. That is, the various features described in each embodiment can be arbitrarily combined without distinguishing the embodiments from each other. In addition, the above-mentioned various effects are only examples rather than limitations, and additional effects can be exerted.
[0301] It should be noted that the present technology can adopt the following configurations.
[0302] (1) A multiplication-accumulation operation device, which performs multiplication-accumulation operation using an analog circuit, the multiplication-accumulation operation device comprising:
[0303] a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input;
[0304] a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by the weight value based on a pulse signal input to each of the plurality of input lines;
[0305] an accumulation unit that accumulates a sum of charges corresponding to a product value generated by each of the plurality of product units;
[0306] a charging unit that charges the accumulation unit in which the sum of charges corresponding to the product value has been accumulated at a charging speed associated with the accumulation state of the accumulation unit; and
[0307] An output unit that outputs a product accumulation signal representing a sum of product values by performing threshold determination on a voltage held by the accumulation unit using a threshold associated with an accumulation state of the accumulation unit after the charging unit starts charging.
[0308] (2) The multiply-add operation device according to (1), wherein:
[0309] inputting a pulse signal to each of the plurality of input lines within an input period having a predetermined length,
[0310] After the input period ends, the charging unit starts charging, and
[0311] The output unit may output the product-accumulated signal based on the timing at which the voltage held by the accumulating unit increases or decreases to exceed a threshold value within an output period having a predetermined length.
[0312] (3) The multiply-add operation device according to (2), wherein:
[0313] The charging speed and the threshold value are set based on an effective maximum value and an effective minimum value of the sum of charges corresponding to the product value obtained from an estimation result of the sum of charges corresponding to the product value accumulated by the accumulation unit.
[0314] (4) The multiply-add operation device according to (3), wherein:
[0315] The charging speed and the threshold value are set so that the range from the effective maximum value to the effective minimum value is the range in which the product-accumulation signal can be output in the output period.
[0316] (5) The multiply-add operation device according to (3) or (4), wherein:
[0317] The timing at which the voltage held by the accumulation unit increases or decreases to exceed the threshold value is used as the calculation timing for calculating the product accumulation signal, and
[0318] The charging speed and the threshold value are set so that the calculation timing corresponding to the effective maximum value is the timing immediately after the start timing of the output period, and the calculation timing corresponding to the effective minimum value is the timing immediately before the end timing of the output period.
[0319] (6) The multiply-and-add operation device according to any one of (3) to (5), wherein:
[0320] The charging speed and threshold are set based on the length of the output period.
[0321] (7) The multiply-and-add operation device according to any one of (3) to (6), wherein:
[0322] The effective maximum value and the effective minimum value are respectively a theoretical maximum value and a theoretical minimum value obtained from a theoretical value of the sum of the charges corresponding to the product value accumulated by the accumulation unit.
[0323] (8) The multiply-and-add operation device according to any one of (2) to (7), wherein:
[0324] The length of the output period is equal to the length of the input period.
[0325] (9) The multiply-add operation device according to any one of (2) to (8), wherein:
[0326] The charging unit starts charging at the end timing of the input period, and
[0327] The output period starts at the charging start timing of the charging unit.
[0328] (10) The multiply-add operation device according to any one of (1) to (9), wherein:
[0329] The plurality of product units include a positive weight product unit that generates a positive weight charge corresponding to a product value obtained by multiplying an input value by a positive weight value, and a negative weight product unit that generates a negative weight charge corresponding to a product value obtained by multiplying an input value by a negative weight value,
[0330] The accumulation unit includes a positive charge accumulation unit and a negative charge accumulation unit, wherein the positive charge accumulation unit accumulates the sum of the positive weighted charges generated by the positive weighted product unit, and the negative charge accumulation unit accumulates the sum of the negative weighted charges generated by the negative weighted product unit.
[0331] The charging unit charges the positive charge accumulation unit and the negative charge accumulation unit at the same charging speed, and
[0332] The output unit outputs a product-accumulation signal by performing threshold determination on the positive charge accumulation unit and the negative charge accumulation unit using the same threshold.
[0333] (11) The multiply-add operation device according to any one of (1) to (9), wherein:
[0334] The accumulation unit accumulates charges corresponding to a difference between a total amount of positive weighted charges corresponding to a product value obtained by multiplying an input value by a positive weight value and a total amount of negative weighted charges corresponding to a product value obtained by multiplying an input value by a negative weight value.
[0335] (12) The multiply-add operation device according to (11), wherein:
[0336] Positive weight charges and negative weight charges are charges that have the same sign as each other, and
[0337] The accumulation unit accumulates the sum of positive weighted charges and releases the sum of negative weighted charges.
[0338] (13) The multiply-add operation device according to any one of (2) to (12), wherein:
[0339] The pulse signal has a pulse width corresponding to a period from a timing corresponding to an input value in an input period to an end timing of the input period.
[0340] (14) The multiplication and addition operation device according to any one of (1) to (13), further comprising
[0341] One or more output lines, where
[0342] A plurality of product units are provided corresponding to a plurality of input lines, and
[0343] Each of the plurality of product units includes a resistor defining a weight value and having a nonlinear characteristic, the resistor being connected between a corresponding input line among the plurality of input lines and any one of the one or more output lines, and each of the plurality of product units outputs a charge corresponding to the product value to the output line to which the resistor is connected.
[0344] (15) The multiply-add operation device according to (10), further comprising:
[0345] a positive charge output line; and
[0346] Negative charge output line, where
[0347] A plurality of product units are provided corresponding to a plurality of input lines.
[0348] The positive weight product unit includes a resistor defining a positive weight value and having a nonlinear characteristic, the resistor being connected between a corresponding input line among the plurality of input lines and the positive charge output line, and the positive weight product unit outputs positive weight charges corresponding to the product value to the positive charge output line, and
[0349] The negative weight product unit includes a resistor defining a negative weight value and having nonlinear characteristics, the resistor being connected between a corresponding input line of the plurality of input lines and a negative charge output line, and the negative weight product unit outputs negative weight charges corresponding to the product value to the negative charge output line.
[0350] (16) The multiply-add operation device according to (14) or (15), wherein:
[0351] The resistor is a fixed resistance element, a variable resistance element, or a MOS transistor operating in a subthreshold region.
[0352] (17) A multiply-accumulate operation circuit that performs a multiply-accumulate operation in an analog manner, the multiply-accumulate operation circuit comprising:
[0353] a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input;
[0354] a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by the weight value based on a pulse signal input to each of the plurality of input lines;
[0355] an accumulation unit that accumulates a sum of charges corresponding to a product value generated by each of the plurality of product units;
[0356] a charging unit that charges the accumulation unit in which the sum of charges corresponding to the product value has been accumulated at a charging speed associated with the accumulation state of the accumulation unit; and
[0357] The output unit outputs a product accumulation signal indicating the sum of product values by performing threshold determination on the voltage held by the accumulation unit using a threshold value associated with an accumulation state of the accumulation unit after the charging unit starts charging.
[0358] (18) A multiplication and accumulation operation system, comprising:
[0359] a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input;
[0360] A plurality of analog circuits, the plurality of analog circuits comprising
[0361] a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by the weight value based on a pulse signal input to each of the plurality of input lines,
[0362] an accumulation unit that accumulates a sum of charges corresponding to a product value generated by each of the plurality of product units,
[0363] a charging unit that charges the accumulation unit in which the sum of charges corresponding to the product value has been accumulated at a charging speed associated with the accumulation state of the accumulation unit, and
[0364] an output unit that outputs a product accumulation signal indicating a sum of product values by performing threshold determination on a voltage held by the accumulation unit using a threshold value associated with an accumulation state of the accumulation unit after the charging unit starts charging; and
[0365] A network circuit is connected to multiple analog circuits.
[0366] (19) A multiplication and accumulation method, comprising:
[0367] inputting a pulse signal having a pulse width corresponding to an input value to a plurality of input lines;
[0368] generating, based on a pulse signal input to each of a plurality of input lines, a charge corresponding to a product value obtained by multiplying an input value by a weight value;
[0369] accumulating a sum of the generated charges corresponding to the product value in an accumulation unit;
[0370] charging the accumulation unit in which the sum of charges corresponding to the product value is accumulated at a charging speed associated with the accumulation state of the accumulation unit; and
[0371] After charging is started, threshold determination is performed on the voltage held by the accumulation unit by using a threshold value associated with an accumulation state of the accumulation unit to output a product accumulation signal representing the sum of product values.
[0372] Reference numerals list
[0373] θ threshold
[0374] α Charging speed
[0375] 1 Signal line
[0376] 1a Input signal line
[0377] 3, 203, 303, 403 Multiplication and accumulation device
[0378] 7 A pair of output wires
[0379] 7a, 207a Positive charge output line
[0380] 7b, 207b Negative charge output line
[0381] 8 Synaptic Circuits
[0382] 8a, 208a Synaptic circuit (positive weight product unit)
[0383] 8b, 208b synaptic circuit (negative weight product unit)
[0384] 9,509 Neuronal Circuits
[0385] 11, 211, 311, 411, 511 Accumulation unit
[0386] 12, 212, 312, 412, 512 output units
[0387] 13, 213, 313, 413, 513 capacitors
[0388] 15, 215, 315, 415, 80, 580 charging units
[0389] 17 Resistors
[0390] 18, 218, 318, 418 current source
[0391] 20, 220, 320, 420 Comparator
[0392] 21, 221, 321 Signal generation unit
[0393] 100 computing device.
Claims
1. A multiplication-accumulation operation device, which performs multiplication-accumulation operation using an analog circuit, the multiplication-accumulation operation device comprising: a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input; a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by a weight value based on the pulse signal input to each of the plurality of input lines; an accumulation unit that accumulates a sum of the charges corresponding to the product value generated by each of the plurality of product units; a charging unit configured to charge the accumulating unit in which the sum of the charges corresponding to the product value has been accumulated at a charging speed associated with an accumulation state of the accumulating unit; as well as an output unit that outputs a product accumulation signal representing the sum of the product values by performing threshold determination on the voltage held by the accumulation unit using a threshold value associated with the accumulation state of the accumulation unit after the charging unit starts charging, wherein inputting the pulse signal to each of the plurality of input lines within an input period having a predetermined length, After the input period ends, the charging unit starts charging, and The output unit outputs the product-accumulated signal based on a timing at which the voltage held by the accumulating unit increases or decreases to exceed the threshold value within an output period having a predetermined length.
2. The multiplication and accumulation operation device according to claim 1, wherein: The charging speed and the threshold value are set based on an effective maximum value and an effective minimum value of a sum of charges corresponding to the product value, the effective maximum value and the effective minimum value being obtained from an estimation result of the sum of charges corresponding to the product value accumulated by the accumulation unit.
3. The multiplication and accumulation operation device according to claim 2, wherein: The charging speed and the threshold value are set so that a range from the effective maximum value to the effective minimum value is a range in which the product-accumulation signal can be output in the output period.
4. The multiplication and accumulation operation device according to claim 2, wherein: The timing at which the voltage held by the accumulating unit increases or decreases to exceed the threshold value is used as a calculation timing for calculating the product-accumulated signal, and The charging speed and the threshold value are set so that the calculation timing corresponding to the effective maximum value is the timing immediately after the start timing of the output period, and the calculation timing corresponding to the effective minimum value is the timing immediately before the end timing of the output period.
5. The multiplication and accumulation operation device according to claim 2, wherein: The charging speed and the threshold value are set based on the length of the output period.
6. The multiplication and accumulation operation device according to claim 2, wherein: The effective maximum value and the effective minimum value are respectively a theoretical maximum value and a theoretical minimum value obtained from a theoretical value of the sum of the charges corresponding to the product value accumulated by the accumulation unit.
7. The multiplication and accumulation operation device according to claim 1, wherein: The length of the output period is equal to the length of the input period.
8. The multiplication and accumulation operation device according to claim 1, wherein: the charging unit starts charging at the end timing of the input period, and The output period starts at a charging start timing of the charging unit.
9. The multiplication and accumulation operation device according to claim 1, wherein: The plurality of product units include a positive weight product unit that generates a positive weight charge corresponding to a product value obtained by multiplying the input value by a positive weight value, and a negative weight product unit that generates a negative weight charge corresponding to a product value obtained by multiplying the input value by a negative weight value, The accumulation unit includes a positive charge accumulation unit and a negative charge accumulation unit, the positive charge accumulation unit accumulates the sum of the positive weighted charges generated by the positive weighted product unit, and the negative charge accumulation unit accumulates the sum of the negative weighted charges generated by the negative weighted product unit, The charging unit charges the positive charge accumulation unit and the negative charge accumulation unit at the same charging speed, and The output unit outputs the product-accumulation signal by performing threshold determination on the positive-charge accumulation unit and the negative-charge accumulation unit using the same threshold.
10. The multiplication and accumulation operation device according to claim 1, wherein: The accumulation unit accumulates charges corresponding to a difference between a total amount of positive weighted charges corresponding to a product value obtained by multiplying the input value by a positive weight value and a total amount of negative weighted charges corresponding to a product value obtained by multiplying the input value by a negative weight value.
11. The multiplication and accumulation operation device according to claim 10, wherein: The positive weight charge and the negative weight charge are charges having the same sign as each other, and The accumulation unit accumulates the sum of the positive weighted charges and releases the sum of the negative weighted charges.
12. The multiplication and accumulation operation device according to claim 1, wherein: The pulse signal has a pulse width corresponding to a period from a timing corresponding to an input value in the input period to an end timing of the input period.
13. The multiplication and accumulation operation device according to claim 1, further comprising One or more output lines, where The plurality of product units are arranged corresponding to the plurality of input lines, and Each of the plurality of product units includes a resistor that defines the weight value and has a nonlinear characteristic, the resistor being connected between a corresponding input line among the plurality of input lines and any one of the one or more output lines, and each of the plurality of product units outputs charges corresponding to the product value to the output line to which the resistor is connected.
14. The multiplication and accumulation operation device according to claim 9, further comprising a positive charge output line; and Negative charge output line, where The plurality of product units are arranged corresponding to the plurality of input lines, The positive weight product unit includes a resistor defining the positive weight value and having a nonlinear characteristic, the resistor being connected between a corresponding input line among the plurality of input lines and the positive charge output line, and the positive weight product unit outputs positive weight charges corresponding to the product value to the positive charge output line, and The negative weight product unit includes a resistor that defines the negative weight value and has nonlinear characteristics, the resistor is connected between a corresponding input line among the multiple input lines and the negative charge output line, and the negative weight product unit outputs a negative weight charge corresponding to the product value to the negative charge output line.
15. The multiplication and accumulation operation device according to claim 13, wherein: The resistor is a fixed resistance element, a variable resistance element, or a MOS transistor operating in a subthreshold region.
16. A multiply-accumulate operation circuit, which performs multiply-accumulate operation in an analog manner, the multiply-accumulate operation circuit comprising: a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input; a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by a weight value based on the pulse signal input to each of the plurality of input lines; an accumulation unit that accumulates a sum of the charges corresponding to the product value generated by each of the plurality of product units; a charging unit configured to charge the accumulating unit in which the sum of the charges corresponding to the product value has been accumulated at a charging speed associated with an accumulation state of the accumulating unit; as well as an output unit that outputs a product accumulation signal representing the sum of the product values by performing threshold determination on the voltage held by the accumulation unit using a threshold value associated with the accumulation state of the accumulation unit after the charging unit starts charging, wherein inputting the pulse signal to each of the plurality of input lines within an input period having a predetermined length, After the input period ends, the charging unit starts charging, and The output unit outputs the product-accumulated signal based on a timing at which the voltage held by the accumulating unit increases or decreases to exceed the threshold value within an output period having a predetermined length.
17. A multiplication and accumulation operation system, comprising: a plurality of input lines to which pulse signals having pulse widths corresponding to input values are input; A plurality of analog circuits, the plurality of analog circuits comprising a plurality of product units that generate charges corresponding to product values obtained by multiplying the input value by a weight value based on the pulse signal input to each of the plurality of input lines, an accumulation unit that accumulates a sum of the charges corresponding to the product value generated by each of the plurality of product units, a charging unit that charges the accumulation unit in which the sum of the charges corresponding to the product value has been accumulated at a charging speed associated with an accumulation state of the accumulation unit, and an output unit that outputs a product accumulation signal representing the sum of the product values by performing threshold determination on the voltage held by the accumulation unit using a threshold value associated with the accumulation state of the accumulation unit after the charging unit starts charging, wherein inputting the pulse signal to each of the plurality of input lines within an input period having a predetermined length, After the input period ends, the charging unit starts charging, and The output unit outputs the product accumulation signal based on the timing at which the voltage held by the accumulation unit increases or decreases to exceed the threshold value within an output period having a predetermined length; as well as The network circuit is connected to the plurality of analog circuits.
18. A multiplication and accumulation method, comprising: inputting a pulse signal having a pulse width corresponding to an input value to a plurality of input lines; generating, based on the pulse signal input to each of the plurality of input lines, a charge corresponding to a product value obtained by multiplying the input value by a weight value; accumulating a sum of the generated charges corresponding to the product value in an accumulation unit; charging the accumulation unit in which the sum of the charges corresponding to the product value is accumulated at a charging speed associated with an accumulation state of the accumulation unit; as well as After charging is started, threshold determination is performed on the voltage held by the accumulation unit by using a threshold value associated with the accumulation state of the accumulation unit to output a product accumulation signal representing the sum of the product values, wherein inputting the pulse signal to each of the plurality of input lines within an input period having a predetermined length, After the input period ends, charging begins, and The product-accumulated signal is output based on the timing at which the voltage held by the accumulating unit increases or decreases to exceed the threshold value within an output period having a predetermined length.
