Test circuit and method for analog neural memories in artificial neural networks

The development of a test circuit and method for non-volatile memory arrays in artificial neural networks addresses the challenges of bulkiness and energy inefficiency in CMOS synapses by enhancing the accuracy and efficiency of programming and defect identification, leading to improved performance and energy efficiency.

JP7746464B2Active Publication Date: 2025-09-30SILICON STORAGE TECHNOLOGY INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024094553
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-12
Filing Date
2024-06-11
Publication Date
2025-09-30
Estimated Expiration
2039-12-21

AI Technical Summary

Technical Problem

The lack of suitable hardware technology for high-performance artificial neural networks, particularly in terms of energy efficiency and scalability, is exacerbated by the bulkiness of CMOS-implemented synapses, necessitating improved testing methods for non-volatile memory arrays used in analog neural memories.

Method used

A test circuit and method are developed to verify and test the characteristics and operability of non-volatile flash memory cells in arrays, including techniques for programming verification, identifying defective cells, and compensating for leakage, using row and column decoders, sense amplifiers, and current measurements.

Benefits of technology

The proposed testing methods enhance the accuracy and efficiency of non-volatile memory arrays, ensuring precise programming and identifying defects, thereby improving the performance and energy efficiency of analog neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007746464000011
    Figure 0007746464000011
  • Figure 0007746464000012
    Figure 0007746464000012
  • Figure 0007746464000013
    Figure 0007746464000013
Patent Text Reader

Abstract

To provide a testing circuit and a method for use with an analog neural memory in a deep learning artificial neural network.SOLUTION: An analog neural memory includes one or more arrays of nonvolatile memory cells. A method for verifying programming operations of one or more cells during sort tests, qualification tests, and other tests includes: asserting all word lines in the array by a row decoder; asserting bit lines in the array by the column decoder; sensing currents received from the bit lines by a sense amplifier; and determining whether or not the nonvolatile memory cell coupled to the bit line includes a desired value by comparing the current with a reference current.SELECTED DRAWING: Figure 33
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (Priority Claim) This application claims priority to U.S. Provisional Patent Application No. 62 / 876,515, filed July 19, 2019, entitled "Testing Circuitry and Methods for Analog Neural Memory in Artificial Neural Network," and U.S. Patent Application No. 16 / 569,611, filed September 12, 2019, entitled "Testing Circuitry and Methods for Analog Neural Memory in Artificial Neural Network."

[0002] FIELD OF THE INVENTION A test circuit and method are disclosed for use with analog neural memories in deep learning artificial neural networks, the analog neural memories including one or more arrays of non-volatile flash memory cells. [Background technology]

[0003] Artificial neural networks mimic biological neural networks (the central nervous systems of animals, particularly the brain) and are used to estimate or approximate functions that may depend on multiple inputs and are generally unknown. Artificial neural networks generally contain layers of interconnected "neurons" that exchange messages.

[0004] Figure 1 shows an artificial neural network, where circles represent layers of inputs or neurons. Connections (called synapses) are represented by arrows and have numerical weights that can be adjusted based on experience. This allows the neural network to adapt to the inputs and learn. Typically, a neural network contains multiple layers of inputs. There is typically one or more hidden layers of neurons, and an output layer of neurons that provides the neural network's output. At each level, neurons make decisions individually or jointly based on the data they receive from the 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 allows for high connectivity between neurons and therefore a very high degree of parallelization of computational processes. In principle, such complexity could be achieved using digital supercomputers or dedicated GPU (graphic processing unit) clusters. However, in addition to high costs, these approaches also suffer from poor energy efficiency compared to biological networks, which primarily perform low-precision analog computations and therefore consume much less energy. CMOS analog circuits have been used in artificial neural networks, but most CMOS-implemented synapses are too bulky given the large number of neurons and synapses required.

[0006] The applicant previously disclosed in U.S. Patent Application No. 15 / 594,439, published as U.S. Patent Publication No. 2017 / 0337466, which is incorporated by reference, an artificial (analog) neural network utilizing one or more non-volatile memory arrays as synapses. The non-volatile memory array operates as an analog neural memory. The neural network device 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 the first plurality of outputs. The first plurality of synapses include a plurality of memory cells, each including spaced apart source and drain regions formed in a semiconductor substrate with a channel region extending therebetween, a floating gate disposed above and insulated from a first portion of the channel region, and a non-floating gate disposed above and insulated from a second portion of the channel region. Each of the plurality of memory cells is configured to store a weight value corresponding to a number of electrons on the floating gate. The plurality of memory cells are configured to multiply the first plurality of inputs by the stored weight values ​​to generate the first plurality of outputs. An array of memory cells used in this manner may be referred to as a vector matrix multiplication (VMM) array.

[0007] Each nonvolatile memory cell used in an analog neural memory system must store a very specific and precise amount of charge, i.e., the number of electrons, in its floating gate in response to erasure and programming. For example, each floating gate must store 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.

[0008] Because each individual memory cell can store one of N different levels (N can be greater than 2, as opposed to conventional memory cells, where N is always 2), precision and accuracy are very important in operations involving VMM arrays. Testing, therefore, becomes a critical operation. For example, verification of programming operations is necessary to ensure that each individual cell or column of cells is accurately programmed to a desired value. As another example, it is important to identify defective cells or groups of cells so that they can be removed from the set of cells used to store data during operation of the VMM array.

[0009] What is needed is an improved test circuit and method for use with VMM arrays. Summary of the Invention

[0010] Test circuits and methods are disclosed for use with analog neural memories in deep learning artificial neural networks. The analog neural memories include one or more arrays of non-volatile flash memory cells. The test circuits and methods can be utilized to verify the characteristics and operability of one or more cells during screening tests, cycle tests, high temperature operating life (HTOL) tests, qualification tests, and other tests.

[0011] One embodiment includes a method of verifying values ​​programmed into a plurality of non-volatile memory cells in an array of analog neural non-volatile memory cells, the array arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method including asserting all word lines in the array by the row decoder; asserting bit lines in the array by the column decoder; sensing currents received from the bit lines by sense amplifiers; and comparing the currents to a reference current to determine whether the non-volatile memory cells coupled to the bit lines contain the desired values.

[0012] Another embodiment includes a method of measuring current drawn by a plurality of nonvolatile memory cells in an array of analog neural nonvolatile memory cells, the array being arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method including asserting, by the row decoder, all word lines in the array; asserting, by the column decoder, bit lines in the array; and measuring current received from the bit lines.

[0013] Another method includes a method of testing a plurality of analog neural non-volatile memory cells in an array of non-volatile memory cells, the array being arranged in rows and columns, each row coupled to a word line, each column coupled to a bit line, each word line selectively coupled to a row decoder, and each bit line selectively coupled to a column decoder, the method including asserting, by the row decoder, all word lines in the array; asserting, by the column decoder, all bit lines in the array; performing a deep programming operation on all non-volatile memory cells in the array; and measuring total current received from the bit lines.

[0014] Another embodiment includes a method of testing an array of analog neural non-volatile memory cells, the array arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, the method including: programming a plurality of cells coupled to the bit lines; measuring current drawn by the plurality of cells at K different times and storing the measured values ​​at each of the K different times, where K is an integer; calculating an average value based on the K measured values; and identifying a bit line as a faulty bit line if any of the K measured values ​​is less than the average value by more than a first threshold or greater than the average value by more than a second threshold.

[0015] Another embodiment includes a method of testing an array of analog neural non-volatile memory cells, the array arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, the method including: programming a plurality of cells coupled to the bit lines; measuring voltages on control gate lines coupled to control gate terminals of the plurality of cells at K different times and storing the measured values ​​at each of the K different times, where K is an integer; calculating an average value based on the K measured values; and identifying a bit line as a faulty bit line if any of the K measured values ​​is less than the average value by more than a first threshold or greater than the average value by more than a second threshold.

[0016] Another embodiment includes a method of testing an analog neural nonvolatile memory cell for storing N different values, where N is an integer, the method including the steps of programming the cell to a target value representing one of the N values; verifying that the value stored in the cell is within a window of acceptable values ​​centered around the target value; repeating the programming and reading steps for each of the N values; and identifying the cell as defective if any of the verifying steps indicate a value stored in the cell that is outside the window of acceptable values ​​centered around the target value.

[0017] Another embodiment includes a method for compensating for leakage in an array of analog neural non-volatile memory cells, the array arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, the method including measuring leakage for a column of non-volatile memory cells coupled to a bit line, storing the measured leakage value, and applying the measured leakage value during a read operation of the column of non-volatile memory cells to compensate for leakage.

[0018] Another embodiment includes a method of testing selected non-volatile memory cells in an array of analog neural non-volatile memory cells, the method including determining a logarithmic slope coefficient for the selected non-volatile memory cell while the selected non-volatile memory cell is operating in a sub-threshold region, storing the logarithmic slope coefficient, determining a linear slope coefficient for the selected non-volatile memory cell while the selected non-volatile memory cell is operating in a linear region, storing the linear slope coefficient, and utilizing one or more of the logarithmic slope coefficient and the linear slope coefficient when programming the selected cell to a target current.

[0019] Another embodiment includes a method for measuring current drawn by a column of nonvolatile memory cells in an array of analog neural nonvolatile memory cells, the array being arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method including asserting, by the row decoder, all word lines in the array; asserting, by the column decoder, bit lines in the array to select a column of nonvolatile memory cells; and measuring the current received from the bit lines.

[0020] Another embodiment includes a method of testing an array of analog neural non-volatile memory cells, the method including erasing the non-volatile memory cells in the array by applying a series of voltages to terminals of each of the non-volatile memory cells in the array, where the voltages in the series increase over time by a fixed step size, and reading all of the non-volatile memory cells to determine the effectiveness of the erasing step.

[0021] Another embodiment includes a method of testing an array of analog neural non-volatile memory cells, the method including programming the non-volatile memory cells in the array by applying a series of voltages to terminals of each of the non-volatile memory cells in the array, where the voltages in the series of voltages increase over time by a fixed step size, and reading all of the non-volatile memory cells to determine the effectiveness of the programming step.

[0022] Another embodiment includes a method of testing a plurality of analog neural non-volatile memory cells in an array of non-volatile memory cells, the array being arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method including: programming the plurality of non-volatile memory cells to store one of N different values, where N is the number of different levels that may be stored in any of the non-volatile memory cells; measuring a current drawn by the plurality of non-volatile memory cells; comparing the measured current to a target value; and identifying the plurality of non-volatile memory cells as defective if the difference between the measured value and the target value exceeds a threshold.

[0023] Another embodiment includes a method of testing a plurality of analog neural non-volatile memory cells in an array of non-volatile memory cells, the memory array being arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method including: programming a first selection of cells among the plurality of non-volatile memory cells with a level corresponding to a smallest cell current among N levels; programming a second selection of cells among the plurality of non-volatile memory cells with a level corresponding to a largest cell current among the N levels, each cell in the second selection of cells being adjacent to one or more cells in the first selection of cells; measuring a current drawn by the plurality of non-volatile memory cells; comparing the measured current to a target value; and identifying the plurality of non-volatile memory cells as defective if a difference between the measured value and the target value exceeds a threshold.

[0024]

[0025]

[0026]

[0027]

[0028]

[0029]

[0030]

[0031]

[0032]

[0033]

[0034]

[0035]

[0036]

[0037]

[0038]

[0039]

[0040]

[0041]

[0042]

[0043]

[0044]

[0045]

[0046]

[0047]

[0048]

[0049]

[0050]

[0051]

[0052]

[0053]

[0054]

[0055]

[0056]

[0057]

[0058]

[0059]

[0060]

[0061]

[0062]

[0063]

[0064]

[0065]

[0066]

[0067] [Brief explanation of the drawings]

[0068] [Figure 1] FIG. 1 illustrates a prior art artificial neural network. [Figure 2] 1 shows a prior art split-gate flash memory cell. [Figure 3] 1 illustrates another prior art split-gate flash memory cell. [Figure 4] 1 illustrates another prior art split-gate flash memory cell. [Figure 5] 1 illustrates another prior art split-gate flash memory cell. [Figure 6] 1 illustrates another prior art split-gate flash memory cell. [Figure 7] 1 shows a prior art stacked gate flash memory cell. [Figure 8] FIG. 1 illustrates various levels of an exemplary artificial neural network that utilizes one or more non-volatile memory arrays. [Figure 9] FIG. 1 is a block diagram illustrating a vector matrix multiplication system. [Figure 10] FIG. 1 is a block diagram illustrating an example artificial neural network utilizing one or more vector-matrix multiplication systems. [Figure 11] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 12] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 13] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 14] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 15] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 16] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 17] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 18] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 19] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 20] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 21] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 22] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 23] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 24] 1 illustrates another embodiment of a vector matrix multiplication system. [Figure 25] 1 illustrates one embodiment of a vector matrix multiplication system including test control logic. [Figure 26] 1 shows the reference current source. [Figure 27] 27 shows a reference branch circuit for use with the reference current source of FIG. 26. [Figure 28] Sense amplifiers are shown. [Figure 29A] 1 shows a verification analog-to-digital converter. [Figure 29B] 1 shows a verification analog-to-digital converter. [Figure 30] 1 shows a high voltage generation circuit. [Figure 31] 1 illustrates an exemplary test algorithm implemented by test control logic within a vector-matrix multiplication system. [Figure 32] 1 illustrates one embodiment of a bit line neural read test. [Figure 33] 1 illustrates one embodiment of a bit line neural measurement test. [Figure 34] 1 illustrates one embodiment of an LSB screen test. [Figure 35] 1 illustrates one embodiment of a bit line sampling screen test. [Figure 36] 10 illustrates another embodiment of a bit line sampling screen test. [Figure 37] 1 illustrates one embodiment of a read window check test. [Figure 38] 1 illustrates one embodiment of a read calibration test. [Figure 39] 1 illustrates one embodiment of a read tilt test. [Figure 40] 1 illustrates one embodiment of a readout neuron qualification test. [Figure 41] 1 illustrates one embodiment of a soft erase test. [Figure 42] 1 illustrates one embodiment of a soft program test. [Figure 43] 1 illustrates one embodiment of a validation test. [Figure 44] 1 illustrates one embodiment of a checkerboard verification test. DETAILED DESCRIPTION OF THE INVENTION

[0069] The artificial neural network of the present invention utilizes a combination of CMOS technology and non-volatile memory arrays. Non-volatile memory cell

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

[0071] The memory cell 210 is erased (electrons are removed from the floating gate) by applying a high positive voltage to the word line terminal 22, which causes electrons in the floating gate 20 to pass via Fowler-Nordheim tunneling from the floating gate 20 to the word line terminal 22 through the insulator between them.

[0072] The memory cell 210 is programmed (electrons are applied to the floating gate) by applying a positive voltage to the word line terminal 22 and a positive voltage to the source region 14. An electron current flows from the source region 14 (source line terminal) towards the drain region 16. The electrons accelerate and heat up 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 through the gate oxide due to electrostatic attraction from the floating gate 20.

[0073] The memory cell 210 is read by applying a positive read voltage to the drain region 16 and 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., erased with electrons), the portion of the channel region 18 below the floating gate 20 is also turned on, and current flows through the channel region 18, which is detected as an erased or "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 mostly or completely off, and no (or very little) current flows through the channel region 18, which is detected as a programmed or "0" state.

[0074] Table 1 shows typical voltage ranges that may be applied to the terminals of memory cell 110 to perform read, erase, and program operations. Table 1: Operation of flash memory cell 210 of FIG. 2 [Table 1] "Read 1" is a read mode in which the cell current is output to the bit line. "Read 2" is a read mode in which the cell current is output to the source line terminal.

[0075] Figure 3 shows a memory cell 310 similar to memory cell 210 of Figure 2, with the addition of a control gate (CG) terminal 28. The control gate terminal 28 is biased at a high voltage (e.g., 10V) during programming, a low or negative voltage (e.g., 0V / -8V) during erasure, and a low or medium voltage (e.g., 0V / 2.5V) during reading. The other terminals are biased similarly to the terminals of Figure 2.

[0076] FIG. 4 shows a four-gate memory cell 410 including a source region 14, a drain region 16, a floating gate 20 above a first portion of a channel region 18, a select gate 22 (typically coupled to a word line, WL) above a second portion of the channel region 18, a control gate 28 above the floating gate 20, and an erase gate 30 above the source region 14. This configuration is described in U.S. Pat. No. 6,747,310, which is incorporated herein by reference for all purposes. Here, all gates, except for the floating gate 20, are non-floating gates, i.e., they are electrically connected or connectable to a voltage source. Programming is performed by heated electrons injecting themselves from the channel region 18 into the floating gate 20. Erasing is performed by electrons tunneling from the floating gate 20 to the erase gate 30.

[0077] Table 2 shows typical voltage ranges that may be applied to the terminals of memory cell 410 to perform read, erase, and program operations. Table 2: Operation of flash memory cell 410 of FIG. 4 [Table 2] "Read 1" is a read mode in which the cell current is output to the bit line. "Read 2" is a read mode in which the cell current is output from the source line terminal.

[0078] 5 shows a memory cell 510 similar to memory cell 410 of FIG. 4, except that memory cell 510 does not include an erase gate (EG) terminal. Erasing is accomplished by biasing substrate 18 to a high voltage and control gate CG terminal 28 to a low or negative voltage. Alternatively, erasure is accomplished by biasing word line terminal 22 to a positive voltage and control gate terminal 28 to a negative voltage. Programming and reading are similar to those of FIG. 4.

[0079] Figure 6 shows another type of flash memory cell, a three-gate memory cell 610. Memory cell 610 is identical to memory cell 410 of Figure 4, except that memory cell 610 does not have a separate control gate terminal. Erase and read operations (erasure occurs through use of the erase gate terminal) are similar to those of Figure 4, except that no control gate bias is applied. Programming operations are also performed without a control gate bias, and as a result, a higher voltage must be applied to the source line terminal during a program operation to compensate for the lack of control gate bias.

[0080] Table 3 shows typical voltage ranges that may be applied to the terminals of memory cell 610 to perform read, erase, and program operations. Table 3: Operation of Flash Memory Cell 610 of FIG. 6 [Table 3] "Read 1" is a read mode in which the cell current is output to the bit line. "Read 2" is a read mode in which the cell current is output from the source line terminal.

[0081] Figure 7 shows another type of flash memory cell, a stacked gate memory cell 710. Memory cell 710 is similar to memory cell 210 of Figure 2, except that the floating gate 20 extends over the entire channel region 18, and a control gate terminal 22 (coupled to a word line) extends above the floating gate 20, separated by an insulating layer (not shown). Erase, programming, and read operations operate in a similar manner to those described above for memory cell 210.

[0082] Table 4 shows typical voltage ranges that may be applied to the terminals of memory cell 710 and substrate 12 to perform read, erase, and program operations. Table 4: Operation of Flash Memory Cell 710 of FIG. 7 [Table 4]

[0083] "Read 1" is a read mode in which the cell current is output to the bit line. "Read 2" is a read mode in which the cell current is output at the source line terminal. Optionally, in an array including rows and columns of memory cells 210, 310, 410, 510, 610, or 710, a source line may be coupled to one row of memory cells or two adjacent rows of memory cells. That is, a source line terminal may be shared by adjacent rows of memory cells.

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

[0085] Specifically, the memory state (i.e., the charge on the floating gate) of each memory cell in the array can be continuously changed from a fully erased state to a fully programmed state, independently and with minimal disturbance to other memory cells. In another embodiment, the memory state (i.e., the charge on the floating gate) of each memory cell in the array can be continuously changed from a fully programmed state to a fully erased state, and vice versa, independently and with minimal disturbance to other memory cells. This means that cell storage is analog, or at a minimum, capable of storing one of a large number of discrete values ​​(such as 16 or 64 different values), making every cell in the memory array highly accurate and individually adjustable, and making the memory array ideal for storing and fine-tuning the synaptic weights of a neural network.

[0086] The methods and means described herein can be applied to other non-volatile memory technologies, such as, but not limited to, SONOS (silicon-oxide-nitride-oxide-silicon, charge traps in nitride), MONOS (metal-oxide-nitride-oxide-silicon, metal charge traps in nitride), ReRAM (resistive random access memory), PCM (phase change memory), MRAM (magnetoresistive random access memory), FeRAM (ferroelectric random access memory), OTP (bi-level or multi-level one-time programmable), and CeRAM (strongly correlated electron memory). The methods and means described herein can be applied to, but not limited to, SRAM, DRAM, and volatile memory technologies used in neural networks, such as volatile synapse cells. Neural networks using nonvolatile memory cell arrays

[0087] 8 conceptually illustrates a non-limiting example of a neural network utilizing the non-volatile memory array of the present embodiments. This example uses the non-volatile memory array neural network for a face recognition application, although other suitable applications can also be implemented using the non-volatile memory array-based neural network.

[0088] 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). Synapse CB1 going from input layer S0 to layer C1 scans the input image with overlapping 3x3 pixel filters (kernels), applying different sets of weights to some instances and shared weights to other instances, and shifts the filters by one pixel (or two or more pixels, depending on the model). Specifically, the values ​​of nine pixels in the 3x3 portion of the image (i.e., called the filter or kernel) are provided to synapse CB1, which multiplies these nine input values ​​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 to generate one pixel of the layer of feature map C1. The 3x3 filter is then shifted one pixel to the right in input layer S0 (i.e., adding a column of three pixels to the right and dropping a column of three pixels on the left), so that the nine pixel values ​​of this newly positioned filter are provided to synapse CB1, where they are multiplied by the same weights as above to determine a second single output value by the associated synapse. This process continues until the 3x3 filter has scanned the entire 32x32 pixel image of input layer S0 for all three colors and all bits (precision values). The process is then repeated using different sets of weights to generate different feature maps for C1 until all of the feature maps for layer C1 have been calculated.

[0089] In this example, there are 16 feature maps in layer C1, each having 30x30 pixels. Each pixel is a new feature pixel extracted from the multiplication of the input and the kernel, and therefore each feature map is a two-dimensional array. Thus, in this example, layer C1 comprises 16 layers of two-dimensional arrays. (Note that the layers and arrays referred to herein are logical, not necessarily physical, relationships; i.e., the arrays are not necessarily oriented in a physical two-dimensional array.) Each of the 16 feature maps in layer C1 is generated by one of 16 different sets of synaptic weights applied to the filter scans. The C1 feature maps can all target different aspects of the same image feature, such as boundary identification. For example, a first map (generated using a first set of weights shared by all scans used to generate this first map) can identify circular edges, while 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 a particular feature, etc.

[0090] Before going from layer C1 to layer S1, an activation function P1 (pooling) is applied, which pools values ​​from non-overlapping, contiguous 2x2 regions within each feature map. The purpose of the pooling function is to average nearby locations (or use a max function), e.g., to reduce dependency on edge locations, and to reduce data size before going to the next stage. In layer S1, there are 16 15x15 feature maps (i.e., 16 different arrays of 15x15 pixels each). Synapse CB2 going from layer S1 to layer C2 scans the maps in S1 with a 4x4 filter with a filter shift of 1 pixel. In layer C2, there are 22 12x12 feature maps. Before going from layer C2 to layer S2, an activation function P2 (pooling) is applied, which pools values ​​from non-overlapping, contiguous 2x2 regions within each feature map. In layer S2, there are 22 6x6 feature maps. At synapse CB3 going from layer S2 to layer C3, an activation function (pooling) is applied, where every neuron in layer C3 connects to every map in layer S2 through a respective synapse in CB3. There are 64 neurons in layer C3. Synapse CB4 going from layer C3 to output layer S3 fully connects C3 to S3, i.e., every neuron in layer C3 connects to every neuron in layer S3. The output at S3 contains 10 neurons, where the neuron with the highest output determines the class. This output can indicate, for example, the identification or classification of the content of the original image.

[0091] Each layer of synapses is implemented using an array or part of an array of non-volatile memory cells.

[0092] Figure 9 is a block diagram of a system that can be used for this purpose. A vector-matrix multiplication (VMM) system 32 contains nonvolatile memory cells and is utilized as a synapse between one layer and the next (such as CB1, CB2, CB3, and CB4 in Figure 6). Specifically, the VMM system 32 includes a VMM array 33 containing nonvolatile memory cells arranged in rows and columns, 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 respective inputs to the nonvolatile memory cell array 33. Input to the VMM array 33 can come from the erase gate and word line gate decoder 34 or from the control gate decoder 35. The source line decoder 37 in this example also decodes the output of the VMM array 33. Alternatively, the bit line decoder 36 can decode the output of the VMM array 33.

[0093] The VMM array 33 serves two purposes. First, it stores the weights used by the VMM system 32. Second, the VMM array 33 effectively multiplies the inputs by the weights stored in the VMM array 33 and sums them for each output line (source line or bit line) to produce an output, which becomes the input to the next layer or the input to the last layer. By performing multiplication and addition functions, the VMM array 33 eliminates the need for separate multiplication and addition logic and is also power efficient due to in-place memory computation.

[0094] The outputs of the VMM array 33 are fed to a differential summer (such as a summing op-amp or summing current mirror) 38, which sums the outputs of the VMM array 33 to create a single value for the convolution. The differential summer 38 is arranged to perform a summation of both the positive and negative weight inputs to output a single value.

[0095] The summed output values ​​of the differential summer 38 are then provided to an activation function circuit 39, which rectifies the output. The activation function circuit 39 may provide a sigmoid function, a tanh function, a ReLU function, or any other nonlinear function. The rectified output values ​​of the activation function circuit 39 become elements of the feature map of the next layer (e.g., C1 in FIG. 8) and are then applied to the next synapse to generate the next feature map layer or the final layer. Thus, in this example, the VMM array 33 comprises multiple synapses (receiving input from a previous layer of neurons or from an input layer such as an image database), and the summers 38 and activation function circuit 39 comprise multiple neurons.

[0096] The inputs to the VMM system 32 of FIG. 9 (WLx, EGx, CGx, and optionally BLx and SLx) may be analog levels, binary levels, digital pulses (in which case a pulse-to-analog converter PAC may be required to convert the pulses to appropriate input analog levels), or digital bits (in which case a DAC is provided to convert the digital bits to appropriate input analog levels), and the outputs may be analog levels, binary levels, digital pulses, or digital bits (in which case an output ADC is provided to convert the output analog levels to digital bits).

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

[0098] The output generated by input VMM system 32a is then provided as input to the next VMM system (hidden level 1) 32b, which then generates an output that is provided as input to input VMM system (hidden level 2) 32c, and so on. The various layers of VMM system 32 function as layers of synapses and neurons of a convolutional neural network (CNN). VMM systems 32a, 32b, 32c, 32d, and 32e can each be a standalone physical system that includes a corresponding non-volatile memory array, or multiple VMM systems can utilize different portions of the same physical non-volatile memory array, or multiple VMM systems can utilize overlapping portions of the same physical non-volatile memory array. Each VMM system 32a, 32b, 32c, 32d, and 32e can also be time-multiplexed to various portions of its array or neurons. The example shown in Figure 10 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 skilled in the art will appreciate that this is merely an example and that the system may alternatively include more than two hidden layers and more than two fully connected layers. VMM Array

[0099] 11 shows a neuron VMM array 1100 that is particularly suited for memory cells 310 shown in FIG. 3 and is utilized as part of the synapses and neurons between the input layer and the next layer. VMM array 1100 includes a memory array 1101 of non-volatile memory cells and a reference array 1102 of non-volatile reference memory cells (located at the top of the array). Alternatively, a separate reference array can be located at the bottom.

[0100] In VMM array 1100, control gate lines, such as control gate line 1103, run vertically (thus row-oriented reference array 1102 is orthogonal to control gate line 1103), and erase gate lines, such as erase gate line 1104, run horizontally. Here, inputs to VMM array 1100 are provided to control gate lines (CG0, CG1, CG2, CG3), and outputs of VMM array 1100 appear on source lines (SL0, SL1). In one embodiment, only even rows are used, and in another embodiment, only odd rows are used. The current applied to each source line (SL0, SL1, respectively) performs a function of the sum of all currents from memory cells connected to that particular source line.

[0101] As described herein for neural networks, the non-volatile memory cells of VMM array 1100, ie, the flash memory of VMM array 1100, are preferably configured to operate in the sub-threshold region.

[0102] The nonvolatile reference memory cells and nonvolatile memory cells described herein are biased at weak inversion as follows: Ids=Io * e (Vg-Vth) / nVt =w * Io * e (Vg) / nVt In the formula, w=e (-Vth) / nVt and where Ids is the drain-source current, Vg is the gate voltage of the memory cell, Vth is the threshold voltage of the memory cell, and Vt is the thermal voltage = k * T / q, k is Boltzmann's constant, T is temperature in Kelvin, q is the electron charge, n is the slope coefficient = 1 + (Cdep / Cox), where Cdep = capacitance of the depletion layer and Cox is 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 2where u is the carrier mobility, Wt and L are the width and length of the memory cell.

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

[0104] When using an IV log converter that converts the input current Ids to an input voltage Vg using a memory cell (such as a reference memory cell or a peripheral memory cell) or transistor: Vg=n * Vt * log[Ids / wp * Io]

[0105] where wp is the w of the reference or peripheral memory cell.

[0106] For a memory array used as a vector matrix multiplier VMM array, the output current is: Iout=wa * Io * e (Vg) / nVt , i.e. Iout=(wa / wp) * Iin=W * Iin W=e (Vthp-Vtha) / nVt Iin=wp * Io * e (Vg) / nVt where wa is the w of each memory cell in the memory array.

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

[0108] Alternatively, the non-volatile memory cells of the VMM arrays described herein can be configured to operate in the linear region. Ids=β * (Vgs-Vth) * Vds;β=u * Cox * Wt / L Wα(Vgs-Vth) That is, the weight W in the linear region is proportional to (Vgs - Vth)

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

[0110] For the IV linear converter, memory cells (such as reference or peripheral memory cells) or transistors operating in the linear region, or resistors can be used to linearly convert input and output currents to input and output voltages.

[0111] Alternatively, the memory cells of the VMM arrays described herein can be configured to operate in the saturation region. Ids=1 / 2 * β * (Vgs-Vth) 2 ;β=u * Cox * Wt / L Wα(Vgs-Vth) 2 , that is, the weight W is (Vgs-Vth) 2 is proportional to

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

[0113] Alternatively, the memory cells of the VMM arrays described herein can be used in all regions or a combination thereof (subthreshold, linear, or saturation).

[0114] Other embodiments for the VMM array 33 of Figure 9 are described in U.S. patent application Ser. No. 15 / 826,345, which is incorporated herein by reference. As described in that application, the source lines or bit lines can be used as neuron outputs (current sum outputs).

[0115] FIG. 12 shows a neuron VMM array 1200 particularly suited for the memory cells 210 shown in FIG. 2 and utilized as synapses 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 first nonvolatile reference memory cells, and a reference array 1202 of second nonvolatile reference memory cells. The reference arrays 1201 and 1202, arranged in columns 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 nonvolatile reference memory cells are diode-connected through multiplexer 1214 (only a portion of which is shown) with current inputs flowing into them. The reference cells are adjusted (e.g., programmed) to target reference levels, which are provided by a reference mini-array matrix (not shown).

[0116] Memory array 1203 serves two purposes. First, it stores weights used by VMM array 1200 in each memory cell. Second, memory array 1203 effectively multiplies the inputs (i.e., current inputs provided to terminals BLR0, BLR1, BLR2, and BLR3, which reference arrays 1201 and 1202 convert to input voltages and provide to word lines WL0, WL1, WL2, and WL3) by the weights stored in memory array 1203, and then adds all the results (memory cell currents) to generate outputs for each bit line (BL0-BLN), which serve as inputs to the next layer or the last layer. Having memory array 1203 perform the multiplication and addition functions eliminates the need for separate multiplication and addition logic and is also power efficient. Here, voltage inputs are provided to word lines WL0, WL1, WL2, and WL3, and outputs appear on bit lines BL0-BLN, respectively, during read (inference) operations. The current placed on each bit line BL0-BLN performs a function of the sum of the currents from all non-volatile memory cells connected to that particular bit line.

[0117] Table 5 shows the operating voltages for VMM array 1200. The columns in the table indicate the voltages applied to the word line of the selected cell, the word lines of the unselected cells, the bit lines of the selected cell, the bit lines of the unselected cells, the source lines of the selected cell, and the source lines of the unselected cells, and FLT indicates floating, i.e., no voltage is applied. The rows indicate read, erase, and program operations. Table 5: Operation of VMM Array 1200 in Figure 12 [Table 5]

[0118] FIG. 13 illustrates a neuron VMM array 1300 that is particularly suited for the memory cells 210 shown in FIG. 2 and that is utilized as part of the synapses and 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 first nonvolatile reference memory cells, and a reference array 1302 of second nonvolatile reference memory cells. The reference arrays 1301 and 1302 extend in the row direction of the VMM array 1300. The VMM array is similar to the VMM 1000, except that word lines extend vertically in the VMM array 1300. 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 a read operation. The current applied to each source line performs a function of the sum of all currents from the memory cells connected to that particular source line.

[0119] Table 6 shows the operating voltages for VMM array 1300. The columns in the table indicate the voltages applied to the word line of the selected cell, the word lines of the unselected cells, the bit lines of the selected cell, the bit lines of the unselected cells, the source lines of the selected cell, and the source lines of the unselected cells. The rows indicate read, erase, and program operations. Table 6: Operation of VMM Array 1300 in Figure 13 [Table 6]

[0120] 14 illustrates a neuron VMM array 1400 that is particularly suited for memory cells 310 shown in FIG. 3 and that is utilized as part of synapses and neurons between an input layer and the next layer. VMM array 1400 includes a memory array 1403 of nonvolatile memory cells, a reference array 1401 of first nonvolatile reference memory cells, and a reference array 1402 of second nonvolatile reference memory cells. Reference arrays 1401 and 1402 function to convert current inputs flowing into terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs CG0, CG1, CG2, and CG3. In effect, the first and second nonvolatile reference memory cells are diode-connected through multiplexer 1412 (only a portion of which is shown), with the current inputs flowing through BLR0, BLR1, BLR2, and BLR3. The multiplexers 1412 each include a respective multiplexer 1405 and cascoding transistor 1404 to ensure a constant voltage on each bit line (e.g., BLR0) of the first and second non-volatile reference memory cells during a read operation, where the reference cells are adjusted to a target reference level.

[0121] Memory array 1403 serves two purposes: First, it stores the weights used by VMM array 1400. Second, memory array 1403 effectively multiplies its inputs (current inputs provided to terminals BLR0, BLR1, BLR2, and BLR3) with weights stored in the memory cell array, and reference arrays 1401 and 1402 convert these current inputs to input voltages that are supplied to control gates (CG0, CG1, CG2, and CG3), and then adds all the results (cell currents) to produce an output that appears on BL0-BLN and is the input to the next layer or the last layer. Having the memory array perform the multiplication and addition functions eliminates the need for separate multiplication and addition logic and is also power efficient. Here, inputs are provided to control gate lines (CG0, CG1, CG2, and CG3), and outputs appear on bit lines (BL0-BLN) during a read operation. The current applied to each bit line performs a function of the sum of all the currents from the memory cells connected to that particular bit line.

[0122] The VMM array 1400 performs one-way tuning of the non-volatile memory cells in the memory array 1403. That is, each non-volatile memory cell is erased and then partially programmed until the desired charge on the floating gate is reached. This can be done, for example, using the precision programming techniques described below. If too much charge is added to the floating gate (e.g., an incorrect value is stored in the cell), the cell must be erased and the series of partial programming operations must be redone. As shown, two rows that share the same erase gate (e.g., EG0 or EG1) must be erased together (known as a page erase), and then each cell is partially programmed until the desired charge on the floating gate is reached.

[0123] Table 7 shows the operating voltages for VMM array 1400. The columns in the table indicate the voltages applied to the word line of the selected cell, the word lines of the unselected cells, the bit line of the selected cell, the bit lines of the unselected cells, the control gate of the selected cell, the control gates of the unselected cells in the same sector as the selected cell, the control gates of the unselected cells in a different sector from the selected cell, the erase gate of the selected cell, the erase gates of the unselected cells, the source line of the selected cell, and the source lines of the unselected cells. The rows indicate read, erase, and program operations. Table 7: Operation of the VMM Array 1400 in Figure 14 [Table 7]

[0124] FIG. 15 illustrates a neuron VMM array 1500 that is particularly suited for memory cells 310 shown in FIG. 3 and that is utilized as part of synapses and neurons between an input layer and the next layer. VMM array 1500 includes a memory array 1503 of nonvolatile memory cells, a reference array 1501 or first nonvolatile reference memory cells, and a reference array 1502 of second nonvolatile reference memory cells. EG lines EGR0, EG0, EG1, and EGR1 extend vertically, while CG lines CG0, CG1, CG2, and CG3 and SL lines WL0, WL1, WL2, and WL3 extend horizontally. VMM array 1500 is similar to VMM array 1400, except that VMM array 1500 implements bidirectional tuning: each individual cell can be fully erased, partially programmed, and, if necessary, partially erased to reach a desired amount of charge on its floating gate through the use of separate EG lines. As shown, reference arrays 1501 and 1502 convert input currents in 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 1514), which are applied to the memory cells in the row direction. The current outputs (neurons) are in bit lines BL0 through BLN, each bit line summing all the currents from the non-volatile memory cells connected to that particular bit line.

[0125] Table 8 shows the operating voltages for VMM array 1500. The columns in the table indicate the voltages applied to the word line of the selected cell, the word lines of the unselected cells, the bit line of the selected cell, the bit lines of the unselected cells, the control gate of the selected cell, the control gates of the unselected cells in the same sector as the selected cell, the control gates of the unselected cells in a different sector from the selected cell, the erase gate of the selected cell, the erase gates of the unselected cells, the source line of the selected cell, and the source lines of the unselected cells. The rows indicate read, erase, and program operations. Table 8: Operation of VMM Array 1500 in Figure 15 [Table 8]

[0126] 16 shows a neuron VMM array 1600 that is particularly suited to the memory cells 210 shown in FIG. 2 and is used as part of the synapses and neurons between the input layer and the next layer. In the VMM array 1600, inputs INPUT0, ..., INPUT N are the bit lines BL0, ..., BL N and outputs OUTPUT1, OUTPUT2, OUTPUT3, and OUTPUT4 are generated on source lines SL0, SL1, SL2, and SL3, respectively.

[0127] 17 illustrates a neuron VMM array 1700 that is particularly suited for memory cells 210 shown in FIG. 2 and that is utilized as part of the synapses and neurons between an input layer and the next layer. In this example, inputs INPUT0, INPUT1, INPUT2, and INPUT3 are received on source lines SL0, SL1, SL2, and SL3, respectively, and outputs OUTPUT0, ..., OUTPUT N are the bit lines BL0, ..., BL N is generated.

[0128] 18 shows a neuron VMM array 1800 that is particularly suited for memory cells 210 shown in FIG. 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 are the word lines WL0, ..., WL M OUTPUT0, ..., OUTPUT N are the bit lines BL0, ..., BL N is generated.

[0129] 19 shows a neuron VMM array 1900 that is particularly suited for memory cells 310 shown in FIG. 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 are the word lines WL0, ..., WL M OUTPUT0, ..., OUTPUT N are the bit lines BL0, ..., BL Nis generated.

[0130] 20 shows a neuron VMM array 2000 that is particularly suited for the memory cells 410 shown in FIG. 4 and is used as part of the synapses and neurons between the input layer and the next layer. In this example, the input INPUT 0、 ..., INPUT n are the vertical control gate lines CG0, ..., CG N and outputs OUTPUT1 and OUTPUT2 are generated on source lines SL0 and SL1.

[0131] 21 shows a neuron VMM array 2100 that is particularly suited for memory cells 410 shown in FIG. 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 are the bit lines BL0, ..., BL N , 2901-(N-1) and 2901-N, which are coupled to the source lines SL0 and SL1, respectively. Exemplary outputs OUTPUT1 and OUTPUT2 are generated on source lines SL0 and SL1.

[0132] 22 shows a neuron VMM array 2200 that is particularly suitable for memory cells 310 shown in FIG. 3, memory cells 510 shown in FIG. 5, and memory cells 710 shown in FIG. 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 are the word lines WL0, ..., WL M Received and output OUTPUT0, ..., OUTPUT N are the bit lines BL0, ..., BL N are generated respectively.

[0133] 23 shows a neuron VMM array 2300 that is particularly suitable for memory cells 310 shown in FIG. 3, memory cells 510 shown in FIG. 5, and memory cells 710 shown in FIG. 7, 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 are the control gate lines CG0, ..., CG M Received at OUTPUT0, ..., OUTPUT N are the vertical source lines SL0, ..., SL N and each source line SL i is coupled to the source lines of all memory cells in column i.

[0134] 24 shows a neuron VMM array 2400 that is particularly suitable for memory cells 310 shown in FIG. 3, memory cells 510 shown in FIG. 5, and memory cells 710 shown in FIG. 7, 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 are the control gate lines CG0, ..., CG M Received at OUTPUT0, ..., OUTPUT N are the vertical bit lines BL0, ..., BL N and each bit line BL i is coupled to the bit lines of all memory cells in column i. Test circuit and method

[0135] 25 shows a VMM system 2500. VMM system 2500 includes a VMM array 2501 (which may be based on any of the aforementioned VMM array designs, such as VMM arrays 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, and 2400, or other VMM array designs), a low-voltage row decoder 2502, a high-voltage row decoder 2503, a column decoder 2504, a column driver 2505, control logic 2506, bias circuits 2507, an output circuit block 2508, an input VMM circuit block 2509, an algorithm controller 2510, a high-voltage generator block 2511, an analog circuit block 2515, control logic 2516, and test control logic 2517.

[0136] The input circuit block 2509 functions as an interface from an external input to the input terminals of the memory array 2501. The input circuit block 2509 may include, without limitation, a DAC (digital-to-analog converter), a DPC (digital-to-pulse converter), an APC (analog-to-pulse converter), an IVC (current-to-voltage converter), an AAC (analog-to-analog converter such as a voltage-to-voltage scaler), or an FAC (frequency-to-analog converter). The output circuit block 2508 functions as an interface from the memory array output to an external interface (not shown). The output circuit block 2508 may include, without limitation, an ADC (analog-to-digital converter), an APC (analog-to-pulse converter), a DPC (digital-to-pulse converter), an IVC (current-to-voltage converter), or an IFC (current-to-frequency converter). The output circuit block 2508 may include, without limitation, an activation function, a normalization circuit, and / or a rescaling circuit.

[0137] The low voltage row decoder 2502 provides bias voltages for read and program operations and provides decode signals to the high voltage row decoder 2503. The high voltage row decoder 2503 provides high voltage bias signals for program and erase operations.

[0138] Algorithm controller 2510 provides control of the bit lines during program, verify, and erase operations.

[0139] The high voltage generator block 2511 includes a charge pump 2512, a charge pump regulator 2513, and a high voltage generation circuit 2514 that provide the voltages required for various program, erase, program verify, and read operations.

[0140] Test control logic 2517 includes various test control circuits for performing the tests described below with reference to FIGS.

[0141] 26 shows a reference current source 2600 for use during a verify operation after a program operation of one or more non-volatile memory cells, or for use during other types of testing. For example, reference current source 2600 may be used for a verify operation of a single non-volatile memory cell, or for a verify operation on a column of non-volatile memory cells (e.g., all cells connected to a particular bit line) or some other grouping of non-volatile memory cells.

[0142] The reference current source 2600 is connected to a buffer mirror 2601 (output I REF 2607), an adjustable bias source 2604, and a two-dimensional array 2605 including an array of i rows and j columns of devices 2606, where a particular device 2606 is represented by the label 2606-(row)(column). Here, the reference current I output by the buffer mirror 2601 is REFVarious combinations of devices 2606 can be activated so that the amount of current I 2607 can be adjusted. As shown, there are 16 devices 2606 in array 2605, each of which may be implemented by a current mirror. Reference current source 2600 essentially converts four digital inputs into a reference current bias with a value between 1 and 16 times Ibiasunit, which is provided by bias source 2604. Reference current source 2600 is essentially a thermometer-coded digital-to-current converter, and its buffered output I REF 2607 is a value that corresponds to one of 16 levels (a particular level responsive to four digital inputs) that can be stored by a memory cell in any of the aforementioned VMM arrays.

[0143] For example, bias source 2604 may provide a 1 nA current, Ibiasunit, that is mirrored to device 2606. Here, a first row consists of devices 2606-11 through 2606-1j, with devices 2606 sequentially enabled one at a time from left to right. The next row may then be enabled sequentially from left to right, adding to the first row, meaning five, then six, then seven, then eight devices 2606 are enabled. By sequentially enabling devices 2606, transistor mismatch issues associated with conventional binary decoding may be avoided. The sum of the enabled devices 2606 is then mirrored by buffer mirror 2601, providing a current, I REF 2607. Bias source 2604 can provide a current Ibiasunit in a trimmable range, such as 50 pA / 100 pA / 200 pA / ... / 100 nA. While array 2605 is shown here as a 4x4 array, it should be understood that array 2605 can have other dimensions, such as 32x32 or 8x32.

[0144] Figure 27 shows a reference branch circuit 2700 that can be used in any of devices 2606 of Figure 26. Reference branch circuit 2700 includes NMOS transistors 2701 and 2702 configured as shown. Transistor 2702 is a current mirror bias transistor that receives a current Ibiasunit (described above with reference to Figure 26) at its gate, and transistor 2701 is an enable transistor (allowing current mirror bias transistor 2702 to be connected to output node OUTPUT). The current Ibiasunit may be provided (not shown) from a diode-connected NMOS transistor (similar to transistor 2702), or the like.

[0145] 28 shows a sense amplifier 2800 that may be used in conjunction with reference current source 2600 during a verify operation after a programming operation of a non-volatile memory cell, a column of non-volatile memory cells, or some other grouping of non-volatile memory cells, or during another type of testing. Sense amplifier 2800 may be configured to generate a reference current I REF Receive 2607. I REF 2607 is VI REF 2814. Sense amplifier 2800 further includes inverter 2801, current source 2802 used to limit the current in inverter 2801, switches 2803 and 2806, capacitor 2804, and cascoding NMOS transistor 2805 (which imposes a fixed voltage on the memory bit line). Sense amplifier 2800 receives current I from reference current source 2600. REF 2607, which may be, for example, one of 16 possible levels stored in a non-volatile memory cell of the VMM array. Sense amplifier 2800 is coupled to cell 2808, which is the non-volatile memory cell whose contents are to be verified. Cell 2808 receives a current I when NMOS transistor 2805 is turned on. CELL Alternatively, cell 2808 can be replaced by column 2809 (still shown as I for ease of illustration). CELL, which is the neuronal current elicited by column 2809).

[0146] In one embodiment, I REF 2607 starts from the lowest possible value (e.g., the lowest of 16 possible levels that may be stored in cell 2808 or in column 2809) and then sequentially increases to each subsequent level for the verify operation. Switch 2806 may be closed to create an initial state for capacitor 2804 (such as ground or a precharge voltage that provides offset cancellation). Switch 2803 may be closed to equalize the input and output of inverter 2801, which removes the offset from inverter 2801 for comparison in the verify operation. During the verify operation, switches 2806 and 2803 are open. CELL >=I REF In the case of 2607, the voltage at node 2810 decreases, which in turn capacitively couples through capacitor 2804 and decreases the voltage at node 2811, causing the inverter output to switch to "1", i.e., the input of inverter 2801 goes to a value of "0" and the output of inverter 2801 goes to a value of "1". CELL REF In the case of 2607, the voltage at node 2810 rises, which in turn capacitively couples through capacitor 2804, causing the voltage at node 2811 to rise, resulting in the inverter output switching to "0", i.e., the input of inverter 2801 switches to a value of "1" and the output of inverter 2801 switches to a value of "0". REF The value of 2807 corresponds to the value stored in cell 2808 .

[0147] FIG. 29A shows a verify slope analog-to-digital converter (ADC) 2900 used in conjunction with a reference current source 2600 during a verify operation of a non-volatile memory cell 2930 or column 2931 after a program pulse operation, such as verifying whether the memory cell reaches a target current during a weight adjustment process, or verifying tailed memory bits (e.g., abnormal bits) that fail to meet cell current requirements in a memory array during another type of test.​CELL 2906 is the output current from cell 2930 or column 2931. The verification ADC 2900 measures I CELL 2906 is converted into a series of digital output bits that are output as output 2940 , which indicates the value stored in cell 2930 or column 2931 .

[0148] Verification ADC 2900 includes operational amplifier 2901, adjustable capacitor 2902, operational amplifier 2904, counter 2920, and switches 2908, 2909, and 2910. Adjustable capacitor 2902 is connected to a current I provided by adjustable current source 2807. REF In contrast to I CELL 2906. During the initialization phase, switch 2908 is closed. Then, Vout 2903 of operational amplifier 2901 and the input to the inverting input of operational amplifier 2901 are equal to the value of the reference voltage VREF applied to the non-inverting input of operational amplifier 2901. Then, switch 2908 is opened and for a fixed period tref, switch 2910 is closed, and the neuron current I CELL 2906 is integrated upward. For a fixed period tref, Vout 2903 rises and its slope is I CELL 2906. Thereafter, for a period tmeas, a constant reference current I provided by adjustable current source 2807 is applied. REF is integrated downwards, during which time Vout falls by opening switch 2910 and closing switch 2909, and tmeas is the time required to integrate Vout downwards to VREF.

[0149] The output of op-amp 2904, EC2905, is high when VOUT2903>VREF and low otherwise. EC2905 therefore generates a pulse whose width reflects the period tmeas, which in turn reflects the current I CELL Proportional to 2906.

[0150] Optionally, output EC2905 is input to a counter 2920, which counts the number of clock pulses 2921 received while output EC2905 is high to generate output 2940, which is a set of digital bits representing a digital count of the number of clock pulses 2921 that occurred while EC2905 was high, which number of clock pulses is I CELL 2906, which corresponds to the value stored in cell 2930 or column 2931.

[0151] FIG. 29B shows a verify ramp analog-to-digital converter 2950, ​​which includes a current source 2953 (representing the received neuron current Ineu or a single memory cell current), a switch 2954, a variable capacitor 2952, and a comparator 2951. The comparator receives the voltage developed across the variable capacitor 2952, labeled Vneu, at its non-inverting input and a configurable reference voltage Vreframp at its inverting input, and generates an output Cout. Circuitry for removing the voltage across the variable capacitor 2952 is not shown. Vreframp is ramped up (increased in steps) by discrete levels every comparison clock cycle. Comparator 2951 compares Vneu with Vreframp, resulting in an output Cout that is "1" if Vneu > Vreframp and "0" otherwise. Thus, the output Cout is a pulse whose width varies in response to the value of Ineu. The larger Ineu, the longer the period Cout is "1"; i.e., the wider the pulse width of the output Cout. A digital counter 2960 converts the output Cout into digital output bits DO[n:0] 2970, which reflect the number of clock cycles 2961 during which Cout was "1". Alternatively, the ramp voltage Vreframp is a continuous ramp voltage. A multiple ramp embodiment can be implemented to reduce conversion time by utilizing a coarse-fine ramp conversion algorithm. A first coarse reference ramp reference voltage is ramped quickly to determine each subrange of Ineu. Then, each fine reference ramp reference voltage for each subrange is used to convert the Ineu current within the corresponding subrange. More than one coarse / fine step or two subranges are possible.

[0152] Other ADC architectures may be used as the validation ADC, such as, without limitation, a flash ADC, a SAR (successive approximation register) ADC, an algorithmic ADC, a pipelined ADC, a sigma-delta ADC, and the like.

[0153] 30 illustrates an embodiment of the high voltage generation circuit 2511 described above with reference to FIG. 25. The high voltage generation circuit 2511 can be used with any of the VMM arrays described above. The high voltage generation circuit 2511 includes a charge pump 2512 and a high voltage generation circuit 2514. The charge pump 2512 receives an input 3004 and generates a high voltage 3005, which is then provided to high voltage generators 3002 and 3003. The high voltage (HV) generator (HVDAC_EG) 3002 generates a V, such as an incremental voltage, suitable for application to the erase gate terminal of a split-gate flash memory cell. EG 3008 in response to the digital bit 3006 and the received high voltage 3005. The high voltage generator (HVDAC CGSL) 3003 generates a voltage V, such as an incremental voltage, suitable for application to the control gate and source line terminals of a split gate flash memory cell. CG 3009 and V SL 3010 in response to the digital bit 3007 and the received high voltage 3005.

[0154] FIG. 31 illustrates a VMM system 2500, previously described with reference to FIG. 25, but now shown in a test configuration. Test control logic 2517 provides control signals to other components of the VMM system 2500 (shown in FIG. 25 but not in FIG. 31), such as a VMM array 2501, row decoder 2502, column decoder 2504, input block 2509, high voltage decoder 2503, column driver 2505, high voltage generation block 2511, analog block 2515, algorithm controller 2510, and output circuit block 2508, to implement one or more test algorithms 3100. VMM array 2501 receives control signals from row decoder 2502, which causes one or more rows to be asserted within VMM array 2501. VMM array 2501 provides signals from one or more bit lines to column decoder 2504, which then provides outputs from one or more bit lines to output circuit block 2508. The output circuit block 2508 may include an analog-to-digital converter block (such as the verification ADC 2900 described above with reference to FIG. 29A or the verification ramp ADC 2950 described above with reference to FIG. 29B) that provides a digital output representing the analog current received by the output circuit block 2508 from the VMM array 2501.

[0155] Table 9 includes example values ​​applied to word lines, control gate lines, erase gate lines, source gate lines, and bit lines in VMM array 2501 during program, erase, read, and verify operations performed on individual memory cells, neuron verify and neuron read operations performed on selected bit lines coupled to columns of memory cells, and array read operations in which all bit lines are read, each bit line being coupled to a column of memory cells. Table 9: Example Values ​​for Operations within the VMM Array 2501 [Table 9]

[0156] Further details regarding the types of tests that may be performed are now provided with reference to test algorithms 3100 shown in Figure 31 and described in further detail in Figures 32-44. These test algorithms are implemented by test control logic 2517 and other components of VMM system 2500.

[0157] Referring to Figure 32, bitline neural read test 3101 measures the values ​​of all memory cells simultaneously coupled to a bitline. That is, bitline neural read test 3101 reads neurons in a VMM array. First, row decoder 2502 asserts all wordlines in the array (step 3201). Second, a bitline is selected (asserted) by column decoder 2504 (step 3202). Third, a read is performed on that bitline (step 3203), such as by sense amplifier 2800, which senses the current received from the bitline. Fourth, the value of the selected bitline can be determined by comparing it to a reference current generated by reference current source 2600 to determine whether the non-volatile memory cells, i.e., neurons, coupled to the selected bitline contain the desired value (step 3204).

[0158] Referring to Figure 33, bit line neural measurement test 3102 is similar to bit line neural read test 3101. Row decoder 2502 asserts all word lines (step 3301). A bit line is selected by column decoder 2504 (step 3302). The current drawn by that bit line during a read operation is measured (step 3303). Unlike bit line neural read test 3101, the current from the selected bit line is measured without comparison to a reference current.

[0159] Referring to FIG. 34, during the LSB screen test 3103, the row decoder 2502 asserts all word lines (step 3401), and the column decoder 2504 asserts all bit lines (step 3402). Deep programming is performed on all memory cells in the VMM array 2501 (step 3403). Deep programming programs all memory cells beyond the normal program state used for speculative reads. This is done with longer program timings or higher program voltages than those normally used in operation. The total current received from all bit lines is then measured (step 3404). The expectation is that the total current in a deep programmed array will be much less than the LSB value. Additionally, each individual cell is checked to ensure that the current from that cell is also less than the LSB value, such as 50-100 pA. This type of testing is suitable for testing during the manufacturing process to quickly identify defective die.

[0160] 35, during a bit line sampling screen test 3104, a memory cell or set of memory cells is programmed to a particular level, e.g., Lx, where x ranges from 1 to N and N is the total number of levels that can be stored in the cell (e.g., N=16) (step 3501). Then, the bit line current (meaning the current drawn by a cell or set of cells in a selected bit line, I BL ) is measured K times (step 3502). For example, if K=8, the bit line current is measured 8 times. The average value (I AVG ) is the K measured values ​​of step 3502 (i.e., I BL1... I BLK ) (step 3503).

[0161] Next, for each of the K current measurements, I BL1 ...I BLK But, I AVG (step 3504). BLi (i is in the range of i to K)>(I AVG+ Threshold 3505) or I BLi <(I AVG - -threshold 3506), the bit line is considered to be bad. Each cell on the bad bit line is then checked, and the bad cells are replaced with redundant cells (such as cells from a redundant row or column).

[0162] Another embodiment of the bit line sampling screen test 3104 is shown in Figure 36. By forcing a current Iref onto the bit line at K different times, the voltage V CG is measured (step 3601). For example, the voltage V CG can be swept until the bit line current matches a fixed Iref, and that particular V CG may be measured and stored. A fixed Iref may be provided by a reference current source 2600, and the operation of verifying whether the bit line current matches the fixed Iref may be performed by a sense amplifier 2800. The average value V AVG But there are K different V CG Then, the K measured V CG Each of the voltages is V AVG (step 3603). CGi (i is in the range of i to K)>(V AVG + Threshold 3604) or V CGi <(V AVG -threshold 3605), the bit line is considered to be bad. Then each cell on the bad bit line is checked and the bad cells are replaced with redundant cells (redundant rows or redundant columns).

[0163] During the read tripoint test 3105, coarse and fine read reference current trimming is performed using different levels of Iref during a read operation. The purpose of the read trip point test 3105 is to determine if a selected memory cell can exceed a predetermined current percentage target, such as ∼40% of a fully erased cell for an erased cell, or ∼5% of a fully programmed cell for a programmed cell. This is to ensure that the memory cell is within the main distribution and is not a tailed memory cell or tailed bit (i.e., a statistical outlier), for example, as tailed memory cells or tailed bits can cause potential reliability issues over the operational lifetime.

[0164] Referring to FIG. 37, during read window check test 3107, a cell is tested to ensure that it can store each of N possible levels. First, the cell is programmed to a target value representing one of the N values ​​(step 3701). Next, a verify operation is performed to determine whether the value stored in the cell is within a window of acceptable values ​​3710 centered around the target value (step 3702). Steps 3701 and 3702 are repeated for each of the N values ​​(step 3703). The acceptable window 3710 may be different for each of the N values. If any instance of step 3702 being performed indicates that the value stored in the cell is outside the window of acceptable values ​​centered around the target value, the cell is identified as bad. Read window check test 3107 may be performed by sense amplifier 2800, ADC 2900, ADC 2950, ​​or another component. This may be useful for performing weight adjustments for memory cells. While the above has been described in an embodiment where a fixed window is used for each of the N values ​​centered around a nominal value, it will be appreciated that in other embodiments, upper and lower thresholds are utilized for each of the N values, and that these thresholds need not be the same for all N values, as long as the range is not exceeded.

[0165] Referring to FIG. 38, during a read calibration test 3108, leakage is measured for a cell or group of cells, such as cells coupled to a bit line (step 3801), and the measured leakage (I LEAKAGE) is stored (step 3802), and the measured leakage value is later used during a read operation to compensate for leakage across various process / voltage / temperature (PVT) combinations (step 3803). In one embodiment, multiple cells are each programmed with a known value. The word lines and control gate lines are set to ground, and the bit lines are set to a read bias voltage. A series of different reference currents are injected into the array, and the resulting data readout is read by a sense amplifier, such as ADC circuit 2900 or 2950 or sense amplifier 2800. The injected current that gives the best results (compared to the known values ​​programmed into the cells) is I LEAKAGE Then, I LEAKAGE is applied during a read operation of the selected cell to compensate for leakage occurring within the same cell, such as by subtracting the stored leakage level from the converted data during the read operation.

[0166] 39, during read ramp test 3109, IV slope factors are determined for control gate voltages for two reference currents: CG1 at current IR1 and CG2 at current IR2. The first step is to determine a logarithmic slope factor for a selected nonvolatile memory cell while the selected nonvolatile memory cell is operating in the subthreshold region (step 3901). The second step is to store the logarithmic slope factor (step 3902). The third step is to determine a linear slope factor for a selected nonvolatile memory cell while the selected nonvolatile memory cell is operating in the linear region (step 3903). The fourth step is to store the linear slope factor (step 3904). The fifth step is to utilize one or more of the logarithmic slope factor and the linear slope factor when programming the selected cell to a target current (step 3905).

[0167] Referring to FIG. 40, during a read neuron qualification test 3110, a neuron (bit line) is read without checking its value against a desired value. The first step is to measure the current at the bit line and store the measured value (step 4001). The second step is to run a dummy neuron read test 4010, as described below, for a predetermined amount of time, such as burn-in time during the qualification process. The third step is to measure the current from the bit line (step 4003). The fourth step is to compare the measured current to the stored measured current of step 4001 (step 4004). If the difference is greater or less than a certain amount, the bit line is considered to be a bad bit line.

[0168] The dummy neuron read test 4010 includes a series of steps. The first step is to assert all word lines in the array by the row decoder (step 4011). The second step is to assert all bit lines in the array by the column decoder to select all columns of non-volatile memory cells (step 4012). The third step is to perform a read operation (read condition) on the array without checking the read output (step 4013). The dummy neuron read test 4010 is used as a read stress on the array for burn-in purposes.

[0169] Referring to FIG. 41, during soft erase test 3111, an entire array or sector is tested to check the erase performance of the memory array. The first step is to erase the nonvolatile memory cells in the array by applying a series of voltages to the terminals of each of the nonvolatile memory cells in the array, where the voltages in the series increase over time in fixed step sizes (step 4101). This erases the cells incrementally by increasing the voltage at the erase gate in a stepwise manner, for example, from 5 to 12.5 volts in steps of 0.5 or 1 volt. Erasing in this manner reduces stress on the memory cells. The second step is to determine the effectiveness of the erase step (step 4102), for example, by reading all the nonvolatile memory cells to determine that the cell current after erasure in step 4101 is within an acceptable window around a nominal value. Optionally, an endurance test can be performed to determine how many program / erase cycles it can sustain, or a background test can be performed to transition the array to an erased state.

[0170] Referring to FIG. 42, during soft program test 3112, an entire array or row or cell is tested. The first step is to program the nonvolatile memory cells in the array by applying a series of voltages to the terminals of each nonvolatile memory cell in the array, where the voltages in the series increase over time in fixed step sizes (step 4201). The cells are programmed in incremental fashion, e.g., 3-10 volts in 10 mV, 0.3 V, or 1 V steps, to check the program performance of the memory array. Programming in this manner reduces stress on the memory cells. The second step is to read all the nonvolatile memory cells to determine the effectiveness of the programming step, e.g., by determining that the cell current after programming in step 4201 is within an acceptable window around a nominal value (step 4202). Optionally, an endurance test or background test may be utilized.

[0171] Referring to FIG. 43, a read verify test 3106 may be performed. The first step is to program a plurality of nonvolatile memory cells to store one of N different values, where N is the number of different levels that may be stored in any of the nonvolatile memory cells (step 4301). The second step is to measure the current drawn by the plurality of nonvolatile memory cells (step 4302). The third step is to compare the measured current to a target value (step 4303). The fourth step is to store the plurality of nonvolatile memory cells as defective if the difference between the measured value and the target value exceeds a threshold factor (step 4304).

[0172] Referring to FIG. 44, a checkerboard verification test 3113 may be performed, whereby the test pattern is implemented using a checkerboard or pseudo-checkerboard pattern and tests sampled levels rather than all possible levels (e.g., four levels, i.e., L0, Ln, Ln / 4 ... * For example, the pattern can be used to check the worst-case field stress in a memory array (meaning one cell is at a high field level and an adjacent cell is at a low field level).

[0173] In one embodiment, the first step is to program a first group of cells among the plurality of nonvolatile memory cells using a level corresponding to the smallest cell current among the N levels (step 4401). The second step is to program a second group of cells among the plurality of nonvolatile memory cells using a level corresponding to the largest cell current among the N levels (step 4402). Each cell in the second group of cells is adjacent to one or more cells in the first group of cells. The third step is to measure the current drawn by the plurality of nonvolatile memory cells (step 4403). The fourth step is to compare the measured current to a target value (step 4404). The fifth step is to identify the plurality of nonvolatile memory cells as defective if the difference between the measured value and the target value exceeds a threshold (step 4405).

[0174] Table 10 contains other exemplary test patterns for physical array maps that may be used during checkerboard verification testing 3113. Table 10: Exemplary Test Patterns [Table 10]

[0175] Screening test 3114, final test 3115, qualification test 3116, and data retention test 3117 are test suites that may be performed during the manufacturing and qualification process of a wafer, die, or packaged device that includes the VMM system disclosed herein.

[0176] Screening tests 3114 may be performed on wafers during the manufacturing process. In one embodiment, the screening tests 3114 include the following test suites: First, relatively fast tests are performed to quickly identify bad wafers or dies, such as a soft erase test 3111, a soft program test 3112, and various stress mode tests (erase gate oxide gox, tie gate oxide cox, source line oxide sol, reverse disturb tunneling rtsts (tunneling from floating gate to word line, disturb for unselected rows), mass punch-through mpt (disturb from source to drain for unselected rows), read disturb rdist (disturb from read state), etc.). Second, neural test modes are performed, such as an LSB screen test 3103 and a bit line sampling screen 3104 for the top and bottom sectors. Although the neural test mode takes much longer than the tests performed during the first step, some time is saved by identifying any bad wafers or dies that are screened out during the first, less time-consuming set of tests.

[0177] A final test 3115 may be performed on the packaged device. In one embodiment, the final test 3115 includes performing a soft erase test 3111 and a soft program test 3112. Optionally, to reduce test time, test patterns for neural applications may be utilized rather than a comprehensive test such as testing K of N levels of M sectors, or testing all N levels for a particular sector (such as the top and bottom sectors).

[0178] During qualification test 3116, a dummy bit line read cycle is performed (which is the execution of a read action without actually determining the content of the read data), and endurance testing is performed by applying a soft erase test 3111 and a soft program test 3112. Since bit line reads are used instead of individual memory reads during neural memory applications, bit line tests are performed instead of individual memory cell tests.

[0179] The data retention test 3117 may include baking the programmed wafer at a high temperature, such as 250°C, for 24-72 hours. In one embodiment, a checkerboard or pseudo-checkerboard test pattern is imposed rather than a comprehensive test for digital memory testing. Data retention is checked against the bitline current in neural mode (instead of each memory cell as is done for digital memories) using read bitline current mode. For example, one query is to check whether delta IBL < + / - p%, where delta IBL is defined as the difference between the measured bitline current and the expected bitline current (WholeBLmeas mode, allowable percentage error p% from software neural net modeling). Delta IBL is tested against neural mode to identify whether the bitline output current is above or below the target, defined herein as a predetermined percentage "p" of the target. Alternatively, each cell can be checked / tested at + / - delta of the target.

[0180] Other tests can be performed using the hardware and algorithms described herein.

[0181] It should be noted that, as used herein, both the terms "over" and "on" inclusively include "directly on" (with no intermediate material, element, or gap disposed therebetween) and "indirectly on" (with an intermediate material, element, or gap disposed therebetween). Similarly, the term "adjacent" includes "directly adjacent" (with no intermediate material, element, or gap disposed therebetween) and "indirectly adjacent" (with an intermediate material, element, or gap disposed therebetween); "attached" includes "directly attached" (with no intermediate material, element, or gap disposed therebetween) and "indirectly attached to" (with an intermediate material, element, or gap disposed therebetween); and "electrically coupled" includes "directly electrically coupled" (with no intermediate material or element disposed therebetween that electrically connects the elements together) and "indirectly electrically coupled to" (with an intermediate material or element disposed therebetween that electrically connects the elements together). For example, forming an element "over a substrate" can include forming the element directly on the substrate with no intermediate materials / elements therebetween, and forming the element indirectly on the substrate with one or more intermediate materials / elements therebetween.

Claims

1. 1. A method of testing a plurality of analog neural non-volatile memory cells in an array of non-volatile memory cells arranged in rows and columns, each row coupled to a word line and each column coupled to a bit line, each word line selectively coupled to a row decoder and each bit line selectively coupled to a column decoder, the method comprising: asserting all word lines in the array by the row decoder; asserting all bit lines in the array by the column decoder; performing a deep programming operation on all non-volatile memory cells in the array; measuring the total current received from the bit lines.

2. 10. The method of claim 1, wherein each of the non-volatile memory cells is a stacked gate flash memory cell.

3. 10. The method of claim 1, wherein each of the non-volatile memory cells is a split-gate flash memory cell.

4. The method of claim 1 , wherein the array is part of a neural network.

Citation Information

Patent Citations

  • Decoder circuit and semiconductor device

    JP1994176599A

  • Semiconductor memory

    JP2001236795A

  • Low-power operation for flash memory system

    JP2018520454A