Neural network with reduced calculation amount

Abstract: A neural network circuit and a processing scheme using the neural network circuit in which a synapse calculation for each input value and a corresponding synapse weight of each input value which are expressed by binary bit sequences is carried out by using a sequentially specified bit of the corresponding synapse weight, a summation calculation for sequentially summing synapse calculation results for the input values is carried out to obtain a summation value, a prescribed nonlinear processing is applied to the obtained summation value so as to determine the output value, whether the obtained summation value reached to a saturation region of a transfer characteristic of the prescribed nonlinear processing is judged, the synapse calculation and the summation calculation are controlled to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever it is judged that the obtained summation value reached to the saturation region.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a neural network circuit constructed by connecting a multiplicity of neuron circuits formed by synapse calculation circuits, summation circuits, and nonlinear units, and a processing scheme using such a neural network circuit. Description of the Background Art A neural network circuit generally comprises a multiplicity of neuron circuits connected together, where each neuron circuit is a circuit with a plurality of inputs (x1, x2, ····· , xn) and one output (y) as shown in Fig. 1. In this neuron circuit of Fig. 1, a plurality of synapse weights (w1, w2, ·····, wn) are provided in correspondence to a plurality of inputs, and each synapse calculation circuit 101 carries out a calculation for obtaining a product of each input value and each synapse weight value, an absolute value of a difference between each input value and each synapse weight value, or a square of a difference between each input value and each synapse weight value, etc., while a summation circuit 102 sums calculation results obtained by all the synapse calculation units 101, and then a nonlinear unit 103 determines an output value according to a size of a summation result obtained by the summation circuit 102. Here, the nonlinear unit 103 which finally determines the output value has one of transfer characteristics as shown in Figs. 2A to 2D. Among them, the sigmoid function form of Fig. 2A has the most general applicability, but it is also possible to use the simplified forms such as a polygonal line form as shown in Fig. 2B or a step function form as shown in Fig. 2C for the purpose of simplifying the calculations, or a non-monotonic form as shown in Fig. 2D for the purpose of improving the functionality of the neural network circuit. In Figs. 2A to 2D, symbols Th, Th1, Th2, Th3, and Th4 indicate saturation region boundary values in the respective figures which separate the saturation regions in which the output is constant at either Hi or Low level and transient regions in which the output changes according to the input. The specific structure of the neural network circuit is determined by the connections of such neuron circuits. The most generally used structure is a triple layer structure shown in Fig. 3, which comprises an input layer formed by a plurality of input terminals x1 to xn, a hidden layer formed by a plurality of neuron circuits 111, and an output layer formed by a plurality of neuron circuits 112. The signal entered from the input terminals x1 to xn are entered into all the neuron circuits 111 of the hidden layer in parallel and processed in parallel, while the outputs of all the neuron circuits 111 of the hidden layer are entered into all the neuron circuits 112 of the output layer in parallel and processed in parallel. Whenever the input signal is entered, the specific neuron circuits react to the entered input signal and realize the processing such as that of the recognition. Conventionally, in a case of realizing a large scale neural network circuit having the above described function, it has been customary to construct the neural network circuit by combining a micro-processor 121 and RAMs 122 through a bus 123 as shown in Fig. 4. In such a configuration, the synapse calculations, the summation, and the nonlinear processing are carried out by the micro-processor 121, and the synapse weights are stored in the RAMs 122. During the calculations at the micro-processor 121, whenever the synapse weights become necessary, the accesses to the RAMs 122 are made to read out the necessary synapse weights. In such a configuration, the scale of the realizable neural network circuit can be enlarged by increasing a number of RAMs 122, and the calculation algorithm can be changed easily by changing the program installed on the micro-processor 121. However, in this conventional configuration, the processing speed is restricted by the access speed with respect to the synapse weights in the RAMs 122. In addition, the amount of calculations for the synapse calculations and the summation increases as the scale of the neural network circuit becomes larger, and this in turn restricts the processing speed for the following reason. Namely, in this conventional configuration, the synapse calculations with respect to all bits of the input value and all bits of the synapse weight for all synapse connections as well as the summation of all the synapse calculation results must be carried out, so that the amount of calculations can be quite enormous and the accesses to the synapse weights in the RAMs 122 associated with these calculations can also take considerable amount of time. In order to cope with this problem concerning the amount of calculations required in each neuron circuit, the following two propositions have been made conventionally. (1) A scheme disclosed in Japanese Patent Application Laid Open No. 4-112362 (1992) and U.S. Patent No. 5,166,539 in which a difference or a distance between each input and each synapse weight, or a weight value due to each synapse weight is obtained as a weight calculation value of a single polarity by a weight calculation circuit, and all the weight calculation values are summed, and then the nonlinear processing is applied to this summation result to obtain an appropriate output, where an intermediate result of the summation calculation and the saturation region boundary values of the nonlinear unit are compared to judge whether or not to continue the calculations for the remaining inputs such that the summation calculations for the remaining inputs can be omitted whenever the intermediate result reached to the saturation region, while the intermediate result requiring the further summation calculations is selected by a selective control circuit, so as to reduce the circuit scale and the power consumption of the summation circuit. This scheme, however, is applicable only to a case in which the weight calculation result of the input and the synapse weight takes a positive value, so that its applicability is rather limited. (2) A scheme disclosed in Y. Kondo, et al.: "A 1.2GFLOPS Neural Network Chip Exhibiting Fast Convergence", 1994 IEEE International Solid-State Circuit Conference, Digests of Technical Papers, pp. 218-219, February, 1994, in which the weight calculation using the synapse weight with a value less than a certain prescribed value is omitted in order to increase the processing speed. This scheme, however, is associated with a problem that the accurate summation calculation result may not be obtainable due to the accumulation of small errors due to the omitted weight calculations when the weight calculation values are summed. Other relevant background art is described in the following two documents. US-A-5 131 073 describes a neuron unit which simultaneously processes a plurality of binary input signals. The neuron unit includes input lines for receiving first and second input signals which undergo transitions with time, first and second memories for storing weighting coefficients, a first gate for successively obtaining a logical product of one of the first input signals and a corresponding one of the weighting coefficients read out from the first memory for each of the first input signals, a second gate for successively obtaining a logical product of one of the second input signals and a corresponding one of the weighting coefficients read out from the second memory for each of the second input signals, a third gate for obtaining a logical sum of logical products output from the first gate, a fourth gate for obtaining a logical sum of logical products output from the second gate, and an output part including an inverter for inverting the logical sum output from the fourth gate and a gate for obtaining one of a logical product and a logical sum of the logical sum output from the third gate and an inverted logical sum output from the inverter. This gate outputs an output signal of the neuron unit. "Bit-Serial Neural Networks" by Alan F. Murray et al., Neural Information Processing Systems, American Institute of Physics, 1987, Denver, USA, pages 573 to 583, describes a bit-serial VLSI neural network from an initial architecture for a synapse array through to silicon layout and board design. The issues surrounding bit-serial computation, and analog/digital arithmetic are discussed and the parallel development of a hybrid analog/digital neural network is outlined. Learning and recall capabilities are reported for the bit-serial network along with a projected specification for a 64-neuron, bit-serial board operating at 20 MHz. This technique is extended to a 256 (256 2 synapses) network with an update time of 3ms, using a "paging" technique to time-multiplex calculations through the synapse array. SUMMARY OF THE INVENTION It Is therefore an object of the present invention to provide a neural network circuit and a processing scheme using the neural network circuit which are capable of reducing an amount of calculations required for the synapse calculations and the summation as well as a number of accesses to the synapse weights, so as to realize a large scale neural network circuit with a high processing speed for obtaining an accurate final result regardless of values taken by the input values and the synapse weights. According to one aspect of the present invention there is provided a neural network circuit receiving a plurality of input values which can be positive or negative and outputting one output value, comprising: calculation means for carrying out a synapse calculation for each input value and the corresponding synapse weight of each input value which are expressed by binary bit sequences, by using a sequentially specified bit of the corresponding synapse weight, where said synapse weight can have a positive or a negative value, and a summation calculation for sequentially summing synapse calculation results for the input values to obtain a monotonously increasing or decreasing summation value which can be positive or negative; synapse weight memory circuit for storing a plurality of synapse weights; memory read out circuit for selectively reading out a specified bit of a specified synapse weight from the synapse weight memory circuit to the calculation means; a nonlinear unit for applying a prescribed nonlinear transfer function to the summation value obtained by the calculation means so as to determine the output value; judging means for judging whether the summation value obtained by the calculation means reaches either one of positive and negative saturation regions of the transfer characteristic of the nonlinear unit; and control means for controlling the memory read out circuit and the calculation means to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever the judging means judges that the summation value obtained by the calculation means reaches said either one of the positive and negative saturation regions. According to another aspect of the present invention there is provided a neural network system as specified in claim 17. According to another aspect of the present invention there is provided a processing method using a neural network circuit as specified in claim 18. According to another aspect of the present invention there is provided a processing method using a neural network system as specified in claim 34. Other features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic diagram of a conventional neuron circuit for a conventional neural network circuit. Figs. 2A to 2D are graphs showing typical transfer characteristics of a nonlinear unit used in a neuron circuit of a neural network circuit. Fig. 3 is a schematic diagram of a triple layer structure for a neural network circuit. Fig. 4 is a schematic diagram of a conventional circuit configuration for realizing a large scale neural network circuit. Fig. 5 is a block diagram of a neuron circuit for the first embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 6 is a diagrammatic illustration of an exemplary calculation for obtaining an initial value of a summation value in the neuron circuit of Fig. 5. Fig. 7 is a graph of a transfer characteristic of a nonlinear unit in the neuron circuit of Fig. 5, showing a manner of obtaining a final summation value in one saturation region by the neuron circuit of Fig. 5. Fig. 8 is a graph of a transfer characteristic of a nonlinear unit in the neuron circuit of Fig. 5, showing a manner of obtaining a final summation value in another saturation region by the neuron circuit of Fig. 5. Fig. 9 is a block diagram of a neuron circuit for the second embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 10 is a block diagram of a neuron circuit for the third embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 11 is a block diagram of a one bit serial synapse calculation and summation circuit in the neuron circuit of Fig. 10. Fig. 12 is a diagrammatic illustration of an exemplary calculation in the one bit serial synapse calculation and summation circuit of Fig. 11. Fig. 13 is a block diagram of a one bit serial synapse calculation and summation circuit in a neuron circuit for the fourth embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 14 is a graph of a transfer characteristic of a nonlinear unit in the neuron circuit of the fourth embodiment, showing a manner of obtaining a final summation value in one saturation region by the fourth embodiment. Fig. 15 is a graph of a transfer characteristic of a nonlinear unit in the neuron circuit of the fourth embodiment, showing a manner of obtaining a final summation value in another saturation region by the fourth embodiment. Fig. 16 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of first and second summation values in the fourth embodiment for one case. Fig. 17 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of first and second summation values in the fourth embodiment for another case. Fig. 18 is a diagrammatic ilustration of an exemplary setting of an initial value of a summation value in a neuron circuit for the fifth embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 19 is a block diagram of a partial configuration for a controller in a one bit serial synapse calculation and summation circuit of a neuron circuit for the fifth embodiment. Fig. 20 is a graph of a rate of executed calculations versus a final summation value showing the effect of the omission of calculations in the first to sixth embodiments of a neural network circuit and a processing scheme according to the present invention. Fig. 21 is a graph of a number of accessed upper bits in synapse weight versus a final summation value showing the effect of the reduction of memory accesses in the first to sixth embodiments of a neural network circuit and a processing scheme according to the present invention. Fig. 22 is a block diagram of a neuron circuit for the seventh embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 23 is a block diagram of a synapse calculation and summation circuit in the neuron circuit of Fig. 22. Fig. 24 is a diagrammatic illustration of an exemplary calculation in the synapse calculation and summation circuit of Fig. 23. Fig. 25 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of summation values in the neuron circuit of Fig. 22 for one case. Fig. 26 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of summation values in the neuron circuit of Fig. 22 for another case. Fig. 27 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of summation values in the neuron circuit of Fig. 22 for another case. Fig. 28 is a diagrammatic illustration of an exemplary calculation for obtaining initial values of summation values in the neuron circuit of Fig. 22 for another case. Fig. 29 is a block-diagram of a synapse calculation and summation circuit in a neuron circuit for the eighth embodiment of a neural network circuit and a processing scheme according to the present invention. Figs. 30A, 30B, and 30C are graphs of a transfer characteristic of a nonlinear unit in the neuron circuit of the eighth embodiment, showing a manner of providing offsets in the eighth embodiment. Fig. 31 is a block diagram of a neural network system using the ninth embodiment of a neural network circuit and a processing scheme according to the present invention. Fig. 32 is a timing chart showing an exemplary progress of calculations at neural network circuits in the neural network system of Fig. 31. Fig. 33 is a graph of a rate of executed calculations versus a final summation value showing the effect of the omission of calculations in the seventh to ninth embodiments of a neural network circuit and a processing scheme according to the present invention. Fig. 34 is a graph of a number of accessed upper bits in synapse weight versus a final summation value showing the effect of the reduction of memory accesses in the seventh to ninth embodiments of a neural network circuit and a processing scheme according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring now to Figs. 5 to 8, the first embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. In this first embodiment, the neural network circuit has an overall structure similar to the conventional neural network circuit which generally comprises a multiplicity of neuron circuits connected together, as in the triple layer structure of Fig. 3 described above for example. Here, each neuron circuit has a configuration as shown in Fig. 5, which comprises: a plurality of synapse calculation circuits 1-1 to 1-n in correspondence to input 1 to input n for making synapse calculations with respect to the respective inputs; a synapse weight memory circuit 2 for storing synapse weights to be supplied to the synapse calculation circuits 1-1 to 1-n; a memory read out circuit 3 for reading out the synapse weights from the synapse weight memory circuit 2 to the synapse calculation units 1-1 to 1-n; a summation circuit 4 for summing outputs of all the synapse calculation circuits 1-1 to 1-n; a nonlinear unit 5 for carrying out a nonlinear processing with respect to an output of the summation circuit 4 to obtain an output of this neuron circuit; first and second saturation region boundary value registers 8-1 and 8-2 for storing first and second saturation region boundary values of the nonlinear unit 5, respectively; comparators 6-1 and 6-2 for comparing the output of the summation circuit 4 with the first and second saturation region boundary values registered in the first and second saturation region boundary value registers 8-1 and 8-2, respectively; and a control circuit 7 for controlling operations of the synapse calculation circuits 1-1 to 1-n and the memory read out circuit 3 according to outputs of the comparators 6-1 and 6-2. Here, the first and second saturation region boundary values indicate boundaries of a transient region and the saturation regions in a transfer characteristic of the nonlinear unit 5, where the first saturation region boundary value indicates the lower boundary while the second saturation region boundary value indicates the upper boundary. In a case the transfer characteristic of the nonlinear unit 5 has more than one transient regions as in a case of Fig. 2D described above, additional saturation region boundary value registers and corresponding comparators will be necessary. In the following, for the sake of simplicity, only a case of the nonlinear unit 5 with the transfer characteristic having one transient region alone will be described. In this configuration of Fig. 5, there are n sets of the synapse calculation circuits 1-1 to 1-n which are connected with corresponding input terminals entering input 1 to input n, as well as with the synapse weight memory circuit 2 through the memory read out circuit 3. Outputs of the synapse calculation circuits 1-1 to 1-n are connected to an input of the summation circuit 4, and an output of the summation circuit 4 is connected to inputs of the nonlinear unit 5 and the comparators 6-1 and 6-2, while an output of the nonlinear unit 5 is connected to an output terminal of this neuron circuit. The first saturation region boundary value register 8-1 is connected to another input of the comparator 6-1 while the second saturation region boundary value register 8-2 is connected to another input of the comparator 6-2. Outputs of the comparators 6-1 and 6-2 are connected to an input of the control circuit 7, while an output of the control circuit 7 is connected to the memory read out circuit 3 and the synapse calculation circuits 1-1 to 1-n. With this configuration, the following processing is carried out so as to realize the calculation for obtaining the accurate final result gradually from an approximated value by sequentially carrying out calculations from upper bits of binary bit sequences representing the synapse weight value and the input value. (1) In order to carry out the calculation from the upper bits at the synapse calculation circuits 1, necessary bits of the input value and the synapse weight value are sequentially transferred to each synapse calculation circuit 1 under the control of the control circuit 7. (2) The calculation results of all the synapse calculation circuits 1 are summed at the summation circuit 4. (3) The summation result obtained at (2) is compared with the first and second saturation region boundary values at the comparators 6, and the calculations of (1) and (2) are repeated until the summation result obtained at (2) is in the saturation region. When the summation result obtained at (2) reaches to the saturation region, that summation result is determined as the final summation result and the calculations at the synapse calculation circuits 1 are immediately stopped by a signal from the control circuit 7 such that the subsequent calculations and the memory accesses can be omitted. Now, in order to carry out the synapse calculation and the summation from the upper bits, compare the summation result with the first and second saturation region boundary values, and stop the calculations at a time the summation result reaches to the saturation region as described above, it is necessary for the summation result to be monotonously increasing or decreasing as the calculations progress. However, it is possible for each of the input value and the synapse weight value to take either a positive or negative value, so that in a case of carrying out the multiplication of the input value and the synapse weight value as the synapse calculation, it is impossible to realize the monotonously increasing or decreasing function as the summation result by using the conventional synapse calculation and summation scheme. For this reason, in this first embodiment, the following calculation scheme is used. (1) The synapse calculation is carried out in terms of the binary expressions of the input value and the synapse weight value, each in a form of "sign + absolute value". Here, a word length (bit length) of an absolute value portion of each value is set to be L, and a sequential bit number of an absolute value portion from the least significant bit is set to be i. (2) In order to realize the monotonously increasing summation, the initial value of the summation value is set up as follows. A sign of the synapse calculation result is evaluated from sign bits of the input value and the synapse weight value, and the initial value is set to be 0 when the sign is positive.On the other hand, when the sign of the synapse calculation result is negative, the initial value is obtained by the following steps. (a) A setting value of 0 is used when the i-th bit of the absolute value portion of the input value is binary "0". (b) A setting value of -2 (i+L-1) +1 is used when the i-th bit of the absolute value portion of the input value is binary "1". (c) All the setting values given by (a) and (b) with respect to all bits of the absolute value portion of the input value for each synapse calculation is summed together, and a total of all the sums for all the synapses connected to this neuron circuit is set as the initial value. In this manner, it is possible to determine the initial value of the summation value only from the input values in this first embodiment.As an illustrative example, a manner of obtaining the initial value of the summation value for an exemplary case in which the word length L of the absolute value portion of each value is 4 bits, the synapse weight value is "11", and the input value is "-13" will be described with reference to Fig. 6. In this case, the synapse calculation result of the synapse weight value and the input value is negative. Here, an operation for calculating a product of binary expressions of absolute values of these values ("1011" and "1101", respectively) can be decomposed into operations for adding sequentially shifted results of the multiplication of the synapse weight value and the i-th bit of the input value for all i. In these operations, as indicated in Fig. 6, the missing digits at the lower bits in each bit sequence are supplemented by additional "0", and each supplemented bit sequence is converted into a negative value by using 1's complementary expression with a variable bit length according to a number of figures of each supplemented bit sequence. Here, the 1's complementary expression corresponding to each bit sequence is to be interpreted as a sum of the 1's complement of a number represented by a top figure which is a negative value and positive values represented by the remaining figures. Thus, for example, for a bit sequence "1011", its 1's complementary expression "10100" is interpreted as a sum of 1's complement of a top figure "10000" = 16 which is -15, and a positive value represented by the remaining "100" = 4, so that this "10100" represents a negative value -11 in the 1's complementary expression. Then, a total of top negative portions of all these 1's complementary expressions for all figures is set as the initial value of the summation value. (3) The calculation of the product of the input value and the synapse weight value is carried out bit by bit from the upper bits of their absolute value portions, and sequentially progressed in a descending order of a magnitude of the multiplication result. In a case the i-th bit of the input value is "0", it is apparent that the synapse calculation result for that i-th bit is "0", so that the calculation for this i-th bit of the input value and the synapse weight value is omitted. (4) The summation calculation is carried out by adding the absolute value portions in the 1's complementary expressions when the synapse calculation result is negative, so that it can be realized by the addition of positive values alone. By means of this processing, as indicated in Fig. 7, the summation gradually converges from the initial value of the summation value to the final value as the calculation progresses. In this case, the calculation of the synapse calculation result to be summed proceeds from the upper bits, so that the the synapse calculation result changes from that with a larger absolute value to that with a smaller absolute value as the calculation progresses. In other words, the summation value gradually approaches from the approximated value to the accurate value. Then, when the summation value exceeds the second saturation region boundary value, it can be ascertained that the summation result has reached the saturation region A, so that the subsequent calculations can be omitted. It is to be noted that, a case of convergence of the summation result to the saturation region B can be handled by the similar manner as described above, except for reversing the polarity in the above described processing, as indicated in Fig. 8, where the similar omission of the subsequent calculations can be made after the summation result has reached the saturation region B. Referring now to Fig. 9, the second embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the first embodiment described above will be given the same reference numerals in the figure and their description will be omitted. In this second embodiment, each neuron circuit of the neural network circuit has a configuration as shown in Fig. 9, which differs from that of Fig. 5 in that there is only one synapse calculation circuit 1, and there is provided a selector 9 which is provided between the input terminals and the synapse calculation circuit 1 and controlled by the control circuit 7, such that the synapse weight and the input value to be used in the synapse calculation at the synapse calculation unit 1 are selectively supplied from the memory read out circuit 3 and the selector 9 under the control of the control circuit 7. In this configuration, a single synapse calculation circuit 1 is used for all the synapse calculations, so that there is an additional advantage of the reduction of the circuit scale, in addition to all the advantages of the first embodiment described above. Referring now to Figs. 10 to 12, the third embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the first and second embodiments described above will be given the same reference numerals in the figure and their description will be omitted. In this third embodiment, each neuron circuit of the neural network circuit has a configuration as shown in Fig. 10, which differs from that of Fig. 9 in that the synapse calculation circuit 1 and the summation circuit 4 of Fig. 9 is replaced by a one bit serial synapse calculation and summation circuit 10, and there is provided a clock generation circuit 11 between the control circuit 7 and this one bit serial synapse calculation and summation circuit 10. The one bit serial synapse calculation and summation circuit 10 receives the synapse weight and the input value from the memory read out circuit 3 and the selector 9 under the control of the control circuit 7, and outputs the calculated summation result of the synapse calculations to the nonlinear unit 5 as well as the comparators 6-1 and 6-2. The control circuit 7 also supplies a reset signal to the clock generation circuit 11, and the clock generation circuit 11 supplies the clock signals to the one bit serial synapse calculation and summation circuit 10 according to the reset signal from the control circuit 7. The one bit serial synapse calculation and summation circuit 10 has a detailed configuration as shown in Fig. 11, which comprises a synapse weight register 21 for registering the received synapse weight, an input value register 22 for registering the received input value, a switch-a 24 and a switch-b 25 for selectively outputting a specified bit of the absolute value bits from the registers 21 and 22, respectively, an EX-OR circuit 28 receiving sign bits of the registers 21 and 22 as its inputs, an AND circuit 30 receiving outputs of the switch-a 24 and the switch-b 25 as its inputs, an EX-OR circuit 29 receiving outputs of the EX-OR circuit 28 and the AND circuit 30 as its inputs, a one bit adder 31 receiving an output of the EX-OR circuit 29 as its A terminal input, a D-type flip flop 32 connected between Co and Ci terminals of the one bit adder 31, a summation register 23 for registering a current summation value, a switch-c 26 for selectively outputting a specified bit of the current summation value from the summation register 23 as a B terminal input of the one bit adder 31, a switch-d 27 for selectively storing an S terminal output (addition result) of the one bit adder 31 in the summation register 23, and a controller 33 receiving an output of the switch-b 25 and a Co terminal output (carry signal) of the one bit adder 31. Here, the controller 33 supplies a control input i indicating a sequential bit number from the least significant bit of an access bit in the synapse weight register 21 to the switch-a 24, a control input j indicating a sequential bit number from the least significant bit of an access bit in the input value register 22 to the switch-b 25, and a control input k indicating a sequential bit number from the least significant bit of an access bit in the summation register 23 to the switch-c 26 and the switch-d 27, so as to control bits to be selectively outputted or stored by the switches 24, 25, 26, and 27. In addition, the synapse weight register 21 and the input value register 22 are operated according to the first clock signal CLK1 from the clock generation circuit 11, while the summation register 23 is operated according to the second clock signal CLK2 from the clock generation circuit 11. With this configuration, the one bit adder 31 is used for both the addition part of the synapse calculation and the addition part of the summation, so that there is an additional advantage of the reduction of the circuit scale, in addition to all the advantages of the first and second embodiments described above. Moreover, as the serial calculation is carried out, when a bit of the input value is "0", it is apparent that the serial synapse calculation result for that bit is "0", so that the calculation for this bit of the input value and the synapse weight value can be omitted to reduce the amount of calculations. Here, the one bit adder 31 can be shared among the addition part of the synapse calculation and the addition part of the summation for the following reason. Namely, in a case of carrying out the serial multiplication as the synapse calculation, as indicated in Fig. 12 for an exemplary case of 11 times 13, the multiplication can be decomposed into the one bit multiplications and the sequential additions of the one bit multiplication results. Consequently, by using such a serial calculation, it is possible to integrally form the addition calculation in the synapse calculation operation and the addition calculation in the summation operation, and thereby there is an additional advantage of the reduction of the circuit scale. More specifically, in this third embodiment, the following processing is carried out. (1) The initial value of the summation value is set up as in the first embodiment described above. (2) Whether the j-th bit of the input value supplied from the switch-b 25 is "0" or not is judged at the controller 33, and when it is "0", the synapse calculation using this j-th bit of the input value is omitted while also omitting a memory access for the synapse weight to be used in that omitted synapse calculation, and the controller 33 proceeds to output new values of i, j, and k in order to carry out the next synapse calculation. (3) The sign bit of the synapse weight and the sign bit of the input value are sent to the EX-OR circuit 28, and a sign of the multiplication result of the synapse weight and the input value is obtained. (4) The i-th bit of the synapse weight and the j-th bit of the input value are sent from the switch-a 24 and the switch-b 25 to the AND circuit 30, and the one bit multiplication using these bits is carried out. (5) The calculation results of (3) and (4) are sent to the EX-OR circuit 29 to evaluate the value to be summed. More specifically, when the sign of the multiplication result is positive and the multiplication result is "0" or when the sign of the multiplication result is negative and the multiplication result is "1", the value to be summed is set to be "0".Also, when the sign of the multiplication result is positive and the multiplication result is "1", or when the sign of the multiplication result is negative and the multiplication result is "0", the value to be summed is set to be "1". (6) At the one bit adder 31, the value to be summed entered from the EX-OR circuit 29 and the k-th bit of the current summation value entered from the switch-c 26 are added together, and outputted as the S terminal output which is then stored into the k-th bit of the summation result in the summation register 23 by the switch-d 27. (7) At this point, if the carry signal is 1, i.e., when the carrying of the figure is to be made, the carry signal and the (k+1)-th bit of the current summation value are added together at the one bit adder 31. This processing is repeated until the carrying of the figure stops occurring, so as to obtain the final summation value. Referring now to Figs. 13 to 17, the fourth embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the first to third embodiments described above will be given the same reference numerals in the figure and their description will be omitted. In this fourth embodiment, a detailed configuration of the one bit serial synapse calculation and summation circuit 10 in the neuron circuit of Fig. 10 described above is replaced from that of Fig. 11 to an alternative configuration shown in Fig. 13 for the following reason. Namely, in the first to third embodiments described above, in order to make judgements for both of the saturation regions A and B, it is necessary to provide two sets of the synapse calculation circuit and the summation circuit (or synapse calculation and summation circuit) so as to make a judgement for the saturation region A by carrying out the calculations with the monotonously increasing summation value in one set (as indicated in Fig. 7) and to make a judgement for the saturation region B by carrying out the calculations with the monotonously decreasing summation value in another set (as indicated in Fig. 8). In contrast, by using the configuration of the one bit serial synapse calculation and summation circuit 10 as shown in Fig. 13 which utilizes the characteristic properties of the serial calculations between the synapse weight and the input value, it becomes possible to make judgements for both of the saturation regions A and B by only one set of the synapse calculation and summation circuit. More specifically, the outline of the calculation and the characteristic properties of the serial calculations between the synapse weight and the input value will now be explained with references to Figs. 14 to 17. In this fourth embodiment, the calculations for the first summation value which gradually approaches to the final summation value in a monotonously decreasing manner and the calculations for the second summation value which gradually approaches to the final summation value in a monotonously increasing manner are simultaneously carried out by the common synapse calculation and summation circuit 10 of Fig. 13 as indicated in Figs. 14 and 15. In this case, the initial values for the first and second summation values are set up as follows. (1) A case in which the synapse calculation result between the synapse weight and the input value is positive (as illustrated by an example shown in Fig. 16): <Initial value of the first summation value> (a) A setting value of "0" is used when the i-th bit from the least significant bit of the absolute value portion of the input value is "0". (b) A setting value of 2 (i+L-1) -1 is used when the i-th bit from the least significant bit of the absolute value portion of the input value is "1", where L is a word length (bit length) of the absolute value portion of each value. (c) A total of all the setting values given by (a) and (b) with respect to all bits of the absolute value portion of the input value is set as the initial value of the first summation value. This initial value of the first summation value has the following significance. Here, as indicated in Fig. 16, the multiplication of the absolute value of the synapse weight and the absolute value of the input value is handled in a decomposed form of "partial products of all bits of the absolute value portion of the synapse weight and each bit of the input value + summation of partial products". Then, when it is assumed that, among the bit sequences for the partial products between all bits of the absolute value portion of the synapse weight and each bit of the input value, those bit sequences which correspond to the input bit "1" in the input value are entirely composed of "1" in all bits, a total value of the bit sequences for all the partial products is set as the initial value of the first summation value. <Initial value of the second summation value> The initial value of the second summation value is set to be "0". This initial value of the second summation value has the following significance. Namely, as indicated in Fig. 16, when it is assumed that all the bit sequences for the partial products between all bits of the absolute value portion of the synapse weight and each bit of the input value are entirely composed of "0" in all bits, a total value of the bit sequences for all the partial products is set as the initial value of the second summation value. (2) A case in which the synapse calculation result between the synapse weight and the input value is negative (as illustrated by an example shown in Fig. 17): <Initial value of the first summation value> The initial value of the first summation value is set to be "0". This initial value of the first summation value has the following significance. Here, as indicated in Fig. 17, the multiplication of the absolute value of the synapse weight and the absolute value of the input value is handled in a decomposed form of "partial products of all bits of the absolute value portion of the synapse weight and each bit of the input value + summation of partial products". Then, the bit sequences for the partial products between all bits of the absolute value portion of the synapse weight and each bit of the input value are converted into negative values by the 1's complementary expressions. Then, when it is assumed that all the bit sequences as converted into the 1's complementary expressions are entirely composed of "1" in all bits, a total value of all these bit sequences as converted into the negative values is set as the initial value of the first summation value. <Initial value of the second summation value> (a) A setting value of "0" is used when the i-th bit from the least significant bit of the absolute value portion of the input value is "0". (b) A setting value of -2 (i+L-1) +1 is used when the i-th bit from the least significant bit of the absolute value portion of the input value is "1". (c) A total of all the setting values given by (a) and (b) with respect to all bits of the absolute value portion of the input value is set as the initial value of the second summation value. This initial value of the second summation value has the following significance. Namely, the bit sequences for the partial products between all bits of the absolute value portion of the synapse weight and each bit of the input value are converted into negative values by the 1's complementary expressions. Then, when it is assumed that, among the bit sequences as converted into the 1's complementary expressions, those bit sequences which correspond to the input bit "1" in the input value are entirely composed of "0" except for the most significant bits, a total value of all these bit sequences as converted into the negative values is set as the initial value of the second summation value. In this fourth embodiment, the summation is carried out as follows. Namely, the one bit multiplication between the synapse weight and the input value is carried out from the upper bits. As a result, when a bit which is added at a time of setting the initial value of the first summation value is judged as actually "0", this added bit is subtracted from the first summation value (as in the serial calculations (3), (4), (7), (8), and (9) in Fig. 16, or the serial calculations (1), (2), (5) and (6) in Fig. 17). On the other hand, as a result of the one bit multiplication between the synapse weight and the input value, when a bit which is not added at a time of setting the initial value of the second summation value is judged as actually not "0", the result of the one bit multiplication is added to the second summation value (as in the serial calculations (1), (2), (5), and (6) in Fig. 16, or the serial calculations (3), (4), (7), (8), and (9) in Fig. 17). In this summation operation, as should be apparent from the calculation procedures shown in Figs. 16 and 17, the subtraction from the first summation value and the addition to the second summation value which are to be executed after the one bit multiplication of the synapse weight and the input value have a mutually complementary relationship, such that only either one of these calculations is carried out in any given serial calculation timing. Consequently, the calculations using the monotonously increasing second summation value for making a judgement for the saturation region A and the calculations using the monotonously decreasing first summation value for making a judgement for the saturation region B can be carried out simultaneously by using the common synapse calculation and summation circuit 10 which operates by sequentially switching the register for registering the first summation value and the register for registering the second summation value. To this end, the one bit serial synapse calculation and summation circuit of Fig. 13 comprises a one bit multiplicator 34 receiving the synapse weight and the input value specified from the control circuit 7, a switch-g 42 receiving the output of the one bit multiplicator 34 as a control input and supplying the B terminal input of the one bit adder 31, a switch-h 43 receiving the output of the one bit multiplicator 34 as the control input and the S terminal output of the one bit adder 31 as its input, a first summation value register 36 for registering a current first summation value, a switch-c 38 for selectively outputting a specified bit of the current first summation value from the first summation value register 36 as the B terminal input of the one bit adder 31 through the switch-g 42, a switch-d 39 for selectively storing the S terminal output (addition result) of the one bit adder 31 in the first summation value register 36 through the switch-h 43, a second summation value register 37 for registering a current second summation value, a switch-e 40 for selectively outputting a specified bit of the current second summation value from the second summation value register 37 as the B terminal input of the one bit adder 31 through the switch-g 42, a switch-f 41 for selectively storing the S terminal output (addition result) of the one bit adder 31 in the second summation value register 37 through the switch-h 43, a constant register 35 for storing a constant "1" to be supplied as the A terminal input of the one bit adder 31, the D-type flip flop 32 connected between Co and Ci terminals of the one bit adder 31, and the controller 33 receiving the Co terminal output (carry signal) of the one bit adder 31. Here, the controller 33 supplies a control input k indicating a sequential bit number from the least significant bit of an access bit in the first summation value register 36 or the second summation value register 37 to the switch-c 38 and the switch-d 39 or the switch-e 40 and the switch-f 41, so as to control bits to be selectively outputted or stored by these switches 38, 39, 40, and 41. In addition, the first summation value register 36 and the second summation value register 37 are operated according to the clock signal CLK2 from the clock generation circuit 11. More specifically, in this fourth embodiment, the following processing is carried out. (1) The initial values of the first and second summation values are set up as described above. (2) The multiplication of the synapse weight and the input value is carried out at the one bit multiplicator 34, and the multiplication result and its sign are obtained. The multiplication result and its sign are sent to the control inputs of the switch-g 42 and the switch-h 43 bit by bit, and the switching between the first summation value and the second summation value is carried out according to the following table 1. multiplication result sign of multiplication result 0 1 positive 1st summation value 2nd summation value negative 2nd summation value 1st summation value (3) At the one bit adder 31, the addition of a constant "1" supplied from the constant register 35 and the k-th bit from the least significant bit of the summation value selected at (2) and supplied from the appropriate register 36 or 37 through the switch-g 42 is carried out, and the S terminal output is stored into the k-th bit from the least significant bit of the summation value selected at (2) in the appropriate register 36 or 37 through the switch-h 43. (4) At this point, if the carry signal is 1, i.e., when the carrying of the figure is to be made, the carry signal and the (k+1)-th bit of the current summation value are added together at the one bit adder 31. This processing is repeated until the carrying of the figure stops occurring, so as to obtain the final summation value. (5) The outputs of the first summation value register 36 and the second summation value register 37 are compared with the first and second saturation region boundary values at the comparators 6-1 and 6-2 in the configuration of Fig. 10, so as to make judgements for the saturation regions A and B. Referring now to Figs. 18 and 19, the fifth embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the first to fourth embodiments described above will be given the same reference numerals in the figure and their description will be omitted. In the first to fourth embodiments described above, whether or not to continue the calculations has been judged by evaluating the size relationship of the summation value and the saturation region boundary values at the comparators. In contrast, in this fifth embodiment, whether or not to continue the calculations is judged solely by detecting the carry signal for the most significant bit of the summation value as follows, so as to have an additional advantage that the judgement of the calculation stopping can be realized by a simpler processing. In this fifth embodiment, when the summation value takes a negative value, it is expressed by the 1's complementary expression. Here, the initial value of the summation value is set up such that the summation value gradually changes as the summation calculation progresses, and becomes "0" when it has reached the saturation region boundary value, as illustrated in Fig. 18. With this initial value setting, when the summation value has reached the saturation region boundary value, i.e., when the summation value becomes "0", the carry signal from the most significant bit of the summation value is going to be issued, so that the saturation region can be judged and the calculation can be stopped by detecting this carry signal. In the following, a case in which there is only one transient region in the transfer characteristic of the nonlinear unit 5 and the summation is realized by the serial calculations will be described. In this case, the above described function can be realized by the following processing. (1) The initial values of the first and second summation values are set up as follows: the initial value of the first summation value = the initial value of the first summation value in the third embodiment + the first saturation region boundary value; and the initial value of the second summation value = the initial value of the second summation value in the third embodiment - the second saturation region boundary value. (2) The calculations similar to those in the fourth embodiment are carried out. Then, during the calculation, whenever the carry signal from the most significant bit occurs, the subsequent calculations are omitted. To this end, the controller 33 of the one bit serial synapse calculation and summation circuit 10 in the configuration of Fig. 11 or Fig. 13 includes a partial configuration as shown in Fig. 19, which comprises a register 51 for storing a bit length i from the least significant bit of the synapse weight, a register 52 for storing a bit length J from the least significant bit of the input value, a register 53 for registering a variable which is controlled by the carry signal from the summation circuit, a register 54 for registering a constant "1", a register 55 for registering a constant L representing a word length of the absolute value portion of each value, an adder 56 for adding the outputs of the registers 51 and 52, an adder 57 for adding the outputs of the registers 53 and 54 and feeding back the result into the register 53, an adder 58 for adding the outputs of the register 53 and the adder 56 and outputting the control input k of the switches, a comparator 59 for comparing the outputs of the adder 58 and the register 55, and an AND circuit 60 receiving the outputs of the comparator 59 and the carry signal from the summation circuit and outputting the calculation stop signal. In this configuration of Fig. 19, the following processing is carried out. (1) The control inputs i and j are added, and the result of this addition and the variable are added, so as to evaluate the control input k for indicating which figure is currently calculated. Here, the initial value of the variable is set to be -L where L is the word length of the absolute value portion of each value. Also, the variable is increased by one whenever the carrying occurs at the summation circuit, or reset to the initial value whenever the carrying does not occur at the summation circuit. (2) The control input value k is sent to the comparator 59 and compared with the constant L there, so as to judge whether the current calculation is for the most significant bit or not. (3) By taking AND of the output of the comparator 59 and the carry signal from the summation circuit, whether the carrying has occurred in the calculation for the most significant bit or not is judged. Then, in a case the carrying has occurred in the calculation for the most significant bit, the calculation stop signal for stopping the calculations is issued, so as to omit the subsequent calculations. In this manner, the stopping of the calculations can be realized by simply detecting the carry signal for the most significant bit of the summation value in this fifth embodiment. Next, the sixth embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. In the first to fifth embodiments described above, a case of using the multiplication of the synapse weight and the input value as the synapse calculations has been described, but these embodiments can be made applicable to a case of using the absolute value or the square of the difference between the synapse weight and the input value as the synapse calculations by introducing the following modifications. <Case of using the absolute value of the difference between the synapse weight and the input value> (1) The initial value of the summation value is always set to be "0". (2) The absolute value of the difference between the synapse weight and the input value always takes a positive value, so that the synapse calculation is carried out from the upper bits first, and then summation calculation is carried out. <Case of using the square of the difference between the synapse weight and the input value> (1) The initial value of the summation value is always set to be "0". (2) The square of the difference between the synapse weight and the input value always takes a positive value, so that the synapse calculation is carried out from the upper bits first, and then summation calculation is carried out. For example, when the difference between the synapse weight value and the input value can be expressed as (a×2 3 + b×2 2 + c×2 + d), the square of this difference is rigorously given by: a 2 ×2 6 + 2ab×2 5 + b 2 ×2 4 + 2ac×2 4 + 2bc×2 3 + c 2 ×2 2 + 2bd×2 2 + 2cd×2 + d 2 but in the processing described above, only the factors underlined in the above expression will be calculated, and the result will be smaller than the actual value. Here, however, it suffices to be able to judge whether the summation result reaches to the saturation region or not, so that the above processing can be applied to a case of using the square of the difference between the synapse weight and the input value as well. Now, with references to Figs. 20 and 21, the simulation result indicating the effects of the omission of calculations and the reduction of the memory accesses to the synapse weight memory circuit according to the first to sixth embodiments of the present invention will be described. Fig. 20 shows a relationship between the final summation value and the rate of executed calculations (i.e., a ratio of a number of calculations required in the system of the present invention with respect to a number of calculations required in the system of the prior art) for calculations at one neuron with respect to all the synapse connections in an exemplary case of using 16 inputs where each of the synapse weight and the input value comprises 16 bits including the sign bit and the absolute value portion. It can be seen from this Fig. 20 that the effect of the omission of calculations becomes noticeable for the final summation values which are more distanced from the saturation region boundary values. On the other hand, Fig. 21 shows a relationship between the final summation value and the number of accessed upper bits in the synapse weight for the same exemplary case. It can be seen from this Fig. 21 that the effect of the reduction of memory accesses to the synapse weight memory circuit also becomes noticeable for the final summation value which are more distanced from the saturation region boundary values. More specifically, these effects can be estimated quantitatively as follows. First, assuming that a rate by which the input value bit sequences are occupied by "1" bits is 50 %, the omission of calculations for "0" bits in the input value bit sequences amounts to 50 % reduction of the calculations. Moreover, assuming that a possibility for the final summation value to be in the saturation region is 90 %, a possibility for the final summation value to be in the transient region to be 10 %, and the average rate of executed calculations when the final summation value is in the saturation region is 20 % in accordance with Fig. 20, it is possible to reduce the amount of calculations to be approximately 28 %. Consequently, in total, the amount of calculations can be reduced to approximately 14 %. Similarly, assuming that a possibility for the final summation value to be in the saturation region is 90 %, a possibility for the final summation value to be in the transient region to be 10 %, and the average number of accessed upper bits in the synapse weight when the final summation value is in the saturation region is 3.2 bits in accordance with Fig. 21, it is possible to reduce the number of memory accesses to be approximately 28 %. Thus, according to the first to sixth embodiments described above, it is possible to reduce the amount of calculations required for the synapse calculations and the summation as well as a number of memory accesses to the synapse weights, such that the processing speed of the synapse calculations can be increased while the power consumption required for the calculations can be reduced, and as a consequence, it becomes possible to realize a large scale neural network circuit with a high processing speed which can obtain the accurate final result regardless of values taken by the input values and the synapse weights. Referring now to Figs. 22 to 28, the seventh embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the first to sixth embodiments described above will be given the same reference numerals in the figure and their description will be omitted. In this seventh embodiment, each neuron circuit of the neural network circuit has a configuration as shown in Fig. 22, which differs from that of Fig. 10 for the third embodiment described above in that the one bit serial synapse calculation and summation circuit 10 of Fig. 10 is replaced by a synapse calculation and summation circuit 70. This synapse calculation and summation circuit 70 receives the synapse weight and the input value from the memory read out circuit 3 and the selector 9 as well as the clock signals from the clock generation circuit 11 under the control of the control circuit 7, and outputs the calculated summation result of the synapse calculations to the nonlinear unit 5 as well as the comparators 6-1 and 6-2. The synapse calculation and summation circuit 70 has a detailed configuration as shown in Fig. 23, which comprises a 2's complementary expression conversion circuit 71 receiving all bits of the input value, a shifter 72 receiving an output of the 2's complementary expression conversion circuit 71, an adder 73 receiving an output of the shifter 72 as its B terminal input, a register-A 74 and a register-B 75 for receiving an S terminal output of the adder 73, a switch 76 receiving outputs of the register-A (register for monotonously increasing summation value) 74 and the register-B (register for monotonously decreasing summation value) 75, a register-C (register for output summation value) 77 for receiving an output of the switch 76 and supplying its output to the nonlinear unit 5, an AND circuit 78 receiving the output of the switch 76 and supplying its output to the adder 73 as an A terminal input, and a controller 79 for supplying control signals S1 to S7 to the 2's complementary expression conversion circuit 71, the shifter 72, the register-A 74, the register-B 75, the switch 76, another input of the AND circuit 78, and the register-C 77, respectively. The controller 79 receives an i-th bit calculation signal indicating that the calculation using the i-th bit is currently executed from the control circuit 7, a bit value of the i-th bit from the least significant bit in the synapse weight from the memory read out circuirt 3, and a sign of the input value from the selector 9. In general, the complementary expression can be given by the 2's complementary expression, the 1's complementary expression, etc., but a case of using the 2's complementary expression will be described as an example here. Consequently, the 2's complementary expression in the following description may be replaced by the 1's complementary expression if desired. In this synapse calculation and summation circuit 70 of Fig. 23, partial products of all the bits of the input value and each one bit of the synapse weight are calculated, and then these partial products are added together to obtain the summation result, as indicated in Fig. 24, by means of the following processing. (1) In order to carry out the calculation from the upper bit of the synapse weight, all the bits of the input value to be used in the calculation are transferred to the 2's complementary expression conversion circuit 71 while a necessary bit of the synapse weight is transferred to the controller 79. (2) According to the i-th bit calculation signal, the bit value of the i-th bit, and the sign of the input value, the controller 79 determines whether or not to apply the 2's complementary expression conversion with respect to the input value, and accordingly controls the conversion operation of the 2's complementary expression conversion circuit 71 by the control signal S1. Here, it is to be noted that the i-th bit is counted by assigning i = 0 for the first bit. (3) According to the i-th bit calculation signal, the controller 79 determines how many bits of shifting is necessary, and accordingly controls the shifting operation of the shifter 72 by the control signal S2. (4) According to the i-th bit calculation signal, the bit value of the i-th bit, and the sign of the input value, the controller 79 determines which one of the value registered in the register-A 74 and the value registered in the register-B 75 is to be added with the output of the shifter 72, and accordingly controls the switch 76 by the control signal S5 to selectively output either one of the value registered in the register-A 74 and the value registered in the register-B 75. (5) The controller 29 also controls the AND circuit 78 according to whether or not the value selectively outputted from the switch 76 should be added with the output of the shifter 72. In a case of initially registering the output of the shifter 72 as it is into either one of the register-A 74 or the register-B 75, the control signal S6 is set to be "0" such that the AND circuit 78 outputs "0" for this purpose. (6) The adder 73 carries out the addition of the output of the shifter 72 and the output of the AND circuit 28. (7) According to the i-th bit calculation signal, the bit value of the i-th bit, and the sign of the input value, the controller 79 determines which one of the register-A 74 and the register-B 75 should the addition result be stored, and accordingly controls the storing of the addition result into one of the register-A 74 and the register-B 75 by using the control signals S3 and S4 as trigger. (8) The controller 29 also controls the register-C 77 by the control signal S7 according to whether or not the value outputted from the switch 76 should be outputted to the nonlinear unit 5. Now, the initial value setting scheme and the bit calculation scheme used in this synapse calculation and summation circuit 70 of Fig. 23 will be described. (1) Data of the input value and the synapse weight are all given to the synapse calculation and summation circuit 70 in the 2's complementary expressions. Here, a word length (bit length) of each value is set to be L, and a sequential bit number of an absolute value portion from the least significant bit is set to be i. (2) According to the input value and the sign bit of the synapse weight (which is the most significant bit in the 2's complementary expression), the initial values of the summation value for monotonously increasing calculations (second summation value) and the summation value for monotonously decreasing calculations (first summation value) are set up as follows. (a) When the input value and the synapse weight are both positive: The minimum value of the positive synapse weight expressed by an L digits 2's complementary expression is "0", and the maximum value of the positive synapse weight expressed by an L digits 2's complementary expression is "2 (L-1) -1". Therefore, the minimum value that can possibly be taken by the synapse calculation result is "0", and the maximum value that can possibly be taken by the synapse calculation result is "input value × {2 (L-1) -1}". For this reason, the initial value of the summation value for the monotonously increasing calculations is set to be the minimum value that can possibly be taken by the synapse calculation result while the initial value of the summation value for the monotonously decreasing calculations is set to be -(the maximum value that can possibly be taken by the synapse calculation result).Here, it is to be noted that the monotonously decreasing calculations is going to be converted into the monotonously increasing calculations by means of the 2's complementary expression, so that the initial value of the summation value for the monotonously decreasing calculations is going to have a minus sign in front of the maximum value.As an illustrative example, an exemplary case of using "5" as the input value and "6" as the synapse weight in which the input value and the synapse weight are expressed by 4 bits 2's complementary expressions will be described according to Fig. 25. In this case, the minimum value that can possibly be taken by the synapse weight is "0" while the maximum value that can possibly be taken by the synapse weight is "7", so that the minimum value that can possibly be taken by the synapse calculation result is going to be "0", and the maximum value that can possibly be taken by the synapse calculation result is going to be "35". Consequently, the initial value of the summation value for the monotonously increasing calculations is set to be "0" while the initial value of the summation value for the monotonously decreasing calculations is set to be "-35". (b) When the input value is negative but the synapse weight is positive: The minimum value of the positive synapse weight expressed by an L digits 2's complementary expression is "0", and the maximum value of the positive synapse weight expressed by an L digits 2's complementary expression is "2 (L-1) -1". Therefore, the minimum value that can possibly be taken by the synapse calculation result is "input value × {2 (L-1) -1}", and the maximum value that can possibly be taken by the synapse calculation result is "0". For this reason, the initial value of the summation value for the monotonously increasing calculations is set to be the minimum value that can possibly be taken by the synapse calculation result while the initial value of the summation value for the monotonously decreasing calculations is set to be -(the maximum value that can possibly be taken by the synapse calculation result).Here, again, the monotonously decreasing calculations is going to be converted into the monotonously increasing calculations by means of the 2's complementary expression, so that the initial value of the summation value for the monotonously decreasing calculations is going to have a minus sign in front of the maximum value.As an illustrative example, an exemplary case of using "-5" as the input value and "6" as the synapse weight in which the input value and the synapse weight are expressed by 4 bits 2's complementary expressions will be described according to Fig. 26. In this case, the minimum value that can possibly be taken by the synapse weight is "0" while the maximum value that can possibly be taken by the synapse weight is "7", so that the minimum value that can possibly be taken by the synapse calculation result is going to be "-35", and the maximum value that can possibly be taken by the synapse calculation result is going to be "0". Consequently, the initial value of the summation value for the monotonously increasing calculations is set to be "-35" while the initial value of the summation value for the monotonously decreasing calculations is set to be "0". (c) When the input value is positive but the synapse weight is negative: The minimum value of the negative synapse weight expressed by an L digits 2's complementary expression is "-(2 (L-1) )", and the maximum value of the negative synapse weight expressed by an L digits 2's complementary expression is "-1". Therefore, the minimum value that can possibly be taken by the synapse calculation result is "input value × {-(2 (L-1) )}", and the maximum value that can possibly be taken by the synapse calculation result is "-(input value)". For this reason, the initial value of the summation value for the monotonously increasing calculations is set to be the minimum value that can possibly be taken by the synapse calculation result while the initial value of the summation value for the monotonously decreasing calculations is set to be -(the maximum value that can possibly be taken by the synapse calculation result).Here, again, the monotonously decreasing calculations is going to be converted into the monotonously increasing calculations by means of the 2's complementary expression, so that the initial value of the summation value for the monotonously decreasing calculations is going to have a minus sign in front of the maximum value.As an illustrative example, an exemplary case of using "5" as the input value and "-6" as the synapse weight in which the input value and the synapse weight are expressed by 4 bits 2's complementary expressions will be described according to Fig. 27. In this case, the minimum value that can possibly be taken by the synapse weight is "-8" while the maximum value that can possibly be taken by the synapse weight is "-1", so that the minimum value that can possibly be taken by the synapse calculation result is going to be "-40", and the maximum value that can possibly be taken by the synapse calculation result is going to be "-5". Consequently, the initial value of the summation value for the monotonously increasing calculations is set to be "-40" while the initial value of the summation value for the monotonously decreasing calculations is set to be "5". (d) When the input value and the synapse weight are both negative: The minimum value of the negative synapse weight expressed by an L digits 2's complementary expression is "-(2 (L-1) )", and the maximum value of the negative synapse weight expressed by an L digits 2's complementary expression is "-1". Therefore, the minimum value that can possibly be taken by the synapse calculation result is "-(input value)", and the maximum value that can possibly be taken by the synapse calculation result is "input value × {-(2 (L-1) )}". For this reason, the initial value of the summation value for the monotonously increasing calculations is set to be the minimum value that can possibly be taken by the synapse calculation result while the initial value of the summation value for the monotonously decreasing calculations is set to be -(the maximum value that can possibly be taken by the synapse calculation result).Here, again, the monotonously decreasing calculations is going to be converted into the monotonously increasing calculations by means of the 2's complementary expression, so that the initial value of the summation value for the monotonously decreasing calculations is going to have a minus sign in front of the maximum value.As an illustrative example, an exemplary case of using "-5" as the input value and "-6" as the synapse weight in which the input value and the synapse weight are expressed by 4 bits 2's complementary expressions will be described according to Fig. 28. In this case, the minimum value that can possibly be taken by the synapse weight is "-8" while the maximum value that can possibly be taken by the synapse weight is "-1", so that the minimum value that can possibly be taken by the synapse calculation result is going to be "5", and the maximum value that can possibly be taken by the synapse calculation result is going to be "40". Consequently, the initial value of the summation value for the monotonously increasing calculations is set to be "5" while the initial value of the summation value for the monotonously decreasing calculations is set to be "-40". (3) According to the input value and the bit value of the i-th bit from the least significant bit in the synapse weight, the following bit calculation is carried out, as indicated in Figs. 25 to 28. (a) When the input value is positive and the bit value of the i-th bit of the synapse weight is "1": A value "input value × 2 i " is added to the summation value for the monotonously increasing calculations. (b) When the input value is positive and the bit value of the i-th bit of the synapse weight is "0": A value "input value × 2 i " is added to the summation value for the monotonously decreasing calculations. (c) When the input value is negative and the bit value of the i-th bit of the synapse weight is "1": A value "2's complementary expression of input value × 2 i " is added to the summation value for the monotonously decreasing calculations. (d) When the input value is negative and the bit value of the i-th bit of the synapse weight is "0": A value "2's complementary expression of input value × 2 i " is added to the summation value for the monotonously increasing calculations. By means of this processing, just as indicated in Figs. 14 and 15 described above, the summation value for the monotonously increasing calculations (second summation value) and the summation value for the monotonously decreasing calculations (first summation value) gradually converge from the initial values to the final values as the calculation progresses. Here, the summation value for the monotonously increasing calculations can make a judgement as to whether it has reached the saturation region A by converging to the final value while monotonously increasing as in Fig. 14, while the summation value for the monotonously decreasing calculations can make a judgement as to whether it has reached the saturation region B by converging to the final value while monotonously decreasing as in Fig. 15. Whenever the summation value has reached to the saturation region A or B, the subsequent calculations are omitted. It is to be noted that it is possible to modify the above described seventh embodiment to use the initial value setting and the bit calculation in a reversed polarity in which the initial value of the summation value for the monotonously increasing calculations is set to be -(the minimum value that can possibly be taken by the synapse calculation result) while the initial value of the summation value for the monotonously decreasing calculations is set to be the maximum value that can possibly be taken by the synapse calculation result, and the bit calculation is carried out such that a value "2's complementary expression of input value × 2 i " is added to the summation value for the monotonously increasing calculations when the input value is positive and the bit value of the i-th bit of the synapse weight is "1", a value "2's complementary expression of input value × 2 i " is added to the summation value for the monotonously decreasing calculations when the input value is positive and the bit value of the i-th bit of the synapse weight is "0", a value "input value × 2 i " is added to the summation value for the monotonously decreasing calculations when the input value is negative and the bit value of the i-th bit of the synapse weight is "1", and a value "input value × 2 i " is added to the summation value for the monotonously increasing calculations when the input value is negative and the bit value of the i-th bit of the synapse weight is "0". Referring now to Figs. 29 to 30C, the eighth embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the seventh embodiment described above will be given the same reference numerals in the figure and their description will be omitted. In this eighth embodiment, the detailed configuration of the synapse calculation and summation circuit in the seventh embodiment described above is modified such that a judgement as to whether or not the summation value has reached to the saturation region can be made easier. Namely, in this eighth embodiment, the synapse calculation and summation circuit has a detailed configuration as shown in Fig. 29, which differs from that of Fig. 23 in that an additional AND circuit 80 for carrying out the offset processing which receives the most significant bits of the values registered in the register-A 74 and the register-B 75 and outputs the calculation stop signal is provided, and the offset setting as described below is also supplied to the controller 79 from the control circuit 7. Now, in order to judge the location of the summation value among the saturation region A, the transient region, and the saturation region B, it suffices to compare the current summation value with the first and second saturation region boundary values, where the first saturation region boundary value indicates the boundary value between the saturation region B and the transient region while the second saturation region boundary value indicates the boundary value between the transient region and the saturation region A. However, in order to carry out this judgement procedure, it is necessary to provide two comparators for determining the size relationships between the summation value and the first saturation region boundary value and between the summation value and the second saturation region boundary value as in the previous embodiments. In this eighth embodiment, the following processing is carried out in order to omit these comparators. (1) With respect to the transfer characteristic of the nonlinear unit as shown in Fig. 30A, the second saturation region boundary value SH is subtracted in advance as an offset from the initial value of the summation value for the monotonously increasing calculations which judges the saturation region A as indicated in Fig. 30B, and the first saturation region boundary value SL is added in advance as an offset to the initial value of the summation value for the monotonously decreasing calculations which judges the saturation region B as indicated in Fig. 30C. (2) With these offset values included, the final summation values would not be the correct values, so that before the nonlinear processing, these offset values are removed from the final summation values. By means of this processing, it becomes possible to judge that it is the saturation region A whenever the summation value for the monotonously increasing calculations changes its sign from negative to positive, it is the saturation region B whenever the summation value for the monotonously decreasing calculations changes its sign from negative to positive (as the monotonously decreasing calculations are actually carried out by reversing the sign), and it is the transient region as long as both of the summation value for the monotonously increasing calculations and the summation value for the monotonously decreasing calculations remain negative. Thus, by means of this, it becomes possible to judge the timing for stopping the calculations more easily. Namely, whenever either one of these summation values changes its sign to positive (i.e., the most significant bit becomes "0"), the subsequent calculations are omitted as the final result of the summation becomes apparent at that point, so as to realize the reduction of the amount of calculations and the memory accesses to the synapse weight memory circuit. Also, in the above described processing, if the signs of the initial values of the summation values for the monotonously increasing and decreasing calculations, the offset values, and the value to be added at a time of the bit calculation are reversed, it is possible to realize an alternative scheme in which, whenever either one of these summation values changes its sign to negative (i.e., the most significant bit becomes "1"), the subsequent calculations are omitted as the final result of the summation becomes apparent at that point, so as to realize the reduction of the amount of calculations and the memory accesses to the synapse weight memory circuit. Referring now to Figs. 31 and 32, the ninth embodiment of a neural network circuit and a processing scheme using the neural network circuit according to the present invention will be described in detail. Here, those elements which are substantially similar to the corresponding elements in the seventh embodiment described above will be given the same reference numerals in the figure and their description will be omitted. In this ninth embodiment, a neural network system is formed by a plurality of neural network circuits 100-1 to 100-N, where each neural network circuit has a configuration of a neuron circuit similar to that shown in Fig. 22 of the seventh embodiment described above, except that the selector 9 in Fig. 22 is omitted. Here, each neuron circuit configuration of each neural network circuit 100 carries out calculations for a plurality of neurons by itself. In addition, there is provided a common input value register 101 for supplying the identical input values to all the neural network circuits 100-1 to 100-N. In this case, the input values are supplied from the common input value register 101 to the neural network circuits 100-1 to 100-N as follows. Namely, when there are M input values, each input value is transferred to all the neural network circuits 100-1 to 100-N, one by one from the first input value until the M-th input value. When the transfer of the M-th input value is finished, the transfer of these input values are repeated in the similar manner, until all the neural network circuits 100-1 to 100-N finish the calculations. Here, at a time of transferring each input value, all the bits of each input value are transferred together to each neural network circuit 100. At each neural network circuit 100, the synapse calculation using all the bits of the transferred input value and one bit of a corresponding synapse weight is sequentially carried out from the upper bits of the synapse weight, and whenever the summation value reaches to the saturation region, the subsequent calculations are omitted, just as in the seventh embodiment described above. In this manner, in this ninth embodiment, it is possible for each neural network circuit 100 to carry out and stop the calculations, independently from the other neural network circuits 100, in a simple circuit configuration. More specifically, the calculations at the neural network circuits 100-1 to 100-N can progress as shown in Fig. 32 for an exemplary case in which the number of input values M is 3, and each neural network circuit 100 carries out calculations for four neurons. As indicated in Fig. 32, the input-1, input-2, and input-3 are sequentially and repeatedly transferred to each neural network circuit 100. At each neural network circuit 100, the synapse calculation using all the bits of the transferred input value and one bit of a corresponding synapse weight is sequentially carried out from the upper bits of the synapse weight, sequentially for each one of the four neurons. Whenever the summation value for one neuron reaches to the saturation region in each neural network circuit 100, the calculations for that neuron is finished by omitting the subsequent calculations and the calculations for a next neuron is started in each neural network circuit 100 independently, so that the calculations at each neural network circuit 100 progresses independently from the progresses of calculations in the other neural network circuits 100. Thus, according to this ninth embodiment, the neural network system with the following advantageous features can be realized. (1) It suffices to provide a single common input value register 101 for all the neural network circuits 100-1 to 100-N, so that the neural network system can be realized in a compact circuit scale. (2) Moreover, it suffices to supply the identical input value from the common input value register 101 to all the neural network circuits 100-1 to 100-N, so that the control in the neural network system can be very simple. (3) Furthermore, the calculation at each neural network circuit 100 is independently controllable as described above. Now, with references to Figs. 33 and 34, the simulation result indicating the effects of the omission of calculations and the reduction of the memory accesses to the synapse weight memory circuit according to the seventh to ninth embodiments of the present invention will be described. Fig. 33 shows a relationship between the final summation value and the rate of executed calculations (i.e., a ratio of a number of calculations required in the system of the present invention with respect to a number of calculations required in the system of the prior art) for calculations at one neuron with respect to all the synapse connections in an exemplary case of using 17 inputs where each of the synapse weight and the input value comprises 16 bits of 2's complementary expressions, the second saturation region boundary value = 0.5, and the first saturation region boundary value = -0.5. It can be seen from this Fig. 33 that there is no effect of the omission of calculations in the transient region as the rigorous summation values are required, but when the final summation values are in the saturation regions, the effect of the omission of calculations becomes noticeable for the final summation values which are more distanced from the saturation region boundary values. On the other hand, Fig. 34 shows a relationship between the final summation value and the number of accessed upper bits in the synapse weight for the same exemplary case. It can be seen from this Fig. 34 that the effect of the reduction of memory accesses to the synapse weight memory circuit also becomes noticeable for the final summation value which are more distanced from the saturation region boundary values. More specifically, these effects can be estimated quantitatively as follows. Namely, assuming that a possibility for the final summation value to be in the saturation region is 90 %, a possibility for the final summation value to be in the transient region to be 10 %, and the average rate of executed calculations when the final summation value is in the saturation region is 20 % in accordance with Fig. 33, it is possible to reduce the amount of calculations to be approximately 28 %. Similarly, assuming that a possibility for the final summation value to be in the saturation region is 90 %, a possibility for the final summation value to be in the transient region to be 10 %, and the average number of accessed upper bits in the synapse weight when the final summation value is in the saturation region is 4 bits in accordance with Fig. 34, it is possible to reduce the number of memory accesses to be approximately 31 %. Thus, according to the seventh to ninth embodiments described above, it is also possible to reduce the amount of calculations required for the synapse calculations and the summation as well as a number of memory accesses to the synapse weights, such that the processing speed of the synapse calculations can be increased while the power consumption required for the calculations can be reduced, and as a consequence, it becomes possible to realize a large scale neural network circuit with a high processing speed which can obtain the accurate final result regardless of values taken by the input values and the synapse weights. It is to be noted here that, besides those already mentioned above, many modifications and variations of the above embodiments may be made without departing from the novel and advantageous features of the present invention. Accordingly, all such modifications and variations are intended to be included within the scope of the appended claims.

Claims: A neural network circuit receiving a plurality of input values which can be positive or negative and outputting one output value, comprising: calculation means (1-1, 1-i, 1-n, 4) for carrying out a synapse calculation for each input value and the corresponding synapse weight of each input value which are expressed by binary bit sequences, by using a sequentially specified bit of the corresponding synapse weight, where said synapse weight can have a positive or a negative value, and a summation calculation for sequentially summing synapse calculation results for the input values to obtain a monotonously increasing or decreasing summation value which can be positive or negative; synapse weight memory circuit (2) for storing a plurality of synapse weights; memory read out circuit (3) for selectively reading out a specified bit of a specified synapse weight from the synapse weight memory circuit to the calculation means; a nonlinear unit (5) for applying a prescribed nonlinear transfer function to the summation value obtained by the calculation means so as to determine the output value; judging means (6-1, 6-2) for judging whether the summation value obtained by the calculation means reaches either one of positive and negative saturation regions of the transfer characteristic of the nonlinear unit; and control means (7) for controlling the memory read out circuit and the calculation means to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever the judging means judges that the summation value obtained by the calculation means reaches said either one of the positive and negative saturation regions. The neural network circuit of claim 1, wherein the calculation means (1, 4) sequentially carries out the synapse calculation by using all bits of each input value and each one bit of the corresponding synapse weight sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit, and adding each partial synapse calculation result for said each one bit with previous partial synapse calculation results for upper bits of said each one bit. The neural network circuit of claim 2, wherein the calculation means includes: a shifter (72) for shifting all bits of each input value; register means for registering a current summation value; an adder (73) for adding an output of the shifter and the current summation value registered in the register means, and updating the current summation value in the register means by an addition result; and a controller (79) for controlling the shifter and the adder such that said adder carries out an addition of each partial synapse calculation result for all bits of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation. The neural network circuit of claim 3, wherein: the calculation means further includes complementary expression conversion means (71) for converting all bits of a specified input value into a complementary expression expressing the specified input value with a reversed sign such that the shifter (72) shifts all bits of the complementary expression for the specified input value; the register means includes a first register (74) for registering a first summation value for monotonously decreasing calculations and a second register (75) for registering a second summation value for monotonously increasing calculations such that the adder (73) adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be a maximum value that can possibly be taken by the synapse calculation result with a reversed sign, while the second register has an initial value of the second summation value set to be a minimum value that can possibly be taken by the synapse calculation result; and the calculation means carries out the synapse calculation for all bits of each input value and an i-th bit from a least significant bit of the corresponding synapse weight by adding "each input value × 2 i " when said each input value is positive, to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "0", and adding "each input value with a reversed sign × 2 i " when said each input value is negative, to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "0". The neural network circuit of claim 3, wherein the register means includes a first register (74) for registering a first summation value for monotonously decreasing calculations and a second register (75) for registering a second summation value for monotonously increasing calculations such that the adder (73) adds the output of the shifter (72) and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register (74) has an initial value of the first summation value set to be [(a maximum value that can possibly be taken by the synapse calculation result with a reversed sign) + (a lower boundary value of a transient region of the transfer characteristic)], while the second register (75) has an initial value of the second summation value set to be [(a minimum value that can possibly be taken by the synapse calculation result) - (an upper boundary value of the transient region)]; and the judging means judges that the summation value obtained by the calculation means reached to the saturation region when one of most significant bits of the first and second summation values changed from "1" to "0". The neural network circuit of claim 3, wherein: the calculation means further includes complementary expression conversion means (71) for converting all bits of a specified input value into a complementary expression expressing the specified input value with a reversed sign such that the shifter (72) shifts all bits of the complementary expression for the specified input value; the register means includes a first register (74) for registering a first summation value for monotonously decreasing calculations and a second register (75) for registering a second summation value for monotonously increasing calculations such that the adder (73) adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be a maximum value that can possibly be taken by the synapse calculation result, while the second register has an initial value of the second summation value set to be a minimum value that can possibly be taken by the synapse calculation result with a reversed sign; and the calculation means carries out the synapse calculation for all bits of each input value and an i-th bit from a least significant bit of the corresponding synapse weight by adding "each input value with a reversed sign × 2 i " when said each input value is positive, to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "0", and adding "each input value × 2 i " when said each input value is negative, to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "0". The neural network circuit of claim 3, wherein the register means includes a first register (74) for registering a first summation value for monotonously decreasing calculations and a second register (75) for registering a second summation value for monotonously increasing calculations such that the adder (73) adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be [(a maximum value that can possibly be taken by the synapse calculation result) - (a lower boundary value of a transient region of the transfer characteristic)], while the second register has an initial value of the second summation value set to be [(a minimum value that can possibly be taken by the synapse calculation result with a reversed sign) + (an upper boundary value of the transient region)]; and the judging means judges that the summation value obtained by the calculation means reached to the saturation region when one of most significant bits of the first and second summation values changed from "0" to "1". The neural network circuit of claim 1, wherein the calculation means has an initial value of the summation value for which the summation value monotonously increases or decreases as the sequentially carried out synapse calculations progress. The neural network circuit of claim 8, wherein the calculation means has the initial value of the summation value set to be a maximum value that can possibly be taken by the synapse calculation result with a reversed sign for monotonously decreasing calculations, or the initial value of the summation value set to be a minimum value that can possibly be taken by the synapse calculation result for monotonously increasing calculations. The neural network circuit of claim 1, wherein the calculation means sequentially carries out the synapse calculation by using each one bit of each input value and each one bit of the corresponding synapse weight which are sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight, and adding each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight with previous partial synapse calculation results for upper bits of said each one bit of each input value and said each one bit of the corresponding synapse weight. The neural network circuit of claim 10, wherein the calculation means includes: a one bit multiplicator (34) for calculating a product of said each one bit of each input value and said each one bit of the corresponding synapse weight; register means for registering a current summation value; a one bit adder (31) for adding an output of the one bit multiplicator and a specified bit of the current summation value registered in the register means and updating the specified bit of the current summation value in the register means by an addition result; and a controller (33) for controlling the one bit multiplicator and the one bit adder such that said one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation. The neural network circuit of claim 11, wherein the controller also controls the one bit multiplicator and the one bit adder such that operations at the one bit multiplicator and the one bit adder are omitted for a bit of each input value having a bit value "0". The neural network circuit of claim 11, wherein: the register means has an initial value of a monotonously decreasing summation value set to be [(a total value of partial products of all bits of an aabsolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1") + (a lower boundary value of a transient region of the transfer characteristic)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or ["0" + (the lower boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative, and an initial value of a monotonously increasing summation value set to be ["0" - (an upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or [(a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit) - (the upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative; and the judging means judges that the summation value obtained by the calculation means reached to the saturation region when there arises a need for a carrying a figure from one of most significant bits of the first and second summation values. The neural network circuit of claim 10, wherein the calculation means includes: a one bit multiplicator (34) for calculating a product of each input value and the corresponding synapse weight bit by bit; register means including a first register (36) for registering a first summation value for monotonously decreasing calculations and a second register(37) for registering a second summation value for monotonously increasing calculations, where the first register has an initial value of the first summation value set to be a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1" when the synapse calculation result of each input value and the corresponding synapse weight is positive, or "0" when the synapse calculation result of each input value and the corresponding synapse weight is negative, while the second register has an initial value of the second summation value set to be "0" when the synapse calculation result of each input value and the corresponding synapse weight is positive, or a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit when the synapse calculation result of each input value and the corresponding synapse weight is negative; a one bit adder (31) for adding "1" and a specified bit of one of the first and second summation values registered in the register means and updating the specified bit of said one of the first and second summation values in the register means by an addition result according to the product obtained by the one bit multiplicator such that the one bit adder operates on the first summation value when the product has a positive sign and the specified bit of the product has a bit value "0" or when the product has a negative sign and the specified bit of the product has a bit value "1" whereas the one bit adder operates on the second summation value when the product has a positive sign and the specified bit of the product has a bit value "1" or when the product has a negative sign and the specified bit of the product has a bit value "0"; and a controller (33) for controlling the one bit adder such that said one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation for the first and second summation values; and wherein the judging means judges whether each of the first and second summation values obtained by the calculation means reached to the saturation region. The neural network circuit of claim 14, wherein the controller also controls the one bit multiplicator and the one bit adder such that operations at the one bit multiplicator and the one bit adder are omitted for a bit of each input value having a bit value "0". The neural network circuit of claim 10, wherein the calculation means includes: a one bit multiplicator (34) for calculating a product of each input value and the corresponding synapse weight bit by bit; register means including a first register (36) for - registering a first summation value for monotonously decreasing calculations and a second register (37) for registering a second summation value for monotonously increasing calculations, where the first register has an initial value of the first summation value set to be [(a total value of partial products of all bits of an aabsolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1") + (a lower boundary value of a transient region of the transfer characteristic)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or ["0" + (the lower boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative, while the second register has an initial value of the second summation value set to be ["0" - (an upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or [(a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit) - (the upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative; a one bit adder (31) for adding "1" and a specified bit of one of the first and second summation values registered in the register means and updating the specified bit of said one of the first and second summation values in the register means by an addition result according to the product obtained by the one bit multiplicator such that the one bit adder operates on the first summation value when the product has a positive sign and the specified bit of the product has a bit value "0" or when the product has a negative sign and the specified bit of the product has a bit value "1" whereas the one bit adder operates on the second summation value when the product has a positive sign and the specified bit of the product has a bit value "1" or when the product has a negative sign and the specified bit of the product has a bit value "0"; and a controller (33) for controlling the one bit adder such that said one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation for the first and second summation values; and wherein the judging means judges that each of the first and second summation values obtained by the calculation means reached to the saturation region when there arises a need for a carrying a figure from one of most significant bits of the first and second summation values. A neural network system, comprising: a plurality of neural network circuits (100-1, 100-2, 100-3, 100-N) which are independently operating with respect to each other, each neural network circuit receives a plurality of input values which can be positive or negative and outputs one output value, each circuit including: calculation means (70) for carrying out a synapse calculation for each input value and the corresponding synapse weight of each input value which are expressed by binary bit sequences, by using all bits of each input value and each one bit of the corresponding synapse weight sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit and adding each partial synapse calculation result for said each one bit with previous partial synapse calculation results for upper bits of said each one bit, where said synapse weights can have a positive or a negative value and a summation calculation for sequentially summing synapse calculation results for the input values to obtain a monotonously increasing or decreasing summation value which can be positive or negative; synapse weight memory circuit (2) for storing a plurality of synapse weights; memory read out circuit (3) for selectively reading out a specified bit of a specified synapse weight from the synapse weight memory circuit to the calculation means; a nonlinear unit (5) for applying a prescribed nonlinear transfer function to the summation value obtained by the calculation means so as to determine the output value; judging means (6-1, 6-2) for judging whether the summation value obtained by the calculation means reaches either one of positive and negative saturation regions of the transfer characteristic of the nonlinear unit; and control means (7) for controlling the memory read out circuit and the calculation means to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever the judging means judges that the summation value obtained by the calculation means reaches said either one of the positive and negative saturation regions; and a common input value register (101) for sequentially supplying said plurality of input values to each neural network circuit such that an identical one of said plurality of input values is supplied to all of said, plurality of neural network circuits simultaneously. A processing method using a neural network circuit receiving a plurality of input values which can be positive or negative and outputting one output value, comprising the steps of: (a) carrying out a synapse calculation for each input value and the corresponding synapse weight of each input value which are expressed by binary bit sequences, by using a sequentially specified bit of the corresponding synapse weight, where said synapse weight can have a positive or a negative value, and a summation calculation for sequentially summing synapse calculation results for the input values to obtain a monotonously increasing or decreasing summation value which can be positive or negative; (b) applying a prescribed nonlinear transfer function to the summation value obtained at the step (a) so as to determine the output value; (c) judging whether the summation value obtained at the step (a) reaches either one of positive and negative saturation regions of the transfer function applied at the step (b); and (d) controlling the step (a) to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever the step (c) judges that the summation value obtained at the step (a) reaches said either one of the positive and negative saturation regions. The processing method of claim 18, wherein the step (a) sequentially carries out the synapse calculation by using all bits of each input value and each one bit of the corresponding synapse weight sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit, and adding each partial synapse calculation result for said each one bit with previous partial synapse calculation results for upper bits of said each one bit. The processing method of claim 19, wherein the step (a) includes the steps of: (a1) shifting all bits of each input value by a shifter; (a2) registering a current summation value in register means; (a3) adding an output of the shifter and the current summation value registered in the register means by an adder, and updating the current summation value in the register means by an addition result; and (a4) controlling the shifter and the adder such that said adder carries out an addition of each partial synapse calculation result for all bits of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation. The processing method of claim 20, wherein: the step (a) further includes the step of converting all bits of a specified input value into a complementary expression expressing the specified input value with a reversed sign such that the shifter shifts all bits of the complementary expression for the specified input value; the register means includes a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations such that the adder adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be a maximum value that can possibly be taken by the synapse calculation result with a reversed sign, while the second register has an initial value of the second summation value set to be a minimum value that can possibly be taken by the synapse calculation result; and the step (a) carries out the synapse calculation for all bits of each input value and an i-th bit from a least significant bit of the corresponding synapse weight by adding "each input value × 2 i " when said each input value is positive, to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "0", and adding "each input value with a reversed sign × 2 i " when said each input value is negative, to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "0". The processing method of claim 20, wherein the register means includes a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations such that the adder adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be [(a maximum value that can possibly be taken by the synapse calculation result with a reversed sign) + (a lower boundary value of a transient region of the transfer characteristic)], while the second register has an initial value of the second summation value set to be [(a minimum value that can possibly be taken by the synapse calculation result) - (an upper boundary value of the transient region)]; and the step (c) judges that the summation value obtained at the step (a) reached to the saturation region when one of most significant bits of the first and second summation values changed from "1" to "0". The processing method of claim 20, wherein: the step (a) further includes the step of converting all bits of a specified input value into a complementary expression expressing the specified input value with a reversed sign such that the shifter shifts all bits of the complementary expression for the specified input value; the register means includes a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations such that the adder adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be a maximum value that can possibly be taken by the synapse calculation result, while the second register has an initial value of the second summation value set to be a minimum value that can possibly be taken by the synapse calculation result with a reversed sign; and the step (a) carries out the synapse calculation for all bits of each input value and an i-th bit from a least significant bit of the corresponding synapse weight by adding "each input value with a reversed sign × 2 i " when said each input value is positive, to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "0", and adding "each input value × 2 i " when said each input value is negative, to the first summation value when the i-th bit of the corresponding synapse weight has a bit value "1", or to the second summation value when the i-th bit of the corresponding synapse weight has a bit value "0". The processing method of claim 20, wherein the register means includes a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations such that the adder adds the output of the shifter and one of the first and second summation values registered in the first and second registers and updates said one of the first and second summation values in the first and second registers by the addition result; the first register has an initial value of the first summation value set to be [(a maximum value that can possibly be taken by the synapse calculation result) - (a lower boundary value of a transient region of the transfer characteristic)], while the second register has an initial value of the second summation value set to be [(a minimum value that can possibly be taken by the synapse calculation result with a reversed sign) + (an upper boundary value of the transient region)]; and the step (c) judges that the summation value obtained at the step (a) reached to the saturation region when one of most significant bits of the first and second summation values changed from "0" to "1". The processing method of claim 18, wherein the step (a) uses an initial value of the summation value for which the summation value monotonously increases or decreases as the sequentially carried out synapse calculations progress. The processing method of claim 25, wherein the step (a) uses the initial value of the summation value set to be a maximum value that can possibly be taken by the synapse calculation result with a reversed sign for monotonously decreasing calculations, or the initial value of the summation value set to be a minimum value that can possibly be taken by the synapse calculation result for monotonously increasing calculations. The processing method of claim 18, wherein the step (a) sequentially carries out the synapse calculation by using each one bit of each input value and each one bit of the corresponding synapse weight which are sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight, and adding each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight with previous partial synapse calculation results for upper bits of said each one bit of each input value and said each one bit of the corresponding synapse weight. The processing method of claim 27, wherein the step (a) includes the steps of: (a11) calculating a product of said each one bit of each input value and said each one bit of the corresponding synapse weight by a one bit multiplicator; (a12) registering a current summation value in register means; (a13) adding an output of the one bit multiplicator and a specified bit of the current summation value registered in the register means by a one bit adder, and updating the specified bit of the current summation value in the register means by an addition result; and (a14) controlling the one bit multiplicator and the one bit adder such that said one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation. The processing method of claim 28, wherein the step (a14) also controls the one bit multiplicator and the one bit adder such that operations at the one bit multiplicator and the one bit adder are omitted for a bit of each input value having a bit value "0". The processing method of claim 28, wherein: the register means has an initial value of a monotonously decreasing summation value set to be [(a total value of partial products of all bits of an aabsolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1") + (a lower boundary value of a transient region of the transfer characteristic)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or ["0" + (the lower boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative, and an initial value of a monotonously increasing summation value set to be ["0" - (an upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or [(a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit) - (the upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative; and the step (c) judges that the summation value obtained at the step (a) reached to the saturation region when there arises a need for a carrying a figure from one of most significant bits of the first and second summation values. The processing method of claim 27, wherein the step (a) includes the steps of: (a21) calculating a product of each input value and the corresponding synapse weight by a one bit multiplicator bit by bit; (a22) providing register means including a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations, where the first register has an initial value of the first summation value set to be a total value of partial products of all bits of an aabsolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1" when the synapse calculation result of each input value and the corresponding synapse weight is positive, or "0" when the synapse calculation result of each input value and the corresponding synapse weight is negative, while the second register has an initial value of the second summation value set to be "0" when the synapse calculation result of each input value and the corresponding synapse weight is positive, or a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit when the synapse calculation result of each input value and the corresponding synapse weight is negative; (a23) adding "1" and a specified bit of one of the first and second summation values registered in the register means by a one bit adder and updating the specified bit of said one of the first and second summation values in the register means by an addition result according to the product obtained by the one bit multiplicator such that the one bit adder operates on the first summation value when the product has a positive sign and the specified bit of the product has a bit value "0" or when the product has a negative sign and the specified bit of the product has a bit value "1" whereas the one bit adder operates on the second summation value when the product has a positive sign and the specified bit of the product has a bit value "1" or when the product has a negative sign and the specified bit of the product has a bit value "0"; and (a24) controlling the one bit adder such that the one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation for the first and second summation values; and wherein the step (c) judges whether each of the first and second summation values obtained by the calculation means reached to the saturation region. The processing method of claim 31, wherein the step (a24) also controls the one bit multiplicator and the one bit adder such that operations at the one bit multiplicator and the one bit adder are omitted for a bit of each input value having a bit value "0". The processing method of claim 27, wherein the step (a) includes the steps of: (a31) calculating a product of each input value and the corresponding synapse weight by a one bit multiplicator bit by bit; (a32) providing register means including a first register for registering a first summation value for monotonously decreasing calculations and a second register for registering a second summation value for monotonously increasing calculations, where the first register has an initial value of the first summation value set to be [(a total value of partial products of all bits of an aabsolute value portion of the corresponding synapse weight and each bit of each input value in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "1") + (a lower boundary value of a transient region of the transfer characteristic)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or ["0" + (the lower boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative, while the second register has an initial value of the second summation value set to be ["0" - (an upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is positive, or [(a total value of partial products of all bits of an absolute value portion of the corresponding synapse weight and each bit of each input value converted into 1's complementary expressions in which those partial products corresponding to bit values "1" in each input value are set to be entirely composed of "0" except for the most significant bit) - (the upper boundary value of the transient region)] when the synapse calculation result of each input value and the corresponding synapse weight is negative; (a33) adding "1" and a specified bit of one of the first and second summation values registered in the register means by a one bit adder and updating the specified bit of said one of the first and second summation values in the register means by an addition result according to the product obtained by the one bit multiplicator such that the one bit adder operates on the first summation value when the product has a positive sign and the specified bit of the product has a bit value "0" or when the product has a negative sign and the specified bit of the product has a bit value "1" whereas the one bit adder operates on the second summation value when the product has a positive sign and the specified bit of the product has a bit value "1" or when the product has a negative sign and the specified bit of the product has a bit value "0"; and (a34) controlling the one bit adder such that the one bit adder carries out an addition of each partial synapse calculation result for said each one bit of each input value and said each one bit of the corresponding synapse weight required in the synapse calculation as well as an addition for sequentially summing synapse calculation results required in the summation calculation for the first and second summation values; and wherein the step (c) judges that each of the first and second summation values obtained at the step (a) reached to the saturation region when there arises a need for a carrying a figure from one of most significant bits of the first and second summation values. A processing method using a neural network system, comprising the steps of: (a) independently operating a plurality of neural network circuits with respect to each other, by operating each neural network circuit which receives a plurality of input values which can be positive or negative and outputs one output value by the steps of: (a1) carrying out a synapse calculation for each input value and the corresponding synapse weight of each input value which are expressed by binary bit sequences, by using all bits of each input value and each one bit of the corresponding synapse weight sequentially specified from upper bits to obtain a partial synapse calculation result for said each one bit and adding each partial synapse calculation result for said each one bit with previous partial synapse calculation results for upper bits of said each one bit, where said synapse weights can have a positive or a negative value, and a summation calculation for sequentially summing synapse calculation results for the input values to obtain a monotonously increasing or decreasing summation value which can be positive or negative; (a2) applying a prescribed nonlinear transfer function to the summation value obtained at the step (a1) so as to determine the output value; (a3) judging whether the summation value obtained at the step (a1) reaches either one of positive and negative saturation regions of the transfer function applied at the step (a2) ; and (a4) controlling the step (a1) to sequentially carry out the synapse calculation from upper bits of the corresponding synapse weight, and to stop the synapse calculation and the summation calculation whenever the step (a3) judges that the summation value obtained at the step (a1) reaches said either one of the positive and negative saturation regions; and (b) sequentially supplying said plurality of input values to each neural network circuit such that an identical one of said plurality of input values is supplied to all of said plurality of neural network circuits simultaneously.

Inventors: AIHARA KIMIHISA, UCHIMURA KUNIHARU, AIHARA, KIMIHISA, UCHIMURA, KUNIHARU
Applicants: NIPPON TELEGRAPH & TELEPHONE, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
Application year: 1995
Main classification: G06F15
IPC codes: G06N3