CPC G06F 7/523 (2013.01) [G06F 7/50 (2013.01); G06F 17/14 (2013.01); G06G 7/16 (2013.01); G06N 3/063 (2013.01)] | 15 Claims |
1. An arithmetic apparatus, comprising:
a plurality of input lines into each of which an electrical signal corresponding to an input value is input within a predetermined input period;
a plurality of multiply-accumulate devices each including
a plurality of multiplication circuits that each generates, on a basis of the electrical signal input into each of the plurality of input lines, a charge corresponding to a product value obtained by multiplying the input value by a weight value, and
an output circuit that accumulates a charge corresponding to the product value generated by each of the plurality of multiplication circuits and outputs, on a basis of the accumulated charge, a multiply-accumulate signal representing a sum of the product values, in which
the plurality of multiplication circuits includes at least one of a positive weight multiplication circuit that generates a positive weight charge corresponding to a product value obtained by multiplying the input value by a positive weight value or a negative weight multiplication circuit that generates a negative weight charge corresponding to a product value obtained by multiplying the input value by a negative weight value, and is configured such that a ratio of a sum total of the positive weight values to a sum total of absolute values of the weight values is any ratio of 0% to 100%, and
the output circuit includes an accumulation circuit capable of accumulating each of the positive weight charge and the negative weight charge, generates a voltage signal representing a sum of the product values by a voltage on a basis of the voltage of the accumulation circuit, and outputs the multiply-accumulate signal on a basis of the voltage signal, wherein
the plurality of multiply-accumulate devices is configured such that each sum total of absolute values of the weight values of the plurality of multiplication circuits included in each respective multiply-accumulate device is equal to one another, and
a voltage supply circuit that supplies a ramp voltage to the output circuit of each of the plurality of multiply-accumulate devices, wherein
the output circuit outputs the voltage signal as the multiply-accumulate signal by performing threshold determination of the ramp voltage by using the voltage of the voltage signal as a threshold value.
|