Vector-matrix multiplication array with analog input

By using non-volatile memory cell arrays and vector-matrix multiplication arrays in artificial neural networks, the problem of low hardware technology efficiency is solved, efficient computing parallelism and fine tuning are achieved, and it is suitable for high-performance information processing.

CN118696319APending Publication Date: 2024-09-24SILICON STORAGE TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280091750.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-06-23
Filing Date
2022-07-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When developing high-performance artificial neural networks, the existing technology lacks efficient hardware technology, resulting in high energy consumption and insufficient computational complexity. In particular, the synapses implemented by CMOS analog circuits are too large and difficult to achieve high connectivity.

Method used

Using a non-volatile memory cell array as a synapse, the weight storage and calculation in the neural network is realized through a vector-matrix multiplication array (VMM array), eliminating separate multiplication and addition logic circuits, and using analog programming and continuous read operations to Achieve fine tuning.

Benefits of technology

It achieves efficient storage and calculation, reduces energy consumption, improves the computational parallelism and accuracy of neural networks, and is suitable for high-performance information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696319A_ABST
    Figure CN118696319A_ABST
Patent Text Reader

Abstract

Numerous examples of an artificial neural network including a vector-matrix multiplication array utilizing analog inputs are disclosed. In one example, a system includes: a vector-matrix multiplication array including a plurality of non-volatile memory cells arranged in rows and columns; a capacitor including a first terminal and a second terminal, the second terminal coupled to a common potential; a row decoder for enabling an input signal to be applied to the first terminal of the capacitor in response to an address; and a buffer coupled to the first terminal of the capacitor, the buffer to generate an output voltage for a respective row of the vector-matrix multiplication array.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Priority declaration

[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 328,473, filed on April 7, 2022, entitled “Artificial Neural Network Comprising Vector-By-Matrix Multiplication Arrays Utilizing Analog Inputs and Analog Outputs,” and U.S. Patent Application No. 17 / 847,486, filed on June 23, 2022, entitled “Vector-By-Matrix-Multiplication Array Utilizing Analog Inputs.” Technical Field

[0003] Many examples of artificial neural networks including arrays of vector-matrix multiplications utilizing simulated inputs are disclosed. Background Art

[0004] Artificial neural networks simulate biological neural networks (the central nervous system of animals, especially the brain), and are used to estimate or approximate functions that may depend on a large number of inputs and are usually unknown. Artificial neural networks typically consist of layers of interconnected "neurons" that exchange messages with each other.

[0005] FIG1 shows an artificial neural network, where circles represent inputs or layers of neurons. Connections (called synapses) are represented by arrows and have numerical weights that can be tuned based on experience. This allows the neural network to adapt to the input and be able to learn. Typically, a neural network includes multiple layers of inputs. There are typically one or more intermediate layers of neurons, and an output layer of neurons that provide the output of the neural network. Neurons at each level make decisions based on data received from the synapses, either individually or collectively.

[0006] One of the main challenges in developing artificial neural networks for high-performance information processing is the lack of adequate hardware technology. In fact, practical neural networks rely on a large number of synapses to achieve high connectivity between neurons, i.e. very high computational parallelism. In principle, this complexity can be achieved by digital supercomputers or clusters of dedicated graphics processing units. However, these approaches, in addition to their high cost, are also mediocre in energy efficiency compared to biological networks, which consume much less energy mainly due to the low-precision analog calculations they perform. CMOS analog circuits have been used for artificial neural networks, but given the large number of neurons and synapses, the synapses of most CMOS implementations are too large.

[0007] Applicant previously disclosed an artificial (simulated) neural network using one or more non-volatile memory arrays as synapses in U.S. Patent Application Publication 2017 / 0337466A1, which is incorporated herein by reference. The non-volatile memory array operates as an analog neural memory and includes non-volatile memory cells arranged in rows and columns. The neural network includes a first plurality of synapses configured to receive a first plurality of inputs and generate a first plurality of outputs therefrom, and a first plurality of neurons configured to receive a first plurality of outputs. The first plurality of synapses includes a plurality of memory cells, wherein each of the memory cells includes: a source region and a drain region spaced apart formed in a semiconductor substrate, wherein a channel region extends between the source region and the drain region; a floating gate disposed above a first portion of the channel region and insulated from the first portion; and a non-floating gate disposed above a second portion of the channel region and insulated from the second portion. Each of the plurality of memory cells stores a weight value corresponding to a plurality of electrons on the floating gate. The plurality of memory cells multiply the first plurality of inputs by the stored weight values ​​to generate a first plurality of outputs.

[0008] Non-volatile memory cell

[0009] Nonvolatile memory is well known. For example, U.S. Pat. No. 5,029,130 ​​(“the '130 patent”), which is incorporated herein by reference, discloses an array of split-gate nonvolatile memory cells, which is a type of flash memory cell. Such a memory cell 210 is shown in FIG. 2 . Each memory cell 210 includes a source region 14 and a drain region 16 formed in a semiconductor substrate 12 with a channel region 18 therebetween. A floating gate 20 is formed over and insulated from (and controls the conductivity of) a first portion of the channel region 18, and is formed over a portion of the source region 14. A word line terminal 22 (which is typically coupled to a word line) has a first portion disposed over and insulated from (and controls the conductivity of) a second portion of the channel region 18, and a second portion extending upward and located over the floating gate 20. The floating gate 20 and the word line terminal 22 are insulated from the substrate 12 by a gate oxide. A bit line 24 is coupled to the drain region 16.

[0010] Memory cell 210 is erased (where electrons are removed from the floating gate) by placing a high positive voltage on word line terminal 22, which causes the electrons on floating gate 20 to tunnel through the intervening insulator via Fowler-Nordheim (FN) tunneling from floating gate 20 to word line terminal 22.

[0011] The memory cell 210 is programmed by source side injection (SSI) with hot electrons (where electrons are placed on the floating gate) by placing a positive voltage on the word line terminal 22 and a positive voltage on the source region 14. The electron flow will flow from the drain region 16 to the source region 14. When the electrons reach the gap between the word line terminal 22 and the floating gate 20, the electrons will accelerate and become hot. Due to the electrostatic attraction from the floating gate 20, some of the heated electrons will be injected through the gate oxide onto the floating gate 20.

[0012] The memory cell 210 is read by placing a positive read voltage on the drain region 16 and the word line terminal 22 (which turns on the portion of the channel region 18 below the word line terminal). If the floating gate 20 is positively charged (i.e., the electrons are erased), the portion of the channel region 18 below the floating gate 20 is also turned on, and current will flow through the channel region 18, which is sensed as an erased state or a "1" state. If the floating gate 20 is negatively charged (i.e., programmed by electrons), the portion of the channel region below the floating gate 20 is mostly or completely turned off, and current will not (or very little) flow through the channel region 18, which is sensed as a programmed state or a "0" state.

[0013] Table 1 depicts typical voltage and current ranges that may be applied to the terminals of the memory cell 210 for performing read operations, erase operations, and program operations:

[0014] Table 1: Operation of the flash memory unit 210 of FIG. 2

[0015] WL BL SL Read 2V-3V 0.6V-2V 0V Erase About 11V-13V 0V 0V programming 1-2V 10.5μA-3μA 9V-10V

[0016] Other split gate memory cell configurations are known as other types of flash memory cells. For example, FIG. 3 depicts a four-gate memory cell 310, which includes a source region 14, a drain region 16, a floating gate 20 above a first portion of a channel region 18, a select gate 22 (typically coupled to a word line WL) above a second portion of the channel region 18, a control gate 28 above the floating gate 20, and an erase gate 30 above the source region 14. This configuration is described in U.S. Pat. No. 6,747,310, which is incorporated herein by reference for all purposes. Here, except for the floating gate 20, all gates are non-floating gates, meaning that they are electrically connected or capable of being electrically connected to a voltage source. Programming is performed by heated electrons from the channel region 18 that inject themselves into the floating gate 20. Erasing is performed by electrons tunneling from the floating gate 20 to the erase gate 30.

[0017] Table 2 depicts typical voltage and current ranges that may be applied to the terminals of the memory cell 310 for performing read operations, erase operations, and program operations:

[0018] Table 2: Operation of the flash memory unit 310 of FIG. 3

[0019] WL / SG BL CG EG SL Read 1.0V-2V 0.6V-2V 0V-2.6V 0V-2.6V 0V Erase -0.5V / 0V 0V 0V / -8V 8-12V 0V programming 1V 0.1μA-1μA 8V-11V 4.5V-9V 4.5V-5V

[0020] FIG4 depicts a tri-gate memory cell 410, which is another type of flash memory cell. Memory cell 410 is the same as memory cell 310 of FIG3, except that memory cell 410 does not have a separate control gate. Erase operations (thus erasing by using an erase gate) and read operations are similar to the operations of FIG3, except that no control gate bias is applied. Program operations are also completed without a control gate bias, and therefore, a higher voltage is applied on the source line during a programming operation to compensate for the lack of a control gate bias.

[0021] Table 3 depicts typical voltage and current ranges that may be applied to the terminals of the memory cell 410 for performing read operations, erase operations, and program operations:

[0022] Table 3: Operation of the flash memory unit 410 of FIG. 4

[0023] WL / SG BL EG SL Read 0.7V-2.2V 0.6V-2V 0V-2.6V 0V Erase -0.5V / 0V 0V 11.5V 0V programming 1V 0.2μA-3μA 4.5V 7V-9V

[0024] FIG5 depicts a stacked gate memory cell 510, which is another type of flash memory cell. Memory cell 510 is similar to memory cell 210 of FIG2, except that floating gate 20 extends over the entire channel region 18, and control gate 22 (which here will be coupled to the word line) extends over floating gate 20, separated by an insulating layer (not shown). Erasing is performed by FN tunneling of electrons from the FG to the substrate, programming is performed by channel hot electron (CHE) injection at the region between channel 18 and drain region 16, by electron flow from source region 14 toward drain region 16, and a read operation similar to memory cell 210 with a higher control gate voltage.

[0025] Table 4 depicts typical voltage ranges that may be applied to the terminals of the memory cell 510 and the substrate 12 for performing read operations, erase operations, and program operations:

[0026] Table 4: Operation of the flash memory unit 510 of FIG. 5

[0027]

[0028] The methods and devices described herein can be applied to other non-volatile memory technologies, such as but not limited to FINFET split-gate flash memory or stacked-gate flash memory, NAND flash memory, SONOS (silicon-oxide-nitride-oxide-silicon, charge trapped in nitride), MONOS (metal-oxide-nitride-oxide-silicon, metal charge trapped in nitride), ReRAM (resistive RAM), PCM (phase change memory), MRAM (magnetic RAM), FeRAM (ferroelectric RAM), CT (charge trapping) memory, CN (carbon tube) memory, OTP (two-level or multi-level one-time programmable) and CeRAM (correlated electron RAM), etc.

[0029] In order to utilize a memory array comprising one of the above-described types of non-volatile memory cells in an artificial neural network, two modifications are made. First, the circuitry is configured so that each memory cell can be individually programmed, erased, and read without adversely affecting the memory states of other memory cells in the array, as further explained below. Second, continuous (analog) programming of the memory cells is provided.

[0030] Specifically, the memory state (i.e., the charge on the floating gate) of each memory cell in the array can be changed from a fully erased state to a fully programmed state, and vice versa, independently and continuously with minimal disturbance to other memory cells. This means that the cell storage device is actually analog, or at least can store one of many discrete values ​​(such as 16 or 64 different values), which allows very precise and individual tuning of all the memory cells in the memory array, and makes the memory array ideal for storing and fine tuning the synaptic weights of a neural network.

[0031] Neural Network Using Non-Volatile Memory Cell Array

[0032] Figure 6 A non-limiting example of a neural network utilizing a non-volatile memory array of this example is conceptually illustrated. This example uses a non-volatile memory array neural network for a facial recognition application, but any other suitable application may also be implemented using a neural network based on a non-volatile memory array.

[0033] For this example, S0 is the input layer, which is a 32×32 pixel RGB image with 5-bit precision (i.e., three 32×32 pixel arrays, one for each color R, G, and B, with 5-bit precision per pixel). Synapse CB1 from input layer S0 to layer C1 applies different sets of weights in some cases and shared weights in other cases, and scans the input image with a 3×3 pixel overlapping filter (kernel), shifting the filter by 1 pixel (or more than 1 pixel as the model dictates). Specifically, the values ​​of 9 pixels in the 3×3 portion of the image (i.e., called the filter or kernel) are provided to synapse CB1, where these 9 input values ​​are multiplied by the appropriate weights, and after summing the outputs of the multiplications, a single output value is determined and provided by the first synapse of CB1 for generating a pixel of one of the feature maps of layer C1. The 3×3 filter is then shifted right by one pixel within the input layer S0 (i.e., a column of three pixels on the right is added, and a column of three pixels on the left is released), whereby the 9 pixel values ​​in this newly positioned filter are provided to the synapse CB1, where they are multiplied by the same weights and a second single output value is determined by the associated synapse. This process continues until the 3×3 filter has scanned all three colors and all bits (precision values) over the entire 32×32 pixel image of the input layer S0. The process is then repeated using different sets of weights to generate different feature maps for layer C1 until all feature maps for layer C1 are calculated.

[0034] At layer C1, in this example, there are 16 feature maps, each with 30x30 pixels. Each pixel is a new feature pixel extracted from the product of the input and the kernel, so each feature map is a two-dimensional array, so in this example, layer C1 consists of a two-dimensional array of 16 layers (remember that the layers and arrays referred to in this article are logical relationships, not necessarily physical relationships, that is, arrays do not have to be oriented to physical two-dimensional arrays). Each of the 16 feature maps in layer C1 is generated by one of sixteen different sets of synaptic weights applied to the filter scan. The C1 feature maps can all relate to different aspects of the same image features, such as boundary identification. For example, a first map (generated using a first set of weights, shared for all scans used to generate the first map) can identify circular edges, a second map (generated using a second set of weights different from the first set of weights) can identify rectangular edges, or the aspect ratio of certain features, and so on.

[0035] Before passing from layer C1 to layer S1, an activation function P1 (pooling) is applied, which pools the values ​​from consecutive non-overlapping 2×2 regions in each feature map. The purpose of the pooling function P1 is to average neighboring positions (or a max function can also be used) to, for example, reduce the dependency of edge positions and reduce the data size before entering the next stage. At layer S1, there are 16 15×15 feature maps (i.e., sixteen different arrays of 15×15 pixels per feature map). The synapse CB2 from layer S1 to layer C2 scans the map in layer S1 using a 4×4 filter, where the filter is shifted by 1 pixel. At layer C2, there are 22 12×12 feature maps. Before passing from layer C2 to layer S2, an activation function P2 (pooling) is applied, which pools the values ​​from consecutive non-overlapping 2×2 regions in each feature map. At layer S2, there are 22 6×6 feature maps. An activation function (pooling) is applied to the synapse CB3 from layer S2 to layer C3, where each neuron in layer C3 is connected to each map in layer S2 via a corresponding synapse of CB3. At layer C3, there are 64 neurons. Synapse CB4 from layer C3 to output layer S3 completely connects C3 to S3, i.e., each neuron in layer C3 is connected to each neuron in layer S3. The output at S3 includes 10 neurons, where the highest output neuron determines the class. For example, the output may indicate recognition or classification of the content of the original image.

[0036] The synapses at each layer are implemented using an array or a portion of an array of non-volatile memory cells.

[0037] Figure 7 A block diagram of an array that can be used for this purpose is shown in FIG. 3. The vector-matrix multiplication (VMM) array 32 includes non-volatile memory cells and serves as a synapse between one layer and the next (such as Figure 6 CB1, CB2, CB3 and CB4 in FIG. 3 ). Specifically, the VMM array 32 includes a nonvolatile memory cell array 33, an erase gate and word line gate decoder 34, a control gate decoder 35, a bit line decoder 36 and a source line decoder 37, which decode the corresponding inputs of the nonvolatile memory cell array 33. The input to the VMM array 32 may come from the erase gate and word line gate decoder 34 or from the control gate decoder 35. In this example, the source line decoder 37 also decodes the output of the nonvolatile memory cell array 33. Alternatively, the bit line decoder 36 may decode the output of the nonvolatile memory cell array 33.

[0038] The non-volatile memory cell array 33 serves two purposes. First, it stores weights to be used by the VMM array 32. Second, the non-volatile memory cell array 33 effectively multiplies the input with the weights stored in the non-volatile memory cell array 33 and each output line (source line or bit line) adds them to produce an output, which will serve as the input of the next layer or the input of the final layer. By performing multiplication and addition functions, the non-volatile memory cell array 33 eliminates the need for separate multiplication and addition logic circuits, and is also power efficient due to its in-situ memory calculations.

[0039] The output of the non-volatile memory cell array 33 is provided to a differential summer (such as a summing operational amplifier or a summing current mirror) 38, which sums the output of the non-volatile memory cell array 33 to create a single value for the convolution. The differential summer 38 is arranged to perform the summing of positive and negative weights.

[0040] The summed output value of the difference summer 38 is then provided to the activation function block 39, which modifies the output. The activation function block 39 may provide a sigmoid, tanh, or ReLU function. The modified output value of the activation function block 39 becomes the next layer (e.g., Figure 6 The elements of the feature map of layer C1 in the image are then applied to the next synapse to produce the next feature map layer or the final layer. Therefore, in this example, the non-volatile memory cell array 33 constitutes a plurality of synapses (which receive their inputs from an existing neuron layer or from an input layer such as an image database), and the summing operational amplifier 38 and the activation function block 39 constitute a plurality of neurons.

[0041] Figure 7 The inputs to the VMM array 32 (WLx, EGx, CGx, and optionally BLx and SLx) may be analog levels, binary levels, or digital bits (in which case a DAC is provided to convert the digital bits to the appropriate input analog levels), and the outputs may be analog levels, binary levels, or digital bits (in which case an output ADC is provided to convert the output analog levels to digital bits).

[0042] Figure 8 1 is a block diagram depicting the use of multiple layers of VMM arrays 32, labeled here as VMM arrays 32a, 32b, 32c, 32d, and 32e. Figure 8As shown, the input (denoted as Inputx) is converted from digital to analog by a digital-to-analog converter 31 and provided to an input VMM array 32a. The converted analog input may be a voltage or a current. The first level of input D / A conversion may be accomplished by using a function or LUT (lookup table) that maps the input Inputx to the appropriate analog level of the matrix multiplier of the input VMM array 32a. The input conversion may also be accomplished by an analog-to-analog (A / A) converter to convert an external analog input into a mapped analog input to the input VMM array 32a.

[0043] The output generated by the input VMM array 32a is provided as input to the next VMM array (hidden level 1) 32b, which in turn generates outputs provided as input to the next VMM array (hidden level 2) 32c, and so on. The layers of the VMM array 32 serve as different layers of synapses and neurons of a convolutional neural network (CNN). Each VMM array 32a, 32b, 32c, 32d, and 32e can be an independent physical non-volatile memory array, or multiple VMM arrays can utilize different portions of the same non-volatile memory array, or multiple VMM arrays can utilize overlapping portions of the same physical non-volatile memory array. Figure 8 The example shown includes five layers (32a, 32b, 32c, 32d, 32e): one input layer (32a), two hidden layers (32b, 32c) and two fully connected layers (32d, 32e). One of ordinary skill in the art will appreciate that this is merely exemplary and that, on the contrary, the system may include more than two hidden layers and more than two fully connected layers.

[0044] Vector-Matrix Multiplication (VMM) Array

[0045] Fig. 9 Depicted is a neuron VMM array 900 that is particularly suitable for use with the memory cells 310 shown in FIG. 3 and serves as a synapse and component of neurons between an input layer and the next layer. The VMM array 900 includes a memory array 901 of nonvolatile memory cells and a reference array 902 of nonvolatile reference memory cells (at the top of the array). Alternatively, another reference array may be placed at the bottom.

[0046] In the VMM array 900, control gate lines (such as control gate line 903) extend in the vertical direction (so reference array 902 is orthogonal to control gate line 903 in the row direction), and erase gate lines (such as erase gate line 904) extend in the horizontal direction. Here, the inputs to the VMM array 900 are set on the control gate lines (CG0, CG1, CG2, CG3), and the outputs of the VMM array 900 appear on the source lines (SL0, SL1). In one example, only even rows are used, and in another example, only odd rows are used. The current placed on each source line (SL0, SL1, respectively) performs a summing function of all currents from the memory cells connected to that particular source line.

[0047] As described herein for neural networks, non-volatile memory cells of VMM array 900 (ie, memory cells 310 of VMM array 900 ) may be configured to operate in a sub-threshold region.

[0048] The nonvolatile reference memory cell and the nonvolatile memory cell described herein are biased in weak inversion (subthreshold region):

[0049] Ids=Io*e (Vg-Vth) / nVt =w*Io*e (Vg) / nVt ,

[0050] where w = e (-Vth ) / nVt

[0051] Where Ids is the drain to source current; Vg is the gate voltage on the memory cell; Vth is the threshold voltage of the memory cell; Vt is the thermal voltage = k*T / q, where k is the Boltzmann constant, T is the temperature in Kelvin, and q is the electron charge; n is the slope factor = 1+(Cdep / Cox), where Cdep = the capacitance of the depletion layer, and Cox is the capacitance of the gate oxide layer; Io is the memory cell current at a gate voltage equal to the threshold voltage, and Io is related to (Wt / L)*u*Cox*(n-1)*Vt 2 is proportional to , where u is the carrier mobility, and Wt and L are the width and length of the memory cell, respectively.

[0052] For an I to V logarithmic converter that uses a memory cell (such as a reference memory cell or a peripheral memory cell) or a transistor to convert the input current into an input voltage:

[0053] Vg=n*Vt*log[Ids / wp*Io]

[0054] Wherein, wp is w of a reference memory cell or a peripheral memory cell.

[0055] For a memory array used as a vector matrix multiplier VMM array with current input, the output current is:

[0056] Iout=wa*Io*e (Vg) / nVt ,Right now

[0057] Iout=(wa / wp)*Iin=W*Iin

[0058] W=e (Vthp-Vtha) / nVt

[0059] Here, wa = w for each memory cell in the memory array.

[0060] Vthp is the effective threshold voltage of the peripheral memory cells, and Vtha is the effective threshold voltage of the main (data) memory cells. Note that the threshold voltage of the transistor is a function of the substrate bulk bias voltage, and the substrate bulk bias voltage, denoted as Vsb, can be modulated to compensate for various conditions at this temperature. The threshold voltage Vth can be expressed as:

[0061] Vth=Vth0+γ(SQRT|Vsb-2*φF)-SQRT|2*φF|)

[0062] where Vth0 is the threshold voltage with zero substrate bias, φF is the surface potential, and γ is the bulk effect parameter.

[0063] The word line or control gate may be used as the input of the memory cell for the input voltage.

[0064] Alternatively, the flash memory cells of the VMM array described herein may be configured to operate in the linear region:

[0065] Ids=β*(Vgs-Vth)*Vds;β=u*Cox*Wt / L

[0066] W=α(Vgs-Vth)

[0067] This means that the weight W in the linear region is proportional to (Vgs-Vth)

[0068] The word line or control gate or bit line or source line can be used as the input of the memory cell operating in the linear region. The bit line or source line can be used as the output of the memory cell.

[0069] For an IV linear converter, a memory cell (such as a reference memory cell or a peripheral memory cell) or a transistor operating in a linear region may be used to linearly convert an input / output current into an input / output voltage.

[0070] Alternatively, the memory cells of the VMM array described herein may be configured to operate in the saturation region:

[0071] Ids=1 / 2*β*(Vgs-Vth) 2 ; β=u*Cox*Wt / L

[0072] Wα(Vgs-Vth) 2 , which means weight W and (Vgs-Vth) 2 Proportional

[0073] The word line, control gate, or erase gate can be used as the input of the memory cell operating in the saturation region. The bit line or source line can be used as the output of the output neuron.

[0074] Alternatively, the memory cells of the VMM array described herein may be used for all regions or combinations thereof (subthreshold, linear or saturation regions) of each layer or multiple layers of a neural network.

[0075] U.S. Patent No. 10,748,630 describes Figure 7 Other examples of VMM arrays 32 of , which are incorporated herein by reference. As described herein, source lines or bit lines can be used as neuron outputs (current summing outputs).

[0076] Fig.10 A neuron VMM array 1000 is depicted, which is particularly suitable for the memory cell 210 shown in FIG. 2 and serves as a synapse between an input layer and a next layer. The VMM array 1000 includes a memory array 1003 of nonvolatile memory cells, a reference array 1001 of a first nonvolatile reference memory cell, and a reference array 1002 of a second nonvolatile reference memory cell. The reference arrays 1001 and 1002 arranged in the column direction of the array are used to convert the current input flowing into the terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs WL0, WL1, WL2, and WL3. In practice, the first nonvolatile reference memory cell and the second nonvolatile reference memory cell are diode-connected through a multiplexer 1014 (only partially depicted), in which the current input flows. The reference cells are tuned (e.g., programmed) to a target reference level. The target reference level is provided by a reference microarray matrix (not shown).

[0077] The memory array 1003 serves two purposes. First, it stores the weights that the VMM array 1000 will use on its corresponding memory cells. Second, the memory array 1003 effectively multiplies the inputs (i.e., the current inputs provided in the terminals BLR0, BLR1, BLR2, and BLR3, which are converted into input voltages by the reference arrays 1001 and 1002 to be supplied to the word lines WL0, WL1, WL2, and WL3) by the weights stored in the memory array 1003, and then adds all the results (memory cell currents) to produce an output on the corresponding bit lines (BL0-BLN), which will be the input of the next layer or the input of the final layer. By performing multiplication and addition functions, the memory array 1003 eliminates the need for separate multiplication logic circuits and addition logic circuits, and is also highly power-efficient. Here, the voltage inputs are provided on the word lines WL0, WL1, WL2, and WL3, and the outputs appear on the corresponding bit lines BL0-BLN during the read (inference) operation. The current placed on each of the bit lines BL0-BLN performs a summing function of the currents from all of the nonvolatile memory cells connected to that particular bit line.

[0078] Table 5 depicts operating voltages and currents for the VMM array 1000. The columns in the table indicate the voltages placed on the word line for a selected cell, the word line for an unselected cell, the bit line for a selected cell, the bit line for an unselected cell, the source line for a selected cell, and the source line for an unselected cell. The rows indicate read, erase, and program operations.

[0079] Table 5: Fig.10 Operation of VMM Array 1000 :

[0080]

[0081] Fig.11 A neuron VMM array 1100 is depicted, which is particularly suitable for the memory cell 210 shown in FIG. 2 and serves as a synapse and component of a neuron between an input layer and a next layer. The VMM array 1100 includes a memory array 1103 of nonvolatile memory cells, a reference array 1101 of a first nonvolatile reference memory cell, and a reference array 1102 of a second nonvolatile reference memory cell. The reference arrays 1101 and 1102 extend in the row direction of the VMM array 1100. The VMM array is similar to the VMM 1000, except that in the VMM array 1100, the word lines extend in the vertical direction. Here, the inputs are set on the word lines (WLA0, WLB0, WLA1, WLB2, WLA2, WLB2, WLA3, WLB3), and the outputs appear on the source lines (SL0, SL1) during a read operation. The current placed on each source line performs a summing function of all currents from the memory cells connected to that particular source line.

[0082] Table 6 depicts operating voltages and currents for the VMM array 1100. The columns in the table indicate the voltages placed on the word line for a selected cell, the word line for an unselected cell, the bit line for a selected cell, the bit line for an unselected cell, the source line for a selected cell, and the source line for an unselected cell. The rows indicate read, erase, and program operations.

[0083] Table 6: Fig.11 Operation of the VMM array 1100

[0084]

[0085] Fig.12 A neuron VMM array 1200 is depicted, which is particularly suitable for the memory cell 310 shown in FIG. 3 and is used as a synapse and component of a neuron between an input layer and a next layer. The VMM array 1200 includes a memory array 1203 of nonvolatile memory cells, a reference array 1201 of a first nonvolatile reference memory cell, and a reference array 1202 of a second nonvolatile reference memory cell. The reference arrays 1201 and 1202 are used to convert the current input flowing into the terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs CG0, CG1, CG2, and CG3. In practice, the first nonvolatile reference memory cell and the second nonvolatile reference memory cell are diode-connected through a multiplexer 1212 (only partially shown), wherein the current input flows into them through BLR0, BLR1, BLR2, and BLR3. Multiplexers 1212 each include a respective multiplexer 1205 and cascode transistor 1204 to ensure a constant voltage on a bit line (such as BLR0) of each of the first and second nonvolatile reference memory cells during a read operation. The reference cells are tuned to a target reference level.

[0086] The memory array 1203 serves two purposes. First, it stores weights to be used by the VMM array 1200. Second, the memory array 1203 effectively multiplies the inputs (current inputs provided to terminals BLR0, BLR1, BLR2, and BLR3, which are converted by reference arrays 1201 and 1202 into input voltages to be provided to control gates (CG0, CG1, CG2, and CG3)) by the weights stored in the memory array, and then adds all the results (cell currents) to produce an output, which appears in BL0-BLN and will be the input to the next layer or the input to the final layer. By performing multiplication and addition functions, the memory array eliminates the need for separate multiplication and addition logic circuits and is also highly power-efficient. Here, the inputs are provided on the control gate lines (CG0, CG1, CG2, and CG3), and the outputs appear on the bit lines (BL0-BLN) during a read operation. The current placed on each bit line performs a summing function of all currents from the memory cells connected to that particular bit line.

[0087] The VMM array 1200 implements unidirectional tuning of the non-volatile memory cells in the memory array 1203. That is, each non-volatile memory cell is erased and then partially programmed until the desired charge on the floating gate is reached. If too much charge is placed on the floating gate (causing an erroneous value to be stored in the cell), the cell is erased and the sequence of partial programming operations restarts. As shown, two rows sharing the same erase gate (such as EG0 or EG1) are erased together (which is called a page erase), and thereafter, each cell is partially programmed until the desired charge on the floating gate is reached.

[0088] Table 7 depicts operating voltages and currents for the VMM array 1200. The columns in the table indicate the voltages placed on the word line for a selected cell, the word line for an unselected cell, the bit line for a selected cell, the bit line for an unselected cell, the control gate for a selected cell, the control gate for an unselected cell in the same sector as the selected cell, the control gate for an unselected cell in a different sector than the selected cell, the erase gate for a selected cell, the erase gate for an unselected cell, the source line for a selected cell, and the source line for an unselected cell. The rows indicate read, erase, and program operations.

[0089] Table 7: Fig.12 Operation of the VMM array 1200

[0090]

[0091] Fig.13A neuron VMM array 1300 is depicted that is particularly suitable for use with the memory cell 310 shown in FIG. 3 and serves as a synapse and component of a neuron between an input layer and a next layer. The VMM array 1300 includes a memory array 1303 of nonvolatile memory cells, a reference array 1301 of a first nonvolatile reference memory cell, and a reference array 1302 of a second nonvolatile reference memory cell. The EG lines EGR0, EG0, EG1, and EGR1 extend vertically, while the CG lines CG0, CG1, CG2, and CG3 and the SL lines WL0, WL1, WL2, and WL3 extend horizontally. The VMM array 1300 is similar to the VMM array 1400, except that the VMM array 1300 implements bidirectional tuning, where each individual cell can be fully erased, partially programmed, and partially erased as needed to achieve a desired amount of charge on the floating gate due to the use of separate EG lines. As shown, reference arrays 1301 and 1302 convert input currents in terminals BLR0, BLR1, BLR2, and BLR3 into control gate voltages CG0, CG1, CG2, and CG3 to be applied to the memory cells in the row direction (through the action of diode-connected reference cells via multiplexer 1314). The current outputs (neurons) are in bit lines BL0-BLN, where each bit line sums all currents from the non-volatile memory cells connected to that particular bit line.

[0092] Table 8 depicts operating voltages and currents for the VMM array 1300. The columns in the table indicate the voltages placed on the word line for a selected cell, the word line for an unselected cell, the bit line for a selected cell, the bit line for an unselected cell, the control gate for a selected cell, the control gate for an unselected cell in the same sector as the selected cell, the control gate for an unselected cell in a different sector than the selected cell, the erase gate for a selected cell, the erase gate for an unselected cell, the source line for a selected cell, and the source line for an unselected cell. The rows indicate read, erase, and program operations.

[0093] Table 8: Fig.13 Operation of the VMM array 1300

[0094]

[0095] Fig. 22 A neuron VMM array 2200 is depicted, which is particularly suitable for the memory unit 210 shown in FIG. 2 and is used as a synapse and component of neurons between the input layer and the next layer. In the VMM array 2200, the input INPUT 0 、......、INPUT N bit lines BL 0 ,......BL N is received and output1 、OUTPUT 2 、OUTPUT 3 and OUTPUT 4 The source lines SL 0 , SL 1 , SL 2 and SL 3 Generate on.

[0096] Fig.23 A neuron VMM array 2300 is depicted, which is particularly suitable for use with the memory cell 210 shown in FIG. 2 and serves as a synapse and component of neurons between an input layer and the next layer. In this example, the input INPUT 0 、INPUT 1 、INPUT 2 and INPUT 3 The source lines SL 0 , SL 1 , SL 2 and SL 3 is received and output 0 ,......OUTPUT N On the bit line BL 0 ,......,BL N Generate on.

[0097] Fig.24 A neuron VMM array 2400 is depicted, which is particularly suitable for use with the memory cell 210 shown in FIG. 2 and is used as a synapse and component of neurons between an input layer and the next layer. In this example, the input INPUT 0 、......、INPUT M WL 0 ,......,WL M is received and output 0 ,......OUTPUT N On the bit line BL 0 ,......,BL N Generate on.

[0098] Fig.25 A neuron VMM array 2500 is depicted, which is particularly suitable for use with the memory cell 310 shown in FIG. 3 and is used as a synapse and component of neurons between an input layer and the next layer. In this example, the input INPUT 0 、......、INPUT M WL 0 ,......,WLM is received and output 0 ,......OUTPUT N On the bit line BL 0 ,......,BL N Generate on.

[0099] Fig.26 A neuron VMM array 2600 is depicted, which is particularly suitable for use with the memory cell 410 shown in FIG. 4 and serves as a synapse and component of neurons between an input layer and the next layer. In this example, the input INPUT 0 、......、INPUT n On the vertical control gate line CG 0 ,......,CG N is received and output 1 and OUTPUT 2 On the source line SL 0 and SL 1 Generate on.

[0100] Fig. 27 A neuron VMM array 2700 is depicted, which is particularly suitable for use with the memory cell 410 shown in FIG. 4 and is used as a synapse and component of neurons between an input layer and the next layer. In this example, the input INPUT 0 、......、INPUT N are received at the gates of bit line control gates 2701-1, 2701-2, . . . , 2701-(N-1), and 2701-N, which are respectively coupled to bit lines BL 0 ,......,BL N Sample output OUTPUT 1 and OUTPUT 2 On the source line SL 0 and SL 1 Generate on.

[0101] Fig.28 Depicted is a neuron VMM array 2800 that is particularly suitable for use with memory cells 310 shown in FIG. 3 , memory cells 510 shown in FIG. 5 , and Figure 7 The memory cell 710 shown in FIG. 1 is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the input INPUT 0 、......、INPUT M On word line WL 0 ,......,WL Mis received and output 0 ,......,OUTPUT N bit lines BL 0 ,......,BL N Generate on.

[0102] Fig.29 Depicted is a neuron VMM array 2900 that is particularly suitable for use with memory cells 310 shown in FIG. 3 , memory cells 510 shown in FIG. 5 , and Figure 7 The memory cell 710 shown in FIG. 1 is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the input INPUT 0 、......、INPUT M On the control gate line CG 0 ,......,CG M OUTPUT 0 ,......,OUTPUT N On the vertical source lines SL 0 ,......,SL N Each source line SL i The source line coupled to all memory cells in column i.

[0103] Fig.30 Depicted is a neuron VMM array 3000, which is particularly suitable for use with memory cells 310 shown in FIG. 3, memory cells 510 shown in FIG. 5, and Figure 7 The memory cell 710 shown in FIG. 1 is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the input INPUT 0 、......、INPUT M On the control gate line CG 0 ,......,CG M OUTPUT 0 ,......,OUTPUT N On the vertical bit lines BL 0 ,......,BL N On generation, each bit line BL i The bit line coupled to all memory cells in column i.

[0104] Long Short-Term Memory

[0105] Prior art includes a concept called long short-term memory (LSTM). LSTM cells are commonly used in neural networks. LSTM allows a neural network to remember information for a predetermined arbitrary time interval and use the information in subsequent operations. A conventional LSTM cell includes a cell, an input gate, an output gate, and a forget gate. The three gates regulate the flow of information into and out of the cell and the time interval at which information is remembered in the LSTM. VMMs are particularly useful in LSTM cells.

[0106] FIG14 depicts an example LSTM 1400. The LSTM 1400 in this example includes units 1401, 1402, 1403, and 1404. Unit 1401 receives an input vector x 0 And generate the output vector h 0 and the cell state vector c 0 Unit 1402 receives an input vector x 1 , the output vector (hidden state) from unit 1401 h 0 and the cell state c from cell 1401 0 , and generates the output vector h 1 and the cell state vector c 1 Unit 1403 receives the input vector x 2 , the output vector (hidden state) from unit 1402 h 1 and the cell state c from cell 1402 1 , and generates the output vector h 2 and the cell state vector c 2 Unit 1404 receives the input vector x 3 , the output vector (hidden state) h from unit 1403 2 and the cell state c from cell 1403 2 , and generates the output vector h 3 Additional units may be used, and the LSTM with four units is just an example.

[0107] Figure 15 depicts an example implementation of an LSTM cell 1500 that may be used for cells 1401, 1402, 1403, and 1404 in Figure 14. LSTM cell 1500 receives an input vector x(t), a cell state vector c(t-1) from a previous cell, and an output vector h(t-1) from a previous cell, and generates a cell state vector c(t) and an output vector h(t).

[0108] LSTM cell 1500 includes sigmoid function devices 1501, 1502, and 1503, each of which applies a number between 0 and 1 to control how much of each component in the input vector is allowed to pass through to the output vector. LSTM cell 1500 also includes tanh devices 1504 and 1505 for applying a hyperbolic tangent function to the input vector, multiplier devices 1506, 1507, and 1508 for multiplying two vectors together, and an addition device 1509 for adding two vectors together. The output vector h(t) can be provided to the next LSTM cell in the system, or it can be accessed for other purposes.

[0109] Fig.16 LSTM cell 1600 is depicted, which is an example of a specific implementation of LSTM cell 1500. For the convenience of the reader, the same numbering as LSTM cell 1500 is used in LSTM cell 1600. Sigmoid function devices 1501, 1502 and 1503 and tanh device 1504 each include multiple VMM arrays 1601 and activation function blocks 1602. Therefore, it can be seen that VMM arrays are particularly useful in LSTM cells used in certain neural network systems. Multiplier devices 1506, 1507 and 1508 and addition device 1509 are implemented digitally or in analog. Activation function block 1602 can be implemented digitally or in analog.

[0110] An alternative form of LSTM cell 1600 (and another example of a specific implementation of LSTM cell 1500) is Fig.17 In Fig.17 , the sigmoid function devices 1501, 1502 and 1503 and the tanh device 1504 share the same physical hardware (VMM array 1701 and activation function block 1702) in a time-division multiplexing manner. The LSTM unit 1700 also includes a multiplier device 1703 for multiplying two vectors together, an addition device 1708 for adding two vectors together, a tanh device 1505 (which includes an activation function block 1702), a register 1707 for storing the value i(t) when the value i(t) is output from the sigmoid function block 1702, a register 1704 for storing the value f(t)*c(t-1) when the value is output from the multiplier device 1703 through the multiplexer 1710, a register 1705 for storing the value i(t)*u(t) when the value is output from the multiplier device 1703 through the multiplexer 1710, and a register 1706 for storing the value o(t)*c~(t) when the value is output from the multiplier device 1703 through the multiplexer 1710, and a multiplexer 1709.

[0111] LSTM cell 1600 includes multiple sets of VMM arrays 1601 and corresponding activation function blocks 1602, while LSTM cell 1700 includes only one set of VMM arrays 1701 and activation function blocks 1702, which are used to represent multiple layers in the example of LSTM cell 1700. LSTM cell 1700 will require less space than LSTM 1600 because LSTM cell 1700 only requires 1 / 4 of its space for VMM and activation function blocks compared to LSTM cell 1600.

[0112] It is also understood that the LSTM cell will typically include multiple VMM arrays, each of which requires functionality provided by certain circuit blocks outside the VMM array (such as summers and activation function blocks and high voltage generation blocks). Providing a separate circuit block for each VMM array would require a large amount of space within the semiconductor device and would be inefficient to a certain extent. Therefore, the examples described below reduce the circuitry required outside the VMM array itself.

[0113] Gate Controlled Recursive Unit

[0114] The simulated VMM implementation can be used for a Gated Recurrent Unit (GRU) system. GRU is a gate mechanism in a recurrent neural network. GRU is similar to LSTM, except that a GRU cell generally contains fewer components than an LSTM cell.

[0115] FIG18 depicts an example GRU 1800. The GRU 1800 in this example includes units 1801, 1802, 1803, and 1804. Unit 1801 receives an input vector x 0 And generate the output vector h 0 Unit 1802 receives an input vector x 1 , the output vector h from unit 1801 0 And generate the output vector h 1 Unit 1803 receives the input vector x 2 and the output vector (hidden state) h from unit 1802 1 And generate the output vector h 2 Unit 1804 receives the input vector x 3 and the output vector (hidden state) h from unit 1803 2 And generate the output vector h 3 Additional units may be used, and the GRU with four units is just an example.

[0116] FIG. 19 depicts an example implementation of a GRU cell 1900 that may be used for cells 1801, 1802, 1803, and 1804 of FIG. 18. GRU cell 1900 receives an input vector x(t) and an output vector h(t-1) from a previous GRU cell, and generates an output vector h(t). GRU cell 1900 includes sigmoid function devices 1901 and 1902, each of which applies a number between 0 and 1 to components from the output vector h(t-1) and the input vector x(t). GRU cell 1900 also includes a tanh device 1903 for applying a hyperbolic tangent function to the input vector, a plurality of multiplier devices 1904, 1905, and 1906 for multiplying two vectors together, an addition device 1907 for adding two vectors together, and a complement device 1908 for subtracting the input from 1 to generate an output.

[0117] Fig. 20 A GRU unit 2000 is depicted, which is an example of a specific implementation of the GRU unit 1900. For the convenience of the reader, the same numbering is used in the GRU unit 2000 as in the GRU unit 1900. Fig. 20 As can be seen in FIG. 1 , sigmoid function devices 1901 and 1902 and tanh device 1903 each include multiple VMM arrays 2001 and activation function blocks 2002. Therefore, it can be seen that the VMM array is particularly useful in the GRU unit used in some neural network systems. Multiplier devices 1904, 1905 and 1906, addition device 1907 and complementary device 1908 are implemented in digital or analog form. Activation function block 2002 can be implemented in digital or analog form.

[0118] An alternative form of GRU unit 2000 (and another example of a specific implementation of GRU unit 1900) is Fig.21 In Fig.21 In , the GRU unit 2100 utilizes a VMM array 2101 and an activation function block 2102 which, when configured as a sigmoid function, applies a number between 0 and 1 to control how much of each component in the input vector is allowed to pass through to the output vector. Fig.21, the sigmoid function devices 1901 and 1902 and the tanh device 1903 share the same physical hardware (VMM array 2101 and activation function block 2102) in a time-division multiplexing manner. The GRU unit 2100 also includes a multiplier device 2103 for multiplying two vectors together, an addition device 2105 for adding two vectors together, a complementary device 2109 for subtracting an input from 1 to generate an output, a multiplexer 2104, a register 2106 for holding the value h(t-1)*r(t) when it is output from the multiplier device 2103 through the multiplexer 2104, a register 2107 for holding the value h(t-1)*z(t) when it is output from the multiplier device 2103 through the multiplexer 2104, and a register 2108 for holding the value h^(t)*(1-z(t)) when it is output from the multiplier device 2103 through the multiplexer 2104.

[0119] The GRU unit 2000 includes multiple sets of VMM arrays 2001 and activation function blocks 2002, while the GRU unit 2100 includes only one set of VMM arrays 2101 and activation function blocks 2102, which are used to represent multiple layers in the example of the GRU unit 2100. The GRU unit 2100 will require less space than the GRU unit 2000 because the GRU unit 2100 only requires 1 / 3 of its space for the VMM and activation function blocks compared to the GRU unit 2000.

[0120] It will also be appreciated that a GRU system will typically include multiple VMM arrays, each of which requires functionality provided by certain circuit blocks outside the VMM array (such as summers and activation function blocks and high voltage generation blocks). Providing a separate circuit block for each VMM array would require a significant amount of space within the semiconductor device and would be somewhat inefficient. Therefore, the examples described below reduce the circuitry required outside the VMM array itself.

[0121] The inputs to the VMM array can be analog levels, binary levels, pulses, time-modulated pulses, or digital bits (in which case a DAC is required to convert the digital bits to the appropriate input analog levels), and the outputs can be analog levels, binary levels, timed pulses, pulses, or digital bits (in which case an output ADC is required to convert the output analog levels to digital bits).

[0122] In general, for each memory cell in the VMM array, each weight W can be implemented by a single memory cell or by a differential cell or by two hybrid memory cells (average of 2 cells). In the case of a differential cell, two memory cells are required to implement the weight W as a differential weight (W=W+-W-). In two hybrid memory cells, two memory cells are required to implement the weight W as the average of the two cells.

[0123] Fig.31 A VMM system 3100 is depicted. In some examples, the weights W stored in the VMM array are stored as a differential pair W+ (positive weight) and W- (negative weight), where W=(W+)-(W-). In the VMM system 3100, half of the bit lines are designated as W+ lines, i.e., bit lines connected to memory cells that will store positive weights W+, and the other half of the bit lines are designated as W- lines, i.e., bit lines connected to memory cells that implement negative weights W-. The W- lines are interspersed between the W+ lines in an alternating manner. The subtraction operation is performed by a summing circuit (such as summing circuits 3101 and 3102), which receives current from the W+ line and the W- line. The output of the W+ line and the output of the W- are combined together to effectively give W=W+-W- for each (W+, W-) cell pair of all (W+, W-) line pairs. Although described above with respect to W- lines interspersed between W+ lines in an alternating manner, in other examples, the W+ lines and W- lines may be arbitrarily located anywhere in the array.

[0124] Fig.32 Another example is depicted. In VMM system 3210 , positive weights W+ are implemented in a first array 3211 , and negative weights W− are implemented in a second array 3212 , which is separate from the first array, and the resulting weights are appropriately combined together by summing circuit 3213 .

[0125] Fig.33A VMM system 3300 is depicted, in which the weights W stored in the VMM array are stored as a differential pair W+ (positive weight) and W- (negative weight), where W=(W+)-(W-). The VMM system 3300 includes an array 3301 and an array 3302. Half of the bit lines in each of the arrays 3301 and 3302 are designated as W+ lines, i.e., bit lines connected to memory cells that will store positive weights W+, and the other half of the bit lines in each of the arrays 3301 and 3302 are designated as W- lines, i.e., bit lines connected to memory cells that implement negative weights W-. The W- lines are interspersed between the W+ lines in an alternating manner. The subtraction operation is performed by a summing circuit (such as summing circuits 3303, 3304, 3305, and 3306), which receives current from the W+ lines and the W- lines. The outputs of the W+ lines and the outputs of the W- lines from each array 3301, 3302 are combined together to effectively give W=W+-W- for each (W+, W-) cell pair for all (W+, W-) line pairs. In addition, the W values ​​from each array 3301 and 3302 can be further combined by summing circuits 3307 and 3308 so that each W value is the result of subtracting the W value from array 3301 from the W value from array 3302, which means that the final result from summing circuits 3307 and 3308 is a difference of two difference values.

[0126] Each nonvolatile memory cell used in an analog neural memory system is erased and programmed to hold a very specific and precise amount of charge (i.e., number of electrons) in the floating gate. For example, each floating gate should hold one of N different values, where N is the number of different weights that can be indicated by each cell. Examples of N include 16, 32, 64, 128, and 256.

[0127] As the applications of artificial neural networks become more complex, there is an increasing need to increase speed while maintaining accuracy. In prior art VMM systems, digital inputs and digital outputs are utilized, which requires analog-to-digital conversion and digital-to-analog conversion at various stages.

[0128] What is needed is an architecture for a VMM system that operates in an analog domain, where inputs are in analog form. Summary of the invention

[0129] Several examples are described for providing an artificial neural network system that includes an array of vector-matrix multiplications using simulated inputs. BRIEF DESCRIPTION OF THE DRAWINGS

[0130] FIG. 1 is a diagram illustrating an artificial neural network.

[0131] FIG. 2 depicts a prior art split-gate flash memory cell.

[0132] FIG. 3 depicts another prior art split gate flash memory cell.

[0133] FIG. 4 depicts another prior art split gate flash memory cell.

[0134] FIG. 5 depicts another prior art split gate flash memory cell.

[0135] Figure 6 A schematic diagram illustrating different levels of an exemplary artificial neural network utilizing one or more non-volatile memory arrays.

[0136] Figure 7 FIG. 1 is a block diagram showing a VMM system.

[0137] Figure 8 is a block diagram illustrating an example artificial neural network utilizing one or more VMM systems.

[0138] Fig. 9 Another example of a VMM system is depicted.

[0139] Fig.10 Another example of a VMM system is depicted.

[0140] Fig.11 Another example of a VMM system is depicted.

[0141] Fig.12 Another example of a VMM system is depicted.

[0142] Fig.13 Another example of a VMM system is depicted.

[0143] FIG. 14 depicts a prior art long short term memory system.

[0144] FIG. 15 depicts an example cell for use in a long short term memory system.

[0145] Fig.16 An example implementation of the unit of FIG. 15 is depicted.

[0146] Fig.17 Another example implementation of the unit of FIG. 15 is depicted.

[0147] FIG. 18 depicts a prior art gate-controlled recursive cell system.

[0148] FIG. 19 depicts an example cell for use in a gate-controlled recursive cell system.

[0149] Fig. 20 An example implementation of the unit of FIG. 19 is depicted.

[0150] Fig.21Another example implementation of the unit of FIG. 19 is depicted.

[0151] Fig. 22 Another example of a VMM system is depicted.

[0152] Fig.23 Another example of a VMM system is depicted.

[0153] Fig.24 Another example of a VMM system is depicted.

[0154] Fig.25 Another example of a VMM system is depicted.

[0155] Fig.26 Another example of a VMM system is depicted.

[0156] Fig. 27 Another example of a VMM system is depicted.

[0157] Fig.28 Another example of a VMM system is depicted.

[0158] Fig.29 Another example of a VMM system is depicted.

[0159] Fig.30 Another example of a VMM system is depicted.

[0160] Fig.31 Another example of a VMM system is depicted.

[0161] Fig.32 Another example of a VMM system is depicted.

[0162] Fig.33 Another example of a VMM system is depicted.

[0163] Fig.34 Another example of a VMM system is depicted.

[0164] Fig.35A , Fig.35B and Fig.35C Depicted is the analog voltage input circuit.

[0165] Fig.36 Depicted is the analog voltage input circuit.

[0166] Fig.37 Depicted is the analog voltage input circuit.

[0167] Fig.38 Another example of a VMM system is depicted.

[0168] Fig.39 Another example of a VMM system is depicted.

[0169] Fig.40 Another example of a VMM system is depicted.

[0170] Fig.41 Another example of a VMM system is depicted.

[0171] Fig.42A and Fig.42B An example of a VMM system is depicted.

[0172] Fig.43 Another example of a VMM system is depicted.

[0173] Fig.44 Another example of a VMM system is depicted.

[0174] Fig.45A An example current-to-voltage converter is depicted.

[0175] Fig.45B Another example current-to-voltage converter is depicted.

[0176] Fig.46A Another example current-to-voltage converter is depicted.

[0177] Fig.46B Another example current-to-voltage converter is depicted.

[0178] Fig.47 Another example current-to-voltage converter is depicted.

[0179] Fig.48 An example current-to-pulse converter is depicted.

[0180] Fig.49 An example activation circuit is depicted.

[0181] Fig.50 Another example activation circuit is depicted.

[0182] Fig.51 An example average current pooling circuit is depicted.

[0183] Fig.52 An example maximum voltage pooling circuit is depicted.

[0184] Fig.53 An example minimum voltage pooling circuit is depicted. DETAILED DESCRIPTION

[0185] VMM system architecture

[0186] Fig.34A block diagram of a VMM system 3400 is depicted. The VMM system 3400 includes a VMM array 3401, a row decoder 3402, a high voltage decoder 3403, a column decoder 3404, a bit line driver 3405, an input circuit 3406, an output circuit 3407, a control logic unit 3408, and a bias generator 3409. The VMM system 3400 further includes a high voltage generation block 3410, which includes a charge pump 3411, a charge pump regulator 3412, and a high voltage analog precision level generator 3413. The VMM system 3400 further includes a (program / erase, or weight tuning) algorithm controller 3414, an analog circuit 3415, a control engine 3416 (which may include special functions such as arithmetic functions, activation functions, embedded microcontroller logic, etc., without limitation) and a test control logic unit 3417.

[0187] As discussed in further detail below, input circuit 3406 may include circuits such as an AAC (analog-to-analog converter, such as a current-to-voltage converter or a logarithmic converter), a PAC (pulse-to-analog level converter), or any other type of converter. Input circuit 3406 may implement one or more of normalization, linear or nonlinear up / down scaling functions, or arithmetic functions. Input circuit 3406 may implement a temperature compensation function for the input level. Input circuit 3406 may implement an activation function, such as a rectified linear activation function (ReLU) or a sigmoid.

[0188] As discussed in further detail below, output circuit 3407 may include circuits such as AAC (analog-to-analog converter, such as current-to-voltage converter or logarithmic converter), APC (analog-to-pulse converter or analog-to-time modulated pulse converter), or any other type of converter. Output circuit 3407 may implement an activation function, such as ReLU or sigmoid. Output circuit 3407 may implement one or more of statistical normalization, regularization, up / down scaling / gain functions, statistical rounding, or arithmetic functions (e.g., addition, subtraction, division, multiplication, shift, logarithm) for neuron outputs. Output circuit 3407 may implement a temperature compensation function for neuron outputs or array outputs (such as bit line outputs) to keep the power consumption of the array approximately constant over a temperature range or to improve the accuracy of the array (neuron) outputs, such as by keeping the IV slope approximately the same over a temperature range. Output circuit 3407 may include an output temperature compensation circuit for an output circuit (such as an ADC circuit), such as by keeping the full-scale input range of the ADC approximately constant over different array output current ranges.

[0189] Additional details regarding an example of input circuit 3406 will now be described.

[0190] Table 8 depicts various types of functions that may be performed by input circuit 3406 in the analog domain:

[0191] Table 8: Example functions performed by input circuit 3406

[0192]

[0193] Fig.35A An analog voltage input circuit 3500 is depicted, which can be used to perform Example 1 (neuron current-analog voltage) in Table 8. The input circuit 3500 receives scaled or unscaled n neuron input currents Ineu[n:0] and converts the n neuron input currents into corresponding analog voltages in a linear manner. The input circuit 3500 includes blocks 3501-0, 3501-1, ..., 3501(n-1), 3501-n, each of which is coupled to a VMM array (such as Fig.34 3501-0 includes a row decoder 3502-0, a switch 3503-0, a capacitor 3504-0, and a buffer 3505-0. The row decoders 3502-0 to 3502-n receive corresponding row addresses, and when the received row addresses are the addresses of the corresponding rows, the corresponding outputs are asserted. For example, individual rows (such as row 0) may be asserted, or multiple rows (such as row 0 to row 512) may be asserted. Referring to block 3501-0, as an example, the asserted output signal of the corresponding row decoder 3052-0 closes switch 3503-0 for a predetermined amount of time tp in response to a pulse received with a pulse width tp, which then passes current Ineu[n:0] and charges one terminal of capacitor 3504-0 to generate a voltage that is actually a sample and hold voltage VCGSH_0 of current Ineu_0, which is provided to buffer 3505-0, which is a voltage buffer and maintains voltage VCG0 at its output even after switch 3503-0 is disconnected after a predetermined amount of time. The other terminal of capacitor 3504-0 is connected to a common potential, such as ground. Thus, row decoder 3052-0 enables current Ineu[n:0] to be applied to capacitor 3504 for a predetermined amount of time tp. Block 3501-0 performs a sample and hold function. Voltage VCG0 is then applied to the control gate line of row 0 in the VMM array. Each block 3501-1, ..., 3501(n-1), 3501-n contains the same components as block 3501-0 and operates in the same manner. In the example shown, switch 3503-1 also receives pulses of pulse width tp, while switches 3503-(n-1) and 3503-n do not receive pulses.

[0194] Fig.35BAn analog voltage input circuit 3550 is depicted, which can be used to perform Example 2 (analog current-analog voltage) in Table 8. The input circuit 3550 receives the neuron input voltage Vneu[n:0] and converts it into an analog voltage in a linear manner. The input circuit 3550 includes blocks 3551-0, 3551-1, ..., 3551(n-1), 3551-n, each of which is coupled to a VMM array (such as Fig.34 3551-0 is a block 3552-0 that receives a row address and a corresponding row of the n+1 rows in the VMM array 3401 in FIG. 3551-0. Block 3551-0 includes a row decoder 3552-0, a switch 3553-0, a capacitor 3554-0, and a buffer 3555-0. Row decoders 3552-0 to 3552-n receive a row address, and when the row address is the address of the corresponding row, the output is asserted. For example, an individual row (such as row 0) may be asserted, or multiple rows (such as row 0 to row 512) may be asserted. The asserted output signal closes switch 3553-0 for a predetermined amount of time tp (in response to a received pulse of width tp, not shown), which then passes voltage Vneu_0 and charges one terminal of capacitor 3554-0 to a voltage that is actually a sample and hold voltage VCGSH_0, which is provided to buffer 3555-0, which acts as a voltage buffer and maintains voltage VCG0 at its output even after switch 3553-0 is disconnected after a predetermined amount of time. The other terminal of capacitor 3554-0 is connected to a common potential, such as ground. Thus, row decoder 3552-0 enables Vneu_0 to be applied to capacitor 3554. Thus, block 3551-0 performs a sample and hold function. Voltage VCG0 is then applied to the control gate line of row 0 in the VMM array. Each block 3551-1, ..., 3551 (n-1), 3551-n contains the same components as block 3551-0 and operates in the same manner.

[0195] Fig.35C An analog voltage input circuit 3580 is depicted that can be used to perform Example 2 (analog current-analog voltage) in Table 8. In this figure, the input neuron voltage is directly enabled (passed through) by the row decoders 3551-0, 3552-1, ..., 3552-(n-1), 3552-n with the appropriate address and applied to the VCG0 voltage of the corresponding row by switches 3552-0, 3552-1, ..., 3552-(n-1), 3552-n. VCG0 is applied to the control gate of the VMM array.

[0196] Fig.36An analog voltage input circuit 3600 is depicted, which can be used to perform Examples 3 and 4 in Table 8 in an input circuit 3406 to convert an input including one or more pulses into a voltage in a linear manner. The input circuit 3600 includes blocks 3601-0, 3601-1, ..., 3601(n-1), 3601-n, where each respective block is coupled to a VMM array (such as Fig.34 3601-0 includes a row decoder 3602-0, a switch 3603-0, a capacitor 3604-0, a switch 3607-0, an input signal 3608-0, a current source 3609-0, and a buffer 3605-0. The row decoder 3602-0 receives a row address, and when the row address is the address of the corresponding row, the output is asserted. For example, an individual row (such as row 0) can be asserted, or multiple rows (such as row 0 to row 512) can be asserted. The asserted output signal of the row decoder 3602-0 closes the switch 3607-0, which enables the input signal 3608-0 (which is a pulse having a pulse width tp0 representing time) to be passed through to close the switch 3603-0 for the time of the pulse width tp0, which passes the current from the corresponding current source 3609-0 to generate a pulse current, which charges one terminal of the capacitor 3604-0 to generate a voltage VCGSH_0, which is provided to the buffer 3605-0, which acts as a voltage buffer and maintains the voltage VCO0 at its output even after the switch 3603-0 is opened at the end of the pulse width tp0. The other terminal of the capacitor 3604-0 is connected to a common potential, such as ground. Each pulse input 3608-0 may be a single pulse whose pulse width tp may vary, as illustrated by tp0 of row 0; or may be one or more pulses of constant width but varying number of pulses, as illustrated by two pulses of constant width tp1 of row 1. Here, the variability of the pulse width or number of pulses reflects the activation value to be applied to a particular row. For example, for an 8-bit activation value, the activation value may vary from 0 to 256. Therefore, block 3601-0 converts the pulse input signal into a sampling and holding voltage VCG0. The voltage VCG0 is then applied to the control gate line of row 0 in the VMM array. Each block 3601-1, ..., 3601 (n-1), 3601-n contains the same components as block 3601-0 and operates in the same manner.

[0197] Fig.37An analog voltage input circuit 3700 is depicted, which can be used to perform Example 5 in Table 8 in an input circuit 3406 to convert the scaled neuron input current Ineu_scaled into a pulse signal, wherein the width of the pulse signal is proportional to the magnitude of Ineu_scaled. The input circuit 3700 includes blocks 3701-0, 3701-1, ..., 3701(n-1), 3701-n, wherein the respective blocks are coupled to a VMM array (such as Fig.34 3701-0 is a block 3701-0 that receives a corresponding row of the n+1 rows in the VMM array 3401 in FIG. 3701-0. Block 3701-0 includes a row decoder 3702-0, a switch 3703-0, a capacitor 3704-0, and a voltage-to-pulse (VtP) converter 3705-0. When the row address is the address of row 0, the row decoder 3702-0 receives the row address, and the output EN of the row decoder 3702-0 is asserted for a predetermined amount of time tp to generate a pulse of pulse width tp. The asserted output signal closes the switch 3703-0, which when closed passes the signal Ineu_scaled to charge one terminal of the capacitor 3704-0 during the pulse width tp to generate a voltage VCGSH_0, which is provided to the voltage-to-pulse converter 3705-0. The other terminal of the capacitor 3704-0 is connected to a common potential, such as ground. The voltage-to-pulse converter 3705-0 includes a comparator 3706-0 that compares the generated voltage VCGSH_0 with a reference voltage VRAMP that ramps up as shown in the graph. When VCGSH_0>VRAMP, the output Control_0 of the comparator is high, and Control_0, when high, closes switch 3707-0 to generate a voltage VCG0 equal to the voltage Vsource (e.g., 1.5V). When VCGSH_0<VRAMP, Control_0 will switch to low to open switch 3707-0, causing VCG0 to go low to effectively end the pulse. Thus, block 3701-0 converts the input current Ineu_scaled into a constant voltage pulse VCG0, where the pulse width is proportional to the magnitude of the input current. The pulse VCG0 is then applied to the control gate line of row 0 in the VMM array. Each block 3701-1, ..., 3701(n-1), 3701-n contains the same components as block 3701-0 and operates in the same manner.

[0198] VtP block 3705-0 can also be applied to Fig.35A / 35B / 35C to convert the sample and hold voltage into a pulse to be applied to the VMM array to perform Example 7 in Table 8.

[0199] Now we will describe about Fig.34Additional details of an example of output circuit 3407 in FIG.

[0200] Table 9 depicts various types of functions that may be performed by output circuit 3407 in the analog domain:

[0201] Table 9: Example functions performed by output circuit 3407

[0202] <![CDATA[ Example No. ]]> <![CDATA[ The signal received by the output circuit 3407 ]]> <![CDATA[ The signal output by the output circuit 3407 ]]> 1 Neuronal current (unscaled) Neuronal Current (zoom) 2 Neuronal current (unscaled) Analog voltage (logarithmic or linear) 3 Neuronal current (unscaled) Pulse signal (pulse width variation) 4 Neuronal current (unscaled) Pulse signal (pulse number changes)

[0203] Fig.38 A VMM system 3800 including a VMM array 3401 and an output circuit 3407 is depicted, wherein the output circuit 3407 includes an Ineuron scaler 3801 to perform Example 1 in Table 9. The Ineuron scaler 3801 receives an output in the form of a neuron current Ineu from the VMM array 3401. The Ineuron scaler 3801 converts the neuron current Ineu into a scaled neuron current Ineu_scaled. For example, the Ineuron scaler 3801 can use a current mirror ratio circuit to scale the current.

[0204] Fig.39 A VMM system 3900 including a VMM array 3401 and an output circuit 3407 is depicted, wherein the output circuit 3407 includes an Ineuron scaler 3801 and a current-to-voltage converter (ItV) 3901 to perform Example 2 in Table 9. The Ineuron scaler 3801 receives an output in the form of a neuron current Ineu from the VMM array 3401. The Ineuron scaler 3801 converts the neuron current Ineu into a scaled neuron current Ineu_scaled. The current-to-voltage converter 3901 receives the scaled neuron current Ineu_scaled and converts the current into a voltage Vout according to a linear function or a logarithmic function.

[0205] Fig.40 A VMM system 4000 is depicted that includes a VMM array 3401 and an output circuit 3407 that includes a current-to-pulse width (ItPW) converter 4001 to perform Example 3 in Table 9. The current-to-pulse width converter 4001 receives outputs in the form of neuron currents Ineu from columns of the VMM array 3401 .

[0206] The current-to-pulse width converter 4001 converts the neuron current Ineu into a signal Pulse_width, which is a signal containing a single pulse whose width is proportional to the magnitude of Ineu.

[0207] Fig.41A VMM system 4100 is depicted that includes a VMM array 3401 and an output circuit 3407, wherein the output circuit 3407 includes a current-to-pulse count (ItPC) converter 4101 to perform Example 4 in Table 9. The current-to-pulse count converter 4101 receives an output in the form of a neuron current Ineu from a column of the VMM array 3401. The current-to-pulse count converter 4101 converts the neuron current Ineu into a signal Pulse_count, which is a signal containing one or more pulses of uniform width, wherein the number of pulses is proportional to the magnitude of Ineu.

[0208] Fig.42A , Fig.42B , Fig.43 and Fig.44 VMM systems 4200, 4250, 4300, and 4400 are depicted, respectively, and the VMM systems are similar to Figure 39 to Figure 41 The VMM system of FIG. 400 is shown in FIG. 401 , except that an activation circuit 4201 is added to the output circuit 3407. The activation circuit 4201 performs an activation function such as ReLU, sigmoid, or tanh without limitation.

[0209] exist Fig.42A , the output circuit 3407 includes an Ineuron scaler 3801, an activation circuit 4201, and a current-to-voltage converter 3901. The Ineuron scaler 3801 receives an output in the form of a neuron current Ineu from the VMM array 3401. The Ineuron scaler 3801 converts the neuron current Ineu into a scaled neuron current Ineu_scaled. The activation circuit 4201 receives the scaled neuron current Ineu_scaled and performs a function on it to generate I_active. The current-to-voltage converter 3901 receives I_active and converts the current into a voltage Vout according to a linear function or a logarithmic function.

[0210] Alternatively, if Fig.42B As shown, activation can be performed after the current-to-voltage converter.

[0211] exist Fig.43, the output circuit 3407 includes an Ineuron scaler 3801, an activation circuit 4201, and a current-to-pulse width converter 4001. The Ineuron scaler 3801 receives an output in the form of a neuron current Ineu from the VMM array 3401. The Ineuron scaler 3801 converts the neuron current Ineu into a scaled neuron current Ineu_scaled. The activation circuit 4201 receives the scaled neuron current Ineu_scaled and performs a function on it to generate I_active. The current-to-pulse width converter 4001 converts I_active into a signal Pulse_width, which is a signal containing a single pulse whose width is proportional to the magnitude of I_active.

[0212] exist Fig.44 , the output circuit 3407 includes an Ineuron scaler 3801, an activation circuit 4201, and a current-to-pulse count converter 4101. The Ineuron scaler 3801 receives an output in the form of a neuron current Ineu from the VMM array 3401. The Ineuron scaler 3801 converts the neuron current Ineu into a scaled neuron current Ineu_scaled. The activation circuit 4201 receives the scaled neuron current Ineu_scaled and performs a function on it to generate I_active. The current-to-pulse count converter 4101 converts I_active into a signal Pulse_count, which is a signal containing one or more pulses of uniform width, where the number of pulses is proportional to the magnitude of I_active.

[0213] Figure 45 to Fig.51 Describes the methods used to implement Figures 38 to 44 An example circuit for the functionality of output circuit 3407 discussed in .

[0214] Fig.45A A current-to-voltage converter 4500 is depicted, which can be used for a current-to-voltage converter (logarithmic) 3901. The current-to-voltage converter 4500 includes an example block 4501 coupled to the bit line BLR0 and the same block for other bit lines. The current-to-voltage converter 4500 also includes switches 4506, 4507, 4508, and 4509 and a controller 4510. Block 4501-0 includes a reference cell 4502-0, an op amp (operational amplifier) ​​4504-0, and a switch 4505-0. The controller 4510 controls the operation of the switch 4505-0 and the switches 4506, 4507, 4508, and 4509.

[0215] During operation of the current-to-voltage converter, controller 4510 closes switch 4505-0 and opens switches 4506, 4507, 4508, and 4509. Block 4501-0 receives an input current I0 on bit line BLR0, where input current I0 may be a current from VMM array 3401 that contributes to Ineu from column 0 in the array. Operational amplifier 4504-0 will force the voltages of its inputs to be equal through feedback from the output of operational amplifier 4504-0 to the control gate of reference cell 4502-0, which forces a constant voltage VREF onto bit line BLR0. The current of reference cell 4502-0 will be adjusted by its control gate (output of operational amplifier 4504-0) so that the current is equal to the input current I0. The output of operational amplifier 4504-0 (which is the same as the control gate voltage Vout-0 of reference cell 4502-0) is a voltage signal that is a logarithmic function of the input current I0 received on BLR0 for the reference cell operating in the subthreshold region. For cells operating in the subthreshold region, VCG is a logarithmic function of the cell current Icell. Blocks identical to block 4501-0 are coupled to corresponding array outputs from VMM array 3401.

[0216] Fig.45B A current-to-voltage converter 4550 is depicted, which can be used for a current-to-voltage converter (logarithmic) 3901. The current-to-voltage converter 4550 includes an example block 4551 coupled to the bit line BLR0 and the same block for other bit lines. The current-to-voltage converter 4550 also includes switches 4558, 4559, 4560, and 4561 and a controller 4562. Block 4551-0 includes a reference cell 4552-0, an opamp (operational amplifier) ​​4554-0, a switch 4555-0, a capacitor 4556-0, and a buffer 4557-0. The controller 4562 controls 4558, 4559, 4560, and 4561.

[0217] During operation, block 4551-0 receives current I0 from the output of VMM array 3401, which is an inverted version of the current from bit line BLR0. The bit line current is inverted so that the current flows from Vdd (high power supply) to low (into the circuit). Optionally, the current can be scaled before being provided to the circuit.

[0218] The (array output) current is provided to reference cell 4552-0, which also receives a voltage Vsweep on its control gate terminal when the corresponding switch is closed. Vsweep is a varying voltage (such as a ramp signal) that charges capacitor 4556-0 during a scan operation when switch 4550-0 is closed. When the output of comparator 4554-0 changes due to a change in Vsweep, switch 4555-0 is opened, which causes Vsweep to be sampled to capacitor 4556-0 so that the voltage of Vsweep at that moment can be held on capacitor 4556-0, where the held voltage represents the output voltage that causes the reference cell to conduct the same current as the array. This voltage is provided to buffer 4557-0 and output as voltage Vout-0. Vout-0 is a voltage signal that is a logarithmic function of the current I0 received on BL0, which is attributed to the cell operating in the subthreshold region, that is, VCG is a logarithmic (Icell) function. The same block as block 4551 - 0 is coupled to the array current output of VMM array 3401 .

[0219] Fig.46A A current-to-voltage converter 4600 is depicted, which can be used for a current-to-voltage converter (logarithmic) 3901. The current-to-voltage converter 4600 includes a reference memory cell 4601, a switch 4602, an operational amplifier 4603, and a controller 4604, arranged as shown. The reference memory cell 4601 receives a current BLR from a bit line in the VMM array, which contributes to the Ineuron of that particular column in the VMM array. The operational amplifier 4603 outputs a voltage VNEUOUT, and the switch 4602 is closed by the controller 4604 and applies the voltage to the control gate terminal of the reference memory cell 4601. The feedback loop will cause VNEUOUT to move to a value that causes the voltage applied to the inverting terminal of the operational amplifier 4603 to be equal to the voltage VREF applied to the non-inverting terminal of the operational amplifier 4603. In this way, the current-to-voltage converter 4600 converts the received current BLR into a voltage VNEUOUT according to a logarithmic function of the cell in the subthreshold region and according to a linear function of the cell in the linear region.

[0220] Fig.46B A current-to-voltage converter 4550 is depicted, which may be used to Fig.39Current-to-voltage converter (logarithmic) 3901 in. Current-to-voltage converter 4650 includes reference memory cell 4651, switch 4652, comparator 4653, switch 4654, capacitor 4655, buffer 4656 and controller 4657, arranged as shown. Reference memory cell 4650 receives current IBL from a bit line in the VMM array, which contributes to Ineuron of that particular column in the VMM array. Operational amplifier 4653 outputs voltage COMPOUT, and switches 4654 and 4652 are closed by controller 4657 and apply the voltage to the control gate terminal of reference memory cell 4651. The feedback loop will cause COMPOUT to move to a value that causes the voltage applied to the inverting terminal of operational amplifier 4653 to be equal to the voltage VREF applied to the non-inverting terminal of operational amplifier 4653. The voltage of capacitor 4655 will also be COMPOUT, and it will maintain that voltage. The voltage is input to buffer 4656 and output as VNEUOUT. In this way, the current-to-voltage converter 4650 converts the received current IBL into the voltage VNEUOUT according to a logarithmic function.

[0221] Fig.47 A current-to-voltage converter 4700 is depicted, which can be used in a current-to-voltage converter 3901 to convert a current into a voltage in a linear manner. Specifically, the current-to-voltage converter 3901 includes an instance of a current-to-voltage converter 4700 for each bit line output in the VMM array 3401. The current-to-voltage converter 4700 includes a PMOS transistor 4701 and an operational amplifier 4702 arranged as shown. One terminal of the PMOS transistor 4701 is attached to a voltage source. The other terminal of the PMOS transistor 4701 is attached to the gate of the PMOS transistor 4701 and is coupled to a bit line in the VMM array 401 and a non-inverting terminal of the operational amplifier 4702. The inverting terminal of the operational amplifier 4702 is connected to the output of the operational amplifier 4702. The current drawn by the bit line I-BL generates a voltage V_IBL output from the operational amplifier 4702. The operational amplifier 4702 acts as a buffer, and V_IBL will maintain its level, which reflects the current drawn by the bit line I-BL, regardless of any load it may be attached to. Optionally, the current-to-voltage converter 4700 can also be used in a bit line current mirror buffer. In such an example, the voltage V_IBL is fed to the gate of a similar PMOS (not shown), and then the current in this PMOS is the mirror current of PMOS4701. Fig.48A current-to-pulse converter 4800 is depicted, which can be used for a current-to-pulse width converter 4001 or a current-to-pulse count converter 4101 to convert a current into one or more pulses. The current-to-pulse converter 4800 receives a neuron current I_BL and an enable signal EN, and includes a capacitor 4801, a comparator 4802, and a gate 4806. During operation, the capacitor 4801 is charged by I_BL. Initially, the voltage of the capacitor 4801 will be lower than VREF, and the output COMPOUT will be high. When the voltage of the capacitor 4801 exceeds VREF, the output COMPOUT of the comparator 4802 will change from high to low. COMPOUT is input into an AND gate 4806 together with the enable signal EN, and the output of the AND gate 4806 will be a pulse VNEU_PW, where the pulse width is proportional to the magnitude of I_BL. This is illustrated in graphs 4803 and 4804.

[0222] Optionally, AND gate 4807 may be used in place of AND gate 4806. AND gate 4807 receives COMPOUT, EN, and a clock signal as inputs, and outputs VNEU_PC. VNEU_PC comprises a series of pulses having the frequency and phase of CLK, where a pulse starts when COMPOUT and EN are high, and ends when COMPOUT or EN goes low. This converts current I_BL into a series of uniform pulses, where the number of pulses is proportional to the magnitude of I_BL.

[0223] Fig.49 An activation circuit 4900 is depicted, which is an example implementation of the tanh activation circuit 4201. The activation circuit 4900 includes a current-to-voltage converter 4901, PMOS transistors 4902 and 4903 (which form a current mirror), NMOS transistors 4904 and 4905, and an NMOS transistor 4906 arranged as shown. The activation circuit 4900 receives a current input I_input and generates a current output Iout according to a Sigmoid function performed using a differential pair as follows: Iout = I1-I2 = Ibias*tanh(K*(V1-V2) / 2). Therefore, the activation circuit 4900 converts I_input to Iout according to the Sigmoid function. A graph 4907 shows IO as a function of I_input.

[0224] Fig.50An activation circuit 5000 is depicted, which is an example implementation of the activation circuit 4201. The activation circuit 5000 includes an NMOS transistor 5001, an operational amplifier 5002, and an NMOS transistor 5003 arranged as shown. The activation circuit 5000 receives a current input I_In and generates a voltage output OUT according to a ReLu function, as shown in a graph 5004.

[0225] Fig.51 An average current pooling circuit 5100 is depicted, which may optionally be part of the output circuit 3407 to perform an average function. The average current pooling circuit 5100 includes N current sources 5101-1, ..., 5101-N (each of which represents a current from a bit line in the VMM array), an NMOS transistor 5102, and an NMOS transistor 5103. The NMOS transistor 5102 adds together all currents received from the current sources 5101-1, ..., 5101-N. The NMOS transistors 5102 and 5103 are arranged in a current mirror configuration. However, the widths of the NMOS transistors 5102 and 5103 differ by a factor of N, so that the current lout drawn by the NMOS transistor 5103 is 1 / N of the current drawn by the NMOS transistor 5102, which effectively generates an average value of the currents received from all N bit lines.

[0226] Fig.52 A maximum voltage pooling circuit 5200 is depicted, which may optionally be part of the output circuit 3407. The maximum voltage pooling circuit 5200 receives n voltages (VIN1, ..., VINn) and outputs the maximum voltage of the voltages as VOUT. The maximum voltage pooling circuit does this by comparing pairs of voltages (VIN1 and VIN2, ..., VINn-1 and VINn) and outputting the larger of the two voltages, and then comparing the paired results, and continuing the process until only one voltage VOUT remains. The comparison is made using a circuit 5201 including a comparator 5202, an NMOS transistor 5203, an inverter 5204, and an NMOS transistor 5205. The circuit 5201 receives two voltages, such as VIN1 and VIN2, and outputs the larger of the two voltages as OUT. In some details, when VIN1 is greater than VIN2, comparator 5202 outputs a high signal that turns on NMOS transistor 5203 to pass VIN1 to OUT and turns off NMOS transistor 5205 via inverter 5204. Similarly, when VIN2 is greater than VIN1, comparator 5202 outputs a low signal that turns off NMOS transistor 5203 and turns on NMOS transistor 5205 via inverter 5204 to pass VIN2 to OUT.

[0227] Fig.53 A minimum voltage pooling circuit 5300 is depicted, which can optionally be part of the output circuit 3407. The minimum voltage pooling circuit 5300 receives n voltages (VIN1, ..., VINn) and outputs the minimum voltage of the voltages as VOUT. The maximum voltage pooling circuit does this by comparing pairs of voltages (VIN1 and VIN2, ..., VINn-1 and VINn) and outputting the smaller of the two voltages, and then comparing the paired results, and continuing the process until only one voltage VOUT remains. The comparison is made using a circuit 5301 including a comparator 5302, an NMOS transistor 5303, an inverter 5304, and an NMOS transistor 5305. The circuit 5301 receives two voltages, such as VIN1 and VIN2, and outputs the smaller of the two voltages as OUT.

[0228] In some details, when VIN1 is less than VIN2, comparator 5302 outputs a high signal, which turns on NMOS transistor 5203 to pass VIN1 to OUT and turns off NMOS transistor 5205 via inverter 5204. Similarly, when VIN2 is less than VIN1, comparator 5202 outputs a low signal, which turns off NMOS transistor 5203 and turns on NMOS transistor 5205 via inverter 5204 to pass VIN2 to OUT.

[0229] It should be noted that, as used herein, the terms "above" and "on" both inclusively include "directly on" (no intervening materials, elements, or spaces are provided in between) and "indirectly on" (intervening materials, elements, or spaces are provided in between). Similarly, the term "adjacent" includes "directly adjacent" (no intervening materials, elements, or spaces are provided in between) and "indirectly adjacent" (intervening materials, elements, or spaces are provided in between), "mounted to" includes "directly mounted to" (no intervening materials, elements, or spaces are provided in between) and "indirectly mounted to" (intervening materials, elements, or spaces are provided in between), and "electrically coupled to" includes "directly electrically coupled to" (no intervening materials or elements electrically connecting the elements together) and "indirectly electrically coupled to" (intervening materials or elements electrically connecting the elements together). For example, forming an element "above" a substrate may include directly forming the element on the substrate without intervening materials / elements in between, and indirectly forming the element on the substrate with one or more intervening materials / elements in between.

Claims

1. A system, wherein the system include: a vector-matrix multiplication array comprising a plurality of nonvolatile memory cells arranged in rows and columns; a capacitor comprising a first terminal and a second terminal, the second terminal coupled to a common potential; a row decoder for enabling application of an input signal to the first terminal of the capacitor in response to an address; and A buffer is coupled to the first terminal of the capacitor, the buffer being used to generate an output voltage for a corresponding row of the vector-matrix multiplication array.

2. The system according to claim 1, wherein the row decoder enables the input signal by closing a switch with an output of the row decoder, wherein in a closed position the switch couples an input neuron current as the input signal to the first terminal of the capacitor; and Wherein the row decoder disables the input signal by opening the switch with the output of the row decoder, wherein in an open position the switch disconnects the input neuron current from the first terminal of the capacitor.

3. The system of claim 2, wherein the input neuronal current is received from a neural network array.

4. The system of claim 2, wherein the input neuron current is a scaled current based on a current received from a neural network array.

5. The system of claim 2, wherein the output voltage is generated according to a linear function performed by the switch and the capacitor on the input neuron current.

6. The system of claim 1, wherein the plurality of non-volatile memory cells comprises stacked gate flash memory cells.

7. The system of claim 1, wherein the plurality of non-volatile memory cells comprises split-gate flash memory cells.

8. A system, wherein the system include: a vector-matrix multiplication array comprising a plurality of nonvolatile memory cells arranged in rows and columns; a switch for switchably coupling a corresponding input to a corresponding row of the vector-matrix multiplication array; and A row decoder is configured to enable the switch in response to an address to couple the corresponding input to the corresponding row of the vector-matrix multiplication array.

9. The system of claim 8, wherein the corresponding input is received from a neural network array.

10. The system of claim 8, wherein the respective input is applied to a control gate terminal of a nonvolatile memory cell in the respective row.

11. The system of claim 8, wherein the plurality of non-volatile memory cells comprises stacked gate flash memory cells.

12. The system of claim 8, wherein the plurality of non-volatile memory cells comprises split-gate flash memory cells.

13. A method, the method comprising: include: an input signal enabled to be applied to the capacitor by a row decoder in response to an address; generating, by a buffer, an output voltage using the voltage stored on the capacitor by the applying; as well as The output voltage is provided to a row of nonvolatile memory cells in a vector-matrix multiplication array.

14. The method of claim 13, wherein the input signal is received from a neural network array.

15. The method of claim 13, the output voltage being generated according to a linear function performed on the input signal.

16. The method of claim 13, wherein the non-volatile memory cells comprise stacked gate flash memory cells.

17. The method of claim 13, wherein the non-volatile memory cells comprise split-gate flash memory cells.