Artificial neural network comprising reference array for I-V slope configuration
By using non-volatile memory cell arrays and vector-matrix multiplication arrays in artificial neural networks, the problems of insufficient hardware technology and low energy efficiency are solved, efficient computing and fine tuning are achieved, and it is suitable for high-performance information processing.
Patent Information
- Application Number
- CN202280092086.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-06-23
- Filing Date
- 2022-07-14
- Publication Date
- 2024-10-01
AI Technical Summary
Existing artificial neural networks lack sufficient hardware technology to achieve high-performance information processing, resulting in low computing parallelism and low energy efficiency, and the synapses in CMOS analog circuits are too large to achieve fine tuning.
Utilizes an array of non-volatile memory cells as synapses, enabling continuous programming by configuring each memory cell to be independently programmed, erased and read, allowing multiple discrete values to be stored to fine-tune assault weights, utilizing a vector-matrix multiplication array Eliminate multiplication and addition logic circuits and improve computational efficiency.
It achieves efficient neural network calculations, reduces energy consumption, improves fine-tuning capabilities of assault weights, and is suitable for high-performance information processing and fine feature mapping.
Smart Images

Figure CN118742906A_ABST
Abstract
Description
[0001] Priority declaration
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 328,543, filed on April 7, 2022, and entitled “Artificial Neural Network Comprising Monte Carlo Reference Array for IV Slope Configuration,” and U.S. Patent Application No. 17 / 848,381, filed on June 23, 2022, and entitled “Artificial Neural Network Comprising Reference Array for IV Slope Configuration.” Technical Field
[0003] Many examples of artificial neural networks including reference arrays for IV slope configuration in a primary array 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 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] 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 operation of is similar. 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 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: Figure 5 Operation of the flash memory unit 510
[0027] CG BL SL Substrate Read 2V-5V 0.6-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., 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] In layer C1, in this example, there are 16 feature maps, each with 30×30 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. Thus, 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 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 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, non-volatile memory cells of VMM array 900 (ie, memory cells 310 of VMM array 900) may be configured to operate in a subthreshold 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 Depicted is a neuron VMM array 1000, which is particularly suitable for Figure 2 1 and 2. The memory cell 210 shown in FIG. 1 is a memory cell 210 of FIG. 1 , 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 (only 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 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 to 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 to BLN during the read (inference) operation. The current placed on each of the bit lines BL0 through 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 <![CDATA[ B L]]> 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 <![CDATA[0.1uA-3uA]]> Vinh about 2.5V 4V-10V 0V-1V / FLT
[0081] Fig.11 Depicted is a neuron VMM array 1100, 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 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 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 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 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 in BL0 to 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 to 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.13 Depicted is a neuron VMM array 1300, 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 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 to BLN, where each bit line sums all currents from the nonvolatile 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 Depicted is a neuron VMM array 2200, 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 input INPUT0, . . . , INPUT N On bit lines BL0, BL1, BL2, BL3, BL4, BL5, BL6, BL7, BL8, BL9, BL10, BL11, BL12 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 Depicted is a neuron VMM array 2300, 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, OUTPUT1, OUTPUT2 and OUTPUT3 are received on source lines SL0, SL1, SL2 and SL3, respectively. 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, ... OUTPUTN 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 Depicted is a neuron VMM array 2600, 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 Depicted is a neuron VMM array 2700, 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 Example 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, ..., WLM is 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 OUTPUT0, OUTPUT1, OUTPUT2, OUTPUT3, OUTPUT4 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 Depicted is a neuron VMM array 3000, 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 OUTPUT0, OUTPUT1, OUTPUT2, OUTPUT3, OUTPUT4 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 example 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 LSTM cell 1500. 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.16LSTM 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] Fig.18 An example 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.18 An example 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. 20A 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.33 A 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] To ensure the accuracy of the VMM system, it is important to compensate for natural variations that occur. For example, IV slope may vary within the same memory array due to natural process variations, and it may vary as operating temperature changes. IV slope refers to the relationship between the current drawn by a memory cell when a voltage is applied to its terminals (such as the control gate terminal). It is desirable to be able to compensate for such changes in IV slope of part or all of a memory array. Summary of the invention
[0128] A number of examples are described for providing a neural network system comprising multiple reference arrays that contain a series of intentional variations so that an appropriate portion of the reference array that closely approximates an operating array can be selected for operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0129] Figure 1A diagram showing an artificial neural network.
[0130] Figure 2 A prior art split gate flash memory cell is depicted.
[0131] Figure 3 Another prior art split gate flash memory cell is depicted.
[0132] Figure 4 Another prior art split gate flash memory cell is depicted.
[0133] Figure 5 Another prior art split gate flash memory cell is depicted.
[0134] Figure 6 A schematic diagram illustrating different levels of an exemplary artificial neural network utilizing one or more non-volatile memory arrays.
[0135] Figure 7 FIG. 1 is a block diagram showing a VMM system.
[0136] Figure 8 is a block diagram illustrating an example artificial neural network utilizing one or more VMM systems.
[0137] Fig. 9 Another example of a VMM system is depicted.
[0138] Fig.10 Another example of a VMM system is depicted.
[0139] Fig.11 Another example of a VMM system is depicted.
[0140] Fig.12 Another example of a VMM system is depicted.
[0141] Fig.13 Another example of a VMM system is depicted.
[0142] Fig.14 A prior art long short-term memory system is depicted.
[0143] Fig.15 An example cell for use in a long short-term memory system is depicted.
[0144] Fig.16 Depicted Fig.15 An example specific implementation of a unit of.
[0145] Fig.17 Depicted Fig.15 Another example implementation of a unit.
[0146] Fig.18A prior art gate-controlled recursive cell system is depicted.
[0147] Fig.19 Depicted is an example cell for use in a gate-controlled recursive cell system.
[0148] Fig. 20 Depicted Fig.19 An example specific implementation of a unit of.
[0149] Fig.21 Depicted Fig.19 Another example implementation of a unit.
[0150] Fig. 22 Another example of a VMM system is depicted.
[0151] Fig.23 Another example of a VMM system is depicted.
[0152] Fig.24 Another example of a VMM system is depicted.
[0153] Fig.25 Another example of a VMM system is depicted.
[0154] Fig.26 Another example of a VMM system is depicted.
[0155] Fig. 27 Another example of a VMM system is depicted.
[0156] Fig.28 Another example of a VMM system is depicted.
[0157] Fig.29 Another example of a VMM system is depicted.
[0158] Fig.30 Another example of a VMM system is depicted.
[0159] Fig.31 Another example of a VMM system is depicted.
[0160] Fig.32 Another example of a VMM system is depicted.
[0161] Fig.33 Another example of a VMM system is depicted.
[0162] Fig.34 An example of a VMM system is depicted.
[0163] Fig.35 Examples of VMM arrays and reference arrays are depicted.
[0164] Fig.36Examples of VMM arrays and reference arrays are depicted.
[0165] Fig.37 Examples of VMM arrays and reference arrays are depicted.
[0166] Fig.38 An example of a reference array is depicted.
[0167] Fig.39 An example of a reference array is depicted.
[0168] Fig.40A and Fig.40B Depicted are the physical layouts of the simulated array and the embedded reference array. Fig.41 Depicted is the reference array selection method.
[0169] Fig.42A and Fig.42B Examples of data for cells with different IV slopes are depicted.
[0170] Fig.43 An example of a physical layout of a memory cell is depicted.
[0171] Fig.44 An example of a calibration circuit is depicted.
[0172] Fig.45 The row DAC bias generator is depicted.
[0173] Fig.46 The row DAC bias generator is depicted.
[0174] Fig.47 A global row DAC decoder is depicted.
[0175] Fig.48 A global row DAC decoder is depicted.
[0176] Fig.49 An example layout of a reference array is depicted.
[0177] Fig.50 An example layout of a reference array is depicted.
[0178] Fig.51 An example layout of a reference array is depicted. DETAILED DESCRIPTION
[0179] VMM system architecture
[0180] 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 also includes a high voltage generation block 3410, which includes a charge pump 3411, a charge pump regulator 3412, and a high voltage level generator 3413. The VMM system 3400 also 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.
[0181] The input circuit 3406 may include various 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 3406 may implement one or more of normalization, linear or nonlinear up / down scaling functions, or arithmetic functions. The input circuit 3406 may implement a temperature compensation function for the input level. The input circuit 3406 may implement an activation function such as a ReLU or a sigmoid.
[0182] Output circuit 3407 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. Output circuit 3407 may implement an activation function, such as a rectified linear activation function (ReLU) or a 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 the neuron output. Output circuit 3407 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.
[0183] Fig.35 and Fig.36 An example of a reference array embedded in the same physical array as the VMM array is depicted.
[0184] Fig.35A physical array 3500 is depicted. The physical array 3500 optionally comprises an array of non-volatile memory cells. The non-volatile memory cells optionally may comprise stacked gate flash memory cells or split gate flash memory cells.
[0185] The physical array 3500 is divided into two types of arrays: the VMM array 3401 (such as Fig.34 ) and reference array 3501. Reference array 3501 includes multiple reference arrays, such as Fig.38 and Fig.39 In one example, VMM array 3401 and reference array 3501 share the same bit lines. In another example, VMM array 3401 and reference array 3501 use separate sets of bit lines, where the two sets of bit lines are disconnected. Fig.40A and Fig.40B Shown in.
[0186] Fig.36 A physical array 3600 is depicted that is divided into two arrays, a VMM array 3401 and a reference array 3501. In one example, the VMM array 3401 and the reference array 3501 share one or more groups of horizontal lines, such as word lines, control gate lines, and erase lines. In another example, the VMM array 3401 and the reference array 3501 do not share any groups of horizontal lines.
[0187] Fig.37 An example is depicted where reference array 3501 and VMM array 3401 are located in separate physical arrays. For example, there may be a substrate separation or active diffusion separation between the two arrays. Physical array 3701 includes VMM array 3401, and physical array 3702 includes reference array 3501. VMM array 3401 and reference array 3501 do not share any bit lines, word lines, control gate lines, or erase lines.
[0188] Fig.38An example of a reference array 3501 is depicted. Here, the reference array 3501 includes a plurality of reference arrays, such as reference arrays 3801-0, 3801-1, ..., 3801-(n-1), and 3801-n. Thus, the reference array 3501 includes n+1 different reference arrays. Different reference arrays may have different characteristics, which causes the corresponding reference array to be characterized by a different IV curve than the other reference arrays. For example, the size of the corresponding reference array may vary in one or more of the following aspects: (1) the width of the control gate line of the transistor of the corresponding reference array; (2) the width of the word line of the transistor of the corresponding reference array; (3) the width of the floating gate of the transistor of the corresponding reference array; (4) the total width of the non-volatile memory cells in the corresponding reference array; (5) the shallow trench isolation (STI) spacing within the corresponding reference array; or (6) other characteristics. In addition, the reference arrays may vary in one or more device implant conditions or doping characteristics (such as, but not limited to, well implant conditions, source implant conditions, and drain implant conditions).
[0189] Fig.39 Another example of a reference array 3501 is depicted. Here, the reference array 3501 includes a plurality of reference arrays, such as reference arrays 3901-0, 3901-1, ..., 3901-(n-1), and 3901-n and 3901-0, 3902-1, ..., 3902-(n-1), and 3902-n. Thus, the reference array 3501 includes 2*(n+1) different reference arrays. Fig.38 As shown, different reference arrays may have different characteristics, which causes the corresponding reference array to be characterized by a different IV curve than other reference arrays. For example, the dimensions of the corresponding reference array may vary in one or more of the following aspects: control gate width, word line width, floating gate width, total width of non-volatile memory cells in the array, STI spacing, and device implantation conditions, but are not limited thereto.
[0190] Fig.40AThe physical layout of the VMM array and the reference array is depicted. The VMM system 4001 includes a VMM array 4002 and a reference array 4004. An example bit line BL0 is coupled to the VMM array 4002, and an example bit line BLR0 is coupled to the reference array 4004. The bit line BL0 coupled to the VMM array 4002 may be referred to as the VMM array bit line BL0 because the example uses metal layers M1 to M4 in the VMM array 4002, and the metal layers M2 to M4 are also connected to peripheral circuits (such as column decoders), while the bit line BLR0 coupled to the reference array 4004 may be referred to as the reference array bit line BLR0 because the example only uses metal layer M1 as an example. The VMM array 4002 and the reference array 4004 are part of the same physical array 4003. The physical array 4003 includes a substrate 4005 and a diffusion layer 4006, both of which are shared by the VMM array 4002 and the reference array 4004. Physical array 4003 is electrically segmented by using disconnected metal interconnects for VMM array 4002 and reference array 4004. For example, it can be seen that VMM array metal bit line BL0 and reference array metal bit line BLR0 both use metal layer M1, but are disconnected from each other. Using the same physical array 4003 for VMM array 4002 and reference array 4004 reduces any physical impact of processing uniformity and area overhead that would occur if separate physical arrays were used.
[0191] Fig.40B Depicts another embodiment of a physical layout for a VMM array and a reference array, the physical layout being similar to Fig.40A The physical layout in FIG. 4 is similar to that in the VMM system 4051, except that the diffusion layer 4056 for the VMM array 4052 and the diffusion layer 4057 for the reference array 4004 are separated.
[0192] Fig.41 A reference array selection method 4100 is depicted that is performed to calibrate a VMM system. Method 4100 may be performed during a manufacturing or testing process, or it may be performed during real-time operation of a VMM system. In operation 4101, multiple reference arrays are selected as candidates for a calibration process. For example, multiple reference arrays are selected as candidates to adjust the IV (current-voltage) slope of a VMM array. In operation 4102, corresponding metrics are determined for multiple reference arrays. For example, the metric may be a target circuit performance metric or a target neural network performance metric. In operation 4103, a reference array that results in a metric closest to a target value is identified in multiple reference arrays. In operation 4104, the reference array identified in operation 4103 is used to calibrate the VMM array.
[0193] Fig.42A Data captured from memory arrays having different physical characteristics are depicted. Fig.42B Data captured from a memory array with different electrical characteristics (such as by well implantation) is depicted. As can be seen, the IV slope of a memory cell can vary based on physical or electrical variations between memory cells.
[0194] Fig.43 An example of the physical layout of the reference memory cell 4300 in the reference array 3501 is depicted, where it should be understood that the dimensions of the control gate width, word line width, floating gate width, total width, and STI spacing may vary based on the manufacturing process and layout used. These are references to the above Fig.38 and Fig.39 Examples of the mentioned properties which may vary from the reference array.
[0195] Figures 44 to 48 An example is provided of how reference array 3501 may be used to calibrate VMM array 3401 .
[0196] Fig.44 An example row bias calibration circuit 4400 is depicted, which includes a current digital-to-analog converter (DAC) 4401, an operational amplifier 4402, and a reference memory cell 4403. The reference memory cell 4403 may be Figure 35 to Figure 39 The reference cells in the reference array of the VMM are provided by the row bias calibration circuit 4400. The CG bias can then be applied directly to the CG terminals in the VMM array to provide a bias voltage on these cells, or can be used in a larger system such as a Fig.45 The row DAC bias generator in 4500, Fig.46 The row DAC bias generator 4600, Fig.47 Input block 4700 or Fig.48 These larger systems, in turn, generate bias voltages that can be applied to CG terminals or other terminals in the VMM array to provide bias voltages on these cells.
[0197] The reference memory unit 4403 may specifically be from Fig.41 4100 . The input DIN[0:n] selects the current generated by the current DAC 4401. The generated current is the target current that the memory cells in the VMM array 3401 will ideally generate for the stored weights corresponding to the value of DIN[0:n]. For example, if DIN is an 8-bit value, there will be 256 possible values of DIN and 256 corresponding current levels that will ideally be generated during a read operation of the memory cells in the VMM array 3401 that store the weights corresponding to that value.
[0198] Operational amplifier 4402 outputs a voltage at terminal CG (CGbias) of reference memory cell 4403. Based on the inherent properties of the operational amplifier, operational amplifier 4402 adjusts the output voltage until the voltage at its inverting input terminal is equal to the voltage VREF (which can be an arbitrary reference value, such as 0.5V) at its non-inverting input terminal. The output voltage of operational amplifier 4402 is sampled and can be applied as a bias voltage to the control gate terminals of memory cells in VMM array 3401, or alternatively as an analog input to the array. Alternatively, CGbias can be used, for example, Fig.45 The row DAC bias generator in 4500, Fig.46 The row DAC bias generator 4600, Fig.47 Input block 4700 or Fig.48 The input block in the 4800 etc. system.
[0199] Reference cell 4403 may be a single cell or may include multiple cells. For example, multiple reference cells may be used to obtain an averaging effect or to reflect the weight distribution of a layer of a neural network. For example, multiple reference cells may be selected such that 50% of the reference cells reflect low weight values, 20% of the reference cells reflect medium weight values, and 30% of the reference cells reflect high weight values in an attempt to approximate a typical weight distribution in a VMM array in an artificial neural network.
[0200] Alternatively, for example, different instantiations of the row bias calibration circuit 4400 may be used to generate different CGbias levels, such as a high CGbias level, a medium CGbias level, and a low CGbias level. For example, a low CGbias level (VREFL) can be generated using several reference cells (e.g., 1 cell, 2 cells, ..., 32 cells), each of which has a target current of 3nA (generated by current digital-to-analog converter 4401), which represents the 1st level of 32 levels of the memory cell for a 5-bit cell; a high CGbias level (VREFH) can be generated using several reference cells (e.g., 1 cell, 2 cells, ..., 32 cells), each of which has a target current of 96nA, which represents the 32nd level of the 32 levels of the memory cell for a 5-bit cell; and a medium CGbias level (VREFM) can be generated using several reference cells (e.g., 1 cell, 2 cells, ..., 32 cells), each of which has a target current of 48nA, which represents the 16th level of the 32 levels of the memory cell for a 5-bit cell. In this way, three instances of row bias calibration circuit 4400 may be used to generate a high voltage VREFH, a medium voltage VREFM, and a low voltage VREFL.
[0201] For the case of a serial DAC input (such as an input that includes a sequence of digital input bits applied one at a time, where for each binary input bit position, the corresponding digital output is shifted and added) or a clocked input (pulse width modulated input or pulse count input), the CG bias voltage applied to the VMM array may be determined by Fig.44 A row bias calibration circuit 4400 is provided.
[0202] Fig.45 A row DAC bias generator 4500 is depicted, which includes a voltage ladder 4501, a mapping block 4502, and an output buffer 4503. The voltage ladder 4501 generates a plurality of voltage levels (L0, ..., Lk) that provide voltages to the VMM array, respectively, so that the VMM array operates in a linear mode or a subthreshold mode according to a selected voltage mode (linear or subthreshold). For example, for subthreshold operation, the voltage ladder 4501 may have a resolution of 8 to 14 bits. A control logic component (not shown) controls the operation of the row DAC bias generator 4500 (by performing functions such as enabling various blocks using enable signals (such as EN), providing control signals to multiplexers, and other control functions).
[0203] Mapping block 4502 converts the levels from voltage ladder 4501 to corresponding analog outputs, such as a voltage representing an 8-bit output, and the output of mapping block 4502 is fed to output buffer 4503 .
[0204] The output of the output buffer 4503 is depicted as DAC_OUT 4590, which is then applied to a row of memory cells in the VMM array as a bias voltage (such as on the CG terminal) to change the IV slope of those cells. At least when the array is operating in the subthreshold region, local trimming of each level is provided within the mapping block 4502 (represented by trimming blocks L0_trm, ..., Ln_trm). Applying this bias voltage to, for example, the control gate line of a row of memory cells will achieve a non-linear IV slope for the memory cells in the VMM array over a temperature range in the subthreshold region. It should be understood that DAC_Out 4590 is generated using multiple reference arrays (e.g., one reference array is used to generate VREFH, and another reference array is used to generate VREFL).
[0205] Voltage ladder 4501 receives a high reference voltage VREFH (such as provided by Fig.44 The instantiation of the row bias calibration circuit 4400 in FIG. 4 generates VREFH, as described above) and a low reference voltage VREFL (such as generated by Fig.44, as described above). VREFH corresponds to the highest possible value that can be stored in a cell in the VMM array, and VREFL corresponds to the lowest possible value that can be stored in a cell in the VMM array. The voltage ladder 4501 includes a plurality of resistors for generating a voltage range between VREFL and VREFH, optionally according to a linear function or a logarithmic function. For example, the top node of the top resistor in the voltage ladder will have a voltage VREFH, and the bottom of the resistor will have a lower voltage due to the voltage drop across the top resistor. The bottom node of the bottom resistor will have a voltage VREFL. The voltage ladder thereby generates a plurality of voltage levels (L0, ..., Lk) (e.g., k may be 4095), which are required when it is desired to provide voltages to the VMM array so that the non-volatile memory cells of the VMM array operate in a linear mode or a subthreshold mode.
[0206] The mapping block 4502 receives a digital input DIN[n:0], which is used to select one of m+1 analog voltages using a sub-block 4563 inside the mapping block 4502, where (m+1)=2^(n+1). For example, if (n+1)=8, then (m+1)=256. The mapping block 4502 includes (m+1) trimming blocks 4562 and (m+1) multiplexers 4563. The mapping block 4502 converts the k+1 voltage levels from the DAC 4501 into corresponding analog outputs corresponding to DIN[n:0]. This is achieved by local trimming for each level (represented by trimming blocks L0_trm, ..., Lm_trm), which can be useful, for example, when the non-volatile memory cells in the array are operating in the sub-threshold region. This is desirable to achieve the best matching IV slope of the non-volatile memory cells in the VMM array over temperature in the sub-threshold region or the linear region.
[0207] By adjusting the reference voltages VREFL and VREFH, the range of the k+1 levels is also adjusted. This is, for example, to match the output range of the input block to the input range of the memory cell. This can also be temperature compensated by adjusting (such as shifting lower at high temperatures and higher at lower temperatures) the reference levels VREFL and VREFH to achieve the desired gate bias range of the memory cell required due to temperature changes. Additional individual level adjustments and temperature compensation are done by the level trimming circuits of the mapping block 4502, for example, to achieve optimal neural network accuracy.
[0208] Fig.464. Row DAC bias generator 4600 is depicted. Row DAC bias generator 4600 is similar to row DAC bias generator 4500, except that voltage ladder 4601 is used instead of voltage ladder 4501. Voltage ladder 4601 is similar to voltage ladder 4501, but with the addition of an intervening intermediate reference level VREFM (such as provided by Fig.44 4601). The VREFM generated by the instantiation of the row bias calibration circuit 4400 in 4602 is described above. The adjustment and temperature behavior of the VREFM reference level is controlled similarly to the adjustment and temperature behavior of the VREFH and VREFL reference levels. An additional buffer 4603 is included to apply an intermediate reference level to the ladder to further adjust the IV slope matching of the GDAC 5480 and the input of the memory array. Although the voltage ladder 4601 uses three voltage reference levels (VREFH, VREFM and VREFL), it should be understood that other numbers of voltage reference levels may be used instead.
[0209] Using the reference memory cell 4403 from the n+1 reference array 3801 or 3901 by Fig.44 The reference voltage is generated using the CGbias output of the instantiation of the row bias calibration circuit 4400 in . The row DAC bias generator 4600 provides a bias voltage (DAC_OUT 4602) to be applied to the rows of the VMM array.
[0210] Fig.47 Describes a method for providing a VMM array such as Fig.34 4. The example input block 4700 of FIG. 47 is a block diagram of an exemplary input block 4700 that provides input to a VMM array 3401 in FIG. 47. The input block 4700 includes: a global digital-to-analog converter (DAC) 4701; address row decoders 4702-0 to 4702-n, each corresponding to one of the rows numbered 0 to n in the VMM array; row registers 4703-0 to 4703-n, each corresponding to one of the rows numbered 0 to n in the VMM array; digital comparator blocks 4704-0 to 4704-n, each corresponding to one of the rows numbered 0 to n in the VMM array; row sample-and-hold (S / H) buffers 4705-0 to 4705-n, each corresponding to one of the rows numbered 0 to n in the VMM array; output signals 4706-0 to 4706-n, each corresponding to one of the rows numbered 0 to n in the VMM array; and a counter 4707.
[0211] The global DAC 4701 may optionally include Fig.45 The row DAC bias generator in the 4500 or Fig.46 4600 in which the reference voltage levels VREFH, VREFL and optionally VREFM are determined by Fig.44 An instantiation of the row bias calibration circuit 4400 is provided.
[0212] Each set of row registers 4703, digital comparators 4704 and row sample-and-hold buffers 4705 for a particular row may be viewed as a local digital-to-analog converter for that particular row, where the voltage supply for the local digital-to-analog converter is provided by the global DAC 4701 as described below.
[0213] The address row decoders 4702-0 to 4702-n receive the row address ADD[n:0] and the enable signal EN. When ADD[n:0] is the address for the particular row and when EN is asserted, the output of each address row decoder, denoted as ENROW, is high. The row registers 4703-0 to 4703-n are loaded with the corresponding digital input bits DINx (where x is the number of bits, such as 8 or 16 bits) for the particular row, wherein the loading operation is triggered by the clock signal CLK, wherein DINx is the activation input for the particular row to perform a vector-matrix multiplication operation. When the output of a particular address row decoder 4702 is high, the associated row register 4703 is enabled and outputs its digital bits DINx. When enabled by the signal EN, the counter 4707 counts the pulses in another clock signal CLKB. The output of the counter 4707 is the count value. The digital comparator blocks 4704-0 to 4704-n compare the activation value DINx stored in each of the corresponding row registers 4703 with the count value. If the count value matches the value stored in the particular row register 4702, the corresponding digital comparator block 4704 enables the corresponding row S / H buffer 4705 to sample and hold the analog output value from the global DAC 4701. The global DAC 4701 performs a digital-to-analog conversion on the count value (which also matches the DINx of the row register 4703 for the row in question). Each row S / H buffer 4705 outputs the held analog value as an output signal 4706. For example, if x=8 and DINx is an 8-bit input (meaning there are 256 different values for DINx), the counter 4707 will count until 256 and then reset. In doing so, it will cover all possible values of DINx, and each row S / H buffer 4705 will have been loaded with its associated DINx value.
[0214] During a programming or reading operation in that particular row or during a neural read operation that reads all rows, the output signal 4706 may be applied to, for example, a control gate line or a word line. During neural read, all S / H buffers 4705 are enabled to drive the array input terminals with corresponding output signals 4706, resulting in a bit line current being output by the VMM array, which is then processed by output circuits such as ITV (current-to-voltage converter) circuits and ADC (analog-to-digital converter) circuits.
[0215] For example, each respective output signal 4706 may be applied to a respective control gate line or word line during a programming or read operation in that particular row.
[0216] In another example, the row sample-and-hold buffer 4704 can be shared by multiple rows in a time multiplexed manner.
[0217] Fig.48 Describes a method for providing a VMM array such as Fig.34 An example input block 4800 that provides input to the VMM array 3401 in FIG. 4800 is similar to Fig.44 The input block 4400 in FIG. 4800 is a block that is similar to the input block 4400 in FIG. 4800 , but provides multiple outputs from the global digital-to-analog converter for the neural read operation. The input block 4800 includes: a global digital-to-analog converter 4801; address row decoders 4802-0 to 4802-n, each corresponding to a corresponding row in the rows numbered 0 to n; row registers 4803-0 to 4803-n, each corresponding to a corresponding row in the rows numbered 0 to n; digital comparators 4804 to 4804-n, each corresponding to a corresponding row in the rows numbered 0 to n; row sample-and-hold buffers 4805-0 to 4805-n, each corresponding to a corresponding row in the rows numbered 0 to n; and output signals 4806-0 to 4806-n, each corresponding to a corresponding row in the rows numbered 0 to n.
[0218] The global DAC 4801 may optionally include Fig.45 The row DAC bias generator in the 4500 or Fig.46 4600 in which the reference voltage levels VREFH, VREFL and optionally VREFM are determined by Fig.44 An instantiation of the row bias calibration circuit 4400 is provided.
[0219] The address row decoders 4802-0 to 4802-n receive row addresses ADD[n:0] and enable signals EN. When ADD[n:0] is the address for the particular row and EN is asserted, the output of each address row decoder 4802, denoted as ENROW, is high. Row registers 4803-0 to 4803-n are loaded with corresponding digital input bits DINx (where x is the number of bits, such as 8 or 16 bits), where the loading is triggered by the clock signal CLK for the particular row, where DINx is the activation input for the particular row. When the output ENROW of a particular address row decoder 4802 is high, the associated row register 4803 is enabled and outputs its digital bits DINx. Counter 4807 counts pulses in another clock signal CLKB when enabled by signal EN. The output of counter 4807 is the count value. Digital comparator blocks 4804-0 to 4804-n compare the activation value DINx stored in each of the corresponding row registers 4803 with the count value. If the count value matches the value stored in the particular row register 4802, the corresponding row S / H buffer 4805 is enabled by the corresponding digital comparator block 4804 to sample and hold the analog output value from the GDAC 4801. As shown, there are two vertical analog output lines from the GDAC 4801. For example, for an 8-bit GDAC 4801, one line can deliver an output of 0 to 127 analog levels (corresponding to 00000000 to 01111111), and the other line can deliver an output of 128 to 255 analog levels (corresponding to 10000000 to 11111111). The two lines can operate simultaneously to cut the row DAC sampling time from 256 (DAC) clocks to 128 (DAC) clocks. Each row S / H buffer 4805 receives only one of the outputs from the GDAC 4801. For example, during a programming operation in that particular row, the output signal 4806 may be applied to a control gate line or a word line.
[0220] Optionally, the global digital-to-analog converter 4801 may include a first global DAC for odd rows and a second global DAC for even rows.
[0221] Fig.49 An example layout of reference array 3501 is depicted. Reference array 3501 includes reference arrays 4901-0, 4901-1, 4901-2, and 4901-3, which are coupled to corresponding shared bit lines in the same metal layer (such as metal layer M1). For example, corresponding reference array 4901 may implement the above-mentioned Figures 44 to 46Low (VREFL), medium (VREFM), or high (VREFH) CG reference biases are described, but not limited to. When a particular bit line is used for one reference array, the cells connected to that bit line in the other reference arrays are deeply programmed so that they do not conduct any current and are essentially disabled. In this way, each bit line can be effectively dedicated for use by only one of the reference arrays.
[0222] Fig.50 An example layout of reference array 3501 is depicted. Reference array 3501 includes reference arrays 5001-0, 5001-1, 5001-2, and 5001-3, which are respectively coupled to corresponding bit lines in different metal layers (such as metal layers M4, M3, M2, and M1). For example, corresponding reference array 4901 implements the above Figures 44 to 46 A low level (VREFL), medium level (VREFM), or high level (VREFH) CG reference bias is described, but is not limited thereto.
[0223] Fig.51 An example layout of reference array 3501 is depicted. Reference array 3501 includes reference arrays 5101-0, 5101-1, 5101-2, and 5101-3, which are respectively coupled to bit lines in the same metal layer (such as metal layer M1). For example, corresponding reference array 4901 implements the above Figures 44 to 46 The low level (VREFL), medium level (VREFM) or high level (VREFH) CG reference bias is described, but not limited thereto. Here, each bit line is electrically coupled to only one of the reference arrays and is electrically disconnected from the other reference arrays.
[0224] 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: Vector-matrix multiplication arrays in artificial neural networks; and A plurality of reference arrays characterized by different IV curves, wherein one or more reference arrays of the plurality of reference arrays are used to generate an input voltage to the vector-matrix multiplication array during operation. 2 . The system of claim 1 , comprising a control circuit that provides a target current through reference cells of the one or more of the plurality of reference arrays to generate the input voltage.
3. The system of claim 1, wherein corresponding reference arrays in the plurality of reference arrays differ in at least one dimension. 4 . The system of claim 3 , wherein the dimension is a width of a control gate line of a transistor of a corresponding reference array.
5. The system of claim 3, wherein the dimension is a width of a word line of a transistor of a corresponding reference array.
6. The system of claim 3, wherein the dimension is a width of a floating gate of a transistor of a corresponding reference array.
7. The system of claim 3, wherein the size is a total width of nonvolatile memory cells in a corresponding reference array.
8. The system of claim 3, wherein the dimension is a shallow trench isolation pitch of transistors of a corresponding reference array.
9. The system of claim 1, wherein corresponding reference arrays of the plurality of reference arrays differ in doping characteristics.
10. The system of claim 1, wherein the plurality of reference arrays and the neural network array comprise non-volatile memory cells.
11. The system of claim 10, wherein the non-volatile memory cells are stacked gate flash memory cells.
12. The system of claim 10, wherein the non-volatile memory cells are split-gate flash memory cells.
13. The system of claim 1, wherein the reference array generates a bias for the neural network array.
14. The system of claim 1, wherein the reference array generates biases for rows of the neural network array.
15. The system of claim 1, wherein the plurality of reference arrays and the vector-matrix multiplication array are in the same physical array.
16. The system of claim 1, wherein the plurality of reference arrays and the vector-matrix multiplication array are in different physical arrays.
17. The system of claim 1, wherein corresponding reference arrays of the plurality of reference arrays have different electrical characteristics.
18. A method, the method comprising: include: determining corresponding metrics of a plurality of reference arrays; identifying a reference array of the plurality of reference arrays that brings the determined metric closest to a target value; as well as The identified reference array is used to generate input biases for a vector-matrix multiplication array in an artificial neural network.
19. The method of claim 18, wherein the plurality of reference arrays and the artificial neural network array are in the same physical array.
20. The method of claim 18, wherein the plurality of reference arrays and the artificial neural network array are in different physical arrays.
21. The method of claim 18, wherein corresponding reference arrays in the plurality of reference arrays have different electrical characteristics.
22. The method of claim 18, wherein corresponding reference arrays in the plurality of reference arrays differ in doping characteristics.
23. The method of claim 18, wherein calibrating comprises generating a bias voltage and applying the bias voltage to memory cells in the vector-matrix multiplication array.
24. The method of claim 18, wherein the reference array generates biases for rows of the neural network array.
25. The method of claim 18, wherein the plurality of reference arrays and the artificial neural network array comprise non-volatile memory cells.
26. The method of claim 21, wherein the non-volatile memory cell is a stacked gate flash memory cell.
27. The method of claim 21, wherein the non-volatile memory cells are split gate flash memory cells.
28. A system, wherein the system include: vector-matrix multiplication array; and A plurality of reference arrays, wherein one or more of the plurality of reference arrays are used to generate bias inputs applied to the vector-matrix multiplication array during operation.
29. The system of claim 28, wherein the vector-matrix multiplication array is a neural network array.
30. The system of claim 28, wherein the plurality of reference arrays and the vector-matrix multiplication array comprise non-volatile memory cells.
31. The system of claim 30, wherein the non-volatile memory cells are stacked gate flash memory cells.
32. The system of claim 30, wherein the non-volatile memory cells are split-gate flash memory cells.
33. A system, wherein the system include: A plurality of reference arrays, wherein one or more of the plurality of reference arrays are used to generate bias voltages for a vector-matrix multiplication array during operation.
34. The system of claim 33, wherein the plurality of reference arrays are coupled to bit lines in a same metal layer.
35. The system of claim 35, wherein cells in the plurality of reference arrays are deeply programmed.
36. The system of claim 33, wherein the plurality of reference arrays are coupled to bit lines in different metal layers.
37. The system of claim 36, wherein the plurality of reference arrays use a same metal layer to route bit lines to peripheral circuits.
