Multiplication and accumulation device and multiplication and accumulation method
By using the comparison unit and the control circuit in the multiplier-accumulator device, the timing of the signal output is extended, the problem of reduced signal output timing in the multiplier-accumulator is solved, and the performance of the multiplier-accumulator is improved.
Patent Information
- Application Number
- CN201980045355.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-12
- Filing Date
- 2019-07-05
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-07-05
AI Technical Summary
In a conventional multiplier-accumulator, the multiplier-accumulator output from the previous stage is directly output to the subsequent stage, resulting in reduced timing of signal output and difficulty in determining the timing of the output signal.
Design a multiply-accumulate device, including a comparison unit and a control circuit. The comparison unit compares the charge in the storage unit with the threshold voltage and outputs a signal. The control circuit reduces the charging current from the input unit to the storage unit based on a predetermined value to extend the signal output. timing.
It effectively expands the timing of signal output, avoids the concentration of output signal timing, and improves the performance of the multiplier-accumulator.
Smart Images

Figure CN112513864B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a multiplication-accumulation device and a multiplication-accumulation method. Background Art
[0002] In recent years, various neural network computing circuits have been proposed.
[0003] For example, Patent Document 1 discloses a technique for performing calculation based on the rising timing of a signal output from a comparator in a time axis analog multiplication-accumulation circuit including an RC circuit and a comparator.
[0004] Reference List
[0005] Patent Literature
[0006] Patent Document 1: WO 2018 / 034163 A Summary of the invention
[0007] Technical issues
[0008] However, in the above conventional technology, the output from the multiplication accumulator in the previous stage is directly output to the multiplication accumulator in the next stage. In this case, the timing of each signal output from the comparator is reduced, and it may be difficult to determine the timing of the output signal.
[0009] Therefore, the present disclosure proposes a multiplication-accumulation device and a multiplication-accumulation method capable of extending the timing of signal output.
[0010] Solution to the problem
[0011] In order to solve the above problems, a multiplication and accumulation device includes: a comparison unit, which compares a voltage generated by a charge stored in a storage unit with a threshold voltage, and outputs an output signal at a timing when the voltage exceeds the threshold voltage; and a control circuit, which reduces a charging current from a plurality of input units connected to the storage unit to the storage unit based on a predetermined setting value.
[0012] Advantageous Effects of the Invention
[0013] According to the present disclosure, the timing of signal output can be extended. Note that the effects described here are not necessarily limited, and may be any effects described in the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] [ Figure 1 ] is a schematic diagram showing a multiplication and accumulation device.
[0015] [ Figure 2 ] is a schematic diagram of a multiplication and accumulation device.
[0016] [ Figure 3] is a diagram showing an example of the configuration of a multiplication accumulator.
[0017] [ Figure 4 ] is a diagram used to illustrate the output timing of the multiplier accumulator.
[0018] [ Figure 5 ] is a diagram used to illustrate the distribution of the output timings of the multiplication accumulator.
[0019] [ Figure 6 ] is a diagram showing an example of a multiplication and accumulation device according to the first embodiment of the present disclosure.
[0020] [ Figure 7 ] is a diagram showing an example of a charging curve as a time change of a charging amount.
[0021] [ Figure 8 ] is a diagram showing an example of an output mode of an input unit for reducing a charging current.
[0022] [ Fig. 9 ] is a diagram for explaining the current and threshold voltage during charging.
[0023] [ Fig.10 ] is a diagram for explaining the operation of the first limiting circuit.
[0024] [ Fig.11 ] is a diagram showing the relationship between the lower limit of the amplitude limit specified in the first amplitude limit circuit and the input signal input to the first amplitude limit circuit.
[0025] [ Fig.12 ] is a diagram for explaining the operation of the second limiting circuit.
[0026] [ Fig.13 ] is a diagram showing the relationship between the upper limit of the limit specified in the second limit circuit and the input signal input to the second limit circuit.
[0027] [ Fig.14 ] is a diagram for illustrating the effect of limiting the input signal.
[0028] [ Fig.15 ] is a diagram for illustrating the effect of limiting the input signal.
[0029] [ Fig.16 ] is a diagram showing an example of a modified example of the multiplication and accumulation device according to the first embodiment of the present disclosure.
[0030] [ Fig.17 ] is a diagram showing an example of a multiplication and accumulation device according to the second embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] A detailed description of the embodiments of the present disclosure will be given below with reference to the accompanying drawings. Note that in the following corresponding embodiments, the same reference numerals are given to the same parts, and repeated descriptions will be omitted.
[0032] Furthermore, the present disclosure will be described in the following item order.
[0033] 1. Overview
[0034] 1-1. Overview of the multiplication and accumulation device
[0035] 1-2. Overview of Multiplication Accumulator
[0036] 1-3. Network configuration of multiplication and accumulation device
[0037] 2. First Implementation
[0038] 2-1. Configuration of Multiplication Accumulators of Multiplication Accumulation Device According to First Embodiment
[0039] 2-2. Setting of charging current and threshold voltage
[0040] 2-3. Limiting circuit
[0041] 2-4. Modification Example of Multiplier Accumulator According to First Embodiment
[0042] 3. Second Implementation
[0043] 3-1. Configuration of Multiplication Accumulators of Multiplication Accumulation Device According to Second Embodiment
[0044] (1. Overview)
[0045] [1-1. Overview of multiplication and accumulation device]
[0046] First, a description will be given of an overview of the multiplication-accumulation device 10 to which each embodiment of the present disclosure is applied. Each multiplication-accumulation device 10 according to each embodiment of the present disclosure converts a load (weight) w i With N electrical signals I i Each of the two is associated with each other, and the sum of N multiplication values is derived, each of which is obtained by dividing the paired electrical signals I i With load w i Each value of is multiplied by each other. Here, N is a natural number of 2 or more, and i is a natural number of N or less.
[0047] Assume that the electrical signal I i (hereinafter, also referred to as electrical signal) represents the value x i, and N electrical signals are supplied to one multiplication accumulator 11 within a predetermined period of time T1. In this case, the sum of N multiplication values obtained by the multiplication accumulator 11 is expressed by the following equation (1).
[0048]
[0049] like Figure 1 As shown, the multiplication-accumulation device 10 has a structure in which a plurality of multiplication-accumulation devices 11 are provided in each of a plurality of layers. Each of the plurality of multiplication-accumulation devices 11 in the lowest layer performs multiplication based on a value x represented by N electrical signals (e.g., pulse signals) given from a plurality of external input units 12. i and the load w applied to the corresponding electrical signal i Then, each of the multiplier accumulators 11 sends an electrical signal representing the calculation target value to the multiplier accumulator 11 of the upper layer. Note that in the present disclosure, the load w i The size of the electrical signal x i The size of the electrical signal x i and load w i The bit precision of the output of the multiplication and accumulation is not particularly limited. i The size of the electrical signal x i The size of the electrical signal x i and load w i The bit precision of the output of the multiplication accumulation device 10 is determined independently of each other. For example, the user can select various values from binary to multiple values for each value. Therefore, the user only needs to consider the balance between the performance, cost, etc. of the multiplication accumulation device 10 to set each value. That is, the user can arbitrarily set each value.
[0050] Each of these multiplication accumulators 11 in the upper layer will load w i The values of the electrical signals sent from the multiple multiplication accumulators 11 in the lower layer are individually associated, and the calculation target value is obtained. Then, each of the multiplication accumulators 11 in the upper layer sends an electrical signal representing the calculation target value to the multiplication accumulator 11 in another upper layer. The multiplication accumulation device 10 according to each embodiment of the present disclosure is designed to be applicable to a neural network. Such a multiplication accumulation device 10 performs the processing of obtaining the calculation target value by the multiplication accumulator 11 in the upper layer multiple times based on the calculation target value obtained by the multiplication accumulator 11 in the lower layer. Therefore, the multiplication accumulation device 10 performs image recognition processing, etc.
[0051] [1-2. Overview of multiplication and accumulation unit]
[0052] refer to Figure 2 , a description will be given of the configuration and processing of the multiplication accumulator 11a as an overview of the multiplication accumulator 11. Here, the electrical signal xi The description is given under the assumption that is a variable greater than 0 and less than 1. Note that although the load w i There is a positive load w as a positive value in i + and negative load w as a negative value i - , but a description will be given here on the assumption that there is no distinction between the positive and negative sides of the load.
[0053] like Figure 2 As shown, the multiplier accumulator 11 a includes N input units 13 , a storage unit 14 , a comparison unit 18 and a threshold power supply 19 .
[0054] N input units 13 are connected in parallel with each other. Each of the input units 13 connects a load w i is associated with an electrical signal given within a predetermined time period T1, and the output has the same i and load w i The value obtained by multiplying each other corresponds to the magnitude of the charge. Figure 2 As shown, each input unit 13 includes an input terminal 15, a resistor 16 and a diode 17. The input terminal 15, the resistor 16 and the diode 17 are connected in series with each other. In each input unit 13, for example, each input terminal 15 is provided with an electric signal of the same magnitude at different timings within a time period T1.
[0055] The storage unit 14 is connected to each input unit 13 and stores the charge output from each input unit 13. The storage unit 14 is, for example, a capacitor.
[0056] Outside the multiplier accumulator 11a, the length of the time period T1 is defined as T in , and using the following equation (2), whereby the value x represented by the electrical signal i The timing t when it is converted into an electrical signal i That is, the electrical signal is at timing t i is input to the input terminal 15 .
[0057] t i =T in (1-x i ) (2)
[0058] Assume that the timing t of a given electrical signal i The waveform generated and increasing or decreasing in proportion to the passage of time t is defined as a response waveform W, and the charge amount P supplied from each input unit 13 to the storage unit 14 is i (t) can be represented by the magnitude of the response waveform W. Assume that the slope of the response waveform W with respect to the passage of time t is defined as k i, then the load w can be converted to i Convert to k i .
[0059] k i =λw i (3)
[0060] Here, assuming that a waveform obtained by adding all the response waveforms W to each other is defined as a composite waveform TW, the magnitudes of the composite waveform TW are P1(t), P2(t), P3(t), . . . and P N (t). This is equal to the voltage generated by the memory cell 14. Here, the voltage held in the memory cell 14 is defined as V N (t).
[0061] The comparison unit 18 compares the threshold value and the signal input thereto with each other, and outputs a step waveform when the input signal exceeds the threshold value. The comparison unit 18 is, for example, a comparator. The comparison unit 18 is connected to the storage unit 14 and the threshold power supply 19.
[0062] The threshold power supply 19 supplies the threshold voltage to the comparison unit 18. Here, the magnitude of the threshold voltage is defined as θ. In this case, the comparison unit 18 generates a voltage V held in the storage unit 14. N (t) The timing output step waveform exceeds the threshold value θ. Assume that V N The timing when (t) reaches the threshold value θ is defined as t v , then the following equation (4) is obtained.
[0063]
[0064] Then, assuming the load w i The sum of is defined as β, then β can be expressed by the following equation (5).
[0065]
[0066] Then, from equation (2) to equation (5), the calculation target value of the multiplication accumulator 11a can be expressed by the following equation (6).
[0067]
[0068] Here, it is assumed that all loads w i In this case, when the value x represented by the electrical signal supplied to each input terminal 15 is i When it is the minimum value 0, the left side of equation (6) becomes 0, so that t v The timing of becomes the latest. v min It can be expressed by the following equation (7).
[0069]
[0070] The fact that the left side of equation (6) is 0 means that the timing of outputting the step waveform from the comparison unit 18 is the latest.
[0071] On the other hand, when the value x represented by the electric signal supplied to each input terminal 15 i When it is the maximum value 1, the left side of equation (6) becomes β, so that t v The timing of becomes the earliest. Timing t v max It is expressed by the following equation (8).
[0072]
[0073] The fact that the left side of equation (6) is β means that the timing of outputting the step waveform from the comparison unit 18 is the earliest. Therefore, according to equations (7) and (8), the time period T2 during which the step waveform is output from the comparison unit 18 is [t v max , t v min ], and the length of time period T2 is T v It can be given by the following equation (9).
[0074]
[0075] Therefore, the time length T of the period T2 during which the step waveform is output from the comparison unit 18 is v becomes equal to the time length T of the time period T1 during which the electric signal is supplied to each input unit 13. in .
[0076] In order to reflect all the electrical signals supplied to the corresponding input units 13 to the calculation target value of the multiplication accumulator 11a, the time period T2 needs to exist in and after the time period T1, and θ needs to be an appropriate value. For this purpose, the condition shown in the following equation (10) is required.
[0077]
[0078] According to equation (8), equation (10) can be transformed into the following equation (11).
[0079] θ>λβT in (11)
[0080] Here, when a minute amount of ε (>0) is defined, the threshold value θ can be expressed by the following equation (12) using ε.
[0081] θ=(1+ε)λβT in (12)
[0082] According to equation (12), the threshold θ needs to be related to the load w i The sum of β and the length of time period T1 is T in is proportional to the product of .
[0083] The following equation (13) is obtained from equation (7) and equation (12), and the following equation (14) is obtained from equation (8) and equation (12).
[0084]
[0085]
[0086] Therefore, the time range of the time period T2 can be expressed by equation (13) and equation (14).
[0087] refer to Figure 3 , a description of the multiplication accumulator will be given, which is loaded with w i Differentiate into positive load w i + and negative load w i - The target value is calculated at the same time. Figure 3 is shown in the load w i Differentiate into positive load w i + and negative load w i - A diagram showing an example of a configuration of a multiplication accumulator for obtaining a calculation target value while simultaneously obtaining a calculation target value.
[0088] For the N electrical signals given in the time period T1, the multiplier-accumulator 11A converts w i + With N + Each of the electrical signals is associated with (N + is a natural number N or smaller). The multiplier accumulator 11A adds w i - The absolute value of (NN + Such a multiplier-accumulator 11A includes a first multiplier-accumulator 11Aa, a second multiplier-accumulator 11Ab and a calculation unit 20.
[0089] like Figure 3 As shown, the first multiplier accumulator 11Aa includes N + A first input unit 13A, a first storage unit 14A, a first comparison unit 18A and a first threshold power supply 19A.
[0090] The first input units 13A are connected in parallel with each other. Each of the first input units 13A connects the load w i + The response waveform is associated with the electrical signal given within the predetermined time period T1, and the output voltage changes with time. Figure 3 As shown, each first input unit 13A includes a first input terminal 15A, a first resistor 16A and a first diode 17A. The first input terminal 15A, the first resistor 16A and the first diode 17A are connected in series with each other. In each first input unit 13A, for example, each first input terminal 15A is provided with an electrical signal of the same voltage at different timings within a time period T1.
[0091] The first storage unit 14A is connected to each first input unit 13A and stores the charge output from each first input unit 13 A. The first storage unit 14A is, for example, a capacitor.
[0092] The first comparison unit 18A compares the first threshold value and the signal input thereto with each other, and outputs a step waveform when the input signal exceeds the first threshold value (hereinafter, referred to as the first timing). The first comparison unit 18A is, for example, a comparator. The first comparison unit 18A is connected to the first storage unit 14A and the first threshold power supply 19A.
[0093] The first threshold power supply 19A provides the first threshold voltage to the first comparison unit 18A. Here, the magnitude of the first threshold voltage is defined as θ + In this case, the first comparison unit 18A is activated when the voltage held in the first storage unit 14A exceeds the first threshold value θ + The timing output step waveform.
[0094] like Figure 3 As shown, the second multiplier accumulator 11Ab includes (NN + )=N - a second input unit 13B, a second storage unit 14B, a second comparison unit 18B and a second threshold power supply 19B.
[0095] The second input units 13B are connected in parallel with each other. Each of the second input units 13B connects the load w i - The response waveform is associated with the electrical signal given within the predetermined time period T1, and the output voltage changes with time. Figure 3As shown, each second input unit 13B includes a second input terminal 15B, a second resistor 16B, and a second diode 17B. The second input terminal 15B, the second resistor 16B, and the second diode 17B are connected in series with each other. In each second input unit 13B, for example, each second input terminal 15B is provided with an electrical signal of the same magnitude at different timings within a time period T1. That is, in N + An electrical signal is provided to N + The time period during which the first input unit 13A is - An electrical signal is provided to N - The time periods during which the second input units 13B are used are consistent.
[0096] The second storage unit 14B is connected to each second input unit 13B and stores the charge output from each second input unit 13B. The second storage unit 14B is, for example, a capacitor.
[0097] The second comparison unit 18B compares the second threshold value and the signal input thereto with each other, and outputs a step waveform when the input signal exceeds the second threshold value (hereinafter, referred to as the second timing). The second comparison unit 18B is, for example, a comparator. The second comparison unit 18B is connected to the second storage unit 14B and the second threshold power supply 19B.
[0098] The second threshold power supply 19B provides the second threshold voltage to the second comparison unit 18B. Here, the magnitude of the second threshold voltage is defined as θ - In this case, the second comparison unit 18B is activated when the voltage held in the second storage unit 14B exceeds the second threshold value θ - The timing output step waveform.
[0099] Here, the magnitude of the first threshold is defined as θ + , the size of the second threshold is defined as θ - , N + Positive load w i + The sum of is defined as β + , and N - Negative load w i - The sum of the absolute values of is defined as β - In this case, β + and β - They can be expressed by the following equations (15) and (16), respectively.
[0100]
[0101]
[0102] Here, N = N + +N - and β = β + -β - Assume that the first timing is defined as t v + And the second timing is defined as t v - , then according to equation (4), θ + and θ - They can be expressed by the following equations (17) and (18), respectively.
[0103]
[0104]
[0105] Note that λ=1 is set in equation (17) and equation (18). When the calculation target value (the sum of N multiplication values) is divided into the positive load w i + The calculation target value (hereinafter referred to as the first product sum value) and the negative load w i - When the calculation target value (hereinafter referred to as the second product sum value) of is calculated, the following equations (19) and (20) are obtained.
[0106]
[0107]
[0108] The calculation unit 20 calculates the calculation target value by subtracting the second product-sum value from the first product-sum value. Specifically, the calculation unit 20 is connected to the first comparison unit 18A, detects the pulse signal sent from the first comparison unit 18A, and calculates the first product-sum value. The calculation unit 20 is connected to the second comparison unit 18B, detects the pulse signal sent from the second comparison unit 18B, and calculates the second product-sum value.
[0109] In other words, the calculation unit 20 detects that the voltage held in the first storage unit 14A has reached the first threshold value θ + , and calculates the first product sum value. The calculation unit 20 detects that the voltage held in the second storage unit 14B has reached the second threshold value θ - , and calculate the second product-sum value. Then, the calculation unit 20 calculates the calculation target value by subtracting the second product-sum value from the first product-sum value. The equation for calculating the calculation target value can be expressed by the following equation (21).
[0110]
[0111] Here, it is assumed that the calculation unit 20 calculates the first product sum value and the second product sum value in the time period T2. In this case, in order to reflect all the electrical signals supplied to the corresponding first input unit 13A and all the electrical signals supplied to the corresponding second input unit 13B to the calculation target value, the time period T2 needs to exist in and after the time period T1. In addition, the time length of the time period T1 and the time length of the time period T2 are both T in Then, for this purpose, the first threshold θ + and the second threshold θ - The following equations (22) and (23) need to be satisfied respectively.
[0112] θ + =(1+ε)λβ + T in (twenty two)
[0113] θ - =(1+ε)λβ - T in (twenty three)
[0114] As shown in equation (22), the first threshold θ + With N + Load w i + The sum of β + and the length of time period T1 in As shown in equation (23), the second threshold θ - With N - Load w i - The sum of the absolute values of β - and the length of time period T1 in The first threshold value θ + and the second threshold θ - The above relationship is satisfied, whereby all electrical signals supplied to the corresponding first input unit 13A and all electrical signals supplied to the corresponding second input unit 13B can be reflected to the calculation target value. In other words, it is only necessary to determine the first threshold value θ + and the second threshold θ - The value of satisfies equations (22) and (23).
[0115] However, on the right side of equation (21), there exists t v + and β + The product of and t v - and β - Therefore, in order to calculate the calculation target value based on equation (21), the calculation unit 20 requires a complicated circuit configuration.
[0116] Therefore, in order to simplify the circuit configuration of the calculation unit 20, the virtual electric signal corresponding to the value of 0 and the β + With β - The absolute value of the virtual load w0 obtained by multiplying the difference between the two by -1 is added to β + With β - The smaller one among . w0 can be expressed by the following equation (24).
[0117] w0=-(β + +β - ) (twenty four)
[0118] By adding a dummy load w0, β + =β - According to equations (22) and (23), θ + =θ - Therefore, β + =β - =β0 holds, and equation (21) can be transformed into the following equation (25).
[0119]
[0120] As shown in equation (25), when the positive load w i + and negative load w i - When mixing, the calculation target value may be calculated based on the difference between the first timing and the second timing.
[0121] Here, if "t v - -t v + " is input as is to the next layer, and "t v - -t v + " multiplied by the inverse of the sum of the loads (1 / β). That is, for example, when a simulation of a neural network is performed using this multiplication-accumulation method, the distribution of the output from the multiplication-accumulator 11 decreases as it goes deeper.
[0122] [1-3. Network configuration of multiplication and accumulation device]
[0123] refer to Figure 4 , a description will be given of an example of a case where the distribution of the output from the multiplication accumulator 11 is reduced. Figure 4 is a diagram showing an example of a configuration of a deep neural network (DNN) of the multiplication-accumulation device 10 .
[0124] like Figure 4 As shown, DNN 30 includes a convolution layer 31, a first ReLU layer 32, a maximum pooling layer 33, a first FC layer 34, a second ReLU layer 35, and a second FC layer 36. Consider the process of making DNN 30 as described above recognize the characters 40 of MNIST.
[0125] Figure 5 is a histogram showing the distribution of the outputs of the multiplier accumulators from the corresponding layers. Histogram 51 is a histogram showing the distribution of the outputs of the convolutional layer 31 (t v - -t v + ) is a histogram showing the distribution of (t v - -t v + ) is a histogram showing the distribution of (t v - -t v + ) is a histogram of the distribution of . Figure 5 As shown, although the time distribution of the output timings of the histogram 51 is wide, the output timings of the histogram 53 are concentrated at one point. In this case, it may become impossible to determine the timing of outputting the step waveform.
[0126] Therefore, the multiplication and accumulation device according to the present disclosure performs processing for extending the interval of the timing of the output step waveform. Therefore, the multiplication and accumulation device according to the present disclosure can delay the time from the output of the step waveform to the output of the next step waveform, and therefore, the timing concentration of the output step waveform can be prevented.
[0127] (2. First embodiment)
[0128] [2-1. Configuration of Multiplication Accumulator of Multiplication Accumulation Device According to First Embodiment]
[0129] refer to Figure 6 , a description will be given of a multiplication and accumulation device of a first embodiment of the present disclosure. Figure 6 1 is a diagram showing an example of the configuration of the multiplication and accumulation device according to the first embodiment of the present disclosure. Note that for simplicity, Figure 6Only the first multiplication accumulator 11Aa having a positive load among the multiplication accumulators 11A is shown. The second multiplication accumulator 11Ab having an absolute value of a negative load may be configured similarly to the first multiplication accumulator 11Aa, and therefore, description thereof will be omitted.
[0130] like Figure 6 As shown, the first multiplication accumulator 11Aa includes a plurality of (N) first input units 13A, a first storage unit 14A, a first comparison unit 18A, a first threshold power supply 19A, a multiplication accumulator control circuit 110, a switch control circuit 120, a synchronization signal generator 130, a first amplitude limiting circuit 210, and a second amplitude limiting circuit 220. As will be described in detail later, the first multiplication accumulator 11Aa reduces the charging current for charging the first storage unit 14A, thereby reducing the charging current and lowering the threshold voltage. The charging current is reduced, and the charging speed to the first storage unit 14A is slowed down, thereby extending the timing of the signal output from the first comparison unit 18A.
[0131] refer to Figure 7 , a description will be given of the charging speed of the electric charge charged to the first storage unit 14A. Figure 7 is a diagram showing a charge curve as a time change of the charge amount of the first storage unit 14A.
[0132] The charging curve 61 is when the first multiplication accumulator 11Aa with a positive load is charged at the first timing t v + As shown in the charging curve 61, the first storage unit 14A is charged between time 0 and time T in Then, when the time reaches T in When t is 0, the first storage unit 14A is charged from all the first input units 13A. The charging curve 71 is when the second multiplication accumulator 11Ab with the absolute value of the negative load is charged at the second timing t v - Here, since the voltage stored in the storage unit 14 changes from T in To 2T in When the threshold is reached during the time period, a signal is output from the multiplication accumulator, so T in ≤t≤2T in The time period is called the VT conversion time period.
[0133] The charging curve 81 shows the charging curve when the step waveform is output at the earliest timing. In this case, starting from time point 0, the first storage unit 14A starts to be charged from all the first input units 13A. The charging curve 82 shows the charging curve when the step waveform is output at the latest timing. In this case, the first storage unit 14A is charged from time 0 to time T in The time period is not charged, and from time point T in Start charging.
[0134] As described above, in the multiplication accumulator in which the first multiplication accumulator 11Aa with a positive load and the second multiplication accumulator 11Ab with an absolute value of a negative load are mixed, a signal is output based on the difference between the first timing and the second timing. Therefore, in the VT conversion period, by increasing the difference between the charging curve 61 and the charging curve 71, the difference between the first timing and the second timing becomes larger. Therefore, the signal output from the calculation unit 20 becomes larger. Specifically, for example, in the VT conversion period, the slopes of the charging curve 61 and the charging curve 71 are halved, respectively.
[0135] Therefore, the charging curve 61 is converted into the charging curve 62, and the charging curve 71 is converted into the charging curve 72. In this case, since the output from the first multiply-accumulator 11Aa is used as a signal in the output from T in To 3T in Therefore, the VT conversion time period is changed to T in ≤t≤3T in Then, compared with the difference between the charging curve 71 and the charging curve 61 , the difference between the charging curve 72 and the charging curve 62 is doubled in the VT conversion period.
[0136] Will refer to it again Figure 6 The multiplier accumulator control circuit 110 controls each unit constituting the first multiplier accumulator 11Aa. Specifically, the multiplier accumulator control circuit 110 controls the first threshold power supply 19A, the switch control circuit 120, the synchronization signal generator 130, the first limiter circuit 210, and the second limiter circuit 220. The multiplier accumulator control circuit 110 can be implemented by, for example, an electronic circuit including a central processing unit (CPU).
[0137] like Figure 6 As shown, each of the first input units 13A includes a first input terminal 15A, a first resistor 16A, a first diode 17A and a switch unit 121. The switch unit 121 is provided between the first input terminal 15A and the first resistor 16A. The switch unit 121 opens and closes the path between the first input terminal 15A and the first resistor 16A. That is, each first input unit 13A is configured to be able to control whether a signal is input to the first storage unit 14A.
[0138] The switch control circuit 120 controls the opening and closing of each switch unit 121. The switch control circuit 120 controls the opening and closing of each switch unit 121 according to the control of the multiplier accumulator control circuit 110. In this case, the multiplier accumulator control circuit 110 outputs an instruction to set the charging current to a predetermined setting value to the switch control circuit 120. The predetermined setting value is, for example, a value of 1 / m (m is a number of 1 or greater) of the charging current at normal time. Specifically, when m is 2, the switch control circuit 120 controls each switch unit 121 so that the charging current is halved. In this case, assuming that the number of switch units 121 is 100, the desired charging current can be achieved by reducing the number to 50 (which is half the number). In addition, when m is 2.5, the switch control circuit 120 controls each switch unit 121 so that the charging current becomes 2 / 5. In this case, assuming that the number of switch units 121 is 100, the desired charging current can be achieved by reducing the number to 40. The switch control circuit 120 can be implemented by an electronic circuit including a CPU, for example. Note that a synchronization signal for synchronization operation is input from the synchronization signal generator 130 to the multiplier accumulator control circuit 110 and the switch control circuit 120 .
[0139] refer to Figure 8 , a description will be given of the operation of the switch unit 121. Figure 8 is a diagram showing an example of an output mode for reducing a charging current. Figure 8 In the figure, the solid line indicates input signal, while the dotted line indicates no input signal.
[0140] like Figure 8 As shown, in mode A, the input unit group 13A-1 is instructed to output signals from all input units at normal time, and in the case of reducing the charging current to the first storage unit 14A, the input unit group is instructed not to output signals from any input unit, so that the charging current becomes the specified charging current. In this case, the input unit that does not cause the output signal is not predetermined and can be arbitrary. The signal input unit to the first storage unit 14A is configured in this way, whereby the normal time and the charging current reduction time can be switched.
[0141] In mode B, the signal input unit to the first storage unit 14A is composed of the input unit group 13A-2 and the input unit group 13A-3. In this case, at normal time, the input unit group 13A-3 outputs a signal, but the input unit group 13A-2 does not output a signal. Then, in the case of reducing the charging current to the first storage unit 14A, switching is performed so that the signal is not output from the input unit group 13A-3, but only from the input unit group 13A-2. That is, the input unit group 13A-2 is configured to output a predetermined charging current at the time when the charging current is reduced. The signal input unit to the first storage unit 14A is configured in this way, whereby the normal time and the charging current reduction time can be switched.
[0142] In mode C, the signal input unit to the first storage unit 14A is composed of the input unit group 13A-1 and the input unit group 13A-2. In this case, at normal time, the input unit group 13A-1 outputs a signal, but the input unit group 13A-2 does not output a signal. Then, in the case of reducing the charging current to the first storage unit 14A, a signal is output from the input unit group 13A-2, and a signal is output from the input unit group 13A-1 to compensate for the shortage. The signal input unit to the first storage unit 14A is configured in this way, whereby the normal time and the current reduction time can be switched.
[0143] Note that, in the first embodiment, each first input unit 13A includes the first diode 17A. Therefore, if the first diode 17A can be used as a switch unit, each switch unit 121 can be omitted.
[0144] [2-2. Setting of charging current and threshold voltage]
[0145] refer to Fig. 9 , a description will be given of a method for determining a charging current and a threshold voltage. Fig. 9 is a diagram for explaining charging current and threshold voltage.
[0146] A description will be given of how to determine m when the charging current is set to 1 / m of the current at normal time. In order to calculate m, the output value range of the output of each multiplication accumulator set in the multiplication accumulation device 10 is studied. Then, the distribution of the output from each multiplication accumulator becomes a distribution close to a normal distribution. Here, if the distribution of the output of the multiplication accumulator is a normal distribution, the range of ±2σ includes 95.5% of the output, and the range of ±3σ includes 99.7% of the output. First, in the first embodiment, the upper limit value t of the timing of the output signal is determined. v (A).min and the lower limit t v (A).max. For example, as will be described in detail later, when the upper limit value and the lower limit value are included in ±2σ, approximately 4.5% of the outputs exist outside the range, and therefore, in the process for extending the output difference timing, the outputs that exist within the range will be clipped to the upper limit or lower limit. When setting the upper limit value and the lower limit value, it is preferred to consider the values of the upper limit value and the lower limit value and the performance degradation of the multiplication accumulator due to the insertion of the clipping function. For example, if the performance degradation caused by clipping the output signal cannot be tolerated, it is also considered to extend the output timing to a range greater than ±2σ. When determining the upper limit value and the lower limit value, [t v (A).min -t v (A).max ] becomes the output value range before the extended output timing. By converting the maximum output value range T of the multiplier accumulator in Divide by [t v (A).min -t v (A).max ] and the value obtained becomes the limit magnification m of the extended output timing max Due to the relationship between the output value range before expansion and the maximum output value range, this expansion rate cannot be increased any further.
[0147] Then, as m max or smaller value, the actual m only needs to be set arbitrarily by the user. When the user attaches great importance to such a timing difference expansion rate, m max It can be selected as m. When it is not necessary to increase the timing difference expansion rate to the maximum, it is only necessary to increase the timing difference expansion rate from m max More specifically, for example, assuming that the number of switch units 121 is 100 when the charging current is reduced to 1 / 3, the number of switch units 121 that does not exceed m is 100 / i (i is an integer from 1 to 100). max = 3, 100 / 33 of the maximum number only needs to be set as the new m max In this case, the user can arbitrarily set the actual m in 100 / j (j is an integer from 34 to 100).
[0148] Next, a description will be given of a method for determining the threshold voltage. Specifically, by increasing the expansion rate, the slope of the charging curve becomes gentle, the charging curve takes longer to reach the threshold voltage, and the output signal takes longer. Therefore, the threshold voltage after the timing expansion of the output difference is set to be lower than the threshold voltage before the threshold voltage expansion. Based on the above lower limit value t v (A).max To calculate such a threshold voltage.
[0149] Here, the threshold voltage calculated based on equation (10) is defined as θ LIn addition, considering the in To the lower limit t v (A).max The charging curve 91 is related to θ L Then, t = T in The voltage of the charging curve 91 is used as the new threshold voltage θ A .exist Fig. 9 In the figure, the charging curve is represented by a linear function V(t) = at + b. The slope a is θ L / T in This is clear from the charging curve 82. The intercept b is θ L (1-t v (A).max / T in ), because when t = t v (A).max When V(t)=θ L . Since when t is T in The threshold voltage θ is obtained when A , so θ A becomes θ L (2-t v (A).max / T in ). Therefore, we can calculate θ A In addition, the threshold voltage θ calculated in this way A is the minimum value that can be set as the threshold voltage in this embodiment. That is, as long as the threshold voltage to be newly set is within θ A With θ L The threshold voltage θ can be arbitrarily set by calculating the voltage between A , so that at T in With 2T in The output signal is output from the first comparison unit 18A between 1 and 2. The threshold voltage is changed in this way, whereby the new lower limit value becomes T in Similarly, the upper limit value is also calculated by New Upper Limit Value = (Old Upper Limit Value - Old Lower Limit Value + New Lower Limit Value) = (Old Upper Limit Value - Old Lower Limit Value + T in That is, the threshold voltage is calculated based on the charging curve.
[0150] In the charging curve 61, the threshold voltage θ is reached. A The time at which μ + In the charging curve 71, the threshold voltage θ is reached. A The time at which μ - Here, since the charging curve 61 and the charging curve 62 have the same slope, (t μ --t μ + )=(t μ - -t μ + ) holds true. Therefore, even if the threshold voltage changes from θ L Reduce to θ A , the difference between the first timing and the second timing does not change.
[0151] Note that although each charging curve is approximately Fig. 9 , but actually, the charging curve 81, the charging curve 82 and the charging curve 91 are respectively expressed by the following equations (26), (27) and (28).
[0152]
[0153]
[0154]
[0155] In equations (26) to (28), the input voltage value V in , resistance R, and capacitance C are known values. Therefore, even when the charging curve is expressed as equations (26) to (28), m and θ can be calculated by the same method as when the charging curve is a linear function. A .
[0156] In the present disclosure, the new lower limit value T in , new upper limit value, timing difference expansion rate m and threshold voltage θ A is stored in advance in the multiplier accumulator control circuit 110. That is, the multiplier accumulator control circuit 110 adjusts the value based on the new lower limit value T in , new upper limit value, timing difference expansion rate m and threshold voltage θ A Control each unit.
[0157] For example, the multiplier accumulator control circuit 110 sets the threshold voltage θ in advance. A In this case, the first threshold power supply 19A sets the threshold voltage θ A The multiplier accumulator control circuit 110 sets the switching mode of each switch unit 121 based on, for example, the timing difference spread rate m. The switching mode is set to allow Fig. 9 T in and T in Then the voltage is provided to each switching unit 121.
[0158] The multiplier accumulator control circuit 110 calculates, for example, the lower limit timing and the upper limit timing as output timing.A When used as a threshold voltage, the lower limit is always T in , regardless of the timing difference expansion rate m. In this case, the multiplier accumulator control circuit 110 calculates the upper limit timing according to the value of m. in and T in The timing difference thereafter becomes m times, so the multiplier accumulator control circuit 110 calculates m×(new upper limit value-T in )+T in and upper limit timing. Figure 6 As shown, the multiplier accumulator control circuit 110 outputs a lower limit timing signal specifying the calculated lower limit timing to the first amplitude limiting circuit 210, and outputs an upper limit timing signal specifying the upper limit timing to the second amplitude limiting circuit 220. Note that when the upper limit timing is calculated from θ A to θ L When an arbitrary value of is set as the threshold voltage, the multiplier accumulator control circuit 110 calculates the lower limit timing and the upper limit timing through calculation.
[0159] The first amplitude limiting circuit 210 limits the signal output from the first comparison unit 18A according to the lower limit timing signal. Then, the first amplitude limiting circuit 210 outputs the limited signal to the second amplitude limiting circuit 220. The second amplitude limiting circuit 220 limits the signal output from the first amplitude limiting circuit 210 according to the upper limit timing signal. Then, the second amplitude limiting circuit 220 outputs the limited signal to the multiplication accumulator in the next stage.
[0160] [2-3. Limiting circuit]
[0161] refer to Fig.10 , a description will be given of the operation of the first limiter circuit 210. Fig.10 2 is a diagram for explaining the operation of the first limiter circuit 210 .
[0162] Fig.10 The graph 211 shown shows the operation when the input signal rises at a timing earlier than the lower limit specified by the lower limit timing signal. Specifically, the graph 211 shows the operation when the lower limit time t is specified for the first limit circuit 210. b When the input is lower than the input limit time t b Earlier time a The operation of the first amplitude limiting circuit 210 is when the input signal rises. In this case, the first amplitude limiting circuit 210 limits the timing of the input signal rising to t b , and outputs the input signal to the second limiting circuit 220.
[0163] On the other hand, graph 212 shows that when the input is lower than the lower limit time t b Late time aThe rising input signal is the operation of the first limiter circuit 210. In this case, the first limiter circuit 210 outputs the input signal thus input to the second limiter circuit 220 as it is.
[0164] Fig.11 is a truth table showing the relationship between the lower limit of the amplitude limit specified in the first amplitude limit circuit 210 and the input signal input to the first amplitude limit circuit 210. Fig.11 In the example, 0 indicates that the signal is not rising, and 1 indicates that the signal is rising. Fig.10 and Fig.11 As shown, the first limit circuit 210 can be implemented by, for example, an AND circuit.
[0165] The second limiter circuit 220 limits the signal output from the first limiter circuit 210 according to the upper limit timing signal. Then, the second limiter circuit 220 outputs the limited signal to the multiplier accumulator in the upper layer.
[0166] refer to Fig.12 , a description will be given of the operation of the second limiter circuit 220. Fig.12 2 is a diagram for explaining the operation of the second limiter circuit 220 .
[0167] Fig.12 The graph 221 shown shows the operation when the input signal rises at a timing earlier than the upper limit of the amplitude limit specified by the upper limit timing signal. Specifically, the graph 221 shows the operation when the upper limit time t is specified for the second amplitude limit circuit 220. d When the input is higher than the upper limit of the input limit, time t d Earlier time c The input signal rising is the operation of the second limiter circuit 220. In this case, the second limiter circuit 220 outputs the input signal thus inputted to the multiplier accumulator in the upper layer as it is.
[0168] On the other hand, the curve 222 shows that when the input is greater than the upper limit time t d Late time c The second amplitude limiting circuit 220 operates when the input signal rises. In this case, the second amplitude limiting circuit 220 limits the timing of the input signal rising to t d , and outputs the input signal to the upper multiplication accumulator.
[0169] Fig.13 is a truth table showing the relationship between the upper limit of the amplitude limit specified in the second amplitude limit circuit 220 and the input signal input to the second amplitude limit circuit 220. Fig.13 In the example, 0 indicates that the signal is not rising, and 1 indicates that the signal is rising. Fig.12 and Fig.13As shown, the second limit circuit 220 can be implemented by, for example, an OR circuit.
[0170] refer to Fig.14 , a description will be given of the effect of limiting the input signal. Fig.14 A diagram for explaining the effect of limiting an input signal.
[0171] Fig.14 301, a limiter circuit 302, and a circuit A 303 are shown. The circuit X 301 is, for example, a circuit that performs predetermined calculations such as multiplication and addition inside the device. That is, the limiter circuit 302 having a limiter function is provided immediately after the circuit X 301 that performs the calculation. Note that the limiter circuit 302 may be provided immediately after the external input terminal. The circuit A 303 is provided after the limiter circuit 302. In the circuit A 303, the minimum and maximum values of the input values that can be accepted are determined. In this case, the limiter circuit 302 limits the signal output from the circuit X 301 to satisfy the condition of the circuit A 303.
[0172] For example, consider a case where an integer format register to which an 8-bit code is added is used for an input unit of the circuit A 303. In this case, the input unit of the circuit A 303 cannot handle values exceeding +127 and values below -128. Therefore, in the signal input from the circuit X 301, the limiter circuit 302 limits values exceeding +127 to +127, and limits values below -128 to -128. Therefore, the input unit of the circuit A 303 can handle all input signals.
[0173] Despite Fig.14 A digital signal has been described as an example, but the limiter circuit 302 is not limited to a circuit that limits the digital signal. The same is true when the input of the circuit A303 is an analog voltage, an analog current, a time width, etc.
[0174] In addition, if Fig.15 As shown, consider the case where circuit B 304 is set between the amplitude limiting circuit 302 and the circuit A 303. Circuit B 304 is a circuit that performs a predetermined calculation on the input signal. In this case, the amplitude limiting circuit 302 can set the amplitude limiting value to perform amplitude limiting in consideration of the influence of circuit B 304. For example, it is assumed that circuit B 304 is a circuit that adds a constant +10 to the input signal. In this case, in the signal input from circuit X 301, the amplitude limiting circuit 302 is set to limit the numerical value exceeding +117 to +117, and the numerical value below -138 to -138. Therefore, the input unit of circuit A 303 can process all input signals.
[0175] Reference again Figure 6, a description will be given of the operation of the first multiplier accumulator 11Aa. First, at time 0 and time T in An input signal represented by timing (time) is input to each first input terminal 15A of the first multiplier accumulator 11Aa from a multiplier accumulator (not shown) or a digital timing converter (DTC) circuit (not shown) in the previous stage. in , according to the control of the multiplier accumulator control circuit 110, the switch control circuit 120 sends a control signal to each switch unit 121, and switches each switch unit 121 to a specific mode. Therefore, at time T in and T in The charging current after that becomes 1 / m of the charging current at normal time, and the first storage unit 14A is charged according to the charging curve of the current 1 / m of the charging current at normal time. Then, the charging voltage of the first comparison unit 18A at the first storage unit 14A becomes equal to the preset threshold voltage θ A The step waveform is output to the first limiting circuit 210 at the timing of .
[0176] Furthermore, when the time reaches the lower limit timing, the multiplier accumulator control circuit 110 outputs the lower limit timing signal to the first limit circuit 210. The first limit circuit 210 limits the signal rising too early in the step waveform output by the first comparison unit 18A to the lower limit timing according to the lower limit timing signal, and outputs the limited signal to the second limit circuit 220. Furthermore, when the time reaches the upper limit timing, the multiplier accumulator control circuit 110 outputs the upper limit timing signal to the second limit circuit 220. The second limit circuit 220 limits the input signal too late in the input signal input from the first limit circuit 210 to the upper limit timing according to the upper limit timing signal, and outputs the limited input signal to the multiplier accumulator in the next stage.
[0177] [2-4. Modification Example of Multiplier Accumulator According to First Embodiment]
[0178] Fig.16 A modified example of the multiplication-accumulation device according to the first embodiment is shown. In the first embodiment, it is assumed that a new lower limit value T is stored in advance. in , new upper limit value, timing difference expansion rate m and threshold voltage θ A A modified example of the first embodiment may be to perform calculations before operating the multiplication accumulator 11Aa-1. In this case, for example, Fig.16 As shown, the calculation device 400 may be disposed inside or outside the multiplication and accumulation device 10, and each parameter may be calculated by the calculation device 400 and may be input to the multiplication and accumulation control circuit 110. Such a calculation device 400 may be implemented by an electronic circuit including a CPU, for example.
[0179] As described above, in the first embodiment, the charging current of the multiplication accumulator is reduced, and the threshold voltage is lowered, whereby the output difference timing can be extended without delaying the time until the output signal is output.
[0180] (Second Embodiment)
[0181] [3-1. Configuration of Multiplication Accumulator of Multiplication Accumulation Device According to Second Embodiment]
[0182] refer to Fig.17 , a description will be given of a multiplication and accumulation device of a second embodiment of the present disclosure. Fig.17 : is a diagram showing an example of a multiplication and accumulation device of the second embodiment.
[0183] Each input unit 13C of the multiplier accumulator 11Ba includes a first input terminal 15A, a first resistor 16A, and a first diode 17A. Furthermore, each input unit 13C includes at least one of a previous-stage comparison unit 20A and an output buffer 21A.
[0184] The preceding stage comparison unit 20A is a comparison unit provided in the multiplication accumulator in the preceding stage of the multiplication accumulator 11Ba. The output buffer 21A temporarily stores an output signal output by the preceding stage comparison unit 20A.
[0185] In the second embodiment, when both the front-stage comparison unit 20A and the output buffer 21A are included, the switch control circuit 120 stops the output of the front-stage comparison unit 20A or the output buffer 21A. When only one of the front-stage comparison unit 20A and the output buffer 21A is included, the switch control circuit 120 stops the existing one. In this case, the multiplier accumulator control circuit 110 outputs an instruction to set the charging current to a predetermined setting value to the switch control circuit 120. Therefore, the second embodiment can reduce the charging current.
[0186] Furthermore, when the multiplication accumulator 11Ba is at the first stage in the multiplication accumulator device 10, the DTC is connected to the first input terminal 15A. In this case, the switch control circuit 120 may stop the output of the DTC to reduce the charging current.
[0187] As described above, in the second embodiment, the charging current of the multiplication accumulator is reduced, and the threshold voltage is lowered, whereby the output difference timing can be extended without delaying the time until the output signal is output.
[0188] Although the corresponding embodiments of the present disclosure have been described above, the technical scope of the present disclosure is not limited to the above-mentioned corresponding embodiments as is, and various modifications can be made without departing from the spirit of the present disclosure. In addition, components covering different embodiments and modified examples can be appropriately combined with each other.
[0189] Note that the effects described in this specification are merely examples and are not limiting, and there may be other effects.
[0190] Note that the present technology can also adopt a configuration as follows. (1)
[0192] A multiplication and accumulation device, comprising:
[0193] a comparison unit that compares a voltage generated by the charge stored in the memory cell with a threshold voltage and outputs an output signal at a timing when the voltage exceeds the threshold voltage; and
[0194] The control circuit reduces the charging current from the plurality of input units connected to the storage unit to the storage unit based on a predetermined setting value. (2)
[0196] According to the multiplication and accumulation device of (1),
[0197] The control circuit reduces the charging current by changing the number of a plurality of input units that output signals to the storage unit. (3)
[0199] According to the multiplication and accumulation device of (2),
[0200] When the first time is reached, the control circuit changes the number of the plurality of input units. (4)
[0202] According to the multiplication and accumulation device of (2) or (3),
[0203] The control circuit reduces the charging current by controlling the switch units arranged in the plurality of input units. (5)
[0205] According to the multiplication and accumulation device of (2) or (3),
[0206] The control circuit reduces the charging current by stopping the output of the multiplication accumulator in the previous stage or the output buffer connected to the multiplication accumulator in the previous stage. (6)
[0208] According to any one of (1) to (5), the multiplication and accumulation device
[0209] The control circuit reduces the threshold voltage provided to the comparison unit. (7)
[0211] According to the multiplication and accumulation device of (6),
[0212] The control circuit lowers the threshold voltage based on the voltage value of the memory cell. (8)
[0214] According to the multiplication and accumulation device of (6) or (7),
[0215] The control circuit lowers the threshold voltage so that the threshold voltage becomes equal to or higher than the maximum value of the voltage of the memory cell at the first time when the output signal is output from the comparison unit at the earliest timing. (9)
[0217] According to the multiplication-accumulation device of any one of (6) to (8),
[0218] The control circuit reduces the threshold voltage from the first time so that the threshold voltage becomes equal to or less than the minimum value of the voltage of the memory cell at the second time having the same time length as the first time. (10)
[0220] The multiplication-accumulation device according to any one of (1) to (9), further comprising:
[0221] a first limiting circuit, which limits the minimum value of the output signal to a first value; and
[0222] The second limiting circuit limits the maximum value of the output signal to a second value. (11)
[0224] According to the multiplication and accumulation device of (10),
[0225] Wherein, the first limiting circuit is composed of an AND circuit. (12)
[0227] According to the multiplication and accumulation device of (10) or (11),
[0228] Wherein, the second limiting circuit is composed of an OR circuit. (13)
[0230] The multiplication-accumulation device according to any one of (1) to (12), further comprising:
[0231] A calculation device calculates a set value. (14)
[0233] A multiplication-accumulation method, comprising:
[0234] comparing a voltage generated by the charge stored in the memory cell with a threshold voltage, and outputting an output signal at a timing when the voltage exceeds the threshold voltage; and
[0235] A charging current from a plurality of input units connected to the storage unit to the storage unit is reduced based on a predetermined setting value.
[0236] Reference Mark List
[0237] 10 Multiplication and accumulation device
[0238] 11, 11a, 11A Multiply-accumulate
[0239] 12 External input unit
[0240] 13.13C Input unit
[0241] 13A First input unit
[0242] 13B Second input unit
[0243] 14 Storage Unit
[0244] 14A First storage unit
[0245] 14B Second storage unit
[0246] 15 Input terminals
[0247] 15A First input terminal
[0248] 15B Second input terminal
[0249] 16 Resistors
[0250] 16A First Resistor
[0251] 16B Second resistor
[0252] 17 Diode
[0253] 17A First diode
[0254] 17B Second diode
[0255] 18 Comparison Unit
[0256] 18A First comparison unit
[0257] 18B Second comparison unit
[0258] 19 Threshold Power Supply
[0259] 19A First Threshold Power Supply
[0260] 19B Second threshold power supply
[0261] 110 Multiplication Accumulator Control Circuit
[0262] 120 switch control circuit
[0263] 130 Synchronous signal generator
[0264] 210 First limiter circuit
[0265] 220 Second limiting circuit.
Claims
1. A multiplication and accumulation device, comprising: a comparison unit that compares a voltage generated by the charge stored in the storage unit with a threshold voltage and outputs an output signal at a timing when the voltage exceeds the threshold voltage; as well as a control circuit that reduces a charging current from a plurality of input units connected to the storage unit to the storage unit based on a predetermined setting value, The control circuit reduces the charging current by changing the number of the plurality of input units that output signals to the storage unit.
2. The multiplication-accumulation device according to claim 1, in, When a first time is reached, the control circuit changes the number of the plurality of input units.
3. The multiplication-accumulation device according to claim 1, in, The control circuit reduces the charging current by controlling the switch units provided in the plurality of input units.
4. The multiplication-accumulation device according to claim 1, in, The control circuit reduces the charging current by stopping an output of a multiplication accumulator in a previous stage or an output buffer connected to the multiplication accumulator in the previous stage.
5. The multiplication-accumulation device according to claim 1, in, The control circuit lowers the threshold voltage provided to the comparison unit.
6. The multiplication-accumulation device according to claim 5, in, The control circuit lowers the threshold voltage based on a value of the voltage of the memory cell.
7. The multiplication-accumulation device according to claim 6, in, The control circuit lowers the threshold voltage so that the threshold voltage becomes equal to or higher than a maximum value of a voltage of the memory cell at a first time when the output signal is output from the comparison unit at the earliest timing.
8. The multiplication-accumulation device according to claim 7, in, The control circuit lowers the threshold voltage from the first time so that the threshold voltage becomes equal to or lower than a minimum value of the voltage of the memory cell at a second time having the same time length as that of the first time.
9. The multiplication-accumulation device according to claim 1, further comprising: A first limiting circuit, limiting the minimum value of the output signal to a first value; as well as The second limiting circuit limits the maximum value of the output signal to a second value.
10. The multiplication-accumulation device according to claim 9, in, The first amplitude limiting circuit is composed of an AND circuit.
11. The multiplication-accumulation device according to claim 9, in, The second amplitude limiting circuit is composed of an OR circuit.
12. The multiplication-accumulation device according to claim 1, further comprising: The calculation device calculates the setting value.
13. A multiplication-accumulation method, comprising: comparing a voltage generated by the charge stored in the memory cell with a threshold voltage, and outputting an output signal at a timing when the voltage exceeds the threshold voltage; and reducing a charging current from a plurality of input units connected to the storage unit to the storage unit based on a predetermined setting value, The charging current is reduced by changing the number of the plurality of input units that output signals to the storage unit.
