The present application claims priority under 35 U.S. C. ยง 119 to Japanese Patent Application No. 2020-181807, filed Oct. 29, 2020. The contents of this application are incorporated herein by reference in their entirety.
The present invention relates to an apparatus of analog-neuron and a control method thereof.
The conventional apparatus of analog-neuron is always in a full-time operation regardless of whether or not an input signal has arrived. It is also known that activation of a neuron circuit is controlled by a digital clock.
However, the full-time operation as described above means that power is supplied continuously, and consumed wastefully. On the other hand, in the system in which the activation of the neuron is controlled by the digital clock, since there is no constant power consumption other than the leak power in the standby state, although it is superior to the system in the full-time operation, it is irrelevant to the arrival of the input signal, and it is not necessarily possible to suppress wasteful power consumption.
Japanese Patent Application Laid-Open No. 2020-21480 discloses a semiconductor device in which an arithmetic circuit for performing an arithmetic operation of a neural network includes first and second logic circuits, first to fourth transistors, and first and second holding units. In this semiconductor device, the low power supply potential input terminal of the first logic circuit is electrically connected to the first and third transistors, and the low power supply potential input terminal of the second logic circuit is electrically connected to the second and fourth transistors. The first holding unit holds a potential of the second gate of each of the first and fourth transistors as a potential corresponding to the first data. The potential of the second gate of each of the second and third transistors is held by the second holding unit. An ON state or an OFF state of each of the first to fourth transistors is determined by the second data. The difference in input/output time between the signals of the first and second logic circuits is determined according to the first data and the second data.
As described above, the ON state or the OFF state of each of the first to fourth transistors connected to the low power supply potential input terminal of the first logic circuit and the low power supply potential input terminal of the second logic circuit is determined by the second data to reduce power consumption.
Japanese Patent Laid-Open No. 2020-9432 discloses a semiconductor device capable of performing a product-sum operation with low power consumption. Further, it is described that an arithmetic operation of a neural network is performed by the semiconductor device. This semiconductor device has first and second input terminals, first and second output terminals, and a switching circuit, and the switching circuit has first to fourth terminals. The switching circuit has a function of selecting one of the third terminal and the fourth terminal as an electrical connection destination of the first terminal and selecting the other of the third terminal and the fourth terminal as an electrical connection destination of the second terminal in accordance with the first data. The switching circuit includes first and second transistors each including a back gate and has a function of determining a transmission speed of a signal between the first terminal and one of the third terminal and the fourth terminal and a transmission speed of a signal between the second terminal and the other of the third terminal and the fourth terminal in accordance with a potential of the back gate. Note that the potential is determined in accordance with the second data. When signals are input to the first and second terminals, the time difference between the signals output from the third and fourth terminals is determined in accordance with the first data and the second data.
Japanese Patent Application Laid-Open No. 2019-53563 discloses that the arithmetic device 10 according to the embodiment realizes a nonlinear arithmetic operation simulating a neuron with a simple configuration. The arithmetic device 10 performs product-sum operation (multiplication and accumulation) with M coefficients by analog processing, and can generate an output signal by performing sign function processing on a signal corresponding to a multiplication and accumulation value. In particular, the arithmetic device 10 can reduce the dynamic range of the differential voltage input to the comparison unit 36. Therefore, the arithmetic device 10 can execute an arithmetic operation using the comparison unit 36 having a simple configuration. This arithmetic device realizes a neuron with a simple configuration, and is not an invention from the viewpoint of reducing power consumption.
The apparatus of analog-neuron according to the present embodiment is an apparatus of analog-neuron including a synapse circuit that performs arithmetic processing of multiplying an input signal that arrives at an input terminal by a weight value, and includes synapse output holding means for holding an output signal of the synapse circuit, and a power control unit that controls whether to supply power at least to the synapse circuit or to stop supplying power in response to whether the input signal has arrived at the input terminal or has been lost.
A control method for an apparatus of analog-neuron according to this embodiment is a method of controlling an apparatus of analog neuron which includes a synapse circuit for performing arithmetic processing for multiplying by a weight value, an input signal that arrives at an input terminal, and synapse output holding means for holding output signals of the synapse circuit, and includes an input signal detection step for detecting whether the input signal has arrived at the input terminal or has been lost, and a power control step for controlling whether to supply power at least to the synapse circuit or to stop supplying power in accordance with a detection result of the input signal detection step.
Hereinafter, an apparatus of analog-neuron and a control method of an analog neuron according to an embodiment of the present invention will be described with reference to the accompanying drawings. In the drawings, the same components are denoted by the same reference numerals, and redundant description thereof will be omitted.
The power control unit 100 controls whether to supply power at least to the synapse circuit 200 or to stop supplying power in response to whether an input signal has arrived at the input terminal 101 or has been lost. The power control unit 100 includes an input signal detection means 110 and a power control means 130.
The input signal detection means 110 detects whether an input signal arrives at the input terminal 101 or is interrupted. Specifically, as shown in
The timer 113 measures a predetermined time TA (
The synapse output holding means 120 holds an output signal of the synapse circuit 200. A comparator 121 to digitize the output signal of the synapse circuit 200 is connected between the output side of the synapse circuit 200 and the synapse output holding means 120. The synapse output holding means 120 is constituted by a logic memory circuit 122 connected in series to the comparator 121. The logic memory circuit 122 stores the output signal of the comparator 121. The power control unit 100 controls whether to supply power to the comparator 121 or to stop supplying power in response to whether an input signal arrives at the input terminal 101 or has been lost.
A specific configuration of the logic memory circuit 122 can be, for example, as shown in
The configuration of the synapse circuit 200 is disclosed in Japanese Patent Application No. 2019-103803 filed by the present inventors, for example, as shown in
In this embodiment, one neuron core unit 10 is provided. The neuron core unit 10 has a data input terminal X, a data output terminal Y, and a weight value input terminal W, performs an analog product-sum operation based on input data x coming from the data input terminal X and a weight value w coming from the weight value input terminal W, and corresponds to the synapse circuit 200 in
The selector 31 and the registers 32-0, 32-1, and 32-2 constituting the weight value supply control unit 30 are connected to the weight value input terminal W, and a weight value is supplied from the weight value supply control unit 30. That is, the weight value supply control unit 30 includes a plurality of registers 32-0, 32-1, and 32-2 for holding weight values w0, w1, and w2, respectively, and a selector 31 for selecting any one of the plurality of registers 32-0, 32-1, and 32-2 and opening and closing a path for supplying the selected register as a weight value w to the weight value input terminal W.
A control processing device 40 is connected to the weight value supply control unit 30. The control processing device 40 includes a subordinate control unit 42 and a main control device 41. The main control device 41 comprehensively controls the neurons, and can be configured by a computer or the like. The subordinate control unit 42 is an interface that directly controls the neuron core unit 10 and the weight value supply control unit 30 based on an instruction from the main control device 41, and has functions of a controller, a sequencer, and a command register. Therefore, when instructions and necessary data for executing some serial operations, some parallel operations, or a mixed operation of some serial operations and some parallel operations are given from the main control device 41 to the subordinate control unit 42, the subordinate control unit 42 performs a processing operation so that a final arithmetic operation result can be obtained without intervention of the main control device 41 during a period in which the processing as a neuron is performed. When the weight values w0, w1, and w2 are set in the registers 32-0, 32-1, and 32-2, the subordinate control unit 42 performs control to send control signals to the registers 32-0, 32-1, and 32-2 via the control-signal lines C0, C1, and C2. Further, the subordinate control unit 42 sends control signals to the selector 31 via the control-signal line C3 to select a weight value from any one of the registers 32-0, 32-1, and 32-2, and performs control so as to reach the weight value input terminal W of the neuron core unit 10.
In the neuron configured as described above, required weight values w0, w1, and w2 are set in the registers 32-0, 32-1, and 32-2 under the control of the main control device 41 before the input data x arrives at the data input terminal X of the neuron core unit 10 via the first interface 81. At the timing of the analog product-sum operation of the neuron core unit 10 after the input data x arrives the data input terminal X of neuron core unit 10, the control processing device 40 performs control to supply the weight values w (w0, w1, w2) from the weight value supply control unit 30 in synchronization with this timing.
That is, at the timing of the first analog product-sum operation, the selector 31 is controlled to send the weight value w0 from the register 32-0, at the timing of the second analog product-sum operation, the selector 31 is controlled to send the weight value w1 from the register 32-1, and at the timing of the third analog product-sum operation, the selector 31 is controlled to send the weight value w2 from the register 32-2.
The control processing device 40 processes the output data of each analog product-sum operation from the data output terminal Y as serial output data and/or parallel output data, in addition to control as described above. In the present embodiment, since processing is performed as three parallel output signals, the output signal y0 obtained by the first operation, the output signal y1 obtained by the second operation, and the output signal y2 obtained by the third operation are extracted as output signals y at timings after the respective operations. That is, processing for obtaining three output signals y0, y1, and y2 in a time-division manner is performed, and the output signals are sent to, for example, three paths (not shown) connected to the second interface 82 in a time-division order. According to the present embodiment, although it takes time to obtain the three output signals y0, y1, and y2 in parallel, it is not necessary to use the three neuron core units 10 and the configuration can be simplified. As the configuration of the synapse circuit 200, a configuration disclosed as an embodiment in Japanese Patent Application No. 2019-103803 can be adopted in addition to the configuration of
The power control means 130 shown in
The power control unit 100 configured as described above operates according to a procedure shown in a timing chart of
When the input signal arrives at the input terminal 101 for a while and the arrival of the input signal is stopped at the time T2, a clocking step in which the timer 113 starts clocking is executed. The timer 113 converts the output from 0 to 1, for example, when the counting of the predetermined time TA is completed (T3 in
As described above, in the present embodiment, it is possible not only to accurately reduce power consumption in response to whether an input signal arrives at an input terminal or does not arrive at the input terminal, but also to reduce power consumption by appropriately connecting to the next processing because a calculation result remains in the case of subsequent power supply resumption.
In the present embodiment, the synapse circuit 200 and the power control unit 100 are separate from each other. However, the power control unit 100 of the present embodiment may be included in the synapse circuit 200 to form the synapse circuit 200 as a whole. In this case, the synapse circuit 200 has a power control function and a function of storing an output value at the time of power disconnection.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms, furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. These embodiments and modifications thereof are included in the scope and spirit of the invention, and are also included in the invention described in the claims and the equivalent scope thereof.
Number | Date | Country | Kind |
---|---|---|---|
2020-181807 | Oct 2020 | JP | national |