Split-array architecture for analog neural memory in deep learning artificial neural networks

By using non-volatile memory arrays as synapses in artificial neural networks, the challenges of energy efficiency and scalability are addressed, enabling efficient vector-by-matrix multiplication and fine-tuning of synaptic weights.

JP2026509925APending Publication Date: 2026-03-25SILICON STORAGE TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-06-01
Publication Date
2026-03-25

AI Technical Summary

Technical Problem

Existing artificial neural networks face challenges in achieving high-performance information processing due to the lack of suitable hardware technology, particularly in terms of energy efficiency and scalability, as they rely on large numbers of synapses that are not efficiently implemented in CMOS analog circuits.

Method used

Implementing non-volatile memory arrays as synapses in artificial neural networks, allowing for independent and continuous programming of memory cells within the array, enabling high tunability and efficient vector-by-matrix multiplication operations.

Benefits of technology

This approach enhances energy efficiency and reduces the need for separate multiplication and addition logic circuits, making the memory array ideal for fine-tuning synaptic weights and improving the performance of neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026509925000001_ABST
    Figure 2026509925000001_ABST
Patent Text Reader

Abstract

Numerous embodiments are disclosed for dividing a physical array into multiple arrays for separate vector-matrix multiplication (VMM) operations. In one example, the system comprises an array of non-volatile memory cells arranged in rows and columns, and multiple sets of output lines, where each column contains a set of output lines, and each row is coupled to only one output line from the set of output lines for each column.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (Claiming priority) This patent application claims priority to U.S. Patent Application No. 17 / 461,901, filed on August 30, 2021, which is a continuation-in-part application of U.S. Patent Application No. 17 / 461,901, also titled "Split Array Architecture for Analog Neural Memory in a Deep Learning Artificial Neural Network," filed on March 23, 2023, which in turn claims priority to U.S. Provisional Patent Application No. 63 / 190,228, filed on May 18, 2021, titled "Split Array Architecture for Analog Neural Memory in a Deep Learning Artificial Neural Network."

[0002] (Field of Invention) Numerous embodiments are disclosed for dividing a physical array into multiple arrays for separate vector-by-matrix multiplication (VMM) operations by providing more than one output line per column in the physical array, which allows multiple sets of rows within the same column to be accessed simultaneously, and different sets of rows to be assigned to different arrays for VMM operations. [Background technology]

[0003] Artificial neural networks mimic biological neural networks (such as the central nervous system of animals, particularly the brain), can depend on a large number of inputs, and are generally used to estimate or approximate unknown functions. Artificial neural networks typically consist of layers of interconnected "neurons" that exchange messages with one another.

[0004] Figure 1 shows an artificial neural network, where circles represent the 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 inputs and learn. Typically, a neural network contains multiple input layers. Typically, there are one or more hidden layers of neurons and output layers of neurons that provide the output of the neural network. Neurons at each level make decisions individually or collectively based on the data they receive from synapses.

[0005] One of the major challenges in developing artificial neural networks for high-performance information processing is the lack of suitable hardware technology. In practice, practical neural networks rely on a very large number of synapses, which enables high connectivity between neurons and thus very high levels of parallel processing. In principle, such complexity can be achieved by digital supercomputers or dedicated graphics processing unit clusters. However, in addition to the high cost, these approaches also suffer from the drawback of being less energy-efficient compared to biological networks, which consume far less energy because they primarily perform low-precision analog calculations. CMOS analog circuits have been used in artificial neural networks, but the synapses in most CMOS implementations are too large considering the large number of neurons and synapses.

[0006] The applicant previously disclosed, in U.S. Patent Application No. 15 / 594,439, incorporated by reference, an artificial (analog) neural network utilizing one or more non-volatile memory arrays as synapses. The non-volatile memory arrays operate as analog neuromorphic memories. The neural network device includes a first plurality of synapses configured to receive a first plurality of inputs and therefrom produce a first plurality of outputs, and a first plurality of neurons configured to receive the first plurality of outputs. The first plurality of synapses includes a plurality of memory cells, each of which includes spaced source and drain regions formed in a semiconductor substrate, with a channel region extending between them, a floating gate insulated and disposed above a first portion of the channel region, and a non-floating gate insulated and disposed above a second portion of the channel region. Each of the plurality of memory cells is configured to store weight values ​​corresponding to many electrons in the floating gate. The plurality of memory cells are configured to produce a first plurality of outputs by multiplying the first plurality of inputs by the stored weight values. <Non-volatile skin cell>

[0007] Non-volatile memory is well known. For example, U.S. Patent No. 5,029,130 ​​("Patent No. 130"), incorporated herein by reference, discloses an array of split-gate non-volatile memory cells, a type of flash memory cell. Such a memory cell 210 is shown in 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 between the source region 14 and the drain region 16. A floating gate 20 is formed insulated above a first portion of the channel region 18 (and controlling the conductivity of the first portion of the channel region 18) and extends above a portion of the source region 14. A word line terminal 22 (typically coupled to a word line) is located above a second portion of the channel region 18 and has a first portion that is insulated from (and controls the conductivity of) the second portion, and a second portion that extends above the floating gate 20. The floating gate 20 and the word line terminal 22 are insulated from the substrate 12 by a gate oxide. Bit line 24 is connected to drain region 16.

[0008] By applying a positive high voltage to the word line terminal 22, the memory cell 210 is erased (electrons are removed from the floating gate), causing the electrons on the floating gate 20 to pass through the intermediate insulator from the floating gate 20 to the word line terminal 22 via a Fowler-Nordheim (FN) tunnel.

[0009] The memory cell 210 is programmed by source-side injection (SSI) with hot electrons by applying a positive voltage to the word line terminal 22 and a positive voltage to the source region 14 (electrons are added to the floating gate). The electron flow flows from the drain region 16 towards the source region 14. The electrons are accelerated and generate heat when they reach the gap between the word line terminal 22 and the floating gate 20. Some of the heated electrons are injected into the floating gate 20 via the gate oxide due to the electrostatic attraction from the floating gate 20.

[0010] The memory cell 210 is read by applying a positive read voltage to the drain region 16 and the word line terminal 22 (turning on the portion of the channel region 18 below the word line terminal). When the floating gate 20 is positively charged (i.e., electrons are erased), the portion of the channel region 18 below the floating gate 20 is similarly turned on, and current flows through the channel region 18, which is detected as the erased state, i.e., the "1" state. When the floating gate 20 is negatively charged (i.e., programmed with electrons), the portion of the channel region below the floating gate 20 is almost or completely turned off, and current does not flow (or hardly flows) through the channel region 18, which is detected as the programmed state, i.e., the "0" state.

[0011] Table 1 shows typical voltage and current ranges that can be applied to the terminals of the memory cell 110 to perform read, erase, and program operations. Table 1: Operation of the flash memory cell 210 of FIG. 3

Table 1

[0012] Other split gate type memory cell configurations, which are other types of flash memory cells, are also known. For example, FIG. 3 shows a four-gate memory cell 310 including a source region 14, a drain region 16, a floating gate 20 above a first portion of the channel region 18, a select gate 22 (typically coupled to the word line WL) above a second portion of the channel region 18, a control gate 28 above the floating gate 20, and an erase gate 30 above the source region 14. This configuration is described in U.S. Patent No. 6,747,310, which is incorporated herein by reference for all purposes. Here, all gates except the floating gate 20 are non-floating gates, i.e., they are electrically connected or connectable to a voltage source. Programming is performed by injecting the electrons themselves from the channel region 18 into the floating gate 20. Erase is performed by electrons tunneling from the floating gate 20 to the erase gate 30.

[0013] Table 2 shows the typical voltage and current ranges that can be applied to the terminals of the memory cell 310 to perform read, erase, and program operations. Table 2: Operations of the flash memory cell 310 of FIG. 3

Table 2

[0014] FIG. 4 shows a 3-gate memory cell 410, which is another type of flash memory cell. The memory cell 410 is identical to the memory cell 310 of FIG. 3, except that the memory cell 410 does not have a separate control gate. (Erasure occurs through the use of an erase gate) The erase and read operations are the same as those of FIG. 3, except that no control gate bias is applied. The programming operation is also performed without a control gate bias. As a result, during the programming operation, a higher voltage must be applied to the source line to compensate for the lack of control gate bias.

[0015] Table 3 shows the typical voltage and current ranges that can be applied to the terminals of the memory cell 410 to perform read, erase, and program operations. Table 3: Operations of the flash memory cell 410 of FIG. 4

Table 3

[0016] Figure 5 shows another type of flash memory cell, a stacked gate memory cell 510. Memory cell 510 is similar to memory cell 210 in Figure 2, except that the floating gate 20 extends above the entire channel region 18, and the control gate 22 (coupled here to the word line) extends above the floating gate 20, separated by an insulating layer (not shown). Erase is performed by FN tunneling of electrons from the FG to the substrate, programming is performed by channel hot electron (CHE) injection in the region between the channel 18 and the drain region 16, and read operations are performed by electrons flowing from the source region 14 to the drain region 16, similar to the read operation of memory cell 210, which has a higher control gate voltage.

[0017] Table 4 shows typical voltage ranges that can be applied to the terminals of the memory cell 510 and the circuit board 12 for performing read, erase, and program operations. Table 4: Operation of flash memory cell 510 in Figure 5 [Table 4]

[0018] The methods and means described herein may be applied to other non-volatile memory technologies, including but not limited to FINFET split-gate flash or stack-gate flash memory, NAND flash, SONOS (silicon-oxide-nitride-oxide-silicon, charge trap in nitride), MONOS (metal-oxide-nitride-oxide-silicon, metal charge trap in nitride), ReRAM (resistive random-access memory), PCM (phase change memory), MRAM (magnetic random-access memory), FeRAM (ferroelectric random-access memory), CT (charge trap) memory, CN (carbon-tube) memory, OTP (one-time programmable, bi-level or multi-level), and CeRAM (correlated electron random-access memory).

[0019] Two modifications are made to utilize a memory array containing one of the non-volatile memory cell types in the artificial neural network described above. First, lines are configured so that each memory cell can be programmed, erased, and read individually without adversely affecting the memory state of other memory cells in the array, as will be further described below. Second, sequential (analog) programming of the memory cells is provided.

[0020] Specifically, the memory state of each memory cell in the array (i.e., the charge on the floating gate) can be changed independently and continuously from a completely erased state to a completely programmed state with minimal disturbance to other memory cells. In another embodiment, the memory state of each memory cell in the array (i.e., the charge on the floating gate) can be changed independently and continuously from a completely programmed state to a completely erased state, and vice versa, with minimal disturbance to other memory cells. This means that cell memory is analog or can store at least one of a number of discontinuous values ​​(such as 16 or 64 different values), making every cell in the memory array highly tunable and individually, and making the memory array ideal for memory and fine-tuning of the synaptic weights of a neural network. <Neural network using non-volatile memory cell arrays>

[0021] Figure 6 conceptually illustrates a non-limiting example of a neural network utilizing a non-volatile memory array in this embodiment. While this example uses a non-volatile memory array neural network for a facial recognition application, it is also possible to implement any other suitable application using a non-volatile memory array-based neural network.

[0022] S0 is the input layer, which in this example is a 32x32 pixel RGB image with 5-bit precision (i.e., three 32x32 pixel arrays, one for each color R, G, and B, with each pixel having 5-bit precision). The synapse CB1, going from input layer S0 to layer C1, scans the input image with a 3x3 pixel overlapping filter (kernel), applying different sets of weights to some instances and shared weights to others, and shifts the filter by one pixel (or more than two pixels depending on the model). Specifically, the values ​​of nine pixels in the 3x3 portion of the image (i.e., referred to as the filter or kernel) are provided to synapse CB1, where these nine input values ​​are multiplied by the appropriate weights, and after adding the outputs of the multiplications, a single output value is determined, which is then given by the first synapse of CB1 to generate one of the pixels in the feature map of layer C1. The 3x3 filter is then shifted one pixel to the right within the input layer S0 (i.e., a column of 3 pixels is added to the right and a column of 3 pixels is dropped to the left), thereby providing the 9 pixel values ​​of this newly positioned filter to synapse CB1, where they are multiplied by the same weights as above, determining a second single output value by the associated synapse. This process continues until the 3x3 filter scans the entire 32x32 pixel image of the input layer S0 for all three colors and all bits (precision values). The process is then repeated with different weight sets to generate different feature maps of layer C1 until all feature maps of layer C1 have been computed.

[0023] In this example, layer C1 contains 16 feature maps, each having 30x30 pixels. Each pixel is a new feature pixel extracted from the multiplication of the input and the kernel; therefore, each feature map is a two-dimensional array, and thus in this example, layer C1 constitutes 16 layers of two-dimensional arrays (note that the layers and arrays referred to herein are logical relationships, not necessarily physical relationships; i.e., arrays are not necessarily oriented to physical two-dimensional arrays). Each of the 16 feature maps in layer C1 is generated by one of 16 different synaptic weight sets applied to the filter scan. All C1 feature maps can target different aspects of the same image feature, such as boundary identification. For example, a first map (generated using a first weight set shared across all scans used to generate this first map) can identify circular edges, a second map (generated using a second weight set different from the first) can identify rectangular edges or the aspect ratio of a particular feature, and so on.

[0024] Before moving from layer C1 to layer S1, an activation function P1 (pooling) is applied that pools values ​​from non-overlapping, consecutive 2x2 regions within each feature map. The purpose of the pooling function P1 is to average neighbor positions (or the max function can also be used), for example, to reduce dependence on edge positions, and to reduce the data size before moving to the next stage. In layer S1, there are 16 15x15 feature maps (i.e., 16 different arrays, each 15x15 pixels). Synapse CB2, moving from layer S1 to layer C2, scans the maps in layer S1 with a 4x4 filter, resulting in a 1-pixel filter shift. In layer C2, there are 22 12x12 feature maps. Before moving from layer C2 to layer S2, an activation function P2 (pooling) is applied that pools values ​​from non-overlapping, consecutive 2x2 regions within each feature map. In layer S2, there are 22 6x6 feature maps. At synapse CB3, which goes from layer S2 to layer C3, an activation function (pooling) is applied, where all neurons in layer C3 are connected to all maps in layer S2 via each synapse of CB3. There are 64 neurons in layer C3. Synapse CB4, which goes from layer C3 to output layer S3, completely connects C3 to S3; that is, all neurons in layer C3 are connected to all neurons in layer S3. The output in S3 contains 10 neurons, where the highest output neuron determines the class. This output can, for example, indicate the identification or classification (classification) of the content of the original image.

[0025] Each layer of a synapse is implemented using an array or a portion of an array of non-volatile memory cells.

[0026] Figure 7 is a block diagram of an array that can be used for that purpose. The vector matrix multiplication (VMM) array 32 contains non-volatile memory cells and is used as synapses between one layer and the next (such as CB1, CB2, CB3, and CB4 in Figure 6). Specifically, the VMM array 32 includes an array of non-volatile memory cells 33, erase gate and word line gate decoders 34, a control gate decoder 35, a bit line decoder 36, and a source line decoder 37, each of which decoders decodes its respective input to the non-volatile memory cell array 33. Input to the VMM array 32 can be 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 non-volatile memory cell array 33. Alternatively, the bit line decoder 36 can decode the output of the non-volatile memory cell array 33.

[0027] The non-volatile memory cell array 33 serves two purposes. Firstly, it stores the weights used by the VMM array 32. Secondly, the non-volatile memory cell array 33 effectively multiplies the weights stored in it by the inputs, adds them up for each output line (source line or bit line) to generate an output, which becomes the input to the next layer or the last layer. By having the non-volatile memory cell array 33 perform the multiplication and addition functions, the need for separate multiplication and addition logic circuits is eliminated, and the calculations are more power-efficient due to being performed in memory.

[0028] The output of the non-volatile memory cell array 33 is fed to a differential adder (such as an adding operational amplifier or adding current mirror) 38, which adds the outputs of the non-volatile memory cell array 33 to create a single value for its convolution. The differential adder 38 is configured to perform the summation of positive and negative weights.

[0029] The summed output values ​​of the differential adder 38 are then fed to an activation function block 39, which normalizes the output. The activation function block 39 may provide a sigmoid, tanh, or ReLU function. The normalized output values ​​of the activation function block 39 become elements of a feature map as the next layer (e.g., C1 in Figure 6), and are then applied to the next synapse to generate the next feature map layer or the final layer. Thus, in this example, the non-volatile memory cell array 33 constitutes multiple synapses (receiving input from the previous layer of the neuron or from an input layer such as an image database), and the summation amplifier 38 and activation function block 39 constitute multiple neurons.

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

[0031] Figure 8 is a block diagram showing the use of multiple layers of the VMM array 32, labeled in the figure as VMM arrays 32a, 32b, 32c, 32d, and 32e. As shown in Figure 8, the input (indicated as Inputx) is converted from digital to analog by the digital-to-analog converter 31 and provided to the input VMM array 32a. The converted analog input can be voltage or current. Input D / A conversion of the first layer can be performed by using a function or LUT (look-up table) that maps the input Inputx to the appropriate analog level of the matrix multiplier of the input VMM array 32a. Input conversion can also be performed by an analog-to-analog (A / A) converter to convert an external analog input to the mapped analog input to the input VMM array 32a.

[0032] The output generated by input VMM array 32a is provided as input to the next VMM array (hidden level 1) 32b, the next VMM array (hidden level 1) 32b generates an output provided as input to the next input VMM array (hidden level 2) 32c, and so on. The various layers of VMM array 32 function as different layers of synapses and neurons in a convolutional neural network (CNN). Each VMM array 32a, 32b, 32c, 32d, and 32e can be a standalone physical non-volatile memory array, or multiple VMM arrays can utilize different parts of the same physical non-volatile memory array, or multiple VMM arrays can utilize overlapping parts of the same physical non-volatile memory array. The example shown in Figure 8 includes five layers (32a, 32b, 32c, 32d, 32e), namely one input layer (32a), two hidden layers (32b, 32c), and two fully connected layers (32d, 32e). Those skilled in the art will understand that this is merely an example and that the system may instead include more than two hidden layers and more than two fully connected layers. <Vector Matrix Multiplication (VMM) Array>

[0033] Figure 9 shows a neuron VMM array 900, which is particularly suitable for the memory cell 310 shown in Figure 3 and is used as part of a synapse and neuron 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 (located at the top of the array). Alternatively, another reference array may be located at the bottom.

[0034] In the VMM array 900, control gate lines such as control gate line 903 extend vertically (thus the row-direction reference array 902 is perpendicular to the control gate line 903), and erase gate lines such as erase gate line 904 extend horizontally. Here, inputs to the VMM array 900 are provided to the control gate lines (CG0, CG1, CG2, CG3), and outputs of the VMM array 900 appear on the source lines (SL0, SL1). In one embodiment, only even rows are used, and in another embodiment, only odd rows are used. The current on each source line (SL0, SL1, respectively) performs the function of summing all currents from memory cells connected to that particular source line.

[0035] As described herein with respect to neural networks, it is preferable that the non-volatile memory cells of the VMM array 900, i.e., the memory cells 310 of the VMM array 900, are configured to operate in a subthreshold region.

[0036] The non-volatile reference memory cells and non-volatile memory cells described herein are biased with weak inversion (in the region below the threshold) as follows: Ids = Io × e (Vg-Vth) / nVt =w × Io × e (Vg) / nVt , In the formula, w=e (-Vth) / nVt And, Ids is the drain-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 Boltzmann's constant, T is the Kelvin temperature, q is the electron charge, n is the gradient coefficient = 1 + (Cdep / Cox), where Cdep is 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 (Wt / L) × u ​​× Cox × (n-1) × Vt 2 It is proportional to , where u is the carrier mobility, and Wt and L are the width and length of the memory cell, respectively.

[0037] When using an IV logarithmic converter that converts input current to input voltage using a memory cell (such as a reference memory cell or peripheral memory cell) or transistor: Vg = n × Vt × log[Ids / wp × Io] In the formula, wp is the w of the reference or peripheral memory cell.

[0038] For a memory array used as a vector × matrix multiplier VMM array with current input, the output current is as follows: Iout=wa×Io×e (Vg) / nVt That is to say Iout = (wa / wp) × Iin = W × Iin W=e (Vthp-Vtha) / nVt Here, wa = w of each memory cell in the memory array. Vthp is the effective threshold voltage of the peripheral memory cell, and Vtha is the effective threshold voltage of the main (data) memory cell. Note that the threshold voltage of a transistor is a function of the substrate bias voltage, and the substrate bias voltage, denoted as Vsb, can be modulated to compensate for various conditions at such temperatures. The threshold voltage Vth can be expressed as follows: Vth = Vth0 + gamma(SQRT|Vsb-2) * φF)-SQRT|2 * φF|) In the formula, Vth0 is the threshold voltage with zero substrate bias, φF is the surface potential, and gamma is the body effect parameter.

[0039] Word lines or control gates can be used as inputs to memory cells for input voltage.

[0040] Alternatively, the flash memory cells of the VMM array described herein can be configured to operate in a linear region. Ids = Beta × (Vgs - Vth) × Vds, Beta = u × Cox × Wt / L W=α(Vgs-Vth) In other words, the weight W in the linear region is proportional to (Vgs - Vth).

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

[0042] For an I-V linear converter, an input-output current can be linearly converted to an input-output voltage using a memory cell (such as a reference memory cell or a peripheral memory cell) or a transistor operating in the linear region.

[0043] Alternatively, the memory cells of the VMM array described herein can be configured to operate in the saturation region. Ids = 1 / 2 × beta × (Vgs - Vth) 2 ; beta = u × Cox × Wt / L <00002;>W ∝ (Vgs - Vth) 2 , that is, the weight W is proportional to (Vgs - Vth) 2 proportional.

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

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

[0046] Another embodiment for the VMM array 32 of FIG. 7 is described in U.S. Patent Application No. 15 / 826,345, which is incorporated herein by reference. As described in the above application, the source line or bit line can be used as a neuron output (sum of currents output).

[0047] Figure 10 shows a neuron VMM array 1000, particularly suited to the memory cell 210 shown in Figure 2 and used as a synapse between the input layer and the next layer. The VMM array 1000 includes a memory array 1003 of non-volatile memory cells, a reference array 1001 of a first non-volatile reference memory cell, and a reference array 1002 of a second non-volatile reference memory cell. The reference arrays 1001 and 1002, arranged in the column direction of the array, function to convert current inputs flowing into terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs WL0, WL1, WL2, and WL3. In practice, the first and second non-volatile reference memory cells are diode-connected through a multiplexer 1014 (partially shown) with current inputs flowing in. The reference cells are tuned (e.g., programmed) to a target reference level. The target reference level is provided by a reference miniarray matrix (not shown).

[0048] The memory array 1003 serves two purposes. First, it stores the weights used by the VMM array 1000 in each memory cell. Second, the memory array 1003 effectively multiplies the weights stored in it by the inputs (i.e., the current inputs supplied to terminals BLR0, BLR1, BLR2, and BLR3, which are converted into input voltages by the reference arrays 1001 and 1002 and supplied to word lines WL0, WL1, WL2, and WL3), and then adds all the results (memory cell currents) to generate the outputs of each bit line (BL0~BLN), which become inputs to the next layer or the last layer. By performing multiplication and addition functions, the memory array 1003 eliminates the need for separate multiplication and addition logic circuits and is also power efficient. Here, voltage inputs are supplied to word lines WL0, WL1, WL2, and WL3, and outputs appear on the respective bit lines BL0 to BLN during readout (inference) operations. Each current on bit lines BL0 to BLN performs the function of summing the currents from all non-volatile memory cells connected to that particular bit line.

[0049] Table 5 shows the operating voltages and currents of the VMM array 1000. The columns in the table show the voltages applied to the word lines of selected cells, word lines of unselected cells, bit lines of selected cells, bit lines of unselected cells, source lines of selected cells, and source lines of unselected cells. The rows show the read, erase, and program operations. Table 5: Operation of VMM Array 1000 in Figure 10 [Table 5]

[0050] Figure 11 shows a neuron VMM array 1100, which is particularly suitable for the memory cell 210 shown in Figure 2 and is used as part of a synapse and neuron between the input layer and the next layer. The VMM array 1100 includes a memory array 1103 of non-volatile memory cells, a reference array 1101 of a first non-volatile reference memory cell, and a reference array 1102 of a second non-volatile 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 the word lines in the VMM array 1100 extend vertically. Here, inputs are provided to the word lines (WLA0, WLB0, WLA1, WLB2, WLA2, WLB2, WLA3, WLB3), and outputs appear on the source lines (SL0, SL1) during read operations. The current on each source line performs the function of summing all the currents from the memory cells connected to that particular source line.

[0051] Table 6 shows the operating voltages and currents of the VMM array 1100. The columns in the table show the voltages applied to the word lines of selected cells, word lines of unselected cells, bit lines of selected cells, bit lines of unselected cells, source lines of selected cells, and source lines of unselected cells. The rows show the read, erase, and program operations. Table 6: Operation of VMM Array 1100 in Figure 11 [Table 6]

[0052] Figure 12 shows a neuron VMM array 1200, which is particularly suitable for the memory cell 310 shown in Figure 3 and is used as part of a synapse and neuron between the input layer and the next layer. The VMM array 1200 includes a memory array 1203 of non-volatile memory cells, a reference array 1201 of a first non-volatile reference memory cell, and a reference array 1202 of a second non-volatile reference memory cell. The reference arrays 1201 and 1202 function to convert the current inputs flowing into terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs CG0, CG1, CG2, and CG3. In practice, the first and second non-volatile reference memory cells are diode-connected through a multiplexer 1212 (partially shown) with current inputs flowing through BLR0, BLR1, BLR2, and BLR3. Each multiplexer 1212 includes a separate multiplexer 1205 and a cascoding transistor 1204 to ensure that the respective bit lines (such as BLR0) of the first and second non-volatile reference memory cells maintain a constant voltage during read operations. The reference cells are tuned to a target reference level.

[0053] The memory array 1203 serves two purposes. First, it stores the weights used by the VMM array 1200. Second, the memory array 1203 effectively multiplies the weights stored in the memory array by the inputs (current inputs supplied to terminals BLR0, BLR1, BLR2, and BLR3, which the reference arrays 1201 and 1202 convert into input voltages and supply to the control gates (CG0, CG1, CG2, and CG3)), then adds all the results (cell currents) to produce an output, which appears in BL0~BLN and becomes the input to the next layer or the last layer. By having the memory array perform the multiplication and addition functions, the need for separate multiplication and addition logic circuits is eliminated, and power efficiency is also improved. Here, the inputs are provided to the control gate lines (CG0, CG1, CG2, and CG3), and the output appears in the bit lines (BL0~BLN) during read operations. The current in each bit line performs the function of summing all the currents from the memory cells connected to that particular bit line.

[0054] The VMM array 1200 implements one-way tuning of non-volatile memory cells within 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 applied to the floating gate (resulting in an incorrect value being stored in the cell), the cell is erased and the series of partial programming operations is restarted from the beginning. As shown, two rows sharing the same erase gate (such as EG0 or EG1) are erased together (known as page erase), and then each cell is partially programmed until the desired charge on the floating gate is reached.

[0055] Table 7 shows the operating voltages and currents of the VMM array 1200. The columns in the table show the voltages applied to the word lines of selected cells, word lines of unselected cells, bit lines of selected cells, bit lines of unselected cells, control gates of selected cells, control gates of unselected cells in the same sector as the selected cell, control gates of unselected cells in a different sector than the selected cell, erase gates of selected cells, erase gates of unselected cells, source lines of selected cells, and source lines of unselected cells. The rows show the read, erase, and program operations. Table 7: Operation of VMM Array 1200 in Figure 12 [Table 7]

[0056] Figure 13 shows a neuron VMM array 1300, which is particularly suitable for the memory cell 310 shown in Figure 3 and is used as part of a synapse and neuron between the input layer and the next layer. The VMM array 1300 comprises a memory array 1303 of nonvolatile memory cells, a reference array 1301 or 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, and 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, and each individual cell can be completely erased, partially programmed, and partially erased as needed to reach a desired amount of charge on the floating gate by using individual EG lines. As shown, reference arrays 1301 and 1302 convert the input currents at terminals BLR0, BLR1, BLR2, and BLR3 into control gate voltages CG0, CG1, CG2, and CG3 (through the action of diode-connected reference cells via multiplexer 1314), and these voltages are applied to memory cells in the row direction. Current outputs (neurons) are located in the bit lines BL0~BLN, and each bit line sums all the currents from the non-volatile memory cells connected to that particular bit line.

[0057] Table 8 shows the operating voltages and currents of the VMM array 1300. The columns in the table show the voltages applied to the word lines of selected cells, word lines of unselected cells, bit lines of selected cells, bit lines of unselected cells, control gates of selected cells, control gates of unselected cells in the same sector as the selected cell, control gates of unselected cells in a different sector than the selected cell, erase gates of selected cells, erase gates of unselected cells, source lines of selected cells, and source lines of unselected cells. The rows show the read, erase, and program operations. Table 8: Operation of VMM Array 1300 in Figure 13 [Table 8]

[0058] Figure 22 shows a neuron VMM array 2200 that is particularly suitable for the memory cell 210 shown in Figure 2 and is used as part of the synapse and neuron between the input layer and the next layer. In the VMM array 2200, inputs INPUT0...., INPUT N These are bit lines BL0, ...BL, respectively. N The signal is received, and outputs OUTPUT1, OUTPUT2, OUTPUT3, and OUTPUT4 are generated on source lines SL0, SL1, SL2, and SL3, respectively.

[0059] Figure 23 shows a neuron VMM array 2300 that is particularly suitable for the memory cell 210 shown in Figure 2 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, INPUT1, INPUT2, and INPUT3 are received by source lines SL0, SL1, SL2, and SL3, respectively, and outputs OUTPUT0, ...OUTPUT N These are bit lines BL0, ..., BL N It is generated by [this method].

[0060] Figure 24 shows a neuron VMM array 2400 that is particularly suitable for the memory cell 210 shown in Figure 2 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT M These are the word lines WL0, ..., WL, respectively. M Received by, output OUTPUT0, ...OUTPUT N These are bit lines BL0, ..., BL N It is generated by [this method].

[0061] Figure 25 shows a neuron VMM array 2500 that is particularly suitable for the memory cell 310 shown in Figure 3 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT M These are the word lines WL0, ..., WL, respectively. M Received by, output OUTPUT0, ...OUTPUT N These are bit lines BL0, ..., BL N It is generated by [this method]. Alternatively, the inputs are control gates CG0, ..., CG M It can be received.

[0062] Figure 26A shows a neuron VMM array 2600 that is particularly suitable for the memory cell 410 shown in Figure 4 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT n However, each of them is a vertical control gate line CG0, ..., CG N The signal is received, and outputs OUTPUT1 and OUTPUT2 are generated on source lines SL0 and SL1.

[0063] Figure 26B shows neuron VMM array 2620, an alternative design to VMM array 2600 where the word lines are vertical instead of horizontal. In this instance, inputs may be received on vertical word lines WL0 and WL1, and outputs OUTPUT1 and OUTPUT2 are generated on horizontal source lines SL0 and SL1.

[0064] Figure 26C shows neuron VMM array 2640, an alternative design to VMM array 2600 where the erase gate lines are vertical instead of horizontal. In this instance, inputs may be received on vertical erase gate lines EG0, EG1, and outputs OUTPUT1 and OUTPUT2 are generated on horizontal source lines SL0 and SL1.

[0065] Figure 27 shows a neuron VMM array 2700 that is particularly suitable for the memory cell 410 shown in Figure 4 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, the inputs are INPUT0, ..., INPUT N These are bit lines BL0, ..., BL, respectively. N The bit line control gates 2701-1, 2701-2, ..., 2701-(N-1) and 2701-N, which are coupled to the bit line control gates, are received by the gates. Exemplary outputs OUTPUT1 and OUTPUT2 are generated on source lines SL0 and SL1.

[0066] Figure 28 shows a neuron VMM array 2800, which is particularly suitable for the memory cell 310 shown in Figure 3, the memory cell 510 shown in Figure 5, and the memory cell 710 shown in Figure 7, and is used as part of synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT M These are the word lines WL0, ..., WL, respectively. M Received by, output OUTPUT0, ..., OUTPUT N These are bit lines BL0, ..., BL N It is generated at. Alternatively, the input is control gate CG0, ..., CG M It can be received.

[0067] Figure 29 shows a neuron VMM array 2900 that is particularly suitable for the memory cell 310 shown in Figure 3, the memory cell 510 shown in Figure 5, and the memory cell 710 shown in Figure 7, and is used as part of synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT M These are control gate lines CG0, ..., CG M It is received as follows. Output OUTPUT0, ..., OUTPUT N These are the vertical source lines SL0, ..., SL N Each is generated, and each source line SL i It is coupled to the source lines of all memory cells in column i. Alternatively, the input is the word lines WL0, ..., WL M It can be received.

[0068] Figure 30 shows a neuron VMM array 3000, which is particularly suitable for the memory cell 310 shown in Figure 3, the memory cell 510 shown in Figure 5, and the memory cell 710 shown in Figure 7, and is used as part of synapses and neurons between the input layer and the next layer. In this example, inputs INPUT0, ..., INPUT M These are control gate lines CG0, ..., CG M It is received as follows. Output OUTPUT0, ..., OUTPUT N These are the vertical bit lines BL0, ..., BL N Generated in each bit line BL i It is coupled to the bit lines of all memory cells in column i. <Long-term and short-term memory>

[0069] Prior art includes the concept known as long short-term memory (LSTM). LSTM units are often used within neural networks. LSTMs allow neural networks to store information for a predetermined period and use that information in subsequent operations. A conventional LSTM unit 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 duration for which information is stored within the LSTM. VMMs are particularly useful in LSTM units.

[0070] Figure 14 shows an exemplary LSTM1400. In this example, the LSTM1400 includes cells 1401, 1402, 1403, and 1404. Cell 1401 receives the input vector x0 and generates the output vector h0 and the cell state vector c0. Cell 1402 receives the input vector x1 and the output vector (hidden state) h0 from cell 1401. 、 Cell 1401 receives the cell state c0 from cell 1401 and generates the output vector h1 and the cell state vector c1. Cell 1403 receives the input vector x2, the output vector (hidden state) h1 from cell 1402, and the cell state c1 from cell 1402 and generates the output vector h2 and the cell state vector c2. Cell 1404 receives the input vector x3, the output vector (hidden state) h2 from cell 1403, and the cell state c2 from cell 1403 and generates the output vector h3. Additional cells are also available, and an LSTM with four cells is just an example.

[0071] Figure 15 shows an exemplary implementation of LSTM cell 1500 that can be used for cells 1401, 1402, 1403, and 1404 in Figure 14. LSTM cell 1500 receives an input vector x(t), a cell state vector c(t-1) from a preceding cell, and an output vector h(t-1) from a preceding cell, and generates the cell state vector c(t) and output vector h(t).

[0072] LSTM cell 1500 includes sigmoid function devices 1501, 1502, and 1503, each of which applies a number between 0 and 1 to control the extent to which each component of the input vector contributes 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, and an adder device 1509 for adding two vectors. The output vector h(t) can be provided to the next LSTM cell in the system or accessed for other purposes.

[0073] Figure 16 shows an LSTM cell 1600, which is an example implementation of LSTM cell 1500. For the reader's convenience, the same numbering method used in LSTM cell 1500 is used in LSTM cell 1600. Sigmoid function devices 1501, 1502, and 1503, and tanh device 1504 each contain multiple VMM arrays 1601 and activation function circuit blocks 1602. Thus, 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 adder device 1509 are implemented in a digital or analog manner. Activation function block 1602 can be implemented in a digital or analog manner.

[0074] Figure 17 shows an alternative example of LSTM cell 1600 (and another example of an implementation of LSTM cell 1500). In Figure 17, sigmoid function devices 1501, 1502, and 1503, and tanh device 1504 share the same physical hardware (VMM array 1701 and activation function block 1702) in a time-division multiplexed manner. The LSTM cell 1700 also includes a multiplier device 1703 for multiplying two vectors, an adder device 1708 for adding two vectors, a tanh device 1505 (including an activation function block 1702), a register 1707 for storing the value i(t) when i(t) is output from the sigmoid function block 1702, a register 1704 for storing the value f(t) × c(t-1) when its value is output from the multiplier device 1703 via the multiplexer 1710, a register 1705 for storing the value i(t) × u(t) when its value is output from the multiplier device 1703 via the multiplexer 1710, a register 1706 for storing the value o(t) × c(t) when its value is output from the multiplier device 1703 via the multiplexer 1710, and a multiplexer 1709.

[0075] While an LSTM cell 1600 includes multiple sets of VMM arrays 1601 and their respective activation function blocks 1602, an LSTM cell 1700 includes only one set of VMM arrays 1701 and activation function blocks 1702, which are used to represent multiple layers in embodiments of the LSTM cell 1700. Compared to the LSTM cell 1600, the LSTM cell 1700 requires only one-quarter the space for the VMMs and activation function blocks, thus requiring less space than the LSTM cell 1600.

[0076] It can be further understood that an LSTM unit typically includes multiple VMM arrays, each of which requires functionality provided by certain circuit blocks outside the VMM array, such as adder and activation function blocks and high-voltage generation blocks. Providing separate circuit blocks for each VMM array would require a considerable amount of space within the semiconductor device and would be somewhat inefficient. Therefore, the embodiments described below attempt to minimize the circuitry required outside the VMM array itself. <Gated recurrent unit>

[0077] Analog VMM implementations can be used in GRU (gated recurrent unit) systems. A GRU is a gate mechanism within an iterative neural network. GRUs are similar to LSTMs, except that GRU cells generally contain fewer components than LSTM cells.

[0078] Figure 18 shows an exemplary GRU1800. In this example, the GRU1800 includes cells 1801, 1802, 1803, and 1804. Cell 1801 receives input vector x0 and produces output vector h0. Cell 1802 receives input vector x1 and output vector h0 from cell 1801 and produces output vector h1. Cell 1803 receives input vector x2 and output vector (hidden state) h1 from cell 1802 and produces output vector h2. Cell 1804 receives input vector x3 and output vector (hidden state) h2 from cell 1803 and produces output vector h3. Additional cells are also available, and a GRU with four cells is just an example.

[0079] Figure 19 shows an exemplary implementation of a GRU cell 1900 that may be used in cells 1801, 1802, 1803, and 1804 of Figure 18. The GRU cell 1900 takes an input vector x(t) and an output vector h(t-1) from a preceding GRU cell and produces an output vector h(t). The GRU cell 1900 includes sigmoid function devices 1901 and 1902, each of which applies a number between 0 and 1 to the components from the output vector h(t-1) and the input vector x(t). The GRU cell 1900 also includes a tanh device 1903 for applying a hyperbolic tangent function to the input vector, multiple multiplier devices 1904, 1905, and 1906 for multiplying two vectors, an adder device 1907 for adding two vectors, and a complementary device 1908 for subtracting the input from 1 to produce an output.

[0080] Figure 20 shows GRU cell 2000, an example implementation of GRU cell 1900. For the reader's convenience, the same numbering method used in GRU cell 1900 is used in GRU cell 2000. As can be seen from Figure 20, the sigmoid function devices 1901 and 1902, and the tanh device 1903, each contain multiple VMM arrays 2001 and activation function blocks 2002. Thus, it can be seen that VMM arrays are used specifically in GRU cells used in certain neural network systems. The multiplier devices 1904, 1905, and 1906, the adder device 1907, and the complementary device 1908 are implemented in a digital or analog manner. The activation function block 2002 can be implemented in a digital or analog manner.

[0081] Figure 21 shows an alternative example of the GRU cell 2000 (and another example of an implementation of the GRU cell 1900). In Figure 21, the GRU cell 2100 utilizes the VMM array 2101 and the activation function block 2102, which, when configured as a sigmoid function, applies a number between 0 and 1 to control the extent to which each component of the input vector contributes to the output vector. In Figure 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 multiplexed manner. The GRU cell 2100 also includes a multiplier device 2103 for multiplying two vectors, an adder device 2105 for adding two vectors, a complementary device 2109 for subtracting an input from 1 to produce an output, a multiplexer 2104, a register 2106 for holding the value h(t-1)×r(t) when that value is output from the multiplier device 2103 via the multiplexer 2104, a register 2107 for holding the value h(t-1)×z(t) when that value is output from the multiplier device 2103 via the multiplexer 2104, and a register 2108 for holding the value h^(t)×(1-z(t)) when that value is output from the multiplier device 2103 via the multiplexer 2104.

[0082] While GRU cell 2000 includes multiple sets of VMM arrays 2001 and activation function blocks 2002, GRU cell 2100 includes only one set of VMM arrays 2101 and activation function blocks 2102, which are used to represent multiple layers in embodiments of GRU cell 2100. GRU cell 2100 requires less space than GRU cell 2000 because it requires only one-third the space for the VMM and activation function blocks.

[0083] It can be further understood that a GRU system typically includes multiple VMM arrays, each of which requires functionality provided by certain circuit blocks outside the VMM array, such as adder and activation function blocks and high-voltage generation blocks. Providing separate circuit blocks for each VMM array would require a considerable amount of space within the semiconductor device and would be somewhat inefficient. Therefore, the embodiments described below attempt to minimize the circuitry required outside the VMM array itself.

[0084] The input to the VMM array may be analog level, binary level, pulse, time-modulated pulse, or digital bit (in which case a DAC is required to convert the digital bit to an appropriate input analog level), and the output may be analog level, binary level, timing pulse, pulse, or digital bit (in which case an output ADC is required to convert the output analog level to a digital bit).

[0085] Typically, for each memory cell in a VMM array, each weight W can be implemented by a single memory cell, a differential cell, or two blended memory cells (the average of two 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 the case of two blended memory cells, two memory cells are required to implement the weight W as the average of two cells.

[0086] Each non-volatile memory cell used in an analog neuromorphic memory system must hold a very specific and precise amount of charge, i.e., the number of electrons, within its floating gate, corresponding to the erase / program. For example, each floating gate must hold one of N different values, where N is the number of different weights that can be represented by each cell. Examples of N include 16, 32, 64, 128, and 256.

[0087] One challenge in prior art is that physical memory arrays can be far larger than what is required for a particular VMM operation. For example, a physical array might contain 1000 rows and 512 columns, while a VMM operation might only require an array of 256 rows and 256 columns. What is needed is a way to support multiple arrays for separate VMM operations using the same physical array, each of which can be accessed simultaneously. [Overview of the project]

[0088] Numerous embodiments are disclosed for dividing a physical array into multiple arrays for separate VMM operations by providing two or more output lines for each column in the physical array, which allows multiple sets of rows within the same column to be accessed simultaneously, and different sets of rows to be assigned to different arrays for VMM operations.

[0089]

[0090]

[0091]

[0092]

[0093]

[0094]

[0095]

[0096]

[0097]

[0098]

[0099]

[0100]

[0101]

[0102]

[0103]

[0104]

[0105]

[0106]

[0107]

[0108]

[0109]

[0110]

[0111]

[0112]

[0113]

[0114]

[0115]

[0116]

[0117]

[0118]

[0119]

[0120]

[0121]

[0122]

[0123]

[0124]

[0125]

[0126]

[0127]

[0128]

[0129]

[0130]

[0131]

[0132]

[0133] [Brief explanation of the drawing]

[0134] [Figure 1] This is a diagram of an artificial neural network. [Figure 2] This shows a prior art split-gate flash memory cell. [Figure 3] This shows another prior art split-gate flash memory cell. [Figure 4] This shows another prior art split-gate flash memory cell. [Figure 5] This shows another prior art split-gate flash memory cell. [Figure 6] This figure shows various levels of exemplary artificial neural networks that utilize one or more non-volatile memory arrays. [Figure 7] Block diagram of a vector matrix multiplication system. [Figure 8] This block diagram shows an exemplary artificial neural network that utilizes one or more vector matrix multiplication systems. [Figure 9] Another embodiment of the vector-matrix multiplication system is shown. [Figure 10] Another embodiment of the vector-matrix multiplication system is shown. [Figure 11] Another embodiment of the vector-matrix multiplication system is shown. [Figure 12] Another embodiment of the vector-matrix multiplication system is shown. [Figure 13] Another embodiment of the vector-matrix multiplication system is shown. [Figure 14]This demonstrates prior art long- and short-term memory systems. [Figure 15] This shows an example cell used in long- and short-term memory systems. [Figure 16] Figure 15 shows one embodiment of an exemplary cell. [Figure 17] Another embodiment of the exemplary cell shown in Figure 15 is presented. [Figure 18] This shows a prior art gated regression unit system. [Figure 19] An exemplary cell for use in a gated regressive unit system is shown. [Figure 20] Figure 19 shows one embodiment of an exemplary cell. [Figure 21] Another embodiment of the exemplary cell in Figure 19 is shown. [Figure 22] Another embodiment of the vector-matrix multiplication system is shown. [Figure 23] Another embodiment of the vector-matrix multiplication system is shown. [Figure 24] Another embodiment of the vector-matrix multiplication system is shown. [Figure 25] Another embodiment of the vector-matrix multiplication system is shown. [Figure 26A] Another embodiment of the vector-matrix multiplication system is shown. [Figure 26B] Another embodiment of the vector-matrix multiplication system is shown. [Figure 26C] Another embodiment of the vector-matrix multiplication system is shown. [Figure 27] Another embodiment of the vector-matrix multiplication system is shown. [Figure 28] Another embodiment of the vector-matrix multiplication system is shown. [Figure 29] Another embodiment of the vector-matrix multiplication system is shown. [Figure 30] Another embodiment of the vector-matrix multiplication system is shown. [Figure 31] This demonstrates a vector-matrix multiplication system. [Figure 32] Shows an embodiment of a split vector matrix multiplication system. [Figure 33] Shows an embodiment of a split array vector matrix multiplication system. [Figure 34] Shows another embodiment of a split array vector matrix multiplication system. [Figure 35] Shows another embodiment of a split array vector matrix multiplication system. [Figure 36] Shows another embodiment of a split array vector matrix multiplication system. [Figure 37] Shows an embodiment of a split array within a vector matrix multiplication system. [Figure 38] Shows another embodiment of a split array within a vector matrix multiplication system. [Figure 39] Shows an exemplary layout of a single array and a split array within a vector matrix multiplication system. [Figure 40] Shows an example of a split array vector matrix multiplication system having multiple output lines per column. [Figure 41] Shows an example of a split array vector matrix multiplication system having multiple output lines per column. [Figure 42] Shows an example of an array having multiple output lines per column. [Figure 43] Shows an example of a split array vector matrix multiplication system having multiple output lines per column. [Figure 44] Shows an example of an array including multiple arrays shown in FIG. 42.

Embodiments for Carrying Out the Invention

[0135] The artificial neural network of the present invention utilizes a combination of CMOS technology and a non-volatile memory array. <Overview of the VMM System>

[0136] Figure 31 shows a block diagram of the VMM system 3100. The VMM system 3100 comprises a VMM array 3101, a row decoder 3102, a high-voltage decoder 3103, a column decoder 3104, a bit line driver 3105, an input circuit 3106, an output circuit 3107, a control logic 3108, and a bias generator 3109. The VMM system 3100 further comprises a high-voltage generation block 3110, which includes a charge pump 3111, a charge pump regulator 3112, and a high-voltage level generator 3113. The VMM system 3100 further comprises an algorithm controller 3114 (program / erase, or also known as weight adjustment), an analog circuit 3115, a control engine 3116 (which may include special functions such as arithmetic functions, startup functions, and embedded microcontroller logic), and a test control logic 3117. The systems and methods described below can be implemented in the VMM system 3100.

[0137] The input circuit 3106 may include circuits such as a DAC (digital to analog converter), DPC (digital to pulses converter, digital to time-modulated pulse converter), AAC (analog to analog converter, such as a current-voltage converter, logarithmic converter), PAC (pulse to analog level converter), or any other type of converter. The input circuit 3106 may implement normalization, linear or nonlinear up / downscaling functions, or arithmetic functions. The input circuit 3106 may implement a temperature compensation function for the input level. The input circuit 3106 may implement an activation function such as ReLU or sigmoid. The output circuit 3107 may include circuits such as an ADC (analog to digital converter, an analog-to-digital converter for converting the neuron analog output to digital bits), an AAC (analog-to-analog converter, such as a current-to-voltage converter, or a logarithmic converter), an APC (analog to pulse converter, an analog-to-pulse converter, or an analog-to-time modulated pulse converter), a current-to-voltage converter, or any other type of converter. The output circuit 3107 may implement activation functions such as ReLU or sigmoid. The output circuit 3107 may implement 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. The output circuit 3107 may implement temperature compensation functions for the neuron output or array output (such as bit line output) to keep the array power consumption approximately constant or to improve the accuracy of the array (neuron) output by keeping the IV gradient approximately the same.

[0138] Figures 32 to 36 show embodiments of the VMM system that share some commonalities with the VMM system 3100, but also include some modifications.

[0139] Figure 32 shows the VMM system 3200. The VMM system 3200 comprises an array 3201, a shared row decoder 3202, a shared high-voltage decoder 3203, column decoders 3204 and 3205, a (row) input circuit 3220, output circuits 3206 and 3207, and a shared bit line driver 3208. The shared row decoder 3202 is coupled to all rows in the array 3201 and applies a voltage to the selected row. The shared high-voltage decoder 3203 can be selectively coupled to all rows in the array 3201. The shared high-voltage decoder 3203 optionally includes a control-gate high-voltage decoder 3231 that can be selectively coupled to all rows in the array, and a shared erase-gate high-voltage decoder 3232 that can be selectively coupled to all rows in the array. The input circuit 3220 is similar to, for example, the input circuit 3106 in Figure 31. The circuits and functions of output circuits 3206 and 3207 are similar to, for example, the circuits and functions of output circuit 3107 in Figure 31. Unlike VMM system 3100, in VMM system 3200 certain operations are divided among different sets of circuits. Specifically, half of the columns in array 3201 (e.g., all odd columns) are operated by column decoder 3204 and output circuit 3206, and the other half of the columns in array 3201 (e.g., all even columns) are operated by column decoder 3205 and output circuit 3207. Thus, output circuit 3206 is coupled to column decoder 3204 to produce a first output from one or more columns in the first half of the columns during a read operation, and output circuit 3207 is coupled to column decoder 3207 to produce a second output from one or more columns in the second half of the columns during a read operation. In this embodiment, during a program or erase operation, all columns are coupled to a shared bit line driver 3208. This allows multiple bit lines to be read in parallel. In other words, the bit lines coupled to column decoder 3204 and output circuit 3206, and the bit lines coupled to column decoder 3205 and output circuit 3207, are simultaneously enabled by the shared bit line driver 3208 for read operations. This increases the throughput for reading array 3201. Alternatively, read operations do not need to be simultaneous.

[0140] Optionally, referring further to Figure 39, continuous diffusion can be implemented between the upper and lower halves of the array.

[0141] Figure 33 shows the VMM system 3300. The VMM system 3300 comprises arrays 3301a and 3301b, row decoder 3302, shared high-voltage decoder 3303, column decoders 3304 and 3305, input circuit 3320, current-to-voltage converter circuits 3306 and 3307, shared analog-to-digital converter (ADC) 3308, and multiple shared bit-line drivers 3309. The current-to-voltage converter circuit 3306 or 3307 and the shared ADC circuit 3308 are part of the output circuit 3207 in Figure 32.

[0142] Unlike the VMM system 3100, the VMM system 3300 divides a particular operation between different sets of circuits. Specifically, array 3301a is operated by a column decoder 3304 and a current-to-voltage converter 3306, while array 3301b is operated by a column decoder 3305 and a current-to-voltage converter 3307. This allows multiple read operations and / or program operations to be performed simultaneously, and the read or program operations may be performed concurrently on one or more cells in array 3301a and one or more cells in array 3301b.

[0143] Both current-to-voltage converter circuits 3306 and 3307 are coupled to a shared analog-to-digital converter 3308 used in a time-division multiplexed manner during read operations, and to a shared bit-line driver 3309 used during program and erase operations. For example, during a read operation, array 3301a is simultaneously enabled and coupled to column decoder 3304 and current-to-voltage converter circuit 3306, while array 3301b is enabled and coupled to column decoder 3305 and current-to-voltage converter circuit 3307. The output voltages from current-to-voltage converter circuits 3306 and 3307 are sampled and held (S / H) by, for example, an S / H capacitor in the shared ADC 3308, and these array output voltages are digitized (converted) by the time-division multiplexed shared ADC 3308 (because they are shared between current-to-voltage converter circuits 3306 and 3307). For example, two sets of S / H capacitors are used for one ADC shared between two current-to-voltage converter circuits. In another embodiment, one ADC can be used for N current-to-voltage converter circuits, in which case N sets of S / H capacitors are used.

[0144] The use of a shared ADC between two current-voltage converter circuits can also be applied to Figures 34 / 35 / 36.

[0145] Figure 34 shows the VMM system 3400. The VMM system 3400 comprises arrays 3401a and 3401b, a shared row decoder 3402, a shared high-voltage decoder 3403, column decoders 3404 and 3405, an input circuit 3420, output circuits 3406 and 3407, and a plurality of shared bit-line drivers 3408. Unlike the VMM system 3100, in the VMM system 3400, certain operations are divided among different sets of circuits. Specifically, array 3401a is operated by column decoder 3404 and output circuit 3406, and array 3401b is operated by column decoder 3405 and output circuit 3407. This allows multiple read operations and / or program operations to be performed simultaneously, and the read or program operations may be performed concurrently on one or more cells in array 3401a and one or more cells in array 3401b. Both arrays 3401a and 3401b are coupled to a shared bit line driver 3408, which is used during program and erase operations.

[0146] Figure 35 shows the VMM system 3500. The VMM system 3500 comprises arrays 3501a, 3501b, 3501c, and 3501d, row decoders 3502 and 3503, a shared high-voltage decoder 3504, column decoders 3505, 3506, 3507, and 3508, an input circuit 3520, output circuits 3509, 3510, 3511, and 3512, and shared bit line drivers 3513 and 3514. The shared high-voltage decoder 3504 can be selectively coupled to all rows in arrays 3501a, 3501b, 3501c, and 3501d. Row decoder 3502 is shared by arrays 3501a and 3501b, coupled to all rows in these arrays, and applies a voltage to selected rows; row decoder 3503 is shared by arrays 3501c and 3501d, coupled to all rows in these arrays, and applies a voltage to selected rows.

[0147] In the VMM system 3500, certain operations are divided among different sets of circuits. Specifically, array 3501a is operated by column decoder 3505 and output circuit 3509, array 3501b is operated by column decoder 3507 and output circuit 3511, array 3501c is operated by column decoder 3506 and output circuit 3510, and array 3501d is operated by column decoder 3508 and output circuit 3512. This allows multiple read operations and / or program operations to be performed simultaneously on all four arrays at once, and read or program operations may be performed concurrently on one or more cells in array 3501a, one or more cells in array 3501b, one or more cells in array 3501c, and one or more cells in array 3501d. Both arrays 3501a and 3501b are selectively coupled to the shared bit line driver 3513 during program and erase operations. Both arrays 3501c and 3501d are selectively coupled to the shared bit line driver 3514 during program and erase operations.

[0148] For example, the column decoder 3505 and output circuit 3509 can perform a first read operation to generate a first output from one or more rows in array 3501a, the column decoder 3506 and output circuit 3510 can perform a second read operation to generate a second output from one or more rows in array 3501c, the column decoder 3507 and output circuit 3511 can perform a third read operation to generate a third output from one or more rows in array 3501b, and the column decoder 3508 and output circuit 3512 can perform a fourth read operation to generate a fourth output from one or more rows in array 3501d. The first and third read operations can optionally be performed in parallel. The second and fourth read operations can optionally be performed in parallel.

[0149] Figure 36 shows the VMM system 3600. The VMM system 3600 comprises arrays 3601a, 3601b, 3601c, and 3601d, row decoder 3621, control gate decoders 3602 and 3603, shared high-voltage decoder 3604, column decoders 3605, 3606, 3607, and 3608, output circuits 3609, 3610, 3611, and 3612, and shared bit line drivers 3613 and 3614. In the VMM system 3600, certain operations are divided among different sets of circuits. Specifically, array 3601a is operated by a column decoder 3605 and an output circuit 3609, array 3601b is operated by a column decoder 3607 and an output circuit 3611, array 3601c is operated by a column decoder 3606 and an output circuit 3610, and array 3601d is operated by a column decoder 3608 and an output circuit 3612. This allows multiple read and / or program operations to be performed simultaneously on all four arrays at once, and read or program operations can be performed concurrently on one or more cells in array 3601a, one or more cells in array 3601b, one or more cells in array 3601c, and one or more cells in array 3601d. Both arrays 3601a and 3601b are selectively coupled to a shared bit line driver 3613 during program and erase operations. Both arrays 3601c and 3601d are selectively coupled to the shared bit line driver 3614 during program and erase operations.

[0150] Figures 32 to 36 show that reading is performed by the row input of the control gate. Alternatively, reading can be performed by the word line or the erase gate. The input circuits 3220 in Figure 32, 3320 in Figure 33, 3420 in Figure 34, 3520 in Figure 35, and 3620 in Figure 36 are similar to the input circuit 3106 in Figure 31. The output circuits 3206 / 3207 in Figure 32, 3406 / 4307 in Figure 34, 3507 / 3508 / 3509 / 3510 in Figure 35, and 3607 / 3608 / 3609 / 3610 in Figure 36 are similar to the output circuit 3107 in Figure 31.

[0151] Figure 37 shows a portion of the VMM array 3700. The VMM array 3700 comprises rows 3701, 3702, 3703, 3704, 3705, 3706, 3707, and 3708. Rows 3701, 3702, 3705, and 3706 share an erase gate line (EG0) and a source line (SL0), while rows 3703, 3704, 3707, and 3708 share an erase gate line (EG1) and a source line (SL1). In addition, rows 3701 and 3703 share control gate lines (CG0 / CG2), rows 3702 and 3704 share control gate lines (CG1 / CG3), rows 3705 and 3707 share control gate lines (CG4 / CG6), and rows 3706 and 3708 share control gate lines (CG5 / CG7). These couplings allow different rows to share the decoder circuit. The array terminals are shared to reduce program or erase disturbance by reducing the amount of erase or program voltage stress on unselected cells.

[0152] In the arrays of Figures 37 and 38 (described below), the row inputs for VMM arrays 3700 and 3800 for neural readout operations (where multiple rows and multiple bit lines are simultaneously on) are located on word lines. If the input for neural readout is located on a control gate, the control gate cannot be shared among multiple rows within the same subarray or array bank.

[0153] Figure 38 shows a portion of array 3800. Array 3800 comprises sectors 3809 and 3819. Sector 3809 comprises rows 3801, 3802, 3803, 3804, 3805, 3806, 3807, and 3808. Sector 3819 comprises rows 3811, 3812, 3813, 3814, 3815, 3816, 3817, and 3818.

[0154] Rows 3801 (the first row) and 3811 (the second row) share control gate line (CG0) (i.e., the control gate terminals of each cell in these rows are connected to the same control gate line), rows 3802 and 3812 share control gate line (CG1) (i.e., the control gate terminals of each cell in these rows are connected to the same control gate line), rows 3803 and 3813 share control gate line (CG2) (i.e., the control gate terminals of each cell in these rows are connected to the same control gate line), and rows 3804 and 3814 share control gate line (CG3) (i.e., the control gate terminals of each cell in these rows are connected to the same control gate line). Rows 3805 and 3815 share the control gate line (CG4) (i.e., the control gate terminals of each cell in these rows are coupled to the same control gate line), rows 3806 and 3816 share the control gate line (CG5) (i.e., the control gate terminals of each cell in these rows are coupled to the same control gate line), rows 3807 and 3817 share the control gate line (CG6) (i.e., the control gate terminals of each cell in these rows are coupled to the same control gate line), and rows 3808 and 3818 share the control gate line (CG7) (i.e., the control gate terminals of each cell in these rows are coupled to the same control gate line). In other words, the control gates are shared between sectors. These couplings allow different rows to share the decoder circuit. The array terminals are shared so as to reduce program or erase disturb by reducing the amount of erase or program voltage stress on unselected cells.

[0155] Rows 3801 (the first row), 3802 (the third row), 3805, and 3806 share an erase gate line (EG0) (i.e., the erase gate terminals of each cell in these rows are connected to the same erase gate line) and a source line (SL0) (i.e., the source line terminals of each cell in these rows are connected to the same source line), and rows 3803, 3084, 3807, and 3808 share an erase gate line (EG1) (i.e., the erase gate terminals of each cell in these rows are connected to the same erase gate line) and a source line (SL1) (i.e., the source line terminals of each cell in these rows are connected to the same source line). Rows 3811, 3812, 3815, and 3816 share an erase gate line (EG0) (i.e., the erase gate terminals of each cell in these rows are connected to the same erase gate line) and a source line (SL0) (i.e., the source line terminals of each cell in these rows are connected to the same source line), and rows 3813, 3114, 3817, and 3818 share an erase gate line (EG1) (i.e., the erase gate terminals of each cell in these rows are connected to the same erase gate line) and a source line (SL1) (i.e., the source line terminals of each cell in these rows are connected to the same source line).

[0156] Figure 39 shows some exemplary layouts of single arrays 3901 (such as array 3101 in Figure 31 and array 3201 in Figure 32) and split arrays 3902 (such as arrays 3301a and 3301b in Figure 33, arrays 3401a and 3401b in Figure 34, arrays 3501a, 3501b, 3501c, and 3501d in Figure 35, and arrays 3601a, 3601b, 3601c, and 3601d in Figure 36). Split arrays 3902 follow the same design as array 3901, except that certain contacts and metal connections 3904 are removed (or not formed) to create sub-arrays 3903a and 3903b. A few dummy rows at the interface are disabled by grounding word lines and control gates, etc. This maintains process uniformity through the front-end layer (i.e., continuous column diffusion within the columns and continuous row diffusion within the source lines), ensuring that the polysilicon is continuous and uniform between two arrays of non-volatile memory cells (between electrically isolated arrays). This also results in reduced area overhead compared to the physical separation of different arrays. <Array with multiple output lines per column>

[0157] Figure 40 shows the VMM system 4000. The VMM system 4000 comprises arrays 4001a and 4001b, a shared row decoder 4002, a shared high-voltage decoder 4003, a column decoder 4005, an input circuit 4020, output circuits 4006 and 4007, and a shared bit line driver 4008 (which controls programming, such as providing program current, or suppresses bit lines during programming). Unlike the VMM system 3100, in the VMM system 4000, certain operations are divided among different sets of circuits. Specifically, arrays 4001a and 4001b may be formed from the same physical array, but by design, there are multiple output lines for each memory column (a column of memory cells). In this example, the output lines are bit lines, meaning there are multiple bit lines for each column, with one set of bit lines coupled to output circuit 4006 and another set of bit lines coupled to output circuit 4007. This allows multiple read operations and / or program operations to be performed simultaneously on arrays 4001a and 4001b, and the read or program operations may be performed concurrently on one or more cells in array 4001a and one or more cells in array 4001b. Both arrays 4001a and 4001b are coupled to a shared bit line driver 4008 used during program and erase operations. Alternatively, the read or program operations may be performed independently at different times.

[0158] Figure 41 shows the VMM system 4100. The VMM system 4100 comprises arrays 4101a and 4101b, a shared row decoder 4102, a shared high-voltage decoder 4103, a column decoder 4105, an input circuit 4120, a shared output circuit 4106, and a shared bit line driver 4107. The VMM system 4100 is similar to the VMM system 4100, except that it includes one output circuit 4106 instead of two output circuits 4006 and 4007. Similar to the VMM system 4000, in the VMM system 4100 certain operations are divided among different sets of circuits. Specifically, arrays 4101a and 4101b may be formed from the same physical array, but by design, there are multiple output lines per column. In this example, the output lines are bit lines, meaning there are multiple bit lines per column, and all bit lines are coupled to the output circuit 4106. This allows multiple read operations and / or program operations to be performed simultaneously on arrays 4101a and 4101b, and the read or program operations may be performed concurrently on one or more cells in array 4101a and one or more cells in array 4101b. Both arrays 4101a and 4101b are coupled to a shared bit line driver 4108 used during program and erase operations. Alternatively, the read or program operations may be performed independently at different times.

[0159] Figure 42 shows a portion of array 4200. Array 4200 includes multiple non-volatile memory cells arranged in rows and columns 4201, 4202, 4203, and 4204. Array 4200 may include many additional rows and columns not shown, but it should be understood that the same principles shown will apply to those additional rows and columns as well. In this example, each non-volatile memory cell is included in a row and column and has bit line terminals, word line terminals, control gate terminals, erase gate terminals, and control gate terminals, similar to memory cell 310 in Figure 3.

[0160] Unlike the prior art, each column contains two output lines (two bit lines). Alternatively, it may contain three or more output lines. For example, column 4201 contains bit lines BLB0 and BLTO, column 4202 contains bit lines BLB1 and BLT1, column 4203 contains bit lines BLB2 and BLT2, and column 4204 contains bit lines BLB3 and BLT3. The rows are grouped into block arrays 4210 and 4220. Cells in array 4210 are joined to bit lines BLT0, BLT1, BLT2, and BLT3 but not to bit lines BLB0, BLB1, BLB2, and BLT3, and cells in array 4220 are joined to bit lines BLB0, BLB1, BLB2, and BLB3 but not to bit lines BLT0, BLT1, BLT2, and BLT3.

[0161] As a result of this configuration, rows in array 4210 can be read or programmed simultaneously with rows in array 4220 without any contention. This provides extremely high efficiency, for example, when array 4210 is used in a first VMM operation and array 4220 is used in a second separate VMM operation. This allows the same physical array to operate two separate VMM arrays and operations simultaneously, which improves the speed of the VMM system compared to prior art.

[0162] Figure 43 shows the VMM system 4300. The VMM system 4300 comprises arrays 4301a, 4301b, 4301c, and 4301d, a shared row decoder 4302, a shared high-voltage decoder 4303, column decoders 4305 and 4310, a shared input circuit 4320, output circuits 4306, 4307, 4311, and 4312, and bit line drivers 4308 and 4313. Unlike the VMM system 3100, in the VMM system 4300, certain operations are divided among different sets of circuits. Specifically, arrays 4301a, 4301b, 4301c, and 4301d may be formed from the same physical array, but by design, there may be multiple output lines per column. In this example, the output lines are bit lines, with four output lines (bit lines) for each memory column, where the first set of bit lines is connected to output circuit 4306, the second set of bit lines is connected to output circuit 4307, the third set of bit lines is connected to output circuit 4311, and the fourth set of bit lines is connected to output circuit 4312. This allows read operations and / or program operations to be performed simultaneously in arrays 4301a, 4301b, 4301c, and 4301d, and the read or program operations may be performed concurrently on one or more cells in array 4301a, one or more cells in array 4301b, one or more cells in array 4301c, and one or more cells in array 4301d. Both arrays 4301a and 4301b are coupled to bit line driver 4313, which is used during program and erase operations involving those arrays, while arrays 4301c and 4301d are coupled to bit line driver 4308, which is used during program and erase operations involving those arrays. Alternatively, read operations or program operations may be performed independently at different time periods.

[0163] Figure 44 shows a VMM system 4400 including multiple sets of arrays, each set including array 4401a and array 4401b, where each array 4401a is an instance of array 4210 in Figure 42, and each array 4401b is an instance of array 4220 in Figure 42.

[0164] It should be noted that, as used herein, the terms “over” and “on” both encompass “directly on” (no intermediate material, element, or gap is located between them) and “indirectly on” (intermediate material, element, or gap is located between them). Similarly, the term “adjacent” includes “directly adjacent” (no intermediate material, element, or gap is located between them) and “indirectly adjacent” (intermediate material, element, or gap is located between them); “attached” includes “directly attached” (no intermediate material, element, or gap is located between them) and “indirectly attached to” (intermediate material, element, or gap is located between them); and “electrically coupled” includes “directly electrically coupled” (no intermediate material or element electrically connecting the elements together between them) and “indirectly electrically coupled to” (intermediate material or element electrically connecting the elements together between them). For example, forming an element "on top of a substrate" may include forming the element directly on the substrate without any intermediate materials / elements between them, and forming the element indirectly on the substrate with one or more intermediate materials / elements between them.

Claims

1. It is a system, An array of non-volatile memory cells arranged in multiple rows and multiple columns, It comprises multiple sets of two or more output lines, and each column includes a set of two or more output lines. A system in which each row is connected to only one output line from the set of two or more output lines for each column.

2. The system according to claim 1, wherein the output line is a bit line.

3. The system according to claim 1, wherein each set of two or more output lines in the plurality of sets of two or more output lines includes two output lines.

4. The system according to claim 1, wherein each set of two or more output lines in the plurality of sets of two or more output lines includes four output lines.

5. The system according to claim 1, wherein the non-volatile memory cell is a split-gate flash memory cell.

6. The system according to claim 1, wherein the non-volatile memory cell is a stacked gate flash memory cell.

7. The system according to claim 1, comprising an output driver coupled to a plurality of sets of two or more output lines.

8. A first output driver coupled to a first line in each set of two or more output lines in the plurality of sets of two or more output lines, The system according to claim 1, comprising: a second output driver coupled to a second line in each set of two or more output lines in the plurality of sets of two or more output lines.

9. A third output driver coupled to a third line in each set of two or more output lines within the plurality of sets of two or more output lines, The system according to claim 8, comprising: a fourth output driver coupled to a fourth line in each of the two or more sets of output lines in the plurality of sets of two or more output lines.

10. The system according to claim 8, further comprising a high-voltage decoder for supplying a high voltage to the array during program operation and erase operation.

11. The system according to claim 8, comprising a plurality of bit line drivers coupled to a plurality of sets of two or more output lines.