Programmable neural logic device

Abstract: A programmable logic cell, compatible with LSSD (Level Sensitive Scan Design) technique, is described whose internal logic can be initially loaded from an EPROM or external processor. The output (234) or contents of one cell can be connected to another cell to alter the logic operation of the second cell even whilst this second cell is in operation. The cells can be connected together to form a neural network.

Description: Field of the Invention The invention relates to a programmable logic device whose logic can be set at the beginning of its operation and which can be changed during operation. A number of these devices are connected together such that the output of one device can alter the internal logic of another. State of the Art Programmable logic or gate arrays have been known for some time. These arrays allow the designer to use a small number of standard components rather than relying on customised designs when designing a logic circuit. Such arrays are produced, for example, by XILINX. In this company's CMOS-based XC3000 Logic Cell (TM) Array Family, the functions of the array are established by a configuration program which is loaded into an internal, distributed array of configuration memory cells. This configuration program is loaded into the array at power-up and may be reloaded on command. The program data resides external to the logic cell in an EEPROM, EPROM or ROM on the application circuit board or on a floppy disc or hard disc. The logic within the cells can be changed whenever required, however, this involves stopping the current operation of the circuit whilst the alterations are carried out. Attention recently has been focused on neural or neuronal logic devices. These operate by weighting the values of the inputs into the logic device and producing an output which is a function of all the inputs. An example of this is shown by the device in Fig. 1 whose output is either 1 or 0 but whose inputs take various values. For example input 1 (i1) has a weighting value of 0.8, input 2 (i2) of 0.6, input 3 (i3) is 0.1 and input 4 (i4) is 0.4. It might then be decided that if i1+12+13+i4>1 then output=1, otherwise output=0 A truth table for this device would have the form shown in Fig. 2. It is possible for the weightings of the individual inputs to be changed using a feedback mechanism; the devices can then undergo a 'learning' process in which the weightings of each input are altered to give the required output in response to a series of inputs. Such a process mimics the learning process of the human brain - hence the name. The action of learning is described in more detail in the German magazine, CHIP, Nr 4, April 1990, pp 11-16, "Auf dem Weg zur Denkmaschine" by THOMAS. A reconfigurable neural network was presented at the 1990 International Solid State Circuits Conference (see Digest of Technical Papers, 33, pp 144-145, "A reconfigurable CMOS neural network" by GRAF et al). In this device the output currents of the individual 'neurons' are summed on a wire and the result compared with a reference value to give the output. The amount of current from each neuron is altered ('weighted') by programming the width of each FET transistor within the neuron using switches. In this example, the final output of the network could be altered by either varying the reference current value or by changing the amount of current each 'neuron' outputs. The logic of the device is, however, set by the hardwiring within the network. Summary of the Invention The invention as claimed in Claim 1 described is a novel combination of all of these prior art elements. It consists of a series of logic cells, the internal logic of which can be set to any desired logical value at power up. During operation, the number of inputs to the cell can be altered and its internal logic varied. The commands for changing the cell's function can be either supplied from an off-chip processor or as the results of the logic operation of another cell. The cells are connected together to form a network whose output can be adjusted to take certain values upon the receipt of specified inputs. Brief Description of the Figs. Fig. 1 shows a neural logic cell with weighted inputs. Fig. 2 is the truth table for the cell shown in Fig. 1. Fig. 3 shows a neural logic cell according to this invention with four inputs. Fig. 4 shows the internal structure of the gates to which each input of the logic cell is connected. Fig. 5 shows a further embodiment of the neural programmable logic cell with eight inputs. Fig. 6 shows a network of neural logic cells whose outputs are connected to logical inputs. Fig. 7 shows a network of neural logic cells whose outputs are connected to neural inputs. Detailed Description Fig. 3 shows the internal circuit of the programmable neural logic cell. It consists of four inputs, (A, B, C and F1) 102, 104, 106 and 108 which are passed to gates 122, 124, 126 and 128 whose other input comes from the master-slave latches 212, 214, 216 and 218. These latches are collectively called the invert control. Depending on the values contained in latches 212, 214, 216 or 218, the outputs of gates 122, 124, 126 or 128 are either the input values A, B, C, F1 or their inverses. The internal structure of gates 122, 124, 126 and 128 is shown in Fig. 4. Each one consists of two inverters 132, 134, two AND gates 136, 138 and an OR gate 139. The input is supplied along line 130 whilst the value held in the master-slave latch 212, 214, 216, 218 is supplied along 131. The output of the gate is produced by OR gate 139. It can be seen, by considering the logic of the circuit, that if the value 0 is supplied from the latch 212, 214, 216 or 218 then the output of the gate will be the same as its input 130. However, if line 131 has value 1 on it, then the output will be the inverse of the input 130. The output of the gates 122, 124, 126 and 128 is each passed to a separate AND gate 162, 164, 166 or 168 whose other input comes from the 'enable control' formed by master-slave latches 222, 224, 226, 228. These gates select which of the inputs 102, 104, 106, 108 or inverted inputs are to be enabled and hence operated on in the cell. The outputs of these AND gates 162, 164, 166 and 168 are passed to both an XOR gate 172, 174 or 179 and an OR gate 182, 184 or 189. The outputs of the final XOR gate 179 and final OR gate 189 are then connected both directly and through inverters 192, 194 to the Boolean decoder 256. Master-slave latches 252 and 254 are connected (via slave output latch) to the Boolean decoder 256. Their value determines which of the four outputs is passed to the Data Shift Register Latch (SRL) 232 and hence forms the output of the cell Q at 234. Careful consideration of the circuit will show that it is possible to carry out all possible logic functions for the four inputs. It is clear from the logic of the circuit how XOR or OR combinations of the input can be obtained; the AND function is obtained by using the results of DeMorgan's theorem which states that result, Q, of an AND operation can be expressed in two ways: Q = A AND B = NOT ( (NOT A) OR (NOT B)) This result can be generalised for the case of four (or more) inputs. Since the described logic circuit contains inverters for inverting the input (122, 124, 126, 128) and the output (192, 194), it can be seen that the circuit can also perform this fuction. Initialising the cell before operation begins involves loading the invert control 212, 214, 216, 218 and enable control 222, 224, 226, 228 latches with values to indicate which inputs are to be enabled and which inverted. Since the latches are connected together as a chain, this is a simple matter of providing the required values at Ena/Inv_Scan_In 200 and clocking them through each latch. To save wiring on the chip, it is possible that the invert and enable control latches of several cells are connected together in a chain (as is shown on Fig. 3) so that the values to be placed in other cells are clocked into one cell using Ena/Inv_Scan_In 200 and out using Ena/Inv_Scan_Out 202. The Boolean select latches 252 and 254 and the clock select SRL 250 are loaded through the Boolean_Scan_In 240, Boolean_Scan_Out 258 and other connected lines in a similar manner. The signals transferred into the cell on the Neu_Scan_In 246 line are clocked from latch 248 to latch 249 and then out to the next cell on Neu_Scan_Out 247. The latch 248 is connected to Clock mode select 262 which is in turn connected to the Boolean select latches 252 and 254 where its value determines whether these latches 252, 254 are responsive to the inputs on the Boolean_Sel1 242 and Boolean_Sel2 244 lines. Clock Mode Select 260 is connected to latch 249 and controls the SRL 250. It determines whether the value initially loaded into the SRL 250 is maintained during cell operation (Shift mode) or whether it can be changed during operation by the Clk_Sel input line 251 (Neuro mode). Clk_Sel 251 is connected to the output of a previous cell as is shown on Fig. 7. The output of SRL 250 is connected to clock mode 264 which causes the data SRL 232 to operate in either 'system clock mode' or in 'flush mode'. In the latter mode, both the master and slave latches are continuously active during operation and data is transferred immediately between cells rather than being held in SRL 232 until the next clock cycle. During testing of the circuit, however, the cell will be operated in system clock mode. The normal (i.e. non-neural) operation of the cell is straightforward. The required logic is loaded from Ena/Inv_Scan_In 200 and the data input at 102, 104, 106 and 108. The result appears at SRL 232 from where it can be transferred out using Data_Scan_In 230. The whole cell can operate in either system clock mode or flush mode depending on clock cycle time requirements. There are two forms of neural operation. In the first form, the neural mode of the cell is controlled by Clock Mode Select 262. It controls whether the Boolean select latches 252 and 254 operate with the logic mode clocked in through Boolean_Scan_In 240 or whether they are responsive to signals on lines Boolean_Sel1 242 and Boolean_Sel2 244. The output of gates 179, 189, 192 or 194 selected by the Boolean decoder 256 will be altered by changes in these signals and hence the cell output, Q, 234 will be changed. It should be noted that the inputs 102, 104, 106 and 108 do not necessarily have to change during this cycle. The values of Clk_Set 251, Boolean_Sel1 242 and Boolean_Sel2 244 may be derived either from inputs generated off the chip or be the results of operations from previous logic cells as shown on Fig. 7. The second mode of neural operation involves altering the invert control 212, 214, 216 and 218 and expand control 222, 224, 226 and 228 latches. After these have been initially set, their values can be changed during operation by having an extra input to the latch which will determine whether a data input to the cell 102, 104, 106 or 108 should be inverted or ignored during a cycle of operation. These extra latch inputs may either be generated off chip or be themselves the result of a logic operation by another cell as shown on Fig. 6. Fig. 5 shows another embodiment of this invention. Instead of having four inputs to each cell, this figure shows eight inputs to the cell and hence each cell has been termed an 'Octopus'. The operation of this cell is exactly the same as that described above except that it is now possible to use up to eight different data inputs which allows a greater variety of applications. In principle, it would be possible to have as many data inputs to one single cell as are required, however, this will lead to complex internal cell configurations which may cause manufacturing problems. If more than eight inputs are required, then it will be better to connect two or more cells together rather than trying to produce one huge cell. A balanced design may consist of a mix of small cells (4 inputs) and large cells (8 inputs). Fig. 6 shows a typical data net in which octopus cells can be found. It is seen that the outputs of a number of cells are connected to the data inputs of the cells. These connections are formed by hardwiring. Connections between the output of some octopus cells and the Clk_Sel, Boolean_Sel1 and Boolean_Sel2 inputs of Figs. 3 and 5 (the so-called 'neural connections') are shown on Fig. 7. It should be noted that the wiring is only shown seperately on two different figures for simplicity. In practice similar logic cells on the same chip will be connected using the two different but overlapping wiring networks.

Claims: A programmable logic cell comprising: data input means (102-108) having a plurality of data inputs (A, B, C, F1); logic means, connected to the data inputs (A, B, C, F1), for performing logical operations on signals on the data inputs (A, B, C, F1), the logic means having a plurality of data input enabling means (222-228) and a plurality of data input inverting means (212-218) for enabling and inverting the signals on the inputs (A, B, C, F1), respectively, and having first setting means (200; 202) providing first setting signals (ENA/INV_SCAN_IN) for setting the data input enabling and inverting means, the logic means also having a means (122-194) for performing a plurality of operations on the signals from the inverting (212-218) and enabling (222-228) means; Boolean decoding means (256) being connected to the logic means so to select a logic operation to be performed by the logic means; logic operation changing means (251-256) connected to the logic means for changing a logic operation to be performed by the logic means during operation of the cell; said logic operation changing means controlling said Boolean operation decoding means (256) and comprising operation select means (250; 252; 254) which can be selectively set by a second setting means (240; 258) providing second setting signals (BOOLEAN_SCAN_IN) or by a third setting means (242; 244) providing third setting signals (BOOLEAN_SEL 1; BOOLEAN_SEL 2), and data output means (232) connected to the logic means for reading a result of a logic operation of the logic means. The programmable logic cell according to claim 1 wherein: a master-slave latch forming an output (232) of the data output means can be operated in either a system clock mode or a flush mode. The programmable logic cell according to claim 1 or 2, wherein the logic operation changing means (251-256) comprises: an input means (251) to indicate whether the logic operation of the cell is to be changed during operation; and means (252, 254) responsive to the input means, for operating said Boolean decoding means (256) to select which logic operation the cell carries out. The programmable logic cell according to claim 3, wherein signals on inputs (179, 189, 192, 194) to the Boolean decoding means (256) are any logical combination of input data from the data input means (102, 104, 106, 108); and the Boolean decoding means (256) selects only one of its the inputs (179, 189, 192, 194) to provide a signal for its output (262). The programmable logic cell according to claim 3, wherein the input means (251) of the logic operation changing means and inputs (242, 244) to the operation select means (252, 254) for operating the Boolean decoding means (256) are provided by an output of another programmable logic cell. The programmable logic cell according to claim 3, wherein the input means (251) to the logic operation changing means and the inputs (242, 244) to the operation select means (252, 254) for operating the Boolean decoding means (256) are provided by an off-chip controller output. The programmable logic cell according to claim 1, wherein the data input inverting means (212-218) comprises: a first series of master-slave latches (212, 214, 216, 218) with values of outputs of the latches of the first series determining which of the data inputs of the data input means (102, 104, 106, 107) are to be inverted. The programmable logic cell according to claim 1, wherein the data input enabling means (222-228) comprises: a second series of master-slave latches (222, 224, 226, 228) connected to inputs of AND gates (162, 164, 166, 168), with other inputs of latter the AND gates connected to outputs of the data input inverting means (122, 124, 126, 128). The programmable logic cell according to claim 1, wherein a first series of master-slave latches (212, 214, 216, 218) with values of outputs of the latches of the first series determining which of the inputs of the data input means (102, 104. 106, 107) are to be inverted; and a second series of master-slave latches connected to inputs of AND gates (162, 164, 166, 168), with other inputs of latter the AND gates connected to outputs of the data input inverting means (122, 124, 126, 128), the first series of master-slave latches (212, 214, 216, 218) and the second series of master-slave latches latches (222, 224, 226, 228) being connected so that they can be initially set by clocking through their initial values. The programmable logic cell according to claim 9, wherein any or all of the first (212, 214, 216, 218) and second (222, 224, 226, 228) series of master-slave latches are additionally provided with an additional input which can be used to change their state during operation of the cell. The programmable logic cell according to claim 10, wherein the additional input to the first (212, 214, 216, 218) and second (162, 164, 166, 168) master-slave latches is provided by the output of another programmable logic cell. The programmable logic cell according to claim 10, wherein the additional input to the first (212, 214, 216, 218) and second (162, 164, 166, 168) master-slave latches is provided by an output of an off-chip controller. The programmable logic cell according to any one of the above claims, wherein the connections between the output (234) and further programmable logic cells are made by hard wiring the chip.

Inventors: KOHLER HELMUT DIPL-ING, SCHUMACHER NORBERT DIPL-ING, KOHLER, HELMUT, DIPL.-ING., SCHUMACHER, NORBERT, DIPL.-ING.
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1990
Main classification: G06F15
IPC codes: G06N3, G06G7, H03K19, G06F15