Artificial neural network comprising analog and digital arrays
Through the combination of a non-volatile memory unit array and a vector-matrix multiplication array, the problems of synaptic weight tuning and low energy efficiency in the existing technology are solved, and efficient and precise neural network calculations are realized.
Patent Information
- Application Number
- CN202280089081.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-14
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-06
AI Technical Summary
Existing artificial neural networks lack efficient hardware technology when implementing high-performance information processing, especially due to the low energy efficiency due to the largeness of synapses in CMOS analog circuits, and the difficulty of fine-tuning synapses in existing non-volatile memory arrays. There are restrictions on weighting.
Using a non-volatile memory cell array, the circuits are configured so that each memory cell can be independently programmed, erased and read, providing continuous programming capabilities to achieve fine tuning of synaptic weights and through vector-matrix multiplication The array performs analog calculations, reducing the need for separate multiplying and adding logic circuits.
It achieves fine tuning and efficient calculation of synaptic weights of neural networks, reduces energy consumption, improves calculation accuracy and efficiency, and is suitable for high-performance information processing applications.
Smart Images

Figure CN118613807A_ABST
Abstract
Description
[0001] Priority declaration
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 304,485, filed on January 28, 2022, entitled “Artificial Neural Network Comprising A Digital Information Array,” and U.S. Patent Application No. 17 / 721,254, filed on April 14, 2022, entitled “Artificial Neural Network Comprising An Analog Array And A Digital Array,” both of which are incorporated herein by reference. Technical Field
[0003] Several examples of artificial neural networks including analog arrays and digital arrays 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] Figure 1 An artificial neural network is shown, where circles represent inputs or layers of neurons. Connections (called synapses) are represented by arrows and have numerical weights that can be adjusted 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, such complexity can be achieved by digital supercomputers or clusters of dedicated graphics processing units. However, in addition to being high cost, these approaches are also mediocre in energy efficiency compared to biological networks, which consume 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] Applicants 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 configured to generate a first plurality of outputs therefrom, and a first plurality of neurons configured to receive the first plurality of outputs. The first plurality of synapses includes a plurality of memory cells, wherein each of the memory cells includes: a spaced-apart source region and a drain region 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] Non-volatile 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 non-volatile memory cells, which is a type of flash memory cell. Such a memory cell 210 is Figure 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: Figure 2 Operation of the flash memory unit 210
[0015] WL BL SL Read 2V-3V 0.6V-2V 0V Erase About 11V-13V 0V 0V programming 1V-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, Figure 3 A quad-gate memory cell 310 is depicted, which includes a source region 14, a drain region 16, a floating gate 20 over a first portion of a channel region 18, a select gate 22 (typically coupled to a word line WL) over a second portion of the channel region 18, a control gate 28 over the floating gate 20, and an erase gate 30 over 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, 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: Figure 3 Operation of the flash memory unit 310
[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 8V-12V 0V programming 1V 0.1μA-1μA 8V-11V 4.5V-9V 4.5V-5V
[0020] Figure 4 Depicted is a tri-gate memory cell 410, which is another type of flash memory cell. The memory cell 410 is similar to Figure 3 The memory cell 310 is the same as the memory cell 410 except that the memory cell 410 does not have a separate control gate. Except that no control gate bias is applied, the erase operation (thus erasing by using the erase gate) and the read operation are the same as Figure 3 The programming operation is also completed without a control gate bias, and therefore, a higher voltage is applied on the source line during the programming operation to compensate for the lack of 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: Figure 4 Operation of the flash memory unit 410
[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] Figure 5 A stacked gate memory cell 510 is depicted, which is another type of flash memory cell. The memory cell 510 is similar to Figure 2 18 is similar to the memory cell 210 of , except that the floating gate 20 extends over the entire channel region 18, and the control gate 22 (which here will be coupled to the word line) extends over the 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 the channel 18 and the drain region 16, by electrons flowing from the source region 14 toward the drain region 16, and a read operation similar to the memory cell 210 with a higher control gate voltage.
[0025] Table 4 shows 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: Figure 5 Operation of the flash memory unit 510
[0027] CG BL SL Substrate Read 2-5V 0.6V-2V 0V 0V Erase -8V to -10V / 0V FLT FLT 8V-10V / 15V-20V programming 8V-12V 3V-5V 0V 0V
[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., 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 effectively 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 The 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 32x32 pixel RGB image with 5 bits of precision (i.e., three 32x32 pixel arrays, one for each color R, G, and B, with 5 bits of 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 3x3 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 3x3 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 in one of the feature maps of layer C1. The 3x3 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 3x3 filter has scanned all three colors and all bits (precision values) over the entire 32x32 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 2x2 regions in each feature map. The purpose of 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 operation. At layer S1, there are 16 15x15 feature maps (i.e., sixteen different arrays of 15x15 pixels per feature map). The synapse CB2 from layer S1 to layer C2 scans the map in layer S1 using a 4x4 filter, where the filter is shifted by 1 pixel. At layer C2, there are 22 12x12 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 2x2 regions in each feature map. At layer S2, there are 22 6x6 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 output values of the difference summer 38 are then summed and 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). Those of ordinary skill in the art will appreciate that this is merely an example 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 A neuron VMM array 900 is depicted, which is particularly suitable for Figure 3 The memory cells 310 shown are used as synapses and components of neurons between the input layer and the next layer. The VMM array 900 includes a memory array 901 of non-volatile memory cells and a reference array 902 of non-volatile reference memory cells (at the top of the array). Alternatively, another reference array can 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, the non-volatile memory cells of VMM array 900 (ie, memory cells 310 of VMM array 900) are operatively 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 to 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 body bias voltage, and the substrate body bias voltage, denoted as Vsb, can be modulated to compensate for various conditions at such temperatures. 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 (eg, 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 shown, which is particularly suitable for Figure 2 1000 is a memory cell 210 shown in FIG. 1000 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 current inputs flowing into 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 (partially depicted) into 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 the reference arrays 1001 and 1002 convert into input voltages to supply 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 Operations of VMM array 1000:
[0080] WL WL-Not selected BL BL-Not selected SL SL-Not selected Read 1V-3.5V -0.5V / 0V 0.6V-2V(Ineuron) 0.6V-2V / 0V 0V 0V Erase About 5V-13V 0V 0V 0V 0V 0V programming 1V-2V -0.5V / 0V 0.1uA-3uA Vinh about 2.5V 4V-10V 0V-1V / FLT
[0081] Fig.11 A neuron VMM array 1100 is shown, which is particularly suitable for Figure 2The memory cell 210 shown is used as a synapse and component of the neuron between the input layer and the 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 input is set on the word lines (WLA0, WLB0, WLA1, WLB2, WLA2, WLB2, WLA3, WLB3), and the output appears on the source lines (SL0, SL1) during the read operation. The current placed on each source line performs a summing function of all the 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 Depicted is a neuron VMM array 1200, which is particularly suitable for Figure 3 The memory cell 310 shown is used as a synapse and component of the neurons between the input layer and the 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 (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 the 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 at 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 also 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, 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.13 Depicted is a neuron VMM array 1300, which is particularly suitable for Figure 3The memory cell 310 shown is used as a synapse and component of the neurons between the input layer and the 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 nonvolatile memory cells connected to that particular bit line.
[0092] Table 8 shows the 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, 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 shown, which is particularly suitable for Figure 2 The memory cell 210 shown in FIG. 210 is used as a synapse and component of neurons between the input layer and the next layer. In the VMM array 2200, the inputs INPUT0, ..., INPUT N On bit lines BL0, BL1, BL2, BL3 and BL4 respectively N The signals are received on the source lines SL0, SL1, SL2 and SL3, and outputs OUTPUT1, OUTPUT2, OUTPUT3 and OUTPUT4 are generated on the source lines SL0, SL1, SL2 and SL3, respectively.
[0096] Fig.23 A neuron VMM array 2300 is shown, which is particularly suitable for Figure 2 The memory cell 210 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, inputs INPUT0, INPUT1, INPUT2 and INPUT3 are received on source lines SL0, SL1, SL2 and SL3, respectively, and outputs OUTPUT0, ... OUTPUT N On the bit lines BL0, . . . , BL N Generate on.
[0097] Fig.24 Depicted is a neuron VMM array 2400, which is particularly suitable for Figure 2 The memory unit 210 shown in FIG. 1 is used as a synapse and a component of a neuron between an input layer and a next layer. In this example, inputs INPUT0, ..., INPUT M On word lines WL0, ..., WL M is received and output OUTPUT0, ...OUTPUT N On the bit lines BL0, . . . , BL N Generate on.
[0098] Fig.25 Depicted is a neuron VMM array 2500, which is particularly suitable for Figure 3 The memory unit 310 shown in FIG. 1 is used as a synapse and a component of a neuron between an input layer and a next layer. In this example, inputs INPUT0, ..., INPUT M On word lines WL0, ..., WL M is received and output OUTPUT0, ...OUTPUT N On the bit lines BL0, . . . , BL N Generate on.
[0099] Fig.26 A neuron VMM array 2600 is shown, which is particularly suitable for Figure 4 The memory unit 410 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the inputs INPUT0, ..., INPUT n On the vertical control gate lines CG0,...,CG N The signals are received on the source lines SL0 and SL1, and outputs OUTPUT1 and OUTPUT2 are generated on the source lines SL0 and SL1.
[0100] Fig. 27 A neuron VMM array 2700 is shown, which is particularly suitable for Figure 4 The memory unit 410 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the inputs INPUT0, ..., 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 BL0, ..., BL N Exemplary outputs OUTPUT1 and OUTPUT2 are generated on source lines SL0 and SL1.
[0101] Fig.28 Depicted is a neuron VMM array 2800, which is particularly suitable for Figure 3 The memory unit 310 shown, Figure 5 The memory cell 510 and Figure 7 The memory unit 710 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the inputs INPUT0, ..., INPUT M On word lines WL0, . . . , WL M are received and output OUTPUT0, ..., OUTPUT N On bit lines BL0, . . . , BL N Generate on.
[0102] Fig.29 Depicted is a neuron VMM array 2900, which is particularly suitable for Figure 3 The memory unit 310 shown, Figure 5 The memory cell 510 and Figure 7 The memory unit 710 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the inputs INPUT0, ..., INPUT M On the control gate lines CG0, ..., CG M The outputs OUTPUT0, ..., OUTPUT N On the vertical source lines SL0, . . . , SL N Each source line SL i The source line coupled to all memory cells in column i.
[0103] Fig.30 A neuron VMM array 3000 is shown, which is particularly suitable for Figure 3 The memory unit 310 shown, Figure 5The memory cell 510 and Figure 7 The memory unit 710 shown is used as a synapse and component of the neurons between the input layer and the next layer. In this example, the inputs INPUT0, ..., INPUT M On the control gate lines CG0, ..., CG M The outputs OUTPUT0, ..., OUTPUT N On the vertical bit lines BL0, . . . , BL N On the 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] Fig.14 An exemplary LSTM 1400 is depicted. The LSTM 1400 in this example includes units 1401, 1402, 1403, and 1404. Unit 1401 receives an input vector x0 and generates an output vector h0 and a unit state vector c0. Unit 1402 receives an input vector x1, an output vector (hidden state) h0 from unit 1401, and a unit state c0 from unit 1401, and generates an output vector h1 and a unit state vector c1. Unit 1403 receives an input vector x2, an output vector (hidden state) h1 from unit 1402, and a unit state c1 from unit 1402, and generates an output vector h2 and a unit state vector c2. Unit 1404 receives an input vector x3, an output vector (hidden state) h2 from unit 1403, and a unit state c2 from unit 1403, and generates an output vector h3. Additional units may be used, and an LSTM with four units is merely an example.
[0107] Fig.15 Describes the Fig.14 1401, 1402, 1403, and 1404 in FIG. 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 unit 1600 is shown, which is an example of a specific implementation of LSTM unit 1500. For the convenience of the reader, the same numbering as LSTM unit 1500 is used in LSTM unit 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 units 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 f(t)*c(t-1) 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 i(t)*u(t) 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 o(t)*c~(t) 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 specific implementation of the simulated VMM 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 unit generally contains fewer components than an LSTM unit.
[0115] Fig.18 An exemplary GRU 1800 is depicted. The GRU 1800 in this example includes units 1801, 1802, 1803, and 1804. Unit 1801 receives an input vector x0 and generates an output vector h0. Unit 1802 receives an input vector x1, an output vector h0 from unit 1801, and generates an output vector h1. Unit 1803 receives an input vector x2 and an output vector (hidden state) h1 from unit 1802 and generates an output vector h2. Unit 1804 receives an input vector x3 and an output vector (hidden state) h2 from unit 1803 and generates an output vector h3. Additional units may be used, and a GRU with four units is merely an example.
[0116] Fig.19 Describes the Fig.18An exemplary implementation of a GRU unit 1900 of units 1801, 1802, 1803 and 1804. The GRU unit 1900 receives an input vector x(t) and an output vector h(t-1) from a previous GRU unit and generates an output vector h(t). The GRU unit 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). The GRU unit 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 2000 is shown, 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 that multiplies two vectors together, an addition device 2105 that adds two vectors together, a complement device 2109 that subtracts the input from 1 to generate an output, a multiplexer 2104, a register 2106 that holds the value h(t-1)*r(t) when it is output from the multiplier device 2103 through the multiplexer 2104, a register 2107 that holds the value h(t-1)*z(t) when it is output from the multiplier device 2103 through the multiplexer 2104, and a register 2108 that holds 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 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 shown. In some examples, the weights W stored in the VMM array are stored as a differential pair of 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 shown, 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] Fig.34 A prior art VMM system 3400 is depicted, which includes two separate array blocks, an analog array block 3405 and a digital array block 3415. The analog array block 3405 includes an analog array 3401, a row decoder 3402, and a high voltage decoder 3403. The analog array 3401 stores one of N different analog values, as described above. The digital array block 3415 includes a digital array 3411, a row decoder 3412, and a high voltage decoder 3413. The digital array block 3415 can be used to store system data, configuration data, operating system data (OS), and other data used for the operation of the VMM system 3400. For example, the digital array 3411 can store digital data, such as user IDs, trim bits, manufacturing information, security codes, OS codes, and other information used by the VMM system 3400. In another example, the VMM system 3400 may include a separate digital non-volatile memory macro or an external chip.
[0128] Because analog array 3401 stores analog values (multi-level values), an accurate current range (due to the desired multi-level at low power) is applied to the bit lines during a read operation compared to a read operation of digital array 3411 (where each cell stores either a "1" or a "0"). The difference in current levels used during a read operation can lead to undesirable consequences, such as leakage from high current cells of the digital cells (which is required for high speed reading, which can affect the accuracy of the read operation), bias conditions (which are different for analog levels versus digital levels), and other consequences.
[0129] What is needed is an improved architecture for providing analog and digital arrays in artificial neural network systems while reducing leakage and other undesirable consequences. Summary of the invention
[0130] Several examples for providing an artificial neural network system including analog arrays and digital arrays are described. BRIEF DESCRIPTION OF THE DRAWINGS
[0131] Figure 1 A schematic diagram showing an artificial neural network.
[0132] Figure 2 A prior art split gate flash memory cell is depicted.
[0133] Figure 3 Another prior art split gate flash memory cell is depicted.
[0134] Figure 4 Another prior art split gate flash memory cell is depicted.
[0135] Figure 5 Another prior art split gate flash memory cell is depicted.
[0136] Figure 6 A diagram illustrating different levels of an exemplary artificial neural network utilizing one or more non-volatile memory arrays.
[0137] Figure 7 FIG. 1 is a block diagram showing a VMM system.
[0138] Figure 8 is a block diagram illustrating an exemplary artificial neural network utilizing one or more VMM systems.
[0139] Fig. 9 Another example of a VMM system is depicted.
[0140] Fig.10 Another example of a VMM system is depicted.
[0141] Fig.11Another example of a VMM system is depicted.
[0142] Fig.12 Another example of a VMM system is depicted.
[0143] Fig.13 Another example of a VMM system is depicted.
[0144] Fig.14 A prior art long short term memory system is shown.
[0145] Fig.15 An exemplary cell for use in a long short-term memory system is depicted.
[0146] Fig.16 Depicted Fig.15 An exemplary implementation of a unit of .
[0147] Fig.17 Depicted Fig.15 Another exemplary implementation of a unit.
[0148] Fig.18 A prior art gate-controlled recursive cell system is shown.
[0149] Fig.19 An exemplary cell for use in a gate-controlled recursive cell system is depicted.
[0150] Fig. 20 Depicted Fig.19 An exemplary implementation of a unit of .
[0151] Fig.21 Depicted Fig.19 Another exemplary implementation of a unit.
[0152] Fig. 22 Another example of a VMM system is depicted.
[0153] Fig.23 Another example of a VMM system is depicted.
[0154] Fig.24 Another example of a VMM system is depicted.
[0155] Fig.25 Another example of a VMM system is depicted.
[0156] Fig.26 Another example of a VMM system is depicted.
[0157] Fig. 27 Another example of a VMM system is depicted.
[0158] Fig.28Another example of a VMM system is depicted.
[0159] Fig.29 Another example of a VMM system is depicted.
[0160] Fig.30 Another example of a VMM system is depicted.
[0161] Fig.31 Another example of a VMM system is depicted.
[0162] Fig.32 Another example of a VMM system is depicted.
[0163] Fig.33 Another example of a VMM system is depicted.
[0164] Fig.34 An example of a VMM system including a digital array is depicted.
[0165] Fig.35 An example of a VMM system is depicted.
[0166] Fig.36 An example of a VMM system including a digital array is depicted.
[0167] Fig.37 An example of a VMM system including a digital array is depicted.
[0168] Fig.38 Depicted Fig.37 Additional aspects of the VMM system.
[0169] Fig.39A , Fig.39B and Fig.39C Describes the Fig.37 An exemplary design of a VMM system.
[0170] Fig.40 An example of a VMM system including a digital array is depicted.
[0171] Fig.41 An example of a digital array is depicted.
[0172] Fig.42A A differential current-to-voltage converter is depicted.
[0173] Fig.42B A differential successive address register analog-to-digital converter is depicted.
[0174] Fig.43 Exemplary read operations for analog and digital arrays are depicted. DETAILED DESCRIPTION
[0175] The artificial neural network described in this paper utilizes a combination of CMOS technology and non-volatile memory arrays.
[0176] Overview of VMM System
[0177] Fig.35 A block diagram of a VMM system 3500 is depicted. The VMM system 3500 includes a VMM array 3501 (which includes analog memory cells as well as digital memory cells), a row decoder 3502, a high voltage decoder 3503, a column decoder 3504, a bit line driver 3505, an input circuit 3506, an output circuit 3507, a control logic component 3508, and a bias generator 3509. The VMM system 3500 further includes a high voltage generation block 3510, which includes a charge pump 3511, a charge pump regulator 3512, and a high voltage analog precision level generator 3513. The VMM system 3500 further includes a (program / erase, or weight tuning) algorithm controller 3514, an analog circuit 3515, a control engine 3516 (which can execute functions such as arithmetic functions, activation functions, embedded microcontroller logic, but not limited thereto), and a test control logic component 3517. The systems and methods described below can be implemented in the VMM system 3500.
[0178] The input circuit 3506 may include circuits such as a DAC (digital-to-analog converter), a DPC (digital-to-pulse converter, digital-to-time modulated pulse converter), an AAC (analog-to-analog converter, such as a current-to-voltage converter, a logarithmic converter), a PAC (pulse-to-analog level converter), or any other type of converter. The input circuit 3506 may implement one or more of a normalization, a linear or nonlinear up / down scaling function, or an arithmetic function. The input circuit 3506 may implement a temperature compensation function for the input level. The input circuit 3506 may implement an activation function such as a ReLU or a sigmoid. The output circuit 3507 may include circuits such as an ADC (analog-to-digital converter for converting neuron analog outputs into digital bits), an AAC (analog-to-analog converter, such as a current-to-voltage converter, a logarithmic converter), an APC (analog-to-pulse converter, analog-to-time modulated pulse converter), or any other type of converter. The output circuit 3507 may implement an activation function such as a rectified linear activation function (ReLU) or a sigmoid. Output circuit 3507 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 the neuron output. Output circuit 3507 may implement a temperature compensation function for the neuron output or array output (such as a bit line output) to keep the power consumption of the array approximately constant, or to improve the accuracy of the array (neuron) output, such as by keeping the IV slope approximately the same.
[0179] As discussed above, a neural network may include many different layers, and within each layer, many calculations may be performed involving weight values stored in one or more arrays within the layer. Some layers will be used more than others, and it may be understood that such layers are more important to the overall accuracy of the neural network based on their high frequency of use.
[0180] Fig.36 A VMM system 3600 is depicted, which includes an analog array 3601, a row decoder 3602, a high voltage decoder 3603, a digital array 3604, a row decoder 3605, and a high voltage decoder 3606. The analog array 3601 and the digital array 3604 share the same diffusion and metal interconnect bit lines. Unlike the prior art, the digital array 3604 has its own row decoder (row decoder 3605) and its own high voltage decoder (3606), which allows a first set of voltages and a second set of voltages to be applied to the analog array 3601 and the digital array 3604, respectively, at the same time. Optionally, the analog array 3601 and the digital array 3604 are constructed on the same semiconductor die.
[0181] Digital array 3604 may optionally include a first array (which may be referred to as user data array 3607) and a second array (which may be referred to as system data array 3608), the first array including rows for storing digital data stored and retrieved by external sources (such as user data or operating system code for the computer), and the second array including rows for storing digital system data (i.e., data used by VMM system 3600 itself and not stored and retrieved by external sources), the second array sometimes referred to as digital non-volatile registers (NVRs) or information rows or information arrays. Examples of data that may be stored in system data array 3608 include user IDs, trim bits, configuration bits, manufacturing information, security codes, passwords, lock bits, and other system data. The performance of system data array 3608 may be relaxed compared to user data array 3607.
[0182] For example, the contents of system data array 3608 may be read once at power-up or at the start of system operation, and not read thereafter during operation. As another example, the contents of system data array 3608 may be erased or programmed only a few times throughout its useful life. Thus, read, program, or erase operations on system data array 3608 may occur at a slower speed than for user data arrays without much performance loss because the system data array is used so little. This speed difference may be implemented in VMM system 3600 to save power, for example, when operating on system data array 3608.
[0183] As another example, non-volatile memory cells have a property known as endurance, which refers to the number of times a non-volatile memory cell can be programmed or erased before the non-volatile memory cell degrades to the point where it is no longer reliable or usable. Thus, system data array 3608 may be provided with non-volatile memory cells having a lower endurance than non-volatile memory cells of user data array 3607 because system data array 3608 will be used much less during operation than user data array 3607.
[0184] Table 9 depicts exemplary operating voltages used in the VMM system 3600, where CG-main, EG-main, BL-main, and SL-main are a first set of voltages applied by the row decoder 3702 and the high voltage decoder 3703 to the control gate terminal, erase gate terminal, bit line terminal, and source line terminal of one or more memory cells in the analog array 3601, respectively, and CG-DIG, EG-DIG, BL-DIG, and SL-DIG are a second set of voltages applied by the row decoder 3705 and the high voltage decoder 3706 to the control gate terminal, erase gate terminal, bit line terminal, and source line terminal of one or more cells in the digital array 3604, respectively:
[0185] Table 9: For Fig.36 The operating voltage of the VMM system 3600
[0186]
[0187] The ability to apply different sets of voltages to the memory cells of analog array 3601 and the memory cells of digital array 3604 enhances performance during neural read operations of analog array 3601 and digital read operations of digital array 3604, such as reduced leakage during read neural operations (caused by the ability to cut off high current to digital cells that share the same bit line as the analog cells) and higher speed of the digital cells due to the higher current levels.
[0188] Fig.37An exemplary VMM system 3700 is depicted, which includes an analog array 3701, a row decoder 3702, a high voltage decoder 3703, a digital array 3704 (optionally including a user data array 3707 and a system data array 3708), a row decoder 3705, and a high voltage decoder 3706. VMM system 3700 is similar to VMM system 3600, except that the bit lines coupled to analog array 3701 are disconnected from the bit lines coupled to digital array 3704, which means that array 3701 and digital array 3704 have separate bit lines. However, the bit lines of analog array 3701 share the same diffusion layer as the bit lines of digital array 3704. In another example, the bit lines of analog array 3701 and the bit lines of digital array 3704 have different diffusion layers in addition to being disconnected. One or more pseudo rows can be used to disconnect the diffusion between the analog bit lines and the digital bit lines. Optionally, analog array 3701 and digital array 3704 are constructed on the same semiconductor die.
[0189] Table 10 depicts operating voltages used in the VMM system 3700, where CG-main, EG-main, BL-main, and SL-main are a first set of voltages applied by the row decoder 3702 and the high voltage decoder 3703 to the control gate terminals, erase gate terminals, bit line terminals, and source line terminals of one or more memory cells in the analog array 3701, respectively, and CG-IFR, EG-IFR, BL-IFR, and SL-IFR are a second set of voltages applied by the row decoder 3705 and the high voltage decoder 3706 to the control gate terminals, erase gate terminals, bit line terminals, and source line terminals of one or more memory cells in the digital array 3704, respectively.
[0190] Table 10: For Fig.37 The operating voltage of the VMM system 3700
[0191]
[0192] Fig.43 Depicts a simulated array such as Fig.36 and Fig.37 Analog arrays 3601 and 3701 in FIG. 3 and digital arrays such as Fig.36 and Fig.37 4 and 5. In operation 4301, during a read of the analog array, a first row decoder and a first voltage row decoder apply a first set of voltages to the analog array. In operation 4302, during a read of the digital array, a second row decoder and a second voltage row decoder apply a second set of voltages to the digital array, wherein the second set of voltages is different from the first set of voltages.
[0193] The ability to apply different sets of voltages to memory cells in analog array 3701 and memory cells in digital array 3704 enhances performance during neural read operations of analog array 3701 and digital read operations of digital array 3704, such as reduced leakage during read neural operations (caused by the ability to cut off high current to digital cells that share the same bit line as the analog cells) and higher speed of the digital cells due to the higher current levels.
[0194] Fig.38 Additional aspects of the VMM system 3700 are depicted, which further includes a column decoder 3801 and a column decoder 3802. The column decoder 3801 is coupled to bit lines BL0, ..., BLn, which are coupled to the columns of the analog array 3701. The column decoder 3802 is coupled to bit lines BLD0, ..., BLDn, which are coupled to the columns of the digital array 3704. The digital array 3704 optionally includes a user data array 3707 and a system data array 3708. Therefore, the analog array 3701 and the digital array 3704 have separate column decoders, thereby further reducing leakage during read neural operations.
[0195] Fig.39A and Fig.39B VMM systems 3901 and 3902 are respectively depicted, which are exemplary designs for VMM system 3700, and Fig.39C VMM system 3903 is depicted, which is an exemplary design for VMM system 3600 .
[0196] exist Fig.39A, the VMM system 3901 includes an analog array 3701 and a digital array 3704. An exemplary bit line BL0 is coupled to the analog array 3701, and an exemplary bit line BLIFR0 is coupled to the digital array 3704. The bit line BL0 coupled to the analog array 3701 may be referred to as an analog array bit line BL0, using metal layers M1 to M4 in the analog array 3701, and the metal layers M2 to M4 are also connected to peripheral circuits (such as a column decoder), while the bit line BLIFR0 coupled to the digital array 3704 may be referred to as a digital array bit line BLIFR0, using only metal layer M1. The analog array 3701 and the digital array 3704 are part of the same physical array 3904. The physical array 3904 includes a substrate 3905 and a diffusion layer 3906, both of which are shared by the analog array 3701 and the digital array 3704. The physical array 3904 is partitioned by using disconnected metal interconnects for the analog array 3701 and the digital array 3704. For example, as can be seen, the analog array bit line BL0 and the digital array bit line BLIFRO are disconnected from each other. Using the same physical array 3904 for both the analog array 3701 and the digital array 3704 reduces any physical impact from process uniformity and area overhead that would occur if separate physical arrays were used.
[0197] exist Fig.39B, VMM system 3902 includes analog array 3701 and digital array 3704. Exemplary bit line BL0 is coupled to analog array 3701 and may be referred to as analog array bit line BL0, and exemplary bit line BLIFR0 is coupled to digital array 3704 and may be referred to as digital array bit line BLIFR0. Analog array bit line B0 uses metal layers M1 to M4 in analog array 3701, and M2 to M4 are also connected to peripheral circuits (such as column decoders), while digital array bit line BLIFR0 uses only metal layer M1. Analog array 3701 and digital array 3704 are part of the same physical array 3907. Physical array 3907 includes substrate 3908, diffusion layer 3909, and diffusion layer 3910. Substrate 3908 is shared by analog array 3701 and digital array 3704. Diffusion layer 3909 is part of analog array 3701 but not digital array 3704, and diffusion layer 3910 is part of digital array 3704 but not analog array 3701. Physical array 3907 is partitioned by using disconnected metal interconnects and separate diffusion layers for analog array 3701 and digital array 3704. For example, as can be seen, bit line BL0 serving analog array 3701 and bit line BLIFRO serving digital array 3704 are disconnected from each other, and diffusion layer 3909 of analog array 3701 is separated from diffusion layer 3910 of digital array 3704. Using the same physical array 3907 for both analog array 3701 and digital array 3704 reduces any physical impact from process uniformity and area overhead that would occur if separate physical arrays were used.
[0198] exist Fig.39C , VMM system 3903 includes analog array 3601 and digital array 3604. Exemplary bit line BL0 is coupled to analog array 3601, and exemplary bit line BLIFR0 is coupled to digital array 3604. Here, bit line BL0 and bit line BLIFRO are the same bit lines, and both use metal layers M1 to M4. Metal layers M2 to M4 are also connected to peripheral circuits (such as column decoders). Analog array 3601 and digital array 3604 are part of the same physical array 3911. Physical array 3911 includes substrate 3912 and diffusion layer 3913, both of which are shared by analog array 3601 and digital array 3604. Fig.39A and Fig.39BUnlike physical arrays 3904 and 3907 in FIG. 3 , physical array 3911 is not partitioned. For example, as can be seen, bit lines BL0 and BLIFR0 are the same and are connected to both analog array 3601 and digital array 3604. Using the same physical array 3911 for both analog array 3601 and digital array 3604 reduces any physical impact from process uniformity and area overhead that would occur if separate physical arrays were used.
[0199] Fig.40 An exemplary VMM system 4000 is depicted, which includes an analog array 4001, a digital array 4002 (which optionally includes a user data array 4008 and a system data array 4009), a digital array 4003 (which optionally includes a user data array 4006 and a system data array 4007), a column decoder 4004, and a column decoder 4005. The column decoder 4004 is coupled to the bit lines BL0, ..., BLn, which are coupled to the columns of the analog array 4001. The column decoder 4005 is coupled to the bit lines BLD0, ..., BLDn, which are coupled to the columns of the digital array 4002 and the digital array 4003. Here, each of the digital array 4003 and the digital array 4002 can be used to store any type of digital data, including digital user data for non-volatile storage operations. The analog array 4001 and the digital arrays 4002, 4003 have separate column decoders, thereby reducing leakage and enhancing performance (such as faster speed). Optionally, two or more of analog array 4001, digital array 4003, and digital array 4002 are fabricated on the same semiconductor die.
[0200] Fig.41A digital array 4100 is depicted, which may be any of the previously discussed digital arrays 3604, 3704, 4002, or 4003. In this example, the digital array 4100 includes a user data array 4101 and a system data array 4102. The user data array 4101 and the system data array 4102 may be accessed independently of each other, such that: (1) the user data array 4101 is accessed at an average frequency f1, while the system data array 4102 is accessed at an average frequency f2, where f1 and f2 may be different and f2 may be less than f1; (2) the user data array 4101 has an access time t1, while the system data array 4102 has an access time t2, where t1 and t2 may be different and t2 may be greater than t1, which means that read or write operations for the system data array 4102 are slower than for the user data array 4101; and (3) the user data array 4101 has an endurance e1, while the system data array 4102 has an endurance e2, where e1 and e2 may be different and e2 may be less than e1. This may allow for greater manufacturing tolerances and lower power consumption for the system data array 4102 than for the user data array 4101.
[0201] Fig.42A Depicted is a differential current-to-voltage converter 4201 that can read analog data from analog arrays 3601, 3701, and 4001 using a first set of voltages and digital data from digital arrays 3604, 3704, 4002, and 4003 using a second set of voltages in VMM systems 3600, 3700, 4000, respectively.
[0202] The differential current-to-voltage converter 4201 includes an operational amplifier 4203; variable integrating resistors 4204 and 4205; and a common-mode circuit 4206 (which is used for the differential amplifier implementation of the operational amplifier 4203). The differential current-to-voltage converter 4201 converts two current inputs IBL+ and IBL- into differential output voltages VO+ and VO-, where the output voltages are proportional to the resistances of the variable resistors 4204 and 4205. The input currents IBL+ and IBL- are optionally currents representing positive weights and negative weights. For example, IBL+ can be a current Iw+ from a single cell or a bit line current that is the sum of currents from multiple w+ cells coupled to a bit line, and IBL- can be a current Iw- from a single cell or a bit line current that is the sum of currents from multiple w- cells coupled to a bit line. Such positive and negative weights can be used in a neural network to present weights (W=W+-W-). In another example, the two input currents IBL+ and IBL- may represent cell currents from the array (in this case, they are used to verify the cell current target in weight tuning, which means programming or erasing the cell to the target current) or bit line currents and a reference current.
[0203] Optionally, the bias current for the operational amplifier 4203 and / or the common mode circuit 4206 may be set to a higher current level for digital reading than for analog reading.
[0204] Optionally, resistors 4204 and 4205 can be set to different values for digital reads versus analog reads. Optionally, resistors 4204 and 4205 can be set to different values for when converter 4201 is used for cell verification in a weighted tuning operation (such as programming or erasing a memory cell to a target current). Fig.42B A differential successive approximation register (SAR) analog-to-digital converter (ADC) 4202 is depicted that can read analog data from analog arrays 3601, 3701, and 4001 using a first set of voltages and read digital data from digital arrays 3604, 3704, 4002, and 4003 using a second set of voltages in VMM systems 3600, 3700, 4000, respectively.
[0205] The differential successive approximation register analog-to-digital converter 4202 converts an analog input or a differential analog input to a digital output using a binary search of all possible quantization levels to identify the appropriate digital output.
[0206] The differential successive approximation register analog-to-digital converter 4202 includes a binary capacitance digital-to-analog converter (CDAC) 4207 , a binary CDAC 4208 (complementary to CDAC 4207 ), a comparator 4209 , and SAR logic and registers 4210 .
[0207] A differential successive approximation register analog-to-digital converter (SAR ADC) 4202 receives differential voltage inputs Vinp and Vinn, for example, provided by a differential current-to-voltage converter 4201. SAR logic and registers 4210 cycle through all possible digital bit combinations, which in turn control switches in CDACs 4207 and 4208 to couple a voltage source to a capacitor. When the output of comparator 4209 flips, the digital bit combination in SAR logic and registers 4210 is output as a digital output. Optionally, SAR logic and registers 4210 generates an additional 1-bit digital output DMAJ in the digital output, which is "1" if the majority of the bits in the digital value are "1", and is "0" if the majority of the bits in the corresponding digital value are not "1".
[0208] Optionally, resistors 4204 and 4205 may be set to different resistance values for digital read operations than for analog read operations.
[0209] 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. An artificial neural network system, comprising: an analog array of non-volatile memory cells arranged in rows and columns; a digital array of non-volatile memory cells arranged in rows and columns; as well as A plurality of bit lines, wherein each bit line of the plurality of bit lines is connected to a column of nonvolatile memory cells in the analog array and a column of nonvolatile memory cells in the digital array.
2. The artificial neural network system according to claim 1, wherein the artificial neural network system comprises: a first row decoder coupled to the analog array; as well as A first high voltage row decoder is coupled to the analog array.
3. The artificial neural network system according to claim 2, wherein the artificial neural network system comprises: a second row decoder separate from the first row decoder, the second row decoder coupled to the digital array; as well as A second high voltage row decoder is separate from the first high voltage row decoder, the second high voltage row decoder is coupled to the digital array.
4. The artificial neural network system of claim 3, wherein during a read of the analog array, the first row decoder and the first high voltage row decoder apply a first set of voltages to the analog array.
5. The artificial neural network system of claim 4, wherein during reading of the digital array, the second row decoder and the second high voltage row decoder apply a second set of voltages to the digital array, the second set of voltages being different from the first set of voltages.
6. The artificial neural network system of claim 3, comprising a read circuit used during the reading of the analog array and the reading of the digital array.
7. An artificial neural network system according to claim 6, wherein during reading of the digital array, if the majority of the output bits generated by the read circuit are "1", the read circuit outputs "1", and if less than the majority of the output bits generated by the read circuit are "1", the read circuit outputs "0".
8. The artificial neural network system according to claim 1, wherein the digital array comprises a user data array and a system data array.
9. The artificial neural network system of claim 8, wherein one or more of reading, programming or erasing the system data array is slower than that of the user data array.
10. The artificial neural network system according to claim 8, wherein the system data array is read more slowly than the user data array.
11. The artificial neural network system according to claim 8, wherein the durability of the system data array is less than the durability of the user data array.
12. An artificial neural network system, comprising: an analog array of non-volatile memory cells arranged in rows and columns; a digital array of non-volatile memory cells arranged in rows and columns, the analog array and the digital array being constructed on the same semiconductor die; a first plurality of bit lines, wherein each bit line of the first plurality of bit lines is coupled to a column of nonvolatile memory cells in the analog array; as well as A second plurality of bit lines, wherein each bit line of the second plurality of bit lines is coupled to a column of nonvolatile memory cells in the digital array and the second plurality of bit lines is disconnected from the first plurality of bit lines.
13. The artificial neural network system according to claim 12, wherein the artificial neural network system comprises: a first row decoder coupled to the analog array; as well as A first high voltage row decoder is coupled to the analog array.
14. The artificial neural network system according to claim 13, comprising: a second row decoder separate from the first row decoder, the second row decoder coupled to the digital array; as well as A second high voltage row decoder is separate from the first high voltage row decoder, the second high voltage row decoder is coupled to the digital array.
15. The artificial neural network system of claim 14, wherein during a read of the analog array, the first row decoder and the first high voltage row decoder apply a first set of voltages to the analog array.
16. The artificial neural network system of claim 15, wherein during reading of the digital array, the second row decoder and the second high voltage row decoder apply a second set of voltages to the digital array, the second set of voltages being different from the first set of voltages.
17. The artificial neural network system of claim 12, wherein the first plurality of bit lines and the second plurality of bit lines share a diffusion layer.
18. The artificial neural network system of claim 17, wherein the first plurality of bit lines and the second plurality of bit lines have different metal interconnections.
19. The artificial neural network system of claim 12, wherein the first plurality of bit lines and the second plurality of bit lines have different diffusion layers.
20. The artificial neural network system of claim 18, wherein the first plurality of bit lines and the second plurality of bit lines have different metal interconnections.
21. The artificial neural network system of claim 12, wherein the digital array comprises a system data array.
22. The artificial neural network system of claim 12, comprising a read circuit used during the reading of the analog array and the reading of the digital array.
23. An artificial neural network system according to claim 21, wherein during reading of the digital array, if the majority of the output bits generated by the read circuit are "1", the read circuit outputs "1", and if less than the majority of the output bits generated by the read circuit are "1", the read circuit outputs "0".
24. The artificial neural network system according to claim 12, comprising: A second digital array of non-volatile memory cells is arranged in rows and columns.
25. The artificial neural network system of claim 24, wherein each bit line of the second plurality of bit lines is coupled to a column of non-volatile memory cells in the second digital array.
26. The artificial neural network system of claim 12, wherein the digital array of non-volatile memory cells comprises a user data array and a system data array.
27. The artificial neural network system of claim 26, wherein one or more of a read, program, or erase operation is performed more slowly on the system data array than on the user data array.
28. The artificial neural network system of claim 26, wherein a read operation on the system data array is slower than a read operation on the user data array.
29. The artificial neural network system of claim 26, wherein the durability of the system data array is less than the durability of the user data array.
