Apparatus and method for combining analog neural net with FPGA routing in a monolithic integrated circuit

Information

  • Patent Grant
  • 11023559
  • Patent Number
    11,023,559
  • Date Filed
    Thursday, March 14, 2019
    5 years ago
  • Date Issued
    Tuesday, June 1, 2021
    3 years ago
Abstract
A user programmable integrated circuit includes a user-programmable routing network including a plurality of interconnect conductors selectively couplable to one another by user-programmable elements. A plurality of matrix vector multipliers, each have a plurality of word lines, each word line coupled to a different first one of the one of the interconnect conductors of the user-programmable routing network, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line. A charge-to-pulse-width converter circuit is associated with each one of the matrix vector multipliers, each having an input coupled to one of the summing bit lines, and a pulse output coupled to a different second one of the interconnect conductors of the user-programmable routing network.
Description
BACKGROUND

The present invention relates to integrated circuit technology. More particularly, the present invention relates to analog neural networks and to combining analog neural networks with field programmable gate array technology.


Neural networks are built by connecting together several functions including matrix-vector products, rectification (RELU activation function), and a maximum of a set of values (max pooling). An ideal neural network integrated circuit could connect these functions together in a programmable manner.


Building a neural network using digital computation is unsatisfactory because it consumes unreasonable amounts of power. Analog Based Neural Network integrated circuits are efficient at calculating the terms for each layer. The neural network functions are implemented in the analog domain in each layer, but problems arise in routing the analog voltage levels to the next layer. Analog computation of neural network functions consumes less power, but routing a variable voltage is difficult as buffering requires the use of operational amplifiers which introduce errors, and consumes both significant die area and static power. Such routing is currently designed and hardwired into each integrated circuit individually for each application, making it expensive and inflexible. This routing is currently done at the fabrication level.


Incorporating processing in the digital domain can be an attractive alternative to-an all-analog neural network system. It is, however, very expensive to convert back and forth between the digital domain and the analog domain. In addition such conversions slow down a system as well as providing an opportunity to introduce errors into the computations.



FIG. 1 is a block diagram depicting an example of a prior-art matrix vector multiplier unit having input and output digital interfaces. A single integrated circuit will typically contain many of these matrix vector multipliers.


The input interfaces for this prior-art matrix vector multiplier unit are in the form of digital-to-analog (converters (DACs) having analog outputs coupled to the word line inputs W1 through Wn to the matrix vector multiplier unit and the output interfaces are in the form of analog-to-digital converters (ADCs) coupled to the bit lines B1 through Bn of the matrix vector multiplier unit. In one instance of this prior-art implementation both the DACs and the ADCs are 8-bit resolution. The weights are programmed as variable conductances (using for example programmable transistors such as Flash devices) in the matrix vector multiplier and represent the neural network weights. The inputs to the matrix vector multiplier unit are provided by the DACs, producing currents that are the product of the input signal voltage and the variable conductance weights.


When DACs and ADCs having 8-bit resolution are used, over four decades of linearity are required including the about two decades of applied voltage resolution from the 8-bit DAC resolution and assuming about two decades of the 8-bit variable conductance weight resolution when operating in the linear portion of the variable conductance transfer curve. One problem with this scheme occurs when the input voltage is at the high end of the 8-bit range and the programmed variable conductance is at the low end of the transfer curve. Because the low end of the variable conductance transfer curve is non-linear, the accuracy of the matrix vector multiplier unit suffers the most when the input voltage is at the high end of the 8-bit range and the programmed variable conductance is at the low end of the transfer curve.


BRIEF DESCRIPTION

The present invention is based on the fact that an FPGA is well suited for routing analog time in the form of a variable pulse width.


Each layer of a neural network includes a matrix multiplier that multiplies analog input values on each word line by a multiplier weight on each bit line to generate a dot product and then sums the dot products on each bit line. Conversion from voltage to time employs a capacitor charged to an analog voltage which capacitor is discharged by a current source and generates a pulse having a width representing the analog voltage (an analog time pulse) triggered by a comparator coupled to the capacitor. All of these elements are simple small circuits. The reverse is then used to convert the routed analog time pulse back to an analog voltage. Additional circuits can be added for more speed and accuracy.


In one embodiment a word line is pulsed with an analog time pulse at a constant voltage with the multiplier weight coming from the threshold voltage (Vt) setting on a non-volatile transistor and eliminates the over four decades of linearity required for some alternative mixed analog/digital solutions like the one mentioned above. This eliminates the digital-to-analog input conversion and reduces errors while giving the desired function with a single applied voltage.


According to one aspect of the present invention, a user programmable integrated circuit includes a user-programmable routing network including a plurality of interconnect conductors selectively couplable to one another by user-programmable elements. A plurality of matrix vector multipliers, each have a plurality of word lines, each word line coupled to a different first one of the interconnect conductors of the user-programmable routing network, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line. A charge-to-pulse-width converter circuit is associated with each one of the matrix vector multipliers, each having an input coupled to one of the summing bit lines, and a pulse output coupled to a different second one of the interconnect conductors of the user-programmable routing network.


According to an aspect of the present invention, a method for implementing a neural network system in an integrated circuit includes presenting digital pulses to word line inputs of a matrix vector multiplier including a plurality of word lines, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line, each digital pulse having a pulse width proportional to an analog quantity, during a charge collection time frame summing charge collected on each of the summing bit lines from current flowing in the programmable Vt transistor, and during a pulse generating time frame generating digital pulses having pulse widths proportional to the amount of charge that was collected on each summing bit line during the charge collection time frame.





BRIEF DESCRIPTION OF THE DRAWING FIGURES

The invention will be explained in more detail in the following with reference to embodiments and to the drawing in which are shown:



FIG. 1 is a block diagram of an example of a prior-art matrix vector multiplier unit;



FIG. 2 is a block diagram of a plurality of matrix vector multiplier units cascaded with one another in accordance with an aspect of the present invention;



FIG. 3 is a diagram of an illustrative matrix vector multiplier unit that may be employed in the present invention;



FIG. 4 is a schematic diagram of an illustrative charge-to-pulse-width converter circuit that may be employed in the present invention;



FIG. 5 is a timing diagram showing operation of the matrix vector multiplier of FIG. 3 and the charge-to-pulse-width converter circuit of FIG. 4;



FIG. 6 is a block diagram of a first matrix vector multiplier circuit in a neural network of matrix vector multiplier circuits;



FIG. 7A is a diagram of an illustrative digital pulse-generator circuit suitable for use in the present invention;



FIG. 7B is a diagram of an illustrative analog pulse-generator circuit suitable for use in the present invention;



FIG. 8 is a block diagram of a control system for generating timing signals and for performing calibration of a plurality of matrix vector multipliers in accordance with an aspect of the present invention; and



FIG. 9 is a flow diagram depicting a method for calibrating the outputs of the matrix vector multipliers in accordance with the present invention.





DETAILED DESCRIPTION

Persons of ordinary skill in the art will realize that the following description is illustrative only and not in any way limiting. Other embodiments will readily suggest themselves to such skilled persons.


The present invention uses a switching array similar to that used in FPGAs. Because routing the neural network analog voltages is difficult and expensive, requiring a large number of large power consuming unity gain amplifiers at every switch point, the present invention solves this problem by converting the analog quantities to analog timing pulses which are routed though the switch points.


Referring first of all to FIG. 2, a block diagram shows a neural network system 10 including a plurality of cascaded matrix vector multipliers 12a, 12b, . . . 12n. Each one of the cascaded matrix vector multipliers 12a, 12b, . . . 12n is a matrix having a plurality of word line (W) inputs 14 identified as W1, W2 . . . Wn and a plurality of bit line outputs 16a, 16b, . . . 16n identified as B1, B2 . . . Bn. Neural network system 10 is being illustrated with word line inputs and bit line outputs, it being understood that in certain embodiments bit lines may be used as inputs and word lines may be used as outputs, without exceeding the scope.


Each bit line output is connected to a respective charge-to-pulse-width converter circuit 18. The outputs of the respective charge-to-pulse-width converter circuits 18 are buffered by inverters collectively identified by reference numeral 20 and then presented to a programmable routing network identified within dashed lines 22, which in the particular embodiment shown in FIG. 2 is illustrated as a crossbar routing network. The small squares (one of which is identified at reference numeral 24) disposed at the intersections of first ones of the interconnect conductors shown in FIG. 2 running vertically in the routing network 22 and second ones of the interconnect conductors shown in FIG. 2 running horizontally in the routing network 22 are user-programmable elements as is known in the art of FPGAs. The user-programmable elements can be one-time programmable elements such as antifuse or can be one of a number of different re-programmable elements, such as non-volatile transistors, known in the art. Programmable connections can be made from the respective charge-to-pulse-width converter circuits 18 through the inverters 20 and routing network 22 to the word line 14 (W) inputs W1, W2 . . . Wn of the next one of the matrix vector multipliers 12a, 12b, . . . 12n in the cascaded chain.


Referring now to FIG. 3, a schematic diagram shows details of one of the matrix vector multipliers 12a, 12b, . . . 12n. Bit lines 16-1 through 16-n and word lines 14-1 through 14-n form the matrix. An input buffer in the form of an inverter 26 buffers the respective input signals to each of the word lines 14 (W) inputs W1, W2 . . . Wn. The output inverters 20 of the respective charge-to-pulse-width converter circuits 18 and the respective input inverters 26 in the matrix vector multipliers 12a, 12b, . . . 12n together assure that the signals on each of the word lines 14 (W) inputs W1, W2 . . . Wn are uninverted from the outputs of the charge-to-pulse-width converter circuits 18. For simplicity the word lines 14 are defined herein as being after the respective inverter 26.


A programmable Vt transistor 28 such as a floating gate or silicon-oxide-nitride-oxide-silicon (SONOS) transistor is disposed at the intersection of each bit line and word line of the matrix vector multiplier 12 with the drain of the programmable Vt transistor connected to the respective matrix vector multiplier 12 bit line 16, the gate of the programmable Vt transistor connected to the respective matrix vector multiplier 12 word line 14 and its source connected to a fixed potential, for example ground. Each programmable Vt transistor is identified by reference numeral 28xy, where x and y are the respective intersecting word line and bit line to which the transistor is connected. Methods of programming such programmable Vt transistors are known in the art and involve applying different potentials to the bit lines and word lines of the programmable Vt transistors depending on the nature of the storage mechanism employed by the transistor to alter its Vt.


The inputs to the matrix vector multiplier 12 at the word lines 18-1 through 18-n are digital pulses. All of the digital pulses have the same amplitude Vpulse. Each pulse has an individual pulse width, shown in FIG. 3 as t1, t2, t3, and tn. The individual pulse widths each represent the different analog values that are to be computed by the matrix vector multiplier. Each of the transistors 28xy is programmed to one of a possible number of digital states, for example 1 of 256, by programming its floating gate as described in U.S. Patent Application Publication 2017/0337466, which application is incorporated herein by reference in its entirety.


When the matrix vector multipliers 12a, 12b, . . . 12n receive the respective Vpulse signals on the word lines 18-1 through 18-n, each of the transistors 28xy individually conduct an amount of current proportional to the extent to which its floating gate has been programmed for the length of the pulse. The Vpulse signals for each of the matrix vector multipliers 12a, 12b, . . . 12n are generated simultaneously from the upstream one of the matrix vector multipliers 12a, 12b, . . . 12n in the cascaded arrangement. For example, referring again to FIG. 2, the Vpulse signals presented on the word lines W1 through Wn of the matrix vector multiplier 12b (shown at reference numerals 14-1 through 14-n in FIG. 3) are generated by the charge-to-pulse-width converter circuits 18 at the bit line 16a outputs B1 through Bn of the matrix vector multiplier 12a. Each charge-to-pulse-width converter circuits 18 is configured to generate a digital pulse having a pulse width proportional to an analog quantity to be input to a neural network including at least the second matrix vector multiplier 12b.


Inputs for first matrix vector multiplier 12a may be similarly provided by a charge-to-pulse-width converter circuits 18 of a previous matrix vector multiplier, or by another signal source providing input pulses for use by first matrix vector multiplier 12a as will be described further below in relation to FIG. 6. In one embodiment, the word lines 14-1 through 14-n of a first one of the matrix vector multipliers (the matrix vector multiplier 12a depicted in FIG. 2) in a neural network including a plurality of cascaded matrix vector multipliers 12a, 12b, . . . 12n are each coupled to a different pulse generator circuit to provide the Vpulse signals for its word lines W1 through Wn. Exemplary pulse generator circuits are discussed with reference to FIG. 7A and FIG. 7B


The current flowing through each of the transistors 28xy during the active portions of the Vpulse signals at times t1, t2, t3, . . . tn results in a total charge accumulating on each of the bit lines 16 that is the sum of the individual currents flowing through the transistors 28 connected to that bit line. These charges are represented by individual charges Q1, Q2, Q3, . . . Qn shown at the bottom of FIG. 3.


Referring now to FIG. 4, a schematic diagram shows an illustrative charge-to-pulse-width converter circuit 18 that may be employed in a neural network system 10 in accordance with the present invention. The portion of the circuit shown in FIG. 3 that forms the charge-to-pulse-width converter circuits 18 is shown within dashed lines 30. It is also useful to view FIG. 5 in conjunction with FIG. 4. FIG. 5 is a timing diagram showing operation of the charge-to-pulse-width converter circuit 18 of FIG. 4 and the matrix vector multiplier of FIG. 3 in an embodiment where the charge-to-pulse-width converter circuits 18 associated with respective matrix vector multipliers 12 operate in two different time frames, with the top of FIG. 5 referred to as Phase 1, where the analog pulse is generated during a first time period, followed by a charge collection period, and the bottom of FIG. 5 referred to as Phase 1, where the charge collection period is during the first time period, followed by the analog pulse generation period. During a charge collection time frame the charge-to-pulse-width converter circuits 18 collect charge from the bit lines 16 of the associated matrix vector multipliers 12a, 12b, . . . 12n that they are connected to in the cascaded arrangement. During an analog pulse generating time frame, the charge-to-pulse-width converter circuits 18 generate Vpulse signals having pulse widths proportional to the amount of charge that was collected during the charge collection time frame from the bit lines of the associated one of the matrix vector multipliers 12a, 12b, . . . 12n in the cascaded arrangement. Because of this operation, the charge-to-pulse-width converter circuits 18 in successive ones of the matrix vector multipliers 12a, 12b, . . . 12n in the cascaded arrangement operate out of phase with one another, meaning that while the charge-to-pulse-width converter circuits 18 associated with any one of the matrix vector multipliers 12a, 12b, . . . 12n is operating in the charge collection time frame, the charge-to-pulse-width converter circuits 18 associated with the matrix vector multipliers 12a, 12b, . . . 12n both upstream and downstream in the cascaded chain are operating in the analog pulse generating time frame. According to another aspect of the invention, the control signals can be timed to operate the cascaded chain of the matrix vector multipliers 12a, 12b, . . . 12n in a rippled manner, with each one of the matrix vector multipliers 12a, 12b, . . . 12n in the cascaded chain waiting until the matrix vector multiplier 12a, 12b, . . . 12n immediately upstream in the cascaded chain has completed its operations in both the charge collection time frame and the analog pulse generating time frame.


A neural network system 10 according to the present embodiments will include a plurality of charge-to-pulse-width converter circuits 18. A master-slave current mirror system is usefully employed to assure uniformity of operation of all of the charge-to-pulse-width converter circuits 18. A master portion of the master-slave current mirror circuit includes a p-channel transistor 32 coupled to a band gap reference voltage generating circuit 34 generating the voltage Vref through a resistor 36. The master portion of the master-slave current mirror circuit is not part of any one of the charge-to-pulse-width converter circuits 18 but can be common to as many as is desired of the charge-to-pulse-width converter circuits 18 in the neural network system 10.


A slave portion of the master-slave current mirror circuit is formed from p-channel transistor 38 having its gate connected to the gate of p-channel transistor 32 in the master section over line 40. Line 40 is provided to all of the charge-to-pulse-width converter circuits 18 in the neural network system 10.


A complementary pair of control signals identified as start-analog-pulse on line 42 and start-analog-pulse! on line 44 are used to control the charge-to-pulse-width converter circuits 18 in the neural network system 10.


When the start analog pulse line 42 goes low to start the charge collection time frame, transistor 46 turns on and places VDD at the top plate of capacitor 48, which in one embodiment of the invention may be a metal-insulator-metal (MIM) capacitor. The summing bias line 50 connected to the gate of n-channel transistor 52 is set to active (high) so as to turn on n-channel transistor 52 and as a result the charge on each bit line 16 begins to charge the capacitor 48 by pulling down the voltage on its bottom plate through n-channel transistor 52 whose drain is connected to the bottom plate of capacitor 48. The voltage level at the summing bias line 50 is set to limit the maximum voltage that will be applied to any bit line 16 through the transistor 52 (connected as a source follower) independent of the charge accumulated on the capacitor 48.


The programmable Vt transistor 28xy in the matrix vector multiplier of FIG. 3 begin to supply charge to the respective bit lines 16-1 through 16-n at a rate that is the sum of the conduction of all of the floating gates of the transistors 28xy connected to each bit line during the time each respective Vpulse signal is active. Thus the sum of the currents are collected on each of the respective bit lines 16-1 through 16-n and drive the source of the respective transistor 52 to which they are directly connected slightly more negative, turning it on to collect all the charge on the capacitor 48. Because transistor 52 is running in saturation due to the voltage level at the summing bias line 50 its source current is not modulated by the bias on its drain (the voltage on the capacitor 48).


The change of the voltage on the summing bit lines 16 is minimal because the transistors 28xy are operating in saturation due to the height of Vpulse and the drain-to-source current flowing through transistors 28xy is insensitive to drain-to-source voltage changes, but is instead a function of the respective Vt of the transistors 28xy. This combined with running the programmable Vt transistors 28xy in saturation means that any change in the drain current through the programmable Vt transistors 28xy as a function of change in voltage at the summing bit line is insignificant. This eliminates the need for an operational amplifier to maintain a constant bias.


Prior to asserting the Vpulse signals on the word lines 14-1 through 14-n and the summing bias signal on summing bias line 50, the bit lines 16-1 through 16-n are allowed to settle to the minimum leakage bias that is a result of no pulse current flowing through transistor 52. After the end of the Vpulse signals, the summing bit lines 16-1 through 16-n are again allowed to settle to the minimum leakage bias so that the summing bit lines 16-1 through 16-n are at the same potential at the beginning of the Vpulse signals and after the end of the Vpulse signals thereby eliminating any error of electron charge accumulating on the summing bit line.


During the charge collection time frame, the start analog pulse! line 44 is high and p-channel transistors 54 and 56 are turned off. The potential at the bottom plate of capacitor 48 decreases as the capacitor 48 is charged from the summing bit line 16 by current flow through the respective programmable Vt transistors 28xy.


At the end of the charge collection time frame, the start analog pulse line 42 goes high, turning off p-channel transistor 46. The summing bias line 50 is set to inactive (low), turning off n-channel transistor 52. The complementary start analog pulse line! 44 goes low, turning on p-channel transistors 54 and 56.


The p-channel transistor 54 applies the voltage potential Vbias to the top plate of capacitor 48, which is no longer connected to VDD. As will be appreciated by persons of ordinary skill in the art, the voltage at the bottom plate of the capacitor 48, representing the charge accumulated from the bit line, has been shifted downwardly from VDD by the above actions and is now referenced to the voltage Vbias. In one instance of the invention Vbias is set to be less than VDD by about 2 Vt of the transistors from which the comparator 58 is formed in order to provide voltage headroom for the comparator 58 to function properly.


The p-channel transistor 56 connects the bottom plate of the capacitor 48 to the slave current source p-channel transistor 38, which starts discharging the capacitor 48 through transistor 56 at a constant current. A comparator 58 is connected across the capacitor 48. The reason that the potential at the top plate of the capacitor is preferably set to Vbias is that the performance of the comparator 58 is compromised when one of the inputs of the comparator 58 is at the voltage rail potential VDD. In addition, setting the voltage at the top plate of the capacitor 48 at Vbias prevents the drain of the slave transistors 38 in the current mirrors from going any higher below the source voltage of the slave current mirror transistor 38 by about 2 Vt of the lave current mirror transistor 38, thus keeping the slave current mirror transistors 38 in saturation mode.


The comparator 58 will trip and its output will become low when the voltage across the capacitor reaches zero. AND gate 60 has one input connected to the output of the comparator 58 and the other input connected to the start analog pulse line 42. Because the output of the comparator is high when the capacitor 48 has any voltage across it, the output 62 of the AND gate will become high when the start analog pulse line 42 goes high and there is voltage across capacitor 48. The output of AND gate 60 will be thus high until the comparator trips. The output of the AND gate 60 is the signal Vpulse that will be presented to one of the word lines 14-1 through 14-n of the next matrix vector multiplier downstream in the cascade chain via the respective input inverting buffers 26.


Referring now to FIG. 6, a block diagram shows a first matrix vector multiplier circuit in a neural network of matrix vector multiplier circuits. The matrix vector multiplier circuit depicted in FIG. 6 includes many of the circuit elements in the matrix vector multiplier circuits depicted in FIG. 2. Those elements will be identified using the same reference numerals identifying the corresponding elements in FIG. 2.


The first matrix vector multiplier circuit 12 in a neural network can obtain its word line 14 inputs W1 through Wn from pulse generator circuits 62-1 through 62-n. It presents outputs on summing bit lines B1 through Bn through inverting buffers 20 to a programmable routing network identified within dashed lines 22. The small squares (one of which is identified at reference numeral 24) disposed at the intersections of the interconnect conductors are user-programmable elements as is known in the art of FPGAs.



FIG. 7A is a circuit diagram of an illustrative pulse-generator circuit 62 suitable for use in generating pulses for a first matrix vector multiplier circuit in a neural network of matrix vector multiplier circuits in accordance with the present invention. A register or memory element 64 stores a count value. A load pulse causes the count value to be loaded into a down counter 66 that counts down to zero. When the count value is loaded into the counter 66, its non-zero value causes the output of the AND gate 68 at Vpulse to assume a logic one state. The output of the AND gate 68 maintains its logic one state until the count from the counter 66 reaches zero, when it assumes a logic low state. The counter is configured to stay at a zero count until the next load pulse is received. As a result, the output of AND gate 68, Vpulse, remains in the active state for the number of clock pulses of the loaded count value.


Referring now to FIG. 7B, a diagram shows an illustrative analog pulse-generator circuit 70 suitable for use in generating pulses from an analog voltage input Vin for a first matrix vector multiplier circuit in a neural network of matrix vector multiplier circuits in accordance with the present invention.


An operational amplifier 72 is configured as a voltage follower amplifier. The circuit is controlled by the start analog pulse signal shown in FIG. 5. When the start analog pulse signal is low, inverter 74 turns n-channel transistor 76 to charge capacitor 78 to Vin. The output of AND gate 80 (the Vpulse output of the analog pulse-generator circuit 70) is low because inverters 82 and 84 place a logic low state on the first input of AND gate 80.


When the start analog pulse signal goes high, inverter 74 turns n-channel transistor 76 off Inverters 82 and 84 turn on transistor 86 that begins to discharge the capacitor 78 at a constant current through n-channel transistor 88 whose gate is biased by the current mirror of FIG. 4. The inverters 82 and 84 also place a logic one at first input to the AND gate 80 whose output goes high because the output of the comparator 90 places a logic high level at the second input of the AND gate 80 and voltage across capacitor 78 is not zero. The output of the AND gate 80 stays at a logic high level until the capacitor 78 discharges and flips the state of the inverter 90. The output Vpulse is therefore of a length which reflects the value of Vin, the capacitance of capacitor 78 and the value of the current of the current mirror of FIG. 4.


Conversion from voltage to time in accordance with the present invention employs a capacitor charged to an analog voltage that is discharged by a current source and generates a timing pulse triggered by a comparator coupled to the capacitor. All of these elements are simple small circuits. The reverse is then used in the matrix vector multipliers in the next stage to convert the cumulative sums of charge generated by the timing pulses back to an analog voltage. Additional circuits can be added for more speed and accuracy.


A word line is pulsed with the analog time pulse at a constant voltage with the multiplier weight coming from the Vt setting on a non-volatile transistor and eliminates the four decades of linearity required for some alternative solutions like the one shown in FIG. 1. This eliminates the input conversion and reduces errors while giving the desired function with a single applied voltage.


Referring now to FIG. 8, a block diagram depicts a control system 100 for generating timing signals and for performing calibration of a plurality of matrix vector multipliers in accordance with an aspect of the present invention.


The control system 100 is described with reference to an illustrative group of three cascaded matrix vector multipliers identified by reference numerals 12a, 12b, and 12c. Persons of ordinary skill in the art will appreciate that the control system 100 depicted in FIG. 8 can accommodate various numbers of cascaded matrix vector multipliers.


A microcontroller 102 directs the operation of the control system 100. The microcontroller 102 generates the phase 1 and phase 2 control signals depicted in the timing diagram of FIG. 5 and provides them to the matrix vector multipliers 12a, 12b, and 12c over a bus 104. Bus 104 also carries the programming data generated by the microcontroller 102 to set the weights of the non-volatile memory transistors 28 (FIG. 3) in the matrix vector multipliers 12a, 12b, and 12c. The microcontroller 102 can obtain data from a database PROM 106 which can also be used to store the microcode that is run in the microcontroller 102. The microcontroller 102 can also obtain data from external sources as indicated by bus 108.


Bus 110 carries calibration data from each of the matrix vector multipliers 12a, 12b, and 12c back to the microcontroller 102 where it can be compared to data stored in the database PROM 106 to develop correction programming parameters to trim the weight values stored in the non-volatile memory transistors 28 in the matrix vector multipliers 12a, 12b, and 12c. The outputs may be taken from the outputs of the charge-to-pulse width converters 18 or the buffers 20 shown in FIG. 2. Since the outputs of the matrix vector multipliers 12a, 12b, and 12c are in the form of digital pulses of varying duration, the microcontroller 102 can evaluate the outputs of the matrix vector multipliers 12a, 12b, and 12c without the need for the system to perform analog to digital conversion.


As shown in FIG. 8, the data is presented to alternate ones of the matrix vector multipliers 12a, 12b, and 12c during phase 1 and phase 2 time periods as indicated by the timing diagram of FIG. 5 in which the matrix vector multiplier 12a receives data from an input bus 112 during phase 1, the matrix vector multiplier 12b receives data from the output of the matrix vector multiplier 12a on bus 114 during phase 2, and the matrix vector multiplier 12c receives data from the output of the matrix vector multiplier 12b on bus 116 during phase 1.


Referring now to FIG. 9, a flow diagram depicts a method 120 for calibrating the outputs of the matrix vector multipliers in accordance with the present invention. The method begins at reference numeral 122.


At reference numeral 124 the microcontroller 102 of FIG. 8 generates a test input pulse of known duration and presents it over the bus 104 of FIG. 8 to a reference cell in the matrix vector multiplier to be calibrated. At reference numeral 126 the output pulse is read from the matrix vector multiplier over bus 110. At reference numeral 128 the microcontroller 102 determines whether the duration of the returned pulse matches the expected value of the input pulse multiplied by the weight programmed into the non-volatile transistor in the matrix vector multiplier through which it passed. If the difference between the returned duration value and the expected return duration value is less than a predetermined threshold, the matrix vector multiplier is assumed to be calibrated and the method proceeds to reference numeral 130 where it ends.


If at reference numeral 128 it is determined that the difference between the returned duration value and the expected return duration value is greater than the predetermined threshold, the method proceeds to reference numeral 132 where the temperature of the integrated circuit is sensed. The method proceeds to reference numeral 134 where it is determined whether the difference in pulse duration measured at reference numeral 128 matches a difference that is expected given the measured temperature rise. If the difference in pulse duration measured at reference numeral 128 matches the expected difference a correction can be made by adjusting the value of the resistor 36 in the master current mirror section shown in FIG. 3 and the method proceeds to reference numeral 136 where the resistance value of the resistor 36 in the master current mirror section depicted in FIG. 3 is adjusted to compensate for the measured difference in pulse duration.


At reference numeral 138 another test pulse is generated and the duration of an output pulse from the matrix vector multiplier is compared with the expected value at reference numeral 140. If the difference between the actual output pulse duration and the expected output pulse duration is below a predetermined threshold, the matrix vector multiplier is considered to be calibrated and the method ends at reference numeral 130. If the difference between the actual output pulse duration and the expected output pulse duration is above the predetermined threshold, the processes performed at reference numerals 136 and 138 are repeated in a loop until the matrix vector multiplier is considered to be calibrated and the method ends at reference numeral 130.


If at reference numeral 134 the difference in output pulse duration measured at reference numeral 128 does not match the expected difference the method proceeds to reference numeral 142 where multiple test pulses are generated and presented to multiple reference cells in the matrix vector multiplier. At reference numeral 144 it is determined whether the differences between the output pulses from the multiple reference cells in the matrix vector multiplier and the expected values exceed threshold values. If the differences between the output pulses from the multiple reference cells in the matrix vector multiplier and the expected values do not exceed threshold values the method proceeds to reference numeral 136 the operation of which has been previously described.


If the differences between the output pulses from the multiple reference cells in the matrix vector multiplier and the expected values exceed threshold values a decision is made that the non-volatile transistors in the matrix vector multiplier need to be re-programmed to adjust their thresholds and the method proceeds to reference numeral 146 where a programming procedure is performed to adjust thresholds of the non-volatile transistors in the matrix vector multiplier. At reference numeral 148 another series of test pulses is generated and the duration of output pulses from the matrix vector multiplier are compared with the expected values at reference numeral 150 to verify the threshold adjustments of the non-volatile transistors in the matrix vector multiplier. If the differences between the duration of the output pulses from the matrix vector multiplier and the expected values are below a predetermined threshold, the matrix vector multiplier is considered to be calibrated and the method ends at reference numeral 130. If the differences between the actual output pulse durations and the expected output pulse durations are above the predetermined threshold, the processes performed at reference numerals 146 and 148 are repeated in a loop until the matrix vector multiplier is considered to be calibrated and the method ends at reference numeral 130.


Persons of ordinary skill in the art will understand that the programming of the non-volatile transistors in the matrix vector multipliers can be accomplished using the part of the flow diagram of FIG. 9 shown at reference numerals 146, 148, and 150.


Circuit delays are not important, but pulse width is important. Therefore design considerations need to treat the entire NET (the entire signal path from generation of Vpulse to the memory formed from transistors 28xy) as a transmission line in order to avoid altering the widths of the Vpulse signals. Analog values are transmitted through digital programmable routing using single variable-length pulses representing the analog value. The pulse width is converted to charge in an analog matrix-vector multiplier 12, and the charge is converted back to a variable-length pulse for the next input. Persons of ordinary skill in the art will appreciate that it is not necessary to limit the pulse to a single pulse as it is possible to provide several pulses as long as they all occur during the analog time pulse frame and the pulse width total of all of the individual pulses is equivalent to the desired analog value.


A specific application can be tuned by measuring output pulse width versus input pulse width while programming the non-volatile memory transistors 28xy, thereby nulling any errors in Vt of the current mirror transistors 32 and 38 and the non-volatile memory transistors 28xy. This might speed up device training.


An on board PROM can be employed to hold the time values of the Vpulse signals such that an onboard controller could self tune the chip against a precision clock by comparing the widths of the output Vpulse signals to the stored time values.


While embodiments and applications of this invention have been shown and described, it would be apparent to those skilled in the art that many more modifications than mentioned above are possible without departing from the inventive concepts herein. The invention, therefore, is not to be restricted except in the spirit of the appended claims.

Claims
  • 1. A user programmable integrated circuit comprising: a user-programmable routing network including a plurality of interconnect conductors selectively couplable to one another by user-programmable elements;a plurality of matrix vector multipliers, each matrix vector multiplier including a plurality of word lines, each word line coupled to a different first one of the interconnect conductors of the user-programmable routing network, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line; anda plurality of charge-to-pulse-width converter circuits, each being associated with one of the matrix vector multipliers, each having an input coupled to one of the summing bit lines, and a pulse output coupled to a different second one of the interconnect conductors of the user-programmable routing network.
  • 2. The user-programmable integrated circuit of claim 1 wherein the inputs of the charge-to-pulse-width converter circuits associated with each one of the matrix vector multipliers are each coupled to one of the summing bit lines through an inverter.
  • 3. The user-programmable integrated circuit of claim 1 wherein the plurality of word lines in each matrix vector multiplier are coupled to the different first one of the interconnect conductors of the user-programmable routing network through inverters.
  • 4. The user-programmable integrated circuit of claim 1 wherein a first matrix vector multiplier of the plurality of matrix vector multipliers comprises a plurality of word lines, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line, and a plurality of pulse generator circuits each have an output coupled to each of the word lines of the first matrix vector multiplier, each configured to generate a digital pulse having a pulse width proportional to an analog quantity to be input to a neural network including at least the first matrix vector multiplier.
  • 5. The user-programmable integrated circuit of claim 4 wherein each pulse generator circuit comprises a digital pulse generator circuit.
  • 6. The user-programmable integrated circuit of claim 5 wherein each pulse generator circuit comprises: an n-bit storage element storing an n-bit count value representing a pulse width;an n-bit counter having n outputs;an n-bit digital comparator having a first set of n data inputs, a second set of n data inputs and an output, the first set of n data inputs coupled to the n outputs of the n-bit storage element, the second set of n data inputs coupled to the n outputs of the n-bit counter, the output serving as the output of the pulse generator circuit.
  • 7. The user-programmable integrated circuit of claim 4 wherein each pulse generator circuit comprises an analog pulse generator circuit.
  • 8. The user-programmable integrated circuit of claim 7 wherein each pulse generator circuit comprises: a voltage follower operational amplifier having an input coupled to an analog input voltage;a first switch configured to charge a capacitor during a charge collection time frame;a second switch configured to discharge the capacitor at a constant current during an analog pulse generating time frame;a comparator coupled to the capacitor to indicate when the capacitor has been discharged; anda logic gate configured to output the analog pulse during the analog pulse generating time frame until the comparator indicates that the capacitor has been discharged.
  • 9. A user programmable integrated circuit comprising: a user-programmable routing network including a plurality of interconnect conductors selectively couplable to one another by user-programmable elements;a plurality of matrix vector multipliers, each matrix vector multiplier including a plurality of word lines, each word line coupled to a different first one of the interconnect conductors of the user-programmable routing network, the word lines forming intersections with a plurality of summing bit lines, a programmable Vt transistor at each intersection having a gate connected to the intersecting word line, a source connected to a fixed potential and a drain connected to the intersecting summing bit line; anda plurality of charge-to-pulse-width converter circuits, each being associated with one of the matrix vector multipliers, each having an input coupled to one of the summing bit lines, and a pulse output coupled to a different second one of the interconnect conductors of the user-programmable routing network,each charge-to-pulse-width converter circuit including: a slave current mirror section mirroring current from a master current mirror section;a first switch coupling a capacitor to the input of the charge-to-pulse-width converter circuit to charge the capacitor during a charge collection time frame;a second switch coupling the capacitor to the slave current mirror section to discharge the capacitor at a constant current during an analog pulse generating time frame;a comparator coupled to the capacitor to indicate when the capacitor has been discharged; anda logic gate configured to output the analog pulse during the analog pulse generating time frame until the comparator indicates that the capacitor has been discharged.
  • 10. The user-programmable integrated circuit of claim 9, further comprising a switch in each charge-to-pulse-width converter circuit to shift voltage stored on the capacitor sensed by the comparator during the analog pulse generating time frame.
  • 11. The user-programmable integrated circuit of claim 9 wherein the inputs of the charge-to-pulse-width converter circuits associated with each one of the matrix vector multipliers are each coupled to one of the summing bit lines through an inverter.
  • 12. The user-programmable integrated circuit of claim 9 wherein the plurality of word lines in each matrix vector multiplier are coupled to a different first one of the interconnect conductors of the user-programmable routing network through inverters.
US Referenced Citations (6)
Number Name Date Kind
4961002 Tam et al. Oct 1990 A
5093900 Graf Mar 1992 A
20180095930 Lu Apr 2018 A1
20190213234 Bayat Jul 2019 A1
20200020393 Al-Shamma Jan 2020 A1
20200234111 Tran Jul 2020 A1
Foreign Referenced Citations (1)
Number Date Country
2018201060 Nov 2018 WO
Non-Patent Literature Citations (5)
Entry
PCT/US2019/043090, International Search Report and Written Opinion of the International Searching Authority, dated Nov. 6, 2019.
U.S. Appl. No. 16/353,830, “System for Converting Neuron Current Into Neuron Current-Based Time Pulses in an Analog Neural Memory in a Deep Learning Artificial Neural Network,” filed Mar. 14, 2019.
U.S. Appl. No. 16/354,040, “Power Management for an Analog Neural Memory in a Deep Learning Artificial Neural Network,” filed Mar. 14, 2019.
Bor, et al., “Realization of the CMOS Pulsewidth-Modulation(PWM) Neural Network with On-Chip Learning”, IEEE Transactions on Circuits and Systems—II: Analog and Digital Signal Processing, vol. 45, No. 1, pp. 96-107, Jan. 1, 1998.
Hamilton, et al., “Integrated Pulse Stream Neural Networks: Results, Issues, and Pointers”, IEEE Transactions on Neural Networks, vol. 3, No. 3, pp. 385-393, May 1992.
Related Publications (1)
Number Date Country
20200242190 A1 Jul 2020 US
Provisional Applications (1)
Number Date Country
62797158 Jan 2019 US