TW202121259A - Precision tuning for the programming of analog neural memory in a deep learning artificial neural network - Google Patents

Precision tuning for the programming of analog neural memory in a deep learning artificial neural network Download PDF

Info

Publication number
TW202121259A
TW202121259A TW109131606A TW109131606A TW202121259A TW 202121259 A TW202121259 A TW 202121259A TW 109131606 A TW109131606 A TW 109131606A TW 109131606 A TW109131606 A TW 109131606A TW 202121259 A TW202121259 A TW 202121259A
Authority
TW
Taiwan
Prior art keywords
volatile memory
digital
memory cell
output
selected non
Prior art date
Application number
TW109131606A
Other languages
Chinese (zh)
Other versions
TWI784318B (en
Inventor
曉萬 陳
史蒂芬 利姆克
維平 蒂瓦里
恩漢 杜
馬克 萊坦
Original Assignee
美商超捷公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 美商超捷公司 filed Critical 美商超捷公司
Publication of TW202121259A publication Critical patent/TW202121259A/en
Application granted granted Critical
Publication of TWI784318B publication Critical patent/TWI784318B/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/56Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using storage elements with more than two stable states represented by steps, e.g. of voltage, current, phase, frequency
    • G11C11/5621Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using storage elements with more than two stable states represented by steps, e.g. of voltage, current, phase, frequency using charge storage in a floating gate
    • G11C11/5628Programming or writing circuits; Data input circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/063Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
    • G06N3/065Analogue means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/048Activation functions
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/54Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using elements simulating biological cells, e.g. neuron
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/04Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS
    • G11C16/0408Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS comprising cells containing floating gate transistors
    • G11C16/0425Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS comprising cells containing floating gate transistors comprising cells containing a merged floating gate and select transistor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C2211/00Indexing scheme relating to digital stores characterized by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C2211/56Indexing scheme relating to G11C11/56 and sub-groups for features not covered by these groups
    • G11C2211/562Multilevel memory programming aspects
    • G11C2211/5621Multilevel programming verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Neurology (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Algebra (AREA)
  • Databases & Information Systems (AREA)
  • Non-Volatile Memory (AREA)
  • Read Only Memory (AREA)
  • Semiconductor Memories (AREA)
  • Networks Using Active Elements (AREA)

Abstract

Numerous embodiments of a precision tuning algorithm and apparatus are disclosed for precisely and quickly depositing the correct amount of charge on the floating gate of a nonvolatile memory cell within a vector-by-matrix multiplication (VMM) array in an artificial neural network. Selected cells thereby can be programmed with extreme precision to hold one of N different values.

Description

在深度學習人工神經網路中用於類比神經記憶體之程式化的精確度調校It is used to adjust the precision of the programming of analog neural memory in the deep learning artificial neural network

[優先權主張]本申請案主張2019年9月19日提交的並且名為「PRECISION TUNING FOR THE PROGRAMMING OF ANALOG NEURAL MEMORY IN A DEEP LEARNING ARTIFICIAL NEURAL NETWORK」的美國專利申請案第16/576,533號的優先權。[Priority Claim] This application claims the priority of U.S. Patent Application No. 16/576,533 filed on September 19, 2019 and titled "PRECISION TUNING FOR THE PROGRAMMING OF ANALOG NEURAL MEMORY IN A DEEP LEARNING ARTIFICIAL NEURAL NETWORK" right.

揭示了精確度調校演算法及設備之多個具體例,其用於在人工神經網路中之向量矩陣乘法(VMM)陣列內的非揮發性記憶體單元的浮動閘極上精確並且快速地沉積正確量的電荷。Several specific examples of accuracy adjustment algorithms and equipment are revealed, which are used to accurately and quickly deposit on floating gates of non-volatile memory cells in a vector matrix multiplication (VMM) array in artificial neural networks The correct amount of charge.

人工神經網路模擬生物神經網路(動物之中樞神經系統,特定言之,大腦)且用於估計或估算可取決於大量輸入且通常未知的功能。人工神經網路通常包括彼此交換訊息之互連「神經元」的層。Artificial neural networks simulate biological neural networks (animal central nervous system, in particular, the brain) and are used for estimation or estimation may depend on a large number of inputs and generally unknown functions. Artificial neural networks usually include layers of interconnected "neurons" that exchange information with each other.

圖1繪示人工神經網路,其中圓形表示神經元之輸入或層。連接(被稱作突觸)由箭頭表示,且具有可基於經驗進行調校之數值權重。此使神經網路適應於輸入且能夠學習。通常,神經網路包括多個輸入之層。通常存在一個或多個中間神經元層及提供神經網路之輸出的輸出神經元層。各層級處之神經元基於自突觸所接收之資料而個別地或共同地作出決策。Figure 1 shows an artificial neural network, where the circles represent the inputs or layers of neurons. Connections (called synapses) are represented by arrows and have numerical weights that can be adjusted based on experience. This allows the neural network to adapt to the input and be able to learn. Generally, a neural network includes multiple input layers. There are usually one or more interneuron layers and output neuron layers that provide the output of the neural network. Neurons at each level individually or collectively make decisions based on data received from synapses.

用於高效能資訊處理之人工神經網路之發展中的主要挑戰之一在於缺乏充分的硬體技術。實際上,切實可行的神經網路依賴於極大量數目之突觸,從而可達成神經元之間的高連接性,亦即極高計算並行性。原則上,此複雜性可利用數位超級電腦或專用圖形處理部件叢集來達成。然而,除高成本之外,與生物網路相比,此等方法亦受中等能效困擾,主要因為生物網路執行低精確度類比計算,所以其消耗少得多的能量。CMOS類比電路已用於人工神經網路,但鑒於大量神經元及突觸,故大部分CMOS實作之突觸已過於龐大。One of the main challenges in the development of artificial neural networks for high-performance information processing is the lack of sufficient hardware technology. In fact, a practical neural network relies on a very large number of synapses, which can achieve high connectivity between neurons, that is, extremely high computational parallelism. In principle, this complexity can be achieved using digital supercomputers or clusters of dedicated graphics processing components. However, in addition to high cost, these methods are also plagued by moderate energy efficiency compared to biological networks, mainly because biological networks perform low-precision analog calculations, so they consume much less energy. CMOS analog circuits have been used in artificial neural networks, but in view of the large number of neurons and synapses, the synapses in most CMOS implementations are too large.

申請人先前在以引用的方式併入之美國專利申請案第15/594,439號中揭示了利用一個或多個非揮發性記憶體陣列作為突觸之人工(類比)神經網路。非揮發性記憶體陣列作為類比神經形態記憶體操作。神經網路裝置包括第一複數個突觸,該第一複數個突觸經組態以接收第一複數個輸入且自該第一複數個輸入產生第一複數個輸出,且第一複數個神經元經組態以接收第一複數個輸出。第一複數個突觸包括複數個記憶體單元,其中該等記憶體單元中之每一者包括:形成於半導體基板中之間隔開的源極區及汲極區,其中通道區在源極區與汲極區之間延伸;浮動閘極,其裝設於通道區之第一部分上方且與該第一部分絕緣;以及非浮動閘極,其裝設於通道區之第二部分上方且與該第二部分絕緣。該複數個記憶體單元中之每一者經組態以儲存對應於該浮動閘極上之電子數目的權重值。複數個記憶體單元經組態以使第一複數個輸入乘以所儲存權重值以產生第一複數個輸出。The applicant previously disclosed an artificial (analogous) neural network using one or more non-volatile memory arrays as synapses in US Patent Application No. 15/594,439 incorporated by reference. The non-volatile memory array operates as an analog neuromorphic memory. The neural network device includes a first plurality of synapses, the first plurality of synapses are configured to receive a first plurality of inputs and to generate a first plurality of outputs from the first plurality of inputs, and a first plurality of nerves The element is configured to receive the first plurality of outputs. The first plurality of synapses includes a plurality of memory cells, wherein each of the memory cells includes: spaced source regions and drain regions formed in the semiconductor substrate, wherein the channel region is in the source region Extending between the drain region and the drain region; a floating gate installed above the first part of the channel region and insulated from the first part; and a non-floating gate installed above the second part of the channel region and connected to the first part Two parts are insulated. Each of the plurality of memory cells is configured to store a weight value corresponding to the number of electrons on the floating gate. The plurality of memory cells are configured such that the first plurality of inputs are multiplied by the stored weight values to generate the first plurality of outputs.

類比神經形態記憶體系統中使用之每一非揮發性記憶體單元必須經抹除及程式化以在浮動閘極中保持極特定且精確的電荷量,亦即,電子數目。舉例來說,每一浮動閘極必須保持N個不同值中之一者,其中N為可由每一單元指示之不同權重之數目。N之實施例包括16、32、64、128及256。Each non-volatile memory cell used in the analog neuromorphic memory system must be erased and programmed to maintain a very specific and precise amount of charge, that is, the number of electrons, in the floating gate. For example, each floating gate must maintain one of N different values, where N is the number of different weights that can be indicated by each cell. Examples of N include 16, 32, 64, 128, and 256.

VMM系統中之一個挑戰為以N的不同值所需之精確度及精細度程式化選定的單元之能力。舉例而言,若選定單元可包括64個不同值中之一者,則在程式化操作中需要極高精確度。One of the challenges in the VMM system is the ability to program selected units with the accuracy and fineness required for different values of N. For example, if the selected unit can include one of 64 different values, extremely high accuracy is required in the programming operation.

需要適合於與類比神經形態記憶體系統中之VMM一起使用的改良的程式化系統及方法。There is a need for an improved programming system and method suitable for use with the VMM in the analog neuromorphic memory system.

揭示了精確度調校演算法及設備之多個具體例,其用於在人工神經網路中之向量矩陣乘法(VMM)陣列內的非揮發性記憶體單元的浮動閘極上精確並且快速地沉積正確量的電荷。選定的單元藉此可以極高精確度地程式化以保持N個不同值中之一者。Several specific examples of accuracy adjustment algorithms and equipment are revealed, which are used to accurately and quickly deposit on floating gates of non-volatile memory cells in a vector matrix multiplication (VMM) array in artificial neural networks The correct amount of charge. The selected unit can thus be programmed with extremely high precision to maintain one of the N different values.

本發明之人工神經網路利用CMOS技術與非揮發性記憶體陣列之組合。 非揮發性記憶體單元The artificial neural network of the present invention uses a combination of CMOS technology and a non-volatile memory array. Non-volatile memory unit

數位非揮發性記憶體為熟知的。舉例而言,以引用之方式併入本文中的美國專利5,029,130 (「'130專利」)揭示了一種分離閘式非揮發性記憶體單元陣列,其為一種類型之快閃記憶體單元。圖2中展示此記憶體單元210。每一記憶體單元210包括形成於半導體基板12中之源極區14及汲極區16,其中通道區18處於該源極區與該汲極區之間。浮動閘極20形成於通道區18之第一部分上方且與該第一部分絕緣(且控制該第一部分之導電性),且形成於源極區14之一部分上方。字線端子22 (其通常耦接至字線)具有:第一部分,其裝設於通道區18之第二部分上方且與該第二部分絕緣(並且控制該第二部分之導電性);及第二部分,其在浮動閘極20上及上方延伸。浮動閘極20及字線端子22藉由閘極氧化物與基板12絕緣。位元線端子24耦接至汲極區16。Digital non-volatile memory is well known. For example, US Patent No. 5,029,130 ("the '130 Patent") incorporated herein by reference discloses a separate gate type non-volatile memory cell array, which is a type of flash memory cell. This memory unit 210 is shown in FIG. 2. Each memory cell 210 includes a source region 14 and a drain region 16 formed in the semiconductor substrate 12, wherein the channel region 18 is located between the source region and the drain region. The floating gate 20 is formed above and insulated from the first part of the channel region 18 (and controls the conductivity of the first part), and is formed above a part of the source region 14. The word line terminal 22 (which is usually coupled to the word line) has: a first part installed above the second part of the channel region 18 and insulated from the second part (and controlling the conductivity of the second part); and The second part, which extends on and above the floating gate 20. The floating gate 20 and the word line terminal 22 are insulated from the substrate 12 by the gate oxide. The bit line terminal 24 is coupled to the drain region 16.

記憶體單元210藉由將高的正電壓置於字線端子22上來抹除(其中電子自浮動閘極移除),此使浮動閘極20上之電子經由富爾-諾罕(Fowler-Nordheim)穿隧自浮動閘極20穿過中間絕緣件穿隧至字線端子22。The memory cell 210 is erased by placing a high positive voltage on the word line terminal 22 (where the electrons are removed from the floating gate), which causes the electrons on the floating gate 20 to pass through Fowler-Nordheim (Fowler-Nordheim). ) Tunneling from the floating gate 20 through the intermediate insulating member to the word line terminal 22.

記憶體單元210藉由將正電壓置於字線端子22上且將正電壓置於源極區14上來程式化(其中電子置於浮動閘極上)。電子電流將自源極區14 (源極線端子)朝向汲極區16流動。當電子到達字線端子22與浮動閘極20之間的間隙時,該等電子將加速並且被加熱。經加熱電子中之一些將由於來自浮動閘極20之吸引靜電力而穿過閘極氧化物注入至浮動閘極20上。The memory cell 210 is programmed by placing a positive voltage on the word line terminal 22 and a positive voltage on the source region 14 (where electrons are placed on the floating gate). The electron current will flow from the source region 14 (source line terminal) toward the drain region 16. When the electrons reach the gap between the word line terminal 22 and the floating gate 20, the electrons will be accelerated and heated. Some of the heated electrons will be injected through the gate oxide onto the floating gate 20 due to the attractive electrostatic force from the floating gate 20.

記憶體單元210係藉由將正讀取電壓置於汲極區16及字線端子22上來讀取(此接通通道區18之在字線端子下方的部分)。若浮動閘極20帶正電(亦即,電子經抹除),則通道區18之在浮動閘極20下方的部分亦接通,且電流將跨越通道區18流動,此被感測為抹除或「1」狀態。若浮動閘極20帶負電(亦即,用電子程式化),則通道區之在浮動閘極20下方的部分大部分或完全斷開,且電流將不流過(或將有極少電流流過)通道區18,此被感測為經程式化或「0」狀態。The memory cell 210 is read by placing a positive read voltage on the drain region 16 and the word line terminal 22 (this turns on the part of the channel region 18 below the word line terminal). If the floating gate 20 is positively charged (that is, the electrons are erased), the part of the channel region 18 below the floating gate 20 is also turned on, and current will flow across the channel region 18, which is sensed as erasing Divide or "1" status. If the floating gate 20 is negatively charged (that is, electronically programmed), the part of the channel area under the floating gate 20 is mostly or completely disconnected, and no current will flow (or very little current will flow) ) Channel area 18, which is sensed as programmed or "0" state.

表1描繪可施加至記憶體單元110之端子以用於執行讀取、抹除及程式化操作的典型電壓範圍: 1 2 之快閃記憶體單元 210 之操作 WL BL SL 讀取1 0.5-3V 0.1-2V 0V 讀取2 0.5-3V 0-2V 2-0.1V 抹除 ~11-13V 0V 0V 程式化 1-2V 1-3μA 9-10V 「讀取1」為其中單元電流在位元線上輸出之讀取模式。「讀取2」為其中單元電流在源極線端子上輸出之讀取模式。Table 1 depicts may be applied to the terminal memory unit 110 for performing a read, erase and programmed typical voltage range of operation: Table 1: Operation of the flash memory 2 of the unit 210 WL BL SL Read 1 0.5-3V 0.1-2V 0V Read 2 0.5-3V 0-2V 2-0.1V Erase ~11-13V 0V 0V Stylized 1-2V 1-3μA 9-10V "Read 1" is the read mode in which the cell current is output on the bit line. "Read 2" is the read mode in which the cell current is output on the source line terminal.

圖3展示記憶體單元310,其類似於圖2的記憶體單元210,且添加了控制閘極(CG)端子28。控制閘極端子28在程式化時在高壓例如10 V下偏壓,在抹除時在低或負電壓,例如0 V/-8 V下偏壓,且在讀取時在低或中間範圍例如0 V/2.5 V下偏壓。其他端子以類似於圖2之方式偏壓。FIG. 3 shows the memory cell 310, which is similar to the memory cell 210 of FIG. 2 with a control gate (CG) terminal 28 added. The control gate terminal 28 is biased at a high voltage such as 10 V when programming, is biased at a low or negative voltage such as 0 V/-8 V when erasing, and is at a low or intermediate range when reading, for example 0 V/2.5 V down bias. The other terminals are biased in a manner similar to that of FIG. 2.

圖4描繪四閘極記憶體單元410,其包含源極區14、汲極區16、在通道區18之第一部分上方的浮動閘極20、在通道區18之第二部分上方的選擇閘極22 (通常耦接至字線WL)、在浮動閘極20上方之控制閘極28,及在源極區14上方之抹除閘極30。此組態描述於美國專利6,747,310中,其出於所有目的以引用之方式併入本文中。此處,除浮動閘極20以外,所有閘極皆為非浮動閘極,此意謂該等閘極電連接或可電連接至電壓源。程式化係藉由來自通道區18之經加熱電子將自身注入至浮動閘極20上而加以執行。抹除係藉由自浮動閘極20至抹除閘極30之電子穿隧來執行。4 depicts a four-gate memory cell 410, which includes a source region 14, a drain region 16, a floating gate 20 above the first part of the channel region 18, and a select gate above the second part of the channel region 18. 22 (usually coupled to the word line WL), the control gate 28 above the floating gate 20, and the erase gate 30 above the source region 14. This configuration is described in US Patent 6,747,310, which is incorporated herein by reference for all purposes. Here, except for the floating gate 20, all gates are non-floating gates, which means that the gates are electrically connected or can be electrically connected to a voltage source. The programming is performed by injecting itself onto the floating gate 20 by heated electrons from the channel region 18. The erasing is performed by electron tunneling from the floating gate 20 to the erasing gate 30.

表2描繪可施加至記憶體單元410之端子以用於執行讀取、抹除及程式化操作的典型電壓範圍: 2 :圖 4 之快閃記憶體單元 410 之操作    WL/SG BL CG EG SL 讀取1 0.5-2V 0.1-2V 0-2.6V 0-2.6V 0V 讀取2 0.5-2V 0-2V 0-2.6V 0-2.6V 2-0.1V 抹除 -0.5V/0V 0V 0V/-8V 8-12V 0V 程式化 1V 1μA 8-11V 4.5-9V 4.5-5V 「讀取1」為其中單元電流在位元線上輸出之讀取模式。「讀取2」為其中單元電流在源極線端子上輸出之讀取模式。Table 2 depicts may be applied to the terminals of the memory unit 410 for performing the read, erase and programmed typical voltage range of operation: Table 2: FIG 4 the flash memory 410 of the operation unit WL/SG BL CG EG SL Read 1 0.5-2V 0.1-2V 0-2.6V 0-2.6V 0V Read 2 0.5-2V 0-2V 0-2.6V 0-2.6V 2-0.1V Erase -0.5V/0V 0V 0V/-8V 8-12V 0V Stylized 1V 1μA 8-11V 4.5-9V 4.5-5V "Read 1" is the read mode in which the cell current is output on the bit line. "Read 2" is the read mode in which the cell current is output on the source line terminal.

圖5展示記憶體單元510,其類似於圖4的記憶體單元410,除了記憶體單元510不含有抹除閘極EG端子之外。藉由將基板18偏壓至高壓及將控制閘極CG端子28偏壓至低或負電壓而執行抹除。替代地,藉由將字線端子22偏壓至正電壓及將控制閘極端子28偏壓至負電壓來執行抹除。程式化及讀取類似於圖4之程式化及讀取。FIG. 5 shows the memory cell 510, which is similar to the memory cell 410 of FIG. 4, except that the memory cell 510 does not contain an erase gate EG terminal. Erasing is performed by biasing the substrate 18 to a high voltage and biasing the control gate CG terminal 28 to a low or negative voltage. Alternatively, the erasure is performed by biasing the word line terminal 22 to a positive voltage and the control gate terminal 28 to a negative voltage. The programming and reading are similar to the programming and reading in FIG. 4.

圖6描繪三閘極記憶體單元610,其為另一類型之快閃記憶體單元。記憶體單元610與圖4的記憶體單元410相同,除了記憶體單元610不具有單獨的控制閘極端子之外。抹除操作(其中藉由使用抹除閘極端子進行抹除)及讀取操作類似於圖4的抹除操作及讀取操作,除了未施加控制閘極偏壓之外。程式化操作亦在無控制閘極偏壓之情況下進行,且因而在程式化操作期間較高電壓必須經施加在源極線端子上以補償控制閘極偏壓的缺少。FIG. 6 depicts a triple-gate memory cell 610, which is another type of flash memory cell. The memory unit 610 is the same as the memory unit 410 of FIG. 4, except that the memory unit 610 does not have a separate control gate terminal. The erasing operation (where erasing is performed by using an erasing gate terminal) and reading operation are similar to the erasing operation and reading operation of FIG. 4, except that no control gate bias is applied. The programming operation is also performed without the control gate bias, and therefore a higher voltage must be applied to the source line terminal during the programming operation to compensate for the lack of the control gate bias.

表3描繪可施加至記憶體單元610之端子以用於執行讀取、抹除及程式化操作的典型電壓範圍: 3 :圖 6 之快閃記憶體單元 610 之操作    WL/SG BL EG SL 讀取1 0.5-2.2V 0.1-2V 0-2.6V 0V 讀取2 0.5-2.2V 0-2V 0-2.6V 2-0.1V 抹除 -0.5V/0V 0V 11.5V 0V 程式化 1V 2-3μA 4.5V 7-9V 「讀取1」為其中單元電流在位元線上輸出之讀取模式。「讀取2」為其中單元電流在源極線端子上輸出之讀取模式。Table 3 depicts the terminal unit 610 may be applied to the memory for performing the read, erase and programmed typical voltage range of operation: the operation of FIG flash memory cells 610. 6: TABLE 3 WL/SG BL EG SL Read 1 0.5-2.2V 0.1-2V 0-2.6V 0V Read 2 0.5-2.2V 0-2V 0-2.6V 2-0.1V Erase -0.5V/0V 0V 11.5V 0V Stylized 1V 2-3μA 4.5V 7-9V "Read 1" is the read mode in which the cell current is output on the bit line. "Read 2" is the read mode in which the cell current is output on the source line terminal.

圖7描繪堆疊閘極記憶體單元710,其為另一類型之快閃記憶體單元。記憶體單元710類似於圖2的記憶體單元210,除了浮動閘極20在整個通道區18上方延伸並且控制閘極端子22 (其將在此處耦接至字線)在浮動閘極20上方延伸之外,該浮動閘極20藉由絕緣層(未展示)分離。抹除、程式化及讀取操作以與先前針對記憶體單元210所描繪之方式類似的方式操作。FIG. 7 depicts a stacked gate memory cell 710, which is another type of flash memory cell. The memory cell 710 is similar to the memory cell 210 of FIG. 2 except that the floating gate 20 extends over the entire channel region 18 and the control gate terminal 22 (which will be coupled to the word line here) is above the floating gate 20 Outside of the extension, the floating gate 20 is separated by an insulating layer (not shown). The erasing, programming, and reading operations operate in a similar manner to that previously described for the memory cell 210.

表4描繪可施加至記憶體單元710之端子及基板12以用於執行讀取、抹除及程式化操作之典型的電壓範圍: 4 :圖 7 之快閃記憶體單元 710 之操作    CG BL SL 基板 讀取1 0-5V 0.1-2V 0-2V 0V 讀取2 0.5-2V 0-2V 2-0.1V 0V 抹除 -8至-10V/0V FLT FLT 8-10V / 15-20V 程式化 8-12V 3-5V/0V 0V/3-5V 0V Table 4 depicts a memory cell can be applied to the terminal 710 and the substrate 12 for performing the read, erase, and the typical voltage range of programmable operations: TABLE 4: operation flash memory cell 710 of FIG. 7 of CG BL SL Substrate Read 1 0-5V 0.1-2V 0-2V 0V Read 2 0.5-2V 0-2V 2-0.1V 0V Erase -8 to -10V/0V FLT FLT 8-10V / 15-20V Stylized 8-12V 3-5V/0V 0V/3-5V 0V

「讀取1」為其中單元電流在位元線上輸出之讀取模式。「讀取2」為其中單元電流在源極線端子上輸出之讀取模式。視情況,在包含記憶體單元210、310、410、510、610或710之列及行之陣列中,源極線可耦接至記憶體單元之一個列或記憶體單元之兩個相鄰列。亦即,源極線端子可由記憶體單元之相鄰列共用。"Read 1" is the read mode in which the cell current is output on the bit line. "Read 2" is the read mode in which the cell current is output on the source line terminal. Optionally, in an array including columns and rows of memory cells 210, 310, 410, 510, 610, or 710, the source line can be coupled to one column of memory cells or two adjacent columns of memory cells . That is, the source line terminal can be shared by adjacent rows of memory cells.

為了利用包含上文在人工神經網路中所描繪之非揮發性記憶體單元類型中之一者的記憶體陣列,進行兩個修改。第一,將線組態以使得每一記憶體單元可個別地程式化、抹除及讀取而不會不利地影響陣列中之其他記憶體單元之記憶體狀態,如下文進一步解釋。第二,提供記憶體單元之連續(類比)程式化。In order to utilize a memory array containing one of the non-volatile memory cell types described above in the artificial neural network, two modifications are made. First, configure the lines 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, as explained further below. Second, provide continuous (analogous) programming of memory cells.

具體言之,陣列中之每一記憶體單元之記憶體狀態(亦即,浮動閘極上之電荷)可連續地自完全抹除狀態改變為完全程式化狀態,其方式為獨立的且對其他記憶體單元之干擾最少。在另一具體例中,陣列中之每一記憶體單元之記憶體狀態(亦即,浮動閘極上之電荷)可連續地自完全程式化狀態改變為完全抹除狀態,且反之亦然,其方式為獨立的且對其他記憶體單元之干擾最少。此意謂單元儲存為類比的,或至少可儲存許多離散值(諸如16或64個不同值)中之一者,此允許對記憶體陣列中之所有單元進行極精確且個別的調校,且此使記憶體陣列對於儲存神經網路之突觸權重及對該等突觸權重進行精細調校調整係理想的。Specifically, the memory state of each memory cell in the array (that is, the charge on the floating gate) can be continuously changed from the completely erased state to the fully programmed state, which is independent and independent of other memories. The interference of the body unit is the least. In another specific example, the memory state (that is, the charge on the floating gate) of each memory cell in the array can be continuously changed from the fully programmed state to the fully erased state, and vice versa. The method is independent and has the least interference to other memory units. This means that the cell storage is analog, or at least one of many discrete values (such as 16 or 64 different values) can be stored, which allows extremely precise and individual tuning of all cells in the memory array, and This makes the memory array ideal for storing the synaptic weights of the neural network and fine-tuning the synaptic weights.

本文中所描述之方法及手段可適用於其他非揮發性記憶體技術,諸如氧化矽-氮化物-氧化物-矽(SONOS,氮化物中之電荷陷阱)、金屬-氧化物-氮化物-氧化物-矽(MONOS,氮化物中之金屬電荷陷阱)、電阻式ram (ReRAM)、相變記憶體(PCM)、磁性ram (MRAM)、鐵電ram (FeRAM)、雙層級或多層級一次性可程式化(OTP)及相關電子ram (CeRAM),但不限於此。本文中所描述之方法及手段可適用於神經網路之揮發性記憶體技術,諸如SRAM、DRAM及其他揮發性突觸單元,但不限於此。 採用非揮發性記憶體單元陣列之神經網路The methods and methods described in this article can be applied to other non-volatile memory technologies, such as silicon oxide-nitride-oxide-silicon (SONOS, charge trap in nitride), metal-oxide-nitride-oxide Substance-silicon (MONOS, metal charge trap in nitride), resistive ram (ReRAM), phase change memory (PCM), magnetic ram (MRAM), ferroelectric ram (FeRAM), double-level or multi-level once Sexual programmable (OTP) and related electronic ram (CeRAM), but not limited to this. The methods and methods described herein can be applied to volatile memory technologies of neural networks, such as SRAM, DRAM, and other volatile synaptic units, but are not limited thereto. Neural network using non-volatile memory cell array

圖8在概念上繪示利用本發明具體例之非揮發性記憶體陣列的神經網路之非限制性實施例。此實施例將非揮發性記憶體陣列神經網路用於面部辨識應用,但任何其他適當應用皆可使用基於非揮發性記憶體陣列之神經網路來實作。FIG. 8 conceptually illustrates a non-limiting embodiment of a neural network using a non-volatile memory array of a specific example of the present invention. This embodiment uses a non-volatile memory array neural network for facial recognition applications, but any other suitable application can be implemented using a neural network based on a non-volatile memory array.

S0為輸入層,對於此實施例,該輸入層為具有5位元精確度之32×32像素RGB影像(亦即,三個32×32像素陣列,每種色彩R、G及B一個陣列,每一像素為5位元精確度)。自輸入層S0行進至層C1之突觸CB1在一些情況下施加不同權重集合且在其他情況下共用權重,且用3×3像素重疊濾波器(核心)掃描輸入影像,使濾波器移位1個像素(或多於1個像素,如由模型指定)。具體言之,影像(亦即,稱作濾波器或核心)之3×3部分中之9個像素的值被提供至突觸CB1,其中使此9個輸入值乘以適當權重,且在對彼乘法之輸出求和之後,判定單一輸出值且由第一突觸CB1提供該單一輸出值以用於產生特徵圖層C1中之一者的像素。3×3濾波器接著在輸入層S0內向右移位一個像素(亦即,在右側上添加三個像素之行,且在左側上丟棄三個像素之行),藉此將此新定位濾波器中之9個像素值提供至突觸CB1,其中使該等像素值乘以相同權重,且藉由相聯結突觸判定第二單一輸出值。此程序針對所有三個色彩且針對所有位元(精確度值)繼續,直至3×3濾波器跨越輸入層S0之整個32×32像素影像掃描。程序隨後使用不同權重集合進行重複以產生C1之不同特徵圖,直至層C1之所有特徵圖已經計算為止。S0 is the input layer. For this embodiment, the input layer is a 32×32 pixel RGB image with 5-bit accuracy (that is, three 32×32 pixel arrays, one array for each color R, G, and B, Each pixel has a 5-bit accuracy). Synapse CB1 traveling from input layer S0 to layer C1 applies different weight sets in some cases and shares weights in other cases, and scans the input image with a 3×3 pixel overlap filter (core), shifting the filter by 1 Pixels (or more than 1 pixel, as specified by the model). Specifically, the values of 9 pixels in the 3×3 part of the image (that is, called the filter or the core) are provided to the synapse CB1, where the 9 input values are multiplied by appropriate weights, and the After the output of the multiplication is summed, a single output value is determined and the single output value is provided by the first synapse CB1 for generating one of the pixels in the feature layer C1. The 3×3 filter is then shifted by one pixel to the right in the input layer S0 (that is, a row of three pixels is added on the right side, and a row of three pixels is discarded on the left side), thereby positioning the new filter Nine of the pixel values are provided to the synapse CB1, where the pixel values are multiplied by the same weight, and the second single output value is determined by the associated synapse. This process continues for all three colors and for all bits (precision values) until the 3×3 filter spans the entire 32×32 pixel image scan of the input layer S0. The procedure is then repeated using different weight sets to generate different feature maps of C1 until all feature maps of layer C1 have been calculated.

在層C1中,在本發明具體例中,存在16個特徵圖,每一特徵圖具有30×30個像素。每一像素為自使輸入與核心相乘提取之新特徵像素,且因此每一特徵圖為二維陣列,且因此在此實施例中,層C1構成二維陣列之16個層(應謹記,本文中所提及之層及陣列為邏輯關係,未必為實體關係,亦即,陣列未必定向於實體二維陣列中)。層C1中之16個特徵圖中之每一者由施加至濾波器掃描之十六個不同突觸權重集合中的一者產生。C1特徵圖可皆針對同一影像特徵之不同態樣,諸如邊界識別。舉例而言,第一圖(使用第一權重集合產生,共用於用以產生此第一圖之所有掃描)可識別圓形邊緣,第二圖(使用不同於第一權重集合之第二權重集合產生)可識別矩形邊緣,或某些特徵之縱橫比等。In the layer C1, in the specific example of the present invention, there are 16 feature maps, and each feature map has 30×30 pixels. Each pixel is a new feature pixel extracted by multiplying the input and the core, and therefore each feature map is a two-dimensional array, and therefore in this embodiment, layer C1 constitutes 16 layers of the two-dimensional array (remember , The layers and arrays mentioned in this article are logical relationships, not necessarily physical relationships, that is, the arrays may not necessarily be oriented in a physical two-dimensional array). Each of the 16 feature maps in layer C1 is generated by one of the sixteen different synaptic weight sets applied to the filter scan. The C1 feature maps can all target different aspects of the same image feature, such as boundary recognition. For example, the first image (generated using the first weight set, which is used in all scans used to generate this first image) can identify circular edges, and the second image (using a second weight set different from the first weight set) Generated) can identify the edge of a rectangle, or the aspect ratio of certain features, etc.

在自層C1進入層S1之前應用激發函數P1(池化(pooling)),其池化來自每一特徵圖中之連續非重疊2×2區的值。池化函數之目的為使附近位置達到平均數(或亦可使用最大函數),以例如降低邊緣位置之相依性且在進入下一階段之前縮減資料大小。在層S1處,存在16個15×15特徵圖(亦即,各自具有15×15個像素之十六個不同陣列)。自層S1進入層C2之突觸CB2用4×4濾波器掃描S1中之圖,其中濾波器移位1個像素。在層C2處,存在22個12×12特徵圖。在自層C2進入層S2之前應用激發函數P2 (池化),其池化來自每一特徵圖中之連續非重疊2×2區的值。在層S2處,存在22個6×6特徵圖。在自層S2進入層C3之突觸CB3處應用激發函數(池化),其中層C3中之每一神經元經由CB3之各別突觸連接至層S2中之每一圖。在層C3處,存在64個神經元。自層C3進入輸出層S3之突觸CB4將C3完全連接至S3,亦即,層C3中之每一神經元連接至層S3中之每一神經元。S3處之輸出包括10個神經元,其中最高輸出神經元判定類別。此輸出可例如指示原始影像之內容之識別或分類。The excitation function P1 (pooling) is applied before entering the layer S1 from the layer C1, and the pooling is derived from the values of the continuous non-overlapping 2×2 regions in each feature map. The purpose of the pooling function is to average the nearby locations (or the maximum function can also be used), for example to reduce the dependency of edge locations and reduce the data size before entering the next stage. At layer S1, there are 16 15×15 feature maps (that is, 16 different arrays of 15×15 pixels each). The synapse CB2 entering layer C2 from layer S1 scans the image in S1 with a 4×4 filter, where the filter is shifted by 1 pixel. At layer C2, there are 22 12×12 feature maps. The excitation function P2 (pooling) is applied before entering layer S2 from layer C2, which pools values from continuous non-overlapping 2×2 regions in each feature map. At layer S2, there are 22 6×6 feature maps. The firing function (pooling) is applied at the synapse CB3 from layer S2 to layer C3, where each neuron in layer C3 is connected to each graph in layer S2 via a separate synapse of CB3. At layer C3, there are 64 neurons. The synapse CB4 entering the output layer S3 from layer C3 fully connects C3 to S3, that is, every neuron in layer C3 is connected to every neuron in layer S3. The output at S3 includes 10 neurons, of which the highest output neuron determines the category. This output can, for example, indicate the identification or classification of the content of the original image.

每一突觸層係使用非揮發性記憶體單元之陣列或陣列之一部分來實作。Each synapse layer is implemented using an array or part of an array of non-volatile memory cells.

圖9為可用於彼目的之系統的方塊圖。向量矩陣乘法(VMM)系統32包括非揮發性記憶體單元,且用作一個層與下一層之間的突觸(諸如圖6中之CB1、CB2、CB3及CB4)。具體言之,VMM系統32包括包含配置成列及行之非揮發性記憶體單元之VMM陣列33、抹除閘極及字線閘極解碼器34、控制閘極解碼器35、位元線解碼器36及源極線解碼器37,其解碼用於非揮發性記憶體單元陣列33之各別輸入。至VMM陣列33之輸入可來自抹除閘極及字線閘極解碼器34或來自控制閘極解碼器35。源極線解碼器37在此實施例中亦解碼VMM陣列33之輸出。替代地,位元線解碼器36可解碼VMM陣列33的輸出。Figure 9 is a block diagram of a system that can be used for that purpose. The vector matrix multiplication (VMM) system 32 includes non-volatile memory cells and serves as a synapse between one layer and the next layer (such as CB1, CB2, CB3, and CB4 in FIG. 6). Specifically, the VMM system 32 includes a VMM array 33 including non-volatile memory cells arranged in columns and rows, an erase gate and word line gate decoder 34, a control gate decoder 35, and a bit line decoder. The decoder 36 and the source line decoder 37 are used for the respective input of the non-volatile memory cell array 33 for decoding. The 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 also decodes the output of the VMM array 33 in this embodiment. Alternatively, the bit line decoder 36 may decode the output of the VMM array 33.

VMM陣列33用於兩個目的。第一,其儲存將由VMM系統32使用之權重。第二,VMM陣列33有效地使輸入乘以儲存於VMM陣列33中之權重,且按輸出線(源極線或位元線)將結果相加以產生輸出,該輸出將為至下一層之輸入或至最終層之輸入。藉由執行乘法及加法函數,VMM陣列33消除對分開的乘法及加法邏輯電路之需要,且由於其就地記憶體計算亦為功率高效的。The VMM array 33 serves two purposes. First, it stores the weights to be used by the VMM system 32. Second, the VMM array 33 effectively multiplies the input by the weight stored in the VMM array 33, and adds the result by the output line (source line or bit line) to generate an output, which will be the input to the next layer Or the input to the final layer. By performing multiplication and addition functions, the VMM array 33 eliminates the need for separate multiplication and addition logic circuits, and is also power efficient due to its on-site memory calculations.

VMM陣列33的輸出經供應至差分求和器(諸如求和運算放大器或求和電流鏡)38,其對VMM陣列33之輸出進行求和以產生用於彼捲積之單個值。差分求和器38經配置以執行正權重輸入與負權重輸入之求和以輸出單個值。The output of the VMM array 33 is supplied to a differential summer (such as a summing operational amplifier or a summing current mirror) 38, which sums the output of the VMM array 33 to produce a single value for that convolution. The difference summer 38 is configured to perform the summation of the positive weight input and the negative weight input to output a single value.

接著將差分求和器38之總計輸出值供應至對輸出進行整流之激發函數電路39。激發函數電路39可提供S型(sigmoid)、雙曲正切(tanh)、ReLU函數,或任何其他非線性函數。激發函數電路39之經整流輸出值變成下一層(例如圖8中之C1)之特徵圖之元素,且隨後應用於下一突觸以產生下一特徵圖層或最終層。因此,在此實施例中,VMM陣列33構成複數個突觸(其自先前神經元層或自諸如影像資料庫之輸入層接收其輸入),並且求和器38和激發函數電路39構成複數個神經元。Then, the total output value of the differential summer 38 is supplied to the excitation function circuit 39 that rectifies the output. The excitation function circuit 39 can provide a sigmoid, a hyperbolic tangent (tanh), a ReLU function, or any other non-linear function. The rectified output value of the excitation function circuit 39 becomes an element of the feature map of the next layer (for example, C1 in FIG. 8), and is then applied to the next synapse to generate the next feature layer or final layer. Therefore, in this embodiment, the VMM array 33 constitutes a plurality of synapses (which receive their input from the previous neuron layer or from an input layer such as an image database), and the summer 38 and the excitation function circuit 39 constitute a plurality of synapses. Neurons.

至圖9中之VMM系統32的輸入(WLx、EGx、CGx且視情況地BLx及SLx)可為類比層級、二進位層級、數位脈衝(在此狀況下,可能需要脈衝至類比轉換器PAC以將脈衝轉換至適當輸入類比層級)或數位位元(在此狀況下,提供DAC以將數位位元轉換至適當輸入類比層級),且輸出可為類比層級、二進位層級、數位脈衝或數位位元(在此狀況下,提供輸出ADC以將輸出類比層級轉換成數位位元)。The inputs (WLx, EGx, CGx, and BLx and SLx as appropriate) to the VMM system 32 in Figure 9 can be analog level, binary level, digital pulse (in this case, a pulse to analog converter PAC may be required to Convert the pulse to the appropriate input analog level) or digital bit (in this case, a DAC is provided to convert the digital bit to the appropriate input analog level), and the output can be analog level, binary level, digital pulse or digital bit Yuan (in this case, an output ADC is provided to convert the output analog level into digital bits).

圖10為描繪VMM系統32(此處標記為VMM系統32a、32b、32c、32d及32e)之眾多層之使用的方塊圖。如圖10中所展示,表示為Inputx之輸入由數位至類比轉換器31自數位轉換至類比,且經提供至輸入VMM系統32a。經轉換之類比輸入可為電壓或電流。第一層之輸入D/A轉換可藉由使用函數或查找表(LUT)來進行,該函數或LUT將輸入Inputx映射至適用於輸入VMM系統32a之矩陣乘法器的類比層級。輸入轉換亦可由類比至類比(A/A)轉換器進行以將外部類比輸入轉換為至輸入VMM系統32a之經映射類比輸入。輸入轉換亦可由數位至數位脈衝(D/P)轉換器進行以將外部數位輸入轉換為至輸入VMM系統32a之一個或多個經映射數位脈衝。Figure 10 is a block diagram depicting the use of many layers of the VMM system 32 (labeled here as VMM systems 32a, 32b, 32c, 32d, and 32e). As shown in FIG. 10, the input represented as Inputx is converted from digital to analog by the digital to analog converter 31, and is provided to the input VMM system 32a. The converted analog input can be voltage or current. The input D/A conversion of the first layer can be performed by using a function or a look-up table (LUT) that maps the input Inputx to an analog level suitable for the matrix multiplier of the input VMM system 32a. The input conversion can also be performed by an analog-to-analog (A/A) converter to convert the external analog input to a mapped analog input to the input VMM system 32a. The input conversion can also be performed by a digital-to-digital pulse (D/P) converter to convert an external digital input into one or more mapped digital pulses to the input VMM system 32a.

由輸入VMM系統32a產生之輸出經提供為至下一VMM系統(隱藏層級1) 32b之輸入,該輸入又產生經提供為至下一VMM系統(隱藏層級2)32c之輸入的輸出,等等。VMM系統32之各種層充當捲積神經網路(CNN)之突觸及神經元的不同層。每一VMM系統32a、32b、32c、32d及32e可為包含各別非揮發性記憶體陣列之獨立、實體系統,或多個VMM系統可利用同一實體非揮發性記憶體陣列之不同部分,或多個VMM系統可利用同一實體非揮發性記憶體陣列之重疊部分。每一VMM系統32a、32b、32c、32d及32e亦可針對其陣列或神經元之各種部分進行時間多工。圖10中所展示之實施例含有五個層(32a、32b、32c、32d、32e):一個輸入層(32a)、兩個隱藏層(32b、32c)及兩個完全連接層(32d、32e)。一般熟悉本技藝者將瞭解,此僅為例示性的,且系統替代地可包含多於兩個隱藏層及多於兩個完全連接層。 VMM陣列The output produced by the input VMM system 32a is provided as input to the next VMM system (hidden level 1) 32b, which in turn produces an output that is provided as input to the next VMM system (hidden level 2) 32c, etc. . The various layers of the VMM system 32 serve as different layers of synapses and neurons of a convolutional neural network (CNN). Each VMM system 32a, 32b, 32c, 32d, and 32e can be an independent, physical system including a separate non-volatile memory array, or multiple VMM systems can use different parts 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 time multiplex various parts of its array or neurons. The embodiment shown in Figure 10 contains 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 understand that this is merely illustrative, and the system may alternatively include more than two hidden layers and more than two fully connected layers. VMM array

圖11描繪神經元VMM陣列1100,其尤其適合於如圖3中所展示之記憶體單元310,且用作輸入層與下一層之間的突觸及神經元部分。VMM陣列1100包含非揮發性記憶體單元之記憶體陣列1101及非揮發性參考記憶體單元之參考陣列1102 (在陣列之頂部處)。替代地,另一參考陣列可置放於底部處。FIG. 11 depicts a neuron VMM array 1100, which is particularly suitable for the memory unit 310 as shown in FIG. 3, and is used as a synapse and neuron part between the input layer and the next layer. The VMM array 1100 includes a memory array 1101 of non-volatile memory cells and a reference array 1102 of non-volatile reference memory cells (at the top of the array). Alternatively, another reference array can be placed at the bottom.

在VMM陣列1100中,控制閘極線(諸如控制閘極線1103)在豎直方向上延伸(因此,列方向上之參考陣列1102與控制閘極線1103正交),且抹除閘極線(諸如抹除閘極線1104)在水平方向上延伸。此處,至VMM陣列1100之輸入設置於控制閘極線(CG0、CG1、CG2、CG3)上,且VMM陣列1100之輸出出現於源極線(SL0、SL1)上。在一個具體例中,僅使用偶數列,且在另一具體例中,僅使用奇數列。置放於每一源極線(分別為SL0、SL1)上之電流對來自連接至彼特定源極線之記憶體單元的所有電流執行求和函數。In the VMM array 1100, the control gate line (such as the control gate line 1103) extends in the vertical direction (therefore, the reference array 1102 in the column direction is orthogonal to the control gate line 1103), and the gate line is erased (Such as erase gate line 1104) extends in the horizontal direction. Here, the input to the VMM array 1100 is arranged on the control gate lines (CG0, CG1, CG2, CG3), and the output of the VMM array 1100 appears on the source lines (SL0, SL1). In one specific example, only even-numbered columns are used, and in another specific example, only odd-numbered columns are used. The current placed on each source line (SL0, SL1, respectively) performs a summation function on all currents from the memory cells connected to that specific source line.

如本文中針對神經網路所描述,VMM陣列1100之非揮發性記憶體單元,亦即,VMM陣列1100之快閃記憶體,較佳經組態以在次臨限區中操作。As described herein for the neural network, the non-volatile memory unit of the VMM array 1100, that is, the flash memory of the VMM array 1100, is preferably configured to operate in the secondary threshold area.

本文中所描述之非揮發性參考記憶體單元及非揮發性記憶體單元在弱反轉(weak inversion)中經偏壓: Ids = Io * e(Vg-Vth)/nVt = w * Io * e(Vg)/nVt , 其中w =e(-Vth)/nVt 其中Ids為汲極至源極電流;Vg為記憶體單元上之閘極電壓;Vth為記憶體單元之臨限電壓;Vt為熱電壓k*T/q,其中k為波茲曼常數,T為以克耳文為單位之溫度,並且q為電子電荷;n為斜率因數= 1 + (Cdep/Cox),其中Cdep =耗盡層之電容並且Cox為閘極氧化物層之電容;Io為等於臨限電壓之閘極電壓下之記憶體單元電流,Io係與(Wt/L)*u*Cox* (n-1) * Vt2 成比例,其中u為記憶體單元之載流子遷移率,且Wt及L分別為寬度及長度。The non-volatile reference memory cell and the non-volatile memory cell described in this article are biased in weak inversion: Ids = Io * e (Vg-Vth)/nVt = w * Io * e (Vg)/nVt , where w = e (-Vth)/nVt where Ids is the drain-to-source current; Vg is the gate voltage on the memory cell; Vth is the threshold voltage of the memory cell; Vt is the heat Voltage k*T/q, where k is Boltzmann's constant, T is the temperature in Kelvin, and q is the electronic charge; n is the slope factor = 1 + (Cdep/Cox), where Cdep = depletion The capacitance of the layer and Cox is the capacitance of the gate oxide layer; Io is the current of the memory cell at the gate voltage equal to the threshold voltage, and Io is the same as (Wt/L)*u*Cox* (n-1) * Vt 2 is proportional, where u is the carrier mobility of the memory cell, and Wt and L are the width and length, respectively.

為了令使用記憶體單元(諸如參考記憶體單元或周邊記憶體單元)或電晶體之I至V日誌轉換器將輸入電流Ids轉換成輸入電壓,Vg: Vg= n*Vt*log [Ids/wp*Io] 此處,wp為參考或周邊記憶體單元之w。In order to make the I to V log converter using memory cells (such as reference memory cells or peripheral memory cells) or transistors convert the input current Ids into input voltage, Vg: Vg= n*Vt*log [Ids/wp*Io] Here, wp is the w of the reference or peripheral memory unit.

為了令使用記憶體單元(諸如參考記憶體單元或周邊記憶體單元)或電晶體之I至V日誌轉換器將輸入電流Ids轉換成輸入電壓,Vg: Vg= n*Vt*log [Ids/wp*Io]In order to make the I to V log converter using memory cells (such as reference memory cells or peripheral memory cells) or transistors convert the input current Ids into input voltage, Vg: Vg= n*Vt*log [Ids/wp*Io]

此處,wp為參考或周邊記憶體單元之w。Here, wp is the w of the reference or peripheral memory unit.

對於用作向量矩陣乘法器VMM陣列之記憶體陣列,輸出電流為: Iout = wa * Io * e(Vg)/nVt ,亦即 Iout = (wa/wp) * Iin = W * Iin W = e(Vthp - Vtha)/nVt Iin = wp * Io * e(Vg)/nVt 此處,wa=記憶體陣列中之每一記憶體單元的w。For a memory array used as a vector matrix multiplier VMM array, the output current is: Iout = wa * Io * e (Vg)/nVt , that is, Iout = (wa/wp) * Iin = W * Iin W = e ( Vthp-Vtha)/nVt Iin = wp * Io * e (Vg)/nVt where wa = w of each memory cell in the memory array.

字線或控制閘極可用作用於輸入電壓之記憶體單元之輸入。The word line or the control gate can be used as the input of the memory cell for the input voltage.

替代地,本文中所描述之VMM陣列的非揮發性記憶體單元可經組態以在線性區中操作: Ids = beta* (Vgs-Vth)*Vds;beta = u*Cox*Wt/L, Wα (Vgs-Vth), 此意謂線性區中之權重W係與(Vgs-Vth)成比例Alternatively, the non-volatile memory cells of the VMM array described herein can be configured to operate in the linear region: Ids = beta* (Vgs-Vth)*Vds; beta = u*Cox*Wt/L, Wα (Vgs-Vth), This means that the weight W in the linear region is proportional to (Vgs-Vth)

字線或控制閘極或位元線或源極線可用作在線性區中操作之記憶體單元之輸入。位元線或源極線可用作記憶體單元之輸出。Word lines or control gates or bit lines or source lines can be used as inputs for memory cells operating in the linear region. The bit line or the source line can be used as the output of the memory cell.

對於I至V線性轉換器,記憶體單元(諸如,參考記憶體單元或周邊記憶體單元)或在線性區中操作之電晶體或電阻器可用以將輸入/輸出電流線性地轉換成輸入/輸出電壓。For I to V linear converters, memory cells (such as reference memory cells or peripheral memory cells) or transistors or resistors operating in the linear region can be used to linearly convert input/output currents into input/output Voltage.

替代地,本文中所描述之VMM陣列的記憶體單元可經組態以在飽和區中操作: Ids =1 /2 * beta* (Vgs-Vth)2 ;beta = u*Cox*Wt/L Wα (Vgs-Vth)2 ,此意謂權重W與(Vgs-Vth)2 成比例Alternatively, the VMM memory cell array of the described herein may be configured to operate in the saturation region: Ids = 1/2 * beta * (Vgs-Vth) 2; beta = u * Cox * Wt / L Wα (Vgs-Vth) 2 , which means that the weight W is proportional to (Vgs-Vth) 2

字線、控制閘極或抹除閘極可用作在飽和區中操作之記憶體單元的輸入。位元線或源極線可用作輸出神經元之輸出。Word lines, control gates or erase gates can be used as inputs for memory cells operating in the saturation region. The bit line or the source line can be used as the output of the output neuron.

替代地,本文中所描述之VMM陣列之記憶體單元可用於所有區或其組合(次臨限、線性或飽和)中。Alternatively, the memory cells of the VMM array described herein can be used in all regions or combinations thereof (second threshold, linear, or saturation).

用於圖9之VMM陣列33的其他具體例描繪於美國專利申請案第15/826,345號中,該申請案以引用之方式併入本文中。如彼申請案中所描繪,源極線或位元線可用作神經元輸出(電流求和輸出)。Other specific examples for the VMM array 33 of FIG. 9 are depicted in U.S. Patent Application No. 15/826,345, which is incorporated herein by reference. As described in that application, source lines or bit lines can be used as neuron output (current summation output).

圖12描繪神經元VMM陣列1200,其尤其適合於如圖2中所展示之記憶體單元210,且用作輸入層與下一層之間的突觸。VMM陣列1200包含非揮發性記憶體單元之記憶體陣列1203、第一非揮發性參考記憶體單元之參考陣列1201及第二非揮發性參考記憶體單元之參考陣列1202。配置於陣列之行方向上的參考陣列1201及1202用以將流動至端子BLR0、BLR1、BLR2及BLR3中之電流輸入轉換成電壓輸入WL0、WL1、WL2及WL3。實際上,第一及第二非揮發性參考記憶體單元為二極體連接之貫穿多工器1214(僅部分描繪),其中電流輸入流動至該等多工器中。參考單元經調諧(例如程式化)至目標參考層級。目標參考層級由參考迷你陣列矩陣(圖中未展示)提供。FIG. 12 depicts a neuron VMM array 1200, which is particularly suitable for the memory cell 210 as shown in FIG. 2, and is used as a synapse between the input layer and the next layer. The VMM array 1200 includes a memory array 1203 of non-volatile memory cells, a reference array 1201 of first non-volatile reference memory cells, and a reference array 1202 of second non-volatile reference memory cells. The reference arrays 1201 and 1202 arranged in the row direction of the array are used to convert the current input flowing into the terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs WL0, WL1, WL2, and WL3. In fact, the first and second non-volatile reference memory cells are diode-connected through multiplexers 1214 (only partially depicted), in which current input flows into the multiplexers. The reference unit is tuned (eg, programmed) to the target reference level. The target reference level is provided by the reference mini-array matrix (not shown in the figure).

記憶體陣列1203用於兩個目的。第一,其儲存將由VMM陣列1200在其各別記憶體單元上使用之權重。第二,記憶體陣列1203有效地使輸入(亦即,在端子BLR0、BLR1、BLR2及BLR3中提供之電流輸入,其由參考陣列1201及1202轉換成輸入電壓以供應至字線WL0、WL1、WL2及WL3)乘以儲存於記憶體陣列1203中之權重,且隨後將所有結果(記憶體單元電流)相加以在各別位元線(BL0至BLN)上產生輸出,該輸出將會是至下一層之輸入或至最終層之輸入。藉由執行乘法及加法函數,記憶體陣列1203消除對分開的乘法及加法邏輯電路之需求,且亦為功率高效的。此處,電壓輸入設置於字線WL0、WL1、WL2及WL3上,且輸出在讀取(推理)操作期間出現於各別位元線BL0至BLN上。置放於位元線BL0至BLN中之每一者上之電流對來自連接至彼特定位元線之所有非揮發性記憶體單元的電流執行求和函數。The memory array 1203 serves two purposes. First, it stores the weights to be used by the VMM array 1200 on its individual memory cells. Second, the memory array 1203 effectively makes the input (ie, the current input provided in the terminals BLR0, BLR1, BLR2, and BLR3) converted into input voltages by the reference arrays 1201 and 1202 to be supplied to the word lines WL0, WL1, and WL1. WL2 and WL3) are multiplied by the weights stored in the memory array 1203, and then all the results (memory cell currents) are added to generate an output on the respective bit lines (BL0 to BLN), and the output will be to Input to the next layer or input to the final layer. By performing multiplication and addition functions, the memory array 1203 eliminates the need for separate multiplication and addition logic circuits, and is also power efficient. Here, the voltage input is provided on the word lines WL0, WL1, WL2, and WL3, and the output appears on the respective bit lines BL0 to BLN during the read (inference) operation. The current placed on each of the bit lines BL0 to BLN performs a summation function on the currents from all non-volatile memory cells connected to that specific bit line.

表5描繪用於VMM陣列1200之操作電壓。該表中之行指示置放於用於選定的單元之字線、用於未選定單元之字線、用於選定的單元之位元線、用於未選定單元之位元線、用於選定的單元之源極線及用於未選定單元之源極線上的電壓,其中FLT指示浮動,亦即未施加電壓。列指示讀取、抹除及程式化之操作。 5 :圖 12 VMM 陣列 1200 之操作:    WL WL - 未選定 BL BL - 未選定 SL SL - 未選定 讀取 0.5-3.5V -0.5V/0V 0.1-2V (Ineuron) 0.6V-2V/FLT 0V 0V 抹除 ~5-13V 0V 0V 0V 0V 0V 程式化 1-2V -0.5V/0V 0.1-3 uA Vinh ~2.5V 4-10V 0-1V/FLT Table 5 depicts the operating voltage for the VMM array 1200. The rows in the table indicate the word lines used for selected cells, the word lines used for unselected cells, the bit lines used for selected cells, the bit lines used for unselected cells, and the word lines used for selected cells. The voltage on the source line of the cell and the source line for unselected cells, where FLT indicates floating, that is, no voltage is applied. Column indicates the operations of reading, erasing and programming. Table 5 : Operation of the VMM array 1200 in Figure 12: WL WL- not selected BL BL- not selected SL SL- not selected Read 0.5-3.5V -0.5V/0V 0.1-2V (Ineuron) 0.6V-2V/FLT 0V 0V Erase ~5-13V 0V 0V 0V 0V 0V Stylized 1-2V -0.5V/0V 0.1-3 uA Vinh ~2.5V 4-10V 0-1V/FLT

圖13描繪神經元VMM陣列1300,其尤其適合於如圖2中所展示之記憶體單元210,且用作輸入層與下一層之間的突觸及神經元部分。VMM陣列1300包含非揮發性記憶體單元之記憶體陣列1303、第一非揮發性參考記憶體單元之參考陣列1301及第二非揮發性參考記憶體單元之參考陣列1302。參考陣列1301及1302在VMM陣列1300之行方向上延伸。VMM陣列類似於VMM 1000,除了在VMM陣列1300中,字線在豎直方向上延伸之外。此處,輸入設置於字線(WLA0、WLB0、WLA1、WLB2、WLA2、WLB2、WLA3、WLB3)上,且輸出在讀取操作期間出現於源極線(SL0、SL1)上。置放於每一源極線上之電流對來自連接至彼特定源極線之記憶體單元的所有電流執行求和函數。FIG. 13 depicts a neuron VMM array 1300, which is particularly suitable for the memory unit 210 as shown in FIG. 2, and is used as a synapse and neuron part between the input layer and the next layer. The VMM array 1300 includes a memory array 1303 of non-volatile memory cells, a reference array 1301 of first non-volatile reference memory cells, and a reference array 1302 of second non-volatile 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 in the VMM array 1300, the word lines extend in the vertical direction. Here, the input is set on the word lines (WLA0, WLB0, WLA1, WLB2, WLA2, WLB2, WLA3, WLB3), and the output appears on the source line (SL0, SL1) during the read operation. The current placed on each source line performs a summation function on all currents from the memory cells connected to that specific source line.

表6描繪用於VMM陣列1300之操作電壓。表中之行指示置放於以下各者上之電壓:用於選定的單元之字線、用於未選定單元之字線、用於選定的單元之位元線、用於未選定單元之位元線、用於選定的單元之源極線及用於未選定單元之源極線。列指示讀取、抹除及程式化之操作。 6 :圖 13 VMM 陣列 1300 之操作    WL WL -未選定 BL BL -未選定 SL SL -未選定 讀取 0.5-3.5V -0.5V/0V 0.1-2V 0.1V-2V/FLT ~0.3-1V (Ineuron) 0V 抹除 ~5-13V 0V 0V 0V 0V SL-抑制(~4- 8V) 程式化 1-2V -0.5V/0V 0.1-3 uA Vinh ~2.5V 4-10V 0-1V/FLT Table 6 depicts the operating voltage for the VMM array 1300. The rows in the table indicate the voltages placed on each of the following: word lines for selected cells, word lines for unselected cells, bit lines for selected cells, and bits for unselected cells Element lines, source lines for selected cells, and source lines for unselected cells. Column indicates the operations of reading, erasing and programming. Table 6 : Operation of the VMM array 1300 in Figure 13 WL WL-not selected BL BL-not selected SL SL-not selected Read 0.5-3.5V -0.5V/0V 0.1-2V 0.1V-2V/FLT ~0.3-1V (Ineuron) 0V Erase ~5-13V 0V 0V 0V 0V SL-inhibition (~4- 8V) Stylized 1-2V -0.5V/0V 0.1-3 uA Vinh ~2.5V 4-10V 0-1V/FLT

圖14描繪神經元VMM陣列1400,其尤其適合於如圖3中所展示之記憶體單元310,且用作輸入層與下一層之間的突觸及神經元部分。VMM陣列1400包含非揮發性記憶體單元之記憶體陣列1403、第一非揮發性參考記憶體單元之參考陣列1401及第二非揮發性參考記憶體單元之參考陣列1402。參考陣列1401及1402用以將流動至端子BLR0、BLR1、BLR2及BLR3中之電流輸入轉換成電壓輸入CG0、CG1、CG2及CG3。實際上,第一及第二非揮發性參考記憶體單元為二極體連接之貫穿多工器1412(僅部分顯示),其中電流輸入經由BLR0、BLR1、BLR2及BLR3流動至該等多工器中。多工器1412各自包括各別多工器1405及串疊電晶體1404以確保在讀取操作期間第一及第二非揮發性參考記憶體單元中之每一者之位元線(諸如BLR0)上的恆定電壓。參考單元經調校至目標參考層級。FIG. 14 depicts a neuron VMM array 1400, which is particularly suitable for the memory unit 310 as shown in FIG. 3, and is used as a synapse and neuron part between the input layer and the next layer. The VMM array 1400 includes a memory array 1403 of non-volatile memory cells, a reference array 1401 of first non-volatile reference memory cells, and a reference array 1402 of second non-volatile reference memory cells. The reference arrays 1401 and 1402 are used to convert the current inputs flowing into the terminals BLR0, BLR1, BLR2, and BLR3 into voltage inputs CG0, CG1, CG2, and CG3. In fact, the first and second non-volatile reference memory units are diode-connected through multiplexers 1412 (only partly shown), in which current input flows to these multiplexers via BLR0, BLR1, BLR2, and BLR3 in. The multiplexers 1412 each include a respective multiplexer 1405 and a tandem transistor 1404 to ensure the bit line (such as BLR0) of each of the first and second non-volatile reference memory cells during a read operation Constant voltage on. The reference unit is adjusted to the target reference level.

記憶體陣列1403用於兩個目的。第一,其儲存將由VMM陣列1400使用之權重。第二,記憶體陣列1403有效地使輸入(提供至端子BLR0、BLR1、BLR2及BLR3之電流輸入,其中參考陣列1401及1402將此等電流輸入轉換成輸入電壓以供應至控制閘極(CG0、CG1、CG2及CG3))乘以儲存於記憶體陣列中之權重,且隨後所有結果(單元電流)相加以產生輸出,該輸出顯現於BL0至BLN上,且將會是至下一層之輸入或至最終層之輸入。藉由執行乘法及加法函數,記憶體陣列消除對分開的乘法及加法邏輯電路之需求,且亦為功率高效的。此處,輸入設置於控制閘極線(CG0、CG1、CG2及CG3)上,且輸出在讀取操作期間出現於位元線(BL0至BLN)上。置放於每一位元線上之電流對來自連接至彼特定位元線之記憶體單元的所有電流執行求和函數。The memory array 1403 serves two purposes. First, it stores the weights to be used by the VMM array 1400. Second, the memory array 1403 effectively makes the input (current input provided to the terminals BLR0, BLR1, BLR2, and BLR3), and the reference arrays 1401 and 1402 convert these current inputs into input voltages to be supplied to the control gates (CG0, BLR2, and BLR3). CG1, CG2, and CG3)) are multiplied by the weights stored in the memory array, and then all the results (cell currents) are added to produce an output, which appears on BL0 to BLN, and will be the input to the next layer or Input to the final layer. By performing multiplication and addition functions, the memory array eliminates the need for separate multiplication and addition logic circuits and is also power efficient. Here, the input is provided on the control gate lines (CG0, CG1, CG2, and CG3), and the output appears on the bit lines (BL0 to BLN) during the read operation. The current placed on each bit line performs a summation function on all currents from the memory cells connected to that specific bit line.

VMM陣列1400對記憶體陣列1403中之非揮發性記憶體單元實施單向調校。亦即,每一非揮發性記憶體單元經抹除且隨後經部分程式化,直至達至浮動閘極上之所需電荷。此可例如使用下文所描述之精密程式化技術來執行。若過多電荷被置放於浮動閘極上(使得錯誤值儲存於單元中),則單元必須被抹除且部分程式化操作之序列必須重新開始。如所展示,共用同一抹除閘極(諸如EG0或EG1)之兩個列需要被一起抹除(此已知為頁面抹除),且此後,部分地程式化每一單元直至達至浮動閘極上之所需電荷。The VMM array 1400 performs unidirectional calibration on the non-volatile memory cells in the memory array 1403. That is, each non-volatile memory cell is erased and then partially programmed until it reaches the required charge on the floating gate. This can be performed, for example, using the sophisticated programming techniques described below. If too much charge is placed on the floating gate (so that the error value is stored in the cell), the cell must be erased and the sequence of partial programming operations must be restarted. As shown, two rows sharing the same erase gate (such as EG0 or EG1) need to be erased together (this is known as page erase), and after that, each cell is partially programmed until the floating gate is reached The required electric charge on the extreme.

表7描繪用於VMM陣列1400之操作電壓。該表中之行指示置放於以下各者上之電壓:用於選定的單元之字線,用於未選定單元之字線,用於選定的單元之位元線,用於未選定單元之位元線,用於選定的單元之控制閘極,用於與選定的單元處於同一扇區中之未選定單元之控制閘極,用於與選定的單元處於不同扇區中之未選定單元之控制閘極,用於選定的單元之抹除閘極,用於未選定單元之抹除閘極,用於選定的單元之源極線,及用於未選定單元之源極線。該等列指示讀取、抹除及程式化操作。 7 :圖 14 VMM 陣列 1400 之操作    WL WL – 未選 BL BL - 未選 CG CG - 選定的 同一扇區 CG – 未選 EG EG – 未選 SL SL – 未選 讀取 0.5-2V -0.5V/ 0V 0.1-2V (Ineuron) 0V/FLT 0-2.6V 0-2.6V 0-2.6V 0-2.6V 0-2.6V 0V 0V 抹除 0V 0V 0V 0V 0V 0-2.6V 0-2.6V 5-12V 0-2.6V 0V 0V 程式化 0.7-1V -0.5V/ 0V 0.1-1uA Vinh (1-2V) 4-11V 0-2.6V 0-2.6V 4.5-5V 0-2.6V 4.5-5V 0-1V Table 7 depicts the operating voltage for the VMM array 1400. The rows in the table indicate the voltages placed on each of the following: word lines for selected cells, word lines for unselected cells, bit lines for selected cells, and bit lines for unselected cells Bit line, used for the control gate of the selected cell, used for the control gate of the unselected cell in the same sector as the selected cell, used for the unselected cell in a different sector from the selected cell The control gate is used for the erase gate of the selected cell, used for the erase gate of the unselected cell, used for the source line of the selected cell, and used for the source line of the unselected cell. These lines indicate reading, erasing, and programming operations. Table 7 : Operation of the VMM array 1400 in Figure 14 WL WL - not selected BL BL - not selected CG CG- the same sector not selected CG - not selected EG EG - not selected SL SL - not selected Read 0.5-2V -0.5V/ 0V 0.1-2V (Ineuron) 0V/FLT 0-2.6V 0-2.6V 0-2.6V 0-2.6V 0-2.6V 0V 0V Erase 0V 0V 0V 0V 0V 0-2.6V 0-2.6V 5-12V 0-2.6V 0V 0V Stylized 0.7-1V -0.5V/ 0V 0.1-1uA Vinh (1-2V) 4-11V 0-2.6V 0-2.6V 4.5-5V 0-2.6V 4.5-5V 0-1V

圖15描繪神經元VMM陣列1500,其尤其適合於如圖3中所展示之記憶體單元310,且用作輸入層與下一層之間的突觸及神經元部分。VMM陣列1500包含非揮發性記憶體單元之記憶體陣列1503、第一非揮發性參考記憶體單元之參考陣列1501及第二非揮發性參考記憶體單元之參考陣列1502。EG線EGR0、EG0、EG1及EGR1豎直地延伸,同時CG線CG0、CG1、CG2及CG3以及SL線WL0、WL1、WL2及WL3水平地延伸。VMM陣列1500類似於VMM陣列1400,除了VMM陣列1500實施雙向調校之外,其中歸因於單獨EG線之使用,每一個別單元可視需要經完全抹除、部分程式化及部分抹除以達到浮動閘極上之所需電荷量。如所展示,參考陣列1501及1502將端子BLR0、BLR1、BLR2及BLR3中之輸入電流轉換成待在列方向上施加至記憶體單元之控制閘極電壓CG0、CG1、CG2及CG3(二極體連接之參考單元貫穿多工器1514進行之動作)。電流輸出(神經元)在位元線BL0至BLN中,其中每一位元線對來自連接至彼特定位元線之非揮發性記憶體單元的所有電流進行求和。FIG. 15 depicts a neuron VMM array 1500, which is particularly suitable for the memory unit 310 as shown in FIG. 3, and is used as a synapse and neuron part between the input layer and the next layer. The VMM array 1500 includes a memory array 1503 of non-volatile memory cells, a reference array 1501 of first non-volatile reference memory cells, and a reference array 1502 of second non-volatile reference memory cells. The EG lines EGR0, EG0, EG1, and EGR1 extend vertically, while the CG lines CG0, CG1, CG2, and CG3 and the SL lines WL0, WL1, WL2, and WL3 extend horizontally. The VMM array 1500 is similar to the VMM array 1400, except that the VMM array 1500 implements two-way calibration. Due to the use of a separate EG line, each individual unit can be completely erased, partially programmed and partially erased as needed. The amount of charge required on the floating gate. As shown, the reference arrays 1501 and 1502 convert the input currents in the terminals BLR0, BLR1, BLR2, and BLR3 into control gate voltages CG0, CG1, CG2, and CG3 to be applied to the memory cells in the column direction (diode The connected reference unit runs through the actions performed by the multiplexer 1514). The current output (neuron) is in the bit lines BL0 to BLN, where each bit line sums all the currents from the non-volatile memory cells connected to that specific bit line.

表8描繪用於VMM陣列1500之操作電壓。該表中之行指示置放於以下各者上之電壓:用於選定的單元之字線,用於未選定單元之字線,用於選定的單元之位元線,用於未選定單元之位元線,用於選定的單元之控制閘極,用於與選定的單元處於同一扇區中之未選定單元之控制閘極,用於與選定的單元處於不同扇區中之未選定單元之控制閘極,用於選定的單元之抹除閘極,用於未選定單元之抹除閘極,用於選定的單元之源極線,及用於未選定單元之源極線。該等列指示讀取、抹除及程式化操作。 8 :圖 15 VMM 陣列 1500 之操作    WL WL – 未選定 BL BL – 未選定 CG CG - 未選 定之同一 扇區 CG – 未選定 EG EG - 選定 SL SL - 選定 讀取 1.0-2V -0.5V/ 0V 0.6-2V (Ineuron) 0V/FLT 0-2.6V 0 -2.6V 0-2.6V 0-2.6V 0-2.6V 0V 0V/FLT 抹除 0V 0V 0V 0V 0V 4-9V 0-2.6V 5-12V 0-2.6V 0V 0V 程式化 0.7-1V -0.5V/ 0V 0.1-1uA Vinh (1-2V) 4-11V 0-2.6V 0-2.6V 4.5-5V 0-2.6V 4.5 5V 0-1V Table 8 depicts the operating voltage for the VMM array 1500. The rows in the table indicate the voltages placed on each of the following: word lines for selected cells, word lines for unselected cells, bit lines for selected cells, and bit lines for unselected cells Bit line, used for the control gate of the selected cell, used for the control gate of the unselected cell in the same sector as the selected cell, used for the unselected cell in a different sector from the selected cell The control gate is used for the erase gate of the selected cell, used for the erase gate of the unselected cell, used for the source line of the selected cell, and used for the source line of the unselected cell. These lines indicate reading, erasing, and programming operations. Table 8 : Operation of the VMM array 1500 in Figure 15 WL WL- not selected BL BL- not selected CG CG - not selected the same sector CG- not selected EG EG- not selected SL SL- not selected Read 1.0-2V -0.5V/ 0V 0.6-2V (Ineuron) 0V/FLT 0-2.6V 0 -2.6V 0-2.6V 0-2.6V 0-2.6V 0V 0V/FLT Erase 0V 0V 0V 0V 0V 4-9V 0-2.6V 5-12V 0-2.6V 0V 0V Stylized 0.7-1V -0.5V/ 0V 0.1-1uA Vinh (1-2V) 4-11V 0-2.6V 0-2.6V 4.5-5V 0-2.6V 4.5 5V 0-1V

圖16描繪神經元VMM陣列1600,其尤其適合於如圖2中所展示之記憶體單元210,且用作輸入層與下一層之間的突觸及神經元部分。在VMM陣列1600中,輸入INPUT0 、...、INPUTN 分別在位元線BL0 、...、BLN 上經接收,且輸出OUTPUT1 、OUTPUT2 、OUTPUT3 及OUTPUT4 分別產生於源極線SL0 、SL1 、SL2 及SL3 上。FIG. 16 depicts a neuron VMM array 1600, which is particularly suitable for the memory unit 210 as shown in FIG. 2, and is used as a synapse and neuron part between the input layer and the next layer. In the VMM array 1600, the inputs INPUT 0 ,..., INPUT N are respectively received on the bit lines BL 0 ,..., BL N , and the outputs OUTPUT 1 , OUTPUT 2 , OUTPUT 3, and OUTPUT 4 are respectively generated on On the source lines SL 0 , SL 1 , SL 2 and SL 3 .

圖17描繪神經元VMM陣列1700,其尤其適合於如圖2中所展示之記憶體單元210,且用作輸入層與下一層之間的突觸及神經元部分。在此具體例中,輸入INPUT0 、INPUT1 、INPUT2 及INPUT3 分別在源極線SL0 、SL1 、SL2 及SL3 上經接收,且輸出OUTPUT0 、...、OUTPUTN 產生於位元線BL0 、...、BLN 上。FIG. 17 depicts a neuron VMM array 1700, which is particularly suitable for the memory unit 210 as shown in FIG. 2, and is used as a synapse and neuron part between the input layer and the next layer. In this specific example, the inputs INPUT 0 , INPUT 1 , INPUT 2 and INPUT 3 are received on the source lines SL 0 , SL 1 , SL 2 and SL 3 respectively, and the outputs OUTPUT 0 ,..., OUTPUT N are generated On the bit lines BL 0 ,..., BL N.

圖18描繪神經元VMM陣列1800,其尤其適合於如圖2中所展示之記憶體單元210,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTM 分別在字線WL0 、...、WLM 上經接收,且輸出OUTPUT0 ...、OUTPUTN 產生於位元線BL0 、...、BLN 上。FIG. 18 depicts a neuron VMM array 1800, which is particularly suitable for the memory unit 210 as shown in FIG. 2, and is used as a synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 , ..., INPUT M are respectively received on the word lines WL 0 , ..., WL M , and the outputs OUTPUT 0 , ..., OUTPUT N are generated on the bit lines BL 0 ,..., BL N on.

圖19描繪神經元VMM陣列1900,其尤其適合於如圖3中所展示之記憶體單元310,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTM 分別在字線WL0 、...、WLM 上經接收,且輸出OUTPUT0 ...、OUTPUTN 產生於位元線BL0 、...、BLN 上。FIG. 19 depicts a neuron VMM array 1900, which is particularly suitable for the memory unit 310 as shown in FIG. 3, and is used as a synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 , ..., INPUT M are respectively received on the word lines WL 0 , ..., WL M , and the outputs OUTPUT 0 , ..., OUTPUT N are generated on the bit lines BL 0 ,..., BL N on.

圖20描繪神經元VMM陣列2000,其尤其適合於如圖4中所展示之記憶體單元410,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTn 分別在豎直控制閘極線CG0 、...、CGN 上經接收,且輸出OUTPUT1 及OUTPUT2 產生於源極線SL0 及SL1 上。FIG. 20 depicts a neuron VMM array 2000, which is particularly suitable for the memory unit 410 as shown in FIG. 4, and is used as a synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 ,..., INPUT n are respectively received on the vertical control gate lines CG 0 ,..., CG N , and the outputs OUTPUT 1 and OUTPUT 2 are generated on the source line SL 0 and SL 1 .

圖21描繪神經元VMM陣列2100,其尤其適合於如圖4中所展示之記憶體單元410,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTN 分別在位元線控制閘極2901-1、2901-2、...、2901-(N-1)及2901-N之閘極上經接收,該等位元線控制閘極分別耦接至位元線BL0 、...、BLN 。例示性輸出OUTPUT1 及OUTPUT2 產生於源極線SL0 及SL1 上。FIG. 21 depicts a neuron VMM array 2100, which is particularly suitable for the memory unit 410 as shown in FIG. 4, and is used as a synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 ,..., INPUT N are respectively on the gates of the bit line control gates 2901-1, 2901-2,..., 2901-(N-1) and 2901-N Upon reception, the bit line control gates are respectively coupled to the bit lines BL 0 ,..., BL N. The exemplary outputs OUTPUT 1 and OUTPUT 2 are generated on the source lines SL 0 and SL 1 .

圖22描繪神經元VMM陣列2200,其尤其適合於如圖3中所展示之記憶體單元310、如圖5中所展示之記憶體單元510及如圖7中所展示之記憶體單元710,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTM 在字線WL0 、...、WLM 上經接收,且輸出OUTPUT0 、...、OUTPUTN 分別產生於位元線BL0 、...、BLN 上。FIG. 22 depicts a neuron VMM array 2200, which is particularly suitable for the memory unit 310 as shown in FIG. 3, the memory unit 510 as shown in FIG. 5, and the memory unit 710 as shown in FIG. 7, and Used as the synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 , ..., INPUT M are received on the word lines WL 0 , ..., WL M , and the outputs OUTPUT 0 , ..., OUTPUT N are respectively generated on the bit lines BL 0 ,..., BL N on.

圖23描繪神經元VMM陣列2300,其尤其適合於如圖3中所展示之記憶體單元310、如圖5中所展示之記憶體單元510及如圖7中所展示之記憶體單元710,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTM 在控制閘極線CG0 、...、CGM 上經接收。輸出OUTPUT0 、...、OUTPUTN 分別產生於豎直源極線SL0 、...、SLN 上,其中每一源極線SLi 耦接至行i中之所有記憶體單元之源極線。FIG. 23 depicts a neuron VMM array 2300, which is particularly suitable for the memory unit 310 as shown in FIG. 3, the memory unit 510 as shown in FIG. 5, and the memory unit 710 as shown in FIG. 7, and Used as the synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 ,..., INPUT M are received on the control gate lines CG 0 ,..., CG M. The outputs OUTPUT 0 ,..., OUTPUT N are respectively generated on the vertical source lines SL 0 ,..., SL N , where each source line SL i is coupled to the source of all memory cells in row i Polar line.

圖24描繪神經元VMM陣列2400,其尤其適合於如圖3中所展示之記憶體單元310、如圖5中所展示之記憶體單元510及如圖7中所展示之記憶體單元710,且用作輸入層與下一層之間的突觸及神經元部分。在此實施例中,輸入INPUT0 、...、INPUTM 經接收在控制閘極線CG0 、...、CGM 上。輸出OUTPUT0 、...、OUTPUTN 分別經產生在豎直位元線BL0 、...、BLN 上,其中每一位元線BLi 耦接至行i中之所有記憶體單元之位元線。 長短期記憶體FIG. 24 depicts a neuron VMM array 2400, which is particularly suitable for the memory unit 310 as shown in FIG. 3, the memory unit 510 as shown in FIG. 5, and the memory unit 710 as shown in FIG. 7, and Used as the synapse and neuron part between the input layer and the next layer. In this embodiment, the inputs INPUT 0 ,..., INPUT M are received on the control gate lines CG 0 ,..., CG M. The outputs OUTPUT 0 ,..., OUTPUT N are respectively generated on the vertical bit lines BL 0 ,..., BL N , wherein each bit line BL i is coupled to one of all memory cells in row i Bit line. Long and short term memory

先前技術包括已知為長短期記憶體(LSTM)之概念。LSTM部件常常用於神經網路。LSTM允許神經網路在預定任意時間間隔內記住資訊且在後續操作中使用彼資訊。習知LSTM部件包含單元、輸入閘極、輸出閘極及遺忘閘極。三個閘極調節資訊進入及離開單元之流動及在LSTM中記住資訊的時間間隔。VMM尤其適用於LSTM部件。The prior art includes a concept known as long and short-term memory (LSTM). LSTM components are often used in neural networks. LSTM allows the neural network to remember information within a predetermined arbitrary time interval and use that information in subsequent operations. Conventional LSTM components include cells, input gates, output gates, and forget gates. The three gates regulate the flow of information into and out of the unit and the time interval for remembering information in the LSTM. VMM is especially suitable for LSTM components.

圖25描繪例示性LSTM 2500。LSTM 2500在此實施例中包含單元2501、2502、2503及2504。單元2501接收輸入向量x0 ,且產生輸出向量h0 及單元狀態向量c0 。單元2502接收輸入向量x1 、來自單元2501之輸出向量(隱藏狀態)h0 及來自單元2501之單元狀態c0 ,且產生輸出向量h1 及單元狀態向量c1 。單元2503接收輸入向量x2 、來自單元2502之輸出向量(隱藏狀態)h1 及來自單元2502之單元狀態c1 ,且產生輸出向量h2 及單元狀態向量c2 。單元2504接收輸入向量x3 、來自單元2503之輸出向量(隱藏狀態) h2 及來自單元2503之單元狀態c2 ,並且產生輸出向量h3 。可使用額外單元,並且具有四個單元之LSTM僅僅為實施例。Figure 25 depicts an exemplary LSTM 2500. The LSTM 2500 includes units 2501, 2502, 2503, and 2504 in this embodiment. The unit 2501 receives an input vector x 0 and generates an output vector h 0 and a unit state vector c 0 . The unit 2502 receives the input vector x 1 , the output vector (hidden state) h 0 from the unit 2501 and the unit state c 0 from the unit 2501, and generates an output vector h 1 and a unit state vector c 1 . The unit 2503 receives the input vector x 2 , the output vector (hidden state) h 1 from the unit 2502 and the unit state c 1 from the unit 2502, and generates an output vector h 2 and a unit state vector c 2 . The unit 2504 receives the input vector x 3 , the output vector (hidden state) h 2 from the unit 2503 and the unit state c 2 from the unit 2503, and generates an output vector h 3 . Additional units can be used, and the LSTM with four units is just an example.

圖26描繪LSTM單元2600之例示性實作,其可用於圖25中之單元2501、2502、2503及2504。LSTM單元2600接收輸入向量x(t)、來自前述單元之單元狀態向量c(t-1)及來自前述單元之輸出向量h(t-1),且產生單元狀態向量c(t)及輸出向量h(t)。FIG. 26 depicts an exemplary implementation of LSTM cell 2600, which can be used in cells 2501, 2502, 2503, and 2504 in FIG. 25. The LSTM unit 2600 receives the input vector x(t), the unit state vector c(t-1) from the aforementioned unit, and the output vector h(t-1) from the aforementioned unit, and generates the unit state vector c(t) and output vector h(t).

LSTM單元2600包含S型函數裝置2601、2602及2603,其中之每一者應用0與1之間的數字以控制輸入向量中之每一分量被允許通過輸出向量之量。LSTM單元2600亦包含用以將雙曲正切函數應用於輸入向量之雙曲正切裝置2604及2605、用以將兩個向量相乘起來之乘法器裝置2606、2607及2608以及用以將兩個向量相加起來之加法裝置2609。輸出向量h(t)可提供至系統中之下一LSTM單元,或其可經存取以用於其他目的。The LSTM unit 2600 includes S-shaped function devices 2601, 2602, and 2603, each of which applies a number between 0 and 1 to control the amount by which each component of the input vector is allowed to pass through the output vector. The LSTM unit 2600 also includes hyperbolic tangent devices 2604 and 2605 for applying the hyperbolic tangent function to the input vector, multiplier devices 2606, 2607 and 2608 for multiplying the two vectors together, and multiplier devices 2606, 2607 and 2608 for multiplying the two vectors. Adding device 2609 for adding up. The output vector h(t) can be provided to the next LSTM unit in the system, or it can be accessed for other purposes.

圖27描繪LSTM單元2700,其係LSTM單元2600之實作的實施例。為了方便讀者,來自LSTM單元2600之相同編號用於LSTM單元2700中。S型函數裝置2601、2602及2603以及雙曲正切裝置2604各自包含多個VMM陣列2701及激發電路區塊2702。因此,可見VMM陣列特別適用於在某些神經網路系統中使用之LSTM單元。FIG. 27 depicts an LSTM unit 2700, which is an implementation example of the LSTM unit 2600. For the convenience of the reader, the same number from the LSTM unit 2600 is used in the LSTM unit 2700. The S-shaped function devices 2601, 2602, and 2603 and the hyperbolic tangent device 2604 each include a plurality of VMM arrays 2701 and excitation circuit blocks 2702. Therefore, it can be seen that the VMM array is particularly suitable for LSTM units used in certain neural network systems.

圖28中展示LSTM單元2700之替代方案(及LSTM單元2600之實作的另一實施例)。在圖28中,S型函數裝置2601、2602及2603以及雙曲正切裝置2604可以時間多工方式共用同一實體硬體(VMM陣列2801及激發函數區塊2802)。LSTM單元2800亦包含用以將兩個向量相乘起來之乘法器裝置2803、用以將兩個向量相加起來之加法裝置2808、雙曲正切裝置2605(其包含激發電路區塊2802)、用以當自S型功能區塊2802輸出i(t)時儲存值i(t)之暫存器2807、用以當藉由多工器2810自乘法器裝置2803輸出值f(t) * c(t-1)時儲存彼值之暫存器2804、用以當藉由多工器2810自乘法器裝置2803輸出值i(t) * u(t)時儲存彼值之暫存器2805,及用以當藉由多工器2810自乘法器裝置2803輸出值o(t) * c~(t)時儲存彼值之暫存器2806,及多工器2809。An alternative to the LSTM unit 2700 (and another embodiment of the implementation of the LSTM unit 2600) is shown in FIG. 28. In FIG. 28, the S-shaped function devices 2601, 2602, and 2603 and the hyperbolic tangent device 2604 can share the same physical hardware (VMM array 2801 and excitation function block 2802) in a time multiplexing manner. The LSTM unit 2800 also includes a multiplier device 2803 for multiplying two vectors, an adding device 2808 for adding two vectors, a hyperbolic tangent device 2605 (which includes an excitation circuit block 2802), a The register 2807 that stores the value i(t) when outputting i(t) from the S-shaped functional block 2802 is used to output the value f(t) * c( The register 2804 to store that value at t-1), the register 2805 to store the value when the value i(t) * u(t) is output from the multiplier device 2803 through the multiplexer 2810, and The register 2806 and the multiplexer 2809 are used to store the value o(t) * c~(t) when the value o(t) * c~(t) is output from the multiplier device 2803 through the multiplexer 2810.

儘管LSTM單元2700含有多組VMM陣列2701及各別激發函數區塊2702,但LSTM單元2800僅含有一組VMM陣列2801及激發函數區塊2802,其用於表示LSTM單元2800之具體例中之多個層。LSTM單元2800將需要相較於LSTM 2700較少的空間,此係因為LSTM單元2800相比於LSTM單元2700將需要1/4之空間用於VMM及激發函數區塊。Although the LSTM unit 2700 contains multiple sets of VMM arrays 2701 and individual activation function blocks 2702, the LSTM unit 2800 only contains a set of VMM arrays 2801 and activation function blocks 2802, which are used to represent many of the specific examples of the LSTM unit 2800 Layers. The LSTM unit 2800 will require less space than the LSTM 2700, because the LSTM unit 2800 will require 1/4 of the space for the VMM and excitation function blocks compared to the LSTM unit 2700.

可進一步瞭解,LSTM部件將通常包含多個VMM陣列,其中之每一者需要由VMM陣列外部之特定電路區塊(諸如求和器及激發電路區塊以及高電壓產生區塊)提供的功能。為每一VMM陣列提供單獨電路區塊將需要半導體裝置內之大量空間且將略微低效。因此,下文所描述之具體例嘗試最小化VMM陣列自身在外部所需之電路。 閘控循環部件It can be further understood that LSTM components will generally include multiple VMM arrays, each of which requires functions provided by specific circuit blocks outside the VMM array (such as summer and excitation circuit blocks and high voltage generation blocks). Providing a separate circuit block for each VMM array will require a lot of space in the semiconductor device and will be slightly inefficient. Therefore, the specific example described below attempts to minimize the external circuitry required by the VMM array itself. Gated loop components

類比VMM實作可用於閘控循環部件(GRU)系統。GRU為循環神經網路中之閘控機構。GRU類似於LSTM,除了GRU單元通常含有少於LSTM單元之組件之外。The analog VMM implementation can be used in a gated loop unit (GRU) system. GRU is the gate control mechanism in the cyclic neural network. GRU is similar to LSTM, except that GRU units usually contain fewer components than LSTM units.

圖29描繪例示性GRU 2900。在此實施例中,GRU 2900包含單元2901、2902、2903及2904。單元2901接收輸入向量x0 並且產生輸出向量h0 。單元2902接收輸入向量x1 、來自單元2901之輸出向量h0 ,產生輸出向量h1 。單元2903接收輸入向量x2 及來自單元2902之輸出向量(隱藏狀態)h1 ,且產生輸出向量h2 。單元2904接收輸入向量x3 及來自單元2903之輸出向量(隱藏狀態) h2 並且產生輸出向量h3 。可使用額外單元,並且具有四個單元之GRU僅僅為實施例。Figure 29 depicts an exemplary GRU 2900. In this embodiment, the GRU 2900 includes units 2901, 2902, 2903, and 2904. Unit 2901 receives input vector x 0 and generates output vector h 0 . The unit 2902 receives the input vector x 1 and the output vector h 0 from the unit 2901, and generates an output vector h 1 . The unit 2903 receives the input vector x 2 and the output vector (hidden state) h 1 from the unit 2902, and generates an output vector h 2 . The unit 2904 receives the input vector x 3 and the output vector (hidden state) h 2 from the unit 2903 and generates an output vector h 3 . Additional units can be used, and a GRU with four units is just an example.

圖30描繪GRU單元3000之例示性實作,該GRU單元可用於圖29的單元2901、2902、2903及2904。GRU單元3000接收輸入向量x(t)及來自前一GRU單元之輸出向量h(t-1),且產生輸出向量h(t)。GRU單元3000包含S型函數裝置3001及3002,其中之每一者將0與1之間的數字應用至來自輸出向量h(t-1)及輸入向量x(t)之分量。GRU單元3000亦包含用以應用雙曲正切函數至輸入向量之雙曲正切裝置3003,用以將兩個向量相乘起來之複數個乘法器裝置3004、3005及3006,用以將兩個向量相加起來之加法裝置3007及用以自1減去輸入以產生輸出之互補裝置3008。FIG. 30 depicts an exemplary implementation of the GRU unit 3000, which can be used for the units 2901, 2902, 2903, and 2904 of FIG. 29. The GRU unit 3000 receives the input vector x(t) and the output vector h(t-1) from the previous GRU unit, and generates an output vector h(t). The GRU unit 3000 includes S-shaped function devices 3001 and 3002, each of which applies a number between 0 and 1 to the components from the output vector h(t-1) and the input vector x(t). The GRU unit 3000 also includes a hyperbolic tangent device 3003 for applying a hyperbolic tangent function to the input vector, and a plurality of multiplier devices 3004, 3005, and 3006 for multiplying two vectors together, to phase the two vectors An adding device 3007 for adding up and a complementary device 3008 for subtracting input from 1 to generate output.

圖31描繪GRU單元3100,其為GRU單元3000之實作的實施例。為方便讀者,與GRU單元3000相同之編號用於GRU單元3100中。如圖31中可見,S型函數裝置3001及3002以及雙曲正切裝置3003各自包含多個VMM陣列3101及激發函數區塊3102。因此,可見VMM陣列特別用於在某些神經網路系統中使用之GRU單元。FIG. 31 depicts the GRU unit 3100, which is an implementation example of the GRU unit 3000. For the convenience of the reader, the same number as the GRU unit 3000 is used in the GRU unit 3100. As can be seen in FIG. 31, the S-shaped function devices 3001 and 3002 and the hyperbolic tangent device 3003 each include a plurality of VMM arrays 3101 and excitation function blocks 3102. Therefore, it can be seen that the VMM array is particularly used for GRU units used in certain neural network systems.

圖32中展示GRU單元3100之替代方案(及GRU單元3000之實作的另一實施例)。在圖32中,GRU單元3200利用VMM陣列3201及激發函數區塊3202,該VMM陣列及激發函數區塊在經組態為S型函數時應用0與1之間的數字以控制輸入向量中之每一分量被允許通過輸出向量之量。在圖32中,S型函數裝置3001及3002以及雙曲正切裝置3003以時間多工方式共用同一實體硬體(VMM陣列3201及激發函數區塊3202)。GRU單元3200亦包含用以將兩個向量相乘起來之乘法器裝置3203、用以將兩個向量相加起來之加法裝置3205、用以自1減去輸入以產生輸出之互補裝置3209、多工器3204、用以當藉由多工器3204自乘法器裝置3203輸出值h(t-1) * r(t)時保存彼值之暫存器3206、用以當藉由多工器3204自乘法器裝置3203輸出值h(t-1) *z(t)時保存彼值之暫存器3207及用以當藉由多工器3204自乘法器裝置3203輸出值h^(t) * (1-z(t))時保存彼值之暫存器3208。An alternative to the GRU unit 3100 (and another embodiment of the implementation of the GRU unit 3000) is shown in FIG. 32. In FIG. 32, the GRU unit 3200 utilizes the VMM array 3201 and the excitation function block 3202. When the VMM array and the excitation function block are configured as sigmoid functions, a number between 0 and 1 is used to control the input vector. Each component is allowed to pass through the amount of output vector. In FIG. 32, the S-shaped function devices 3001 and 3002 and the hyperbolic tangent device 3003 share the same physical hardware (VMM array 3201 and excitation function block 3202) in a time multiplexing manner. The GRU unit 3200 also includes a multiplier device 3203 for multiplying two vectors, an adding device 3205 for adding two vectors, a complementary device 3209 for subtracting an input from 1 to generate an output, and a multiplier device 3203 for adding two vectors together. The multiplexer 3204, the register 3206 used to store the value h(t-1) * r(t) when the value h(t-1) * r(t) is output from the multiplier device 3203 through the multiplexer 3204, and the register 3206 used when the multiplexer 3204 outputs the value h(t-1) * r(t). When the self-multiplier device 3203 outputs the value h(t-1) *z(t), the register 3207 that saves that value and is used when the self-multiplier device 3203 outputs the value h^(t) through the multiplexer 3204 * (1-z(t)) is the register 3208 that saves that value.

雖然GRU單元3100含有多組VMM陣列3101及激發函數區塊3102,但GRU單元3200僅含有一組VMM陣列3201及激發函數區塊3202,其用於表示GRU單元3200之具體例中之多個層。GRU單元3200將需要相較於GRU單元3100較少的空間,此係因為GRU單元3200相比於GRU單元3100將需要1/3之空間用於VMM及激發函數區塊。Although the GRU unit 3100 contains multiple sets of VMM arrays 3101 and excitation function blocks 3102, the GRU unit 3200 only contains one set of VMM arrays 3201 and excitation function blocks 3202, which are used to represent multiple layers in the specific example of the GRU unit 3200 . The GRU unit 3200 will require less space than the GRU unit 3100, because the GRU unit 3200 will require 1/3 of the space for the VMM and excitation function block compared to the GRU unit 3100.

可進一步瞭解,GRU系統將通常包含多個VMM陣列,其中之每一者需要由VMM陣列外部之某些電路區塊(諸如求和器及激發電路區塊以及高電壓產生區塊)提供的功能。為每一VMM陣列提供單獨電路區塊將需要半導體裝置內之大量空間且將略微低效。因此,下文所描述之具體例嘗試最小化VMM陣列自身在外部所需之電路。It can be further understood that the GRU system will usually include multiple VMM arrays, each of which requires functions provided by certain circuit blocks outside the VMM array (such as summer and excitation circuit blocks and high voltage generation blocks). . Providing a separate circuit block for each VMM array will require a lot of space in the semiconductor device and will be slightly inefficient. Therefore, the specific example described below attempts to minimize the external circuitry required by the VMM array itself.

至VMM陣列之輸入可為類比層級、二進位層級、定時脈衝或數位位元,且輸出可為類比層級、二進位層級、定時脈衝或數位位元(在此狀況下,需要輸出ADC將輸出類比層級電流或電壓轉換成數位位元)。The input to the VMM array can be analog level, binary level, timing pulse or digital bit, and the output can be analog level, binary level, timing pulse or digital bit (in this case, the output ADC is required to output analog Level current or voltage is converted into digital bits).

對於VMM陣列中之每一記憶體單元,每一權重w可由單個記憶體單元或差分單元或兩個混合記憶體單元(2個或更多個單元之平均值)來實作。在差分單元狀況下,需要兩個記憶體單元以將權重w實作為差分權重(w = w+ - w-)。在兩個混合記憶體單元中,需要兩個記憶體單元以將權重w實作為兩個單元之平均值。 用於VMM中之單元的精確程式化之具體例For each memory cell in the VMM array, each weight w can be implemented by a single memory cell or a differential cell or two mixed memory cells (average of 2 or more cells). In the case of the differential unit, two memory units are required to use the weight w as the differential weight (w = w+-w-). In two hybrid memory cells, two memory cells are required to make the weight w as the average of the two cells. Specific examples of precise programming of units used in VMM

圖33A描繪程式化方法3300。首先,該方法開始(步驟3301),其通常回應於接收程式命令而進行。接下來,大量程式化操作將所有單元程式化為「0」狀態(步驟3302)。接著,軟抹除操作將所有單元抹除至中間弱抹除位準,使得每一單元將在讀取操作期間汲取例如大約3至5 μA之電流(步驟3303)。此與深度抹除位準相反,其中每一單元將在讀取操作期間汲取大約~20至30 μA之電流。接著,對所有未選定單元執行硬程式化,使其處於極深的程式化狀態,以將電子添加至單元的浮動閘極(步驟3304),以確保彼等單元實際上為「關閉」的,此意謂彼等單元將在讀取操作期間汲取可忽略的量的電流。Figure 33A depicts a stylized method 3300. First, the method starts (step 3301), which usually proceeds in response to receiving program commands. Next, a large number of programming operations program all units to the "0" state (step 3302). Then, the soft erase operation erases all cells to the middle weak erase level, so that each cell will draw a current of, for example, about 3 to 5 μA during the read operation (step 3303). This is in contrast to the deep erase level, where each cell will draw approximately ~20 to 30 μA of current during the read operation. Then, perform hard programming on all unselected cells to make them in a very deep programming state to add electrons to the floating gates of the cells (step 3304) to ensure that their cells are actually "closed". This means that their cells will draw a negligible amount of current during the read operation.

接著對選定的單元執行粗略程式化方法(以使單元更接近於目標,例如2X-100X目標)(步驟3305),隨後對選定的單元執行精確程式化方法(步驟3306)以程式化每一選定單元所需的精確值。Then a rough programming method is performed on the selected unit (to make the unit closer to the target, such as a 2X-100X target) (step 3305), and then a precise programming method is performed on the selected unit (step 3306) to program each selection The exact value required by the unit.

圖33B描繪另一程式化方法3310,其類似於程式化方法3300。然而,代替如在圖33A的步驟3302中之將所有單元程式化為「0」狀態之程式化操作,在該方法起始(步驟3301)之後,使用抹除操作以將所有單元抹除至「1」狀態(步驟3312)。接著,使用軟程式化操作(步驟3313)以將所有單元程式化至中間狀態(位準),使得每一單元將在讀取操作期間汲取大約3至5 uA之電流。之後,將遵循如圖33A所展示的粗略及精確程式化方法。圖33B的具體例之變化將完全移除軟程式化方法(步驟3313)。FIG. 33B depicts another stylization method 3310, which is similar to the stylization method 3300. However, instead of programming all cells to the "0" state as in step 3302 of FIG. 33A, after the method starts (step 3301), use an erase operation to erase all cells to "0". 1" state (step 3312). Then, a soft programming operation (step 3313) is used to program all cells to an intermediate state (level), so that each cell will draw about 3 to 5 uA of current during the read operation. After that, the rough and precise programming method as shown in Figure 33A will be followed. The change in the specific example of FIG. 33B will completely remove the soft programming method (step 3313).

圖34描繪粗略程式化方法3305之第一具體例,其為搜尋及執行方法3400。首先,執行查找表搜尋以基於意欲儲存於彼選定單元中之值判定用於選定單元之粗略目標電流值(ICT )(步驟3401)。此表例如藉由矽特性化或自晶圓測試中之校準創建。假設,選定單元可經程式化以儲存N個可能值(例如,128,64,32等)中之一者。N個值中之每一者將對應於在讀取操作期間藉由選定單元汲取之不同所需電流值(ID )。在一個具體例中,查找表可能含有M個可能的電流值以在搜尋及執行方法3400期間用作用於選定單元之粗略目標電流值ICT ,其中M為小於N的整數。舉例而言,若N為8,則M可為4,此意謂存在選定單元可儲存之8個可能值,並且4個粗略目標電流值中之一者將經選擇為用於搜尋及執行方法3400之粗略目標。亦即,搜尋及執行方法3400(其再次為粗略程式化方法3305之一具體例)預期快速地將選定單元程式化為略微接近所需值(ID )之值(ICT ),且接著精確程式化方法3306預期較精確地將選定單元程式化為極接近所需值(ID )。FIG. 34 depicts a first specific example of the coarse programming method 3305, which is the search and execution method 3400. First, a lookup table search is performed to determine the rough target current value (I CT ) for the selected cell based on the value intended to be stored in the selected cell (step 3401). This table is created, for example, by silicon characterization or calibration from wafer testing. Assume that the selected cell can be programmed to store one of N possible values (for example, 128, 64, 32, etc.). Each of the N values corresponding to the different desired current value (I D) during a read operation of the draw by the selected cell. In a specific example, the look-up table may contain M possible current values to be used as a rough target current value I CT for the selected cell during the search and execution of the method 3400, where M is an integer less than N. For example, if N is 8, then M can be 4, which means that there are 8 possible values that the selected cell can store, and one of the 4 rough target current values will be selected for the search and execution method Rough target for 3400. That is, search and execution method 3400 (again, which is one specific example of the coarse stylized Method 3305) is expected to quickly close the selected cell to be slightly stylized desired value (I D) of values (I CT), and then precisely method 3306 stylized expected more accurately selected unit is very close to the desired value stylized (I D).

表9及10中針對N=8及M=4之簡單實施例描繪單元值、所需電流值及粗略目標電流值的實施例: 9 :用於 N=8 N 個所需電流值的實施例 儲存於選定單元中之值 所需電流值 (ID ) 000 100 pA 001 200 pA 010 300 pA 011 400 pA 100 500 pA 101 600 pA 110 700 pA 111 800 pA 10 :用於 M=4 M 個目標電流值的實施例 粗略目標電流值 (ICT ) 相關聯單元值 800 pA+ ICTOFFSET1 000, 001 1600 pA+ ICTOFFSET2 010, 011 2400 pA+ ICTOFFSET3 100, 101 3200 pA+ ICTOFFSET4 110, 111 偏移值ICTOFFSETx 用於防止在粗略調校期間過沖所需電流值。Tables 9 and 10 depict examples of cell values, required current values, and rough target current values for simple embodiments with N=8 and M=4: Table 9 : Examples of N required current values for N=8 Example The value stored in the selected cell Required current value (I D ) 000 100 pA 001 200 pA 010 300 pA 011 400 pA 100 500 pA 101 600 pA 110 700 pA 111 800 pA Table 10: Example M = 4 for the current target value M Rough target current value (I CT ) Associated unit value 800 pA+ I CTOFFSET1 000, 001 1600 pA+ I CTOFFSET2 010, 011 2400 pA+ I CTOFFSET3 100, 101 3200 pA+ I CTOFFSET4 110, 111 The offset value I CTOFFSETx is used to prevent overshoot of the required current value during the rough adjustment.

一旦選擇粗略目標電流值ICT ,則藉由基於選定單元(例如,記憶體單元210、310、410或510)之單元架構類型將電壓v0 施加至選定單元之適當端子而程式化選定單元(步驟3402)。若選定單元屬於圖3中之記憶體單元310類型,則電壓v0 將經施加至控制閘極端子28,並且v0 可為取決於粗略目標電流值ICT 之5至7 V。視情況,v0 的值可自儲存v0 相對於粗略目標電流值ICT 之電壓查找表來判定。Once the rough target current value I CT is selected, the selected cell is programmed by applying voltage v 0 to the appropriate terminal of the selected cell based on the cell structure type of the selected cell (e.g., memory cell 210, 310, 410, or 510) ( Step 3402). If the selected cell belongs to the type of memory cell 310 in FIG. 3, the voltage v 0 will be applied to the control gate terminal 28, and v 0 can be 5 to 7 V depending on the rough target current value I CT. Depending on the situation, the value of v 0 can be determined from a voltage look-up table that stores v 0 with respect to the rough target current value I CT.

接下來,藉由施加電壓vi = vi-1 +vincrement 來程式化選定單元,其中i在1處開始並且每當重複此步驟時遞增,且其中vincrement 較小精細電壓,其將引起適合於所需改變之精細度的程式化程度(步驟3403)。因此,執行第一次步驟3403,i=1,並且v1 將為v0 + vincrement 。接著,進行驗證操作(步驟3404),其中對選定單元執行讀取操作且量測藉由選定單元(Icell )汲取之電流。若Icell 小於或等於ICT (其在此處為第一臨限值),則完成搜尋及執行方法3400並且精確程式化方法3306可開始。若Icell 不小於或等於ICT ,則重複步驟3403,並且i遞增。Next, program the selected cell by applying voltage v i = v i-1 + v increment , where i starts at 1 and increments every time this step is repeated, and where v increment is smaller than the fine voltage, which will cause The degree of programming suitable for the fineness of the desired change (step 3403). Therefore, the first step 3403 is executed, i=1, and v 1 will be v 0 + v increment . Then, a verification operation (step 3404) is performed, in which a read operation is performed on the selected cell and the current drawn by the selected cell (I cell) is measured. If I cell is less than or equal to I CT (which is the first threshold here), the search and execution method 3400 is completed and the precise programming method 3306 can begin. If I cell is not less than or equal to I CT , step 3403 is repeated, and i is incremented.

因此,在粗略程式化方法3305結束且精確程式化方法3306開始的時點,電壓vi 將會是用於程式化選定單元之最後一個電壓,且選定單元將儲存與粗略目標電流值ICT 相關聯的值。精確程式化方法3306的目標為將選定單元程式化至其中在讀取操作期間,其汲取電流ID (±可接受量的偏差,諸如+/-50 pA或+/-30%或更少),其為與值相關聯的所需電流值,其意欲儲存於選定單元中。Thus, the method 3305 ends the coarse stylized stylized and precise point method 3306 begins, the voltage v i will be the last for a selected programmable voltage unit, the selected cell and the target current value storage and coarse associated I CT Value. 3306 stylized precisely a target cell is selected stylized thereto during a read operation, which draws a current I D (± acceptable amount of deviation, such as +/- 50 pA or +/- 30% or less) , Which is the required current value associated with the value, which is intended to be stored in the selected cell.

圖35描繪不同電壓進展的實施例,其可在粗略和/或精確程式化方法3306期間施加至選定的記憶體單元之控制閘極。Figure 35 depicts examples of different voltage progressions that can be applied to the control gates of selected memory cells during the coarse and/or precise programming method 3306.

在第一方法下,將逐漸增加的電壓逐漸施加至控制閘極以進一步程式化選定的記憶體單元。起點係vi ,其為在粗略程式化方法3305期間施加的最後一個電壓。vp1 的增量經添加至v1 ,且電壓v1 + vp1 接著用於程式化選定單元(由進展3501中之左邊的第二脈衝指示)。vp1 係小於vincrement (在粗略程式化方法3305期間使用的電壓增量)的增量。在施加每一程式化電壓之後,執行驗證步驟(類似於步驟3404),其中判定Icell 是否小於或等於IPT1 (其為第一精確度目標電流值並且此處為第二臨限值),其中IPT1 = ID + IPT1OFFSET ,其中IPT1OFFSET 為經添加以防止程式化過沖之偏移值。若Icell 不小於或等於IPT1 ,則將另一增量vp1 添加至先前施加的程式化電壓,且重複該程序。在Icell 小於或等於IPT1 之點處,接著程式化序列的此部分停止。視情況,若IPT1 以足夠的精確度等於ID 或幾乎等於ID ,則成功地程式化選定的記憶體單元。In the first method, gradually increasing voltage is gradually applied to the control gate to further program the selected memory cell. Origin-based v i, which is the last voltage applied during the coarse stylized 3305 method. The increment of v p1 is added to v 1 , and the voltage v 1 + v p1 is then used to program the selected cell (indicated by the second pulse on the left in progress 3501). v p1 is an increment smaller than v increment (the voltage increment used during the coarse programming method 3305). After applying each programmed voltage, a verification step (similar to step 3404) is performed, in which it is determined whether I cell is less than or equal to I PT1 (which is the first accuracy target current value and here is the second threshold value), Where I PT1 = I D + I PT1OFFSET , where I PT1OFFSET is the offset value added to prevent programming overshoot. If I cell is not less than or equal to I PT1 , another increment v p1 is added to the previously applied programming voltage, and the procedure is repeated. At the point where I cell is less than or equal to I PT1 , then this part of the programming sequence stops. Optionally, if I PT1 with sufficient accuracy equal to or nearly equal to I D I D, the stylized successfully selected memory cell.

若IPT1 不足夠接近ID ,則可進行較小精細度的進一步程式化。此處,現在使用進展3502。用於進展3502之起點為用於進展3501下之程式化的最後一個電壓。Vp2 (其小於vp1 )之增量經添加至彼電壓,且經組合電壓經施加以程式化選定的記憶體單元。在施加每一程式化電壓之後,執行驗證步驟(類似於步驟3404),其中判定Icell 是否小於或等於IPT2 (其為第二精確度目標電流值並且此處為第三臨限值),其中IPT2 = ID + IPT2OFFSET ,IPT2OFFSET 為經添加以防止程式化過沖之偏移值。若Icell 不小於或等於IPT2 ,則將另一增量Vp2 添加至先前施加之程式化電壓,且重複該程序。在Icell 小於或等於IPT2 之點處,接著程式化序列的此部分停止。此處,假設IPT2 等於ID 或足夠接近ID 使得程式化可停止,此係由於已經以足夠的精確度達成目標值。一般熟悉本技藝者可瞭解,可以所使用之越來越小的程式化增量來應用額外進展。舉例而言,在圖36中,應用三個進展(3601,3602及3603)而非僅僅兩個。If I PT1 is not close enough to I D , further programming with a smaller degree of precision can be performed. Here, progress 3502 is now used. The starting point for progression 3502 is the last voltage used for programming under progression 3501. The increment of V p2 (which is less than v p1 ) is added to that voltage, and the combined voltage is applied to program the selected memory cell. After applying each programmed voltage, a verification step (similar to step 3404) is performed, in which it is determined whether I cell is less than or equal to I PT2 (which is the second accuracy target current value and here is the third threshold value), Where I PT2 = I D + I PT2OFFSET , I PT2OFFSET is the offset value added to prevent programming overshoot. If I cell is not less than or equal to I PT2 , another increment V p2 is added to the previously applied programming voltage, and the procedure is repeated. At the point where I cell is less than or equal to I PT2 , then this part of the programming sequence stops. Here, it is assumed I PT2 sufficiently close to or equal to I D I D may be programmable so that the stop, this is due to sufficient accuracy has reached the target value. Those who are generally familiar with the art can understand that additional advancements can be applied using smaller and smaller stylized increments. For example, in Figure 36, three progressions (3601, 3602, and 3603) are applied instead of just two.

在進展3503中展示第二方法。此處,代替增加在選定的記憶體單元之程式化期間施加之電壓,在逐漸增加時段的持續時間內施加相同電壓。代替添加增量電壓,諸如進展3501中之vp1 及進展3503中之vp2 ,時間tp1 之額外增量經添加至程式化脈衝使得每一所施加脈衝比先前施加之脈衝長tp1 。在施加每一程式化脈衝之後,執行相同驗證步驟,如先前針對進展3501所描述。視情況,可應用額外進展,其中經添加至程式化脈衝之時間的額外增量的持續時間短於先前所使用的進展。儘管僅展示一個時間進展,但一般熟悉本技藝者將瞭解,可應用任何數目個不同時間進展。The second method is shown in progress 3503. Here, instead of increasing the voltage applied during the programming period of the selected memory cell, the same voltage is applied for the duration of the gradually increasing period. Instead of adding incremental voltages, such as v p1 in progression 3501 and v p2 in progression 3503, an additional increment of time t p1 is added to the programmed pulse so that each applied pulse is longer than the previously applied pulse t p1 . After each stylized pulse is applied, the same verification steps are performed, as previously described for progress 3501. Optionally, additional progress may be applied, where the duration of the additional increment added to the time of the programmed pulse is shorter than the previously used progress. Although only one time progression is shown, generally those skilled in the art will understand that any number of different time progressions can be applied.

現將為粗略程式化方法3305之三個額外具體例提供額外細節。Additional details will now be provided for three additional specific examples of the rough stylized method 3305.

圖37描繪粗略程式化方法3305的第一具體例,其為自適應性校準方法3700。該方法開始(步驟3701)。該單元以預設開始值v0 經程式化(步驟3702)。不同於在搜尋及執行方法3400中,此處v0 並非自查找表導出,並且實際上可為相對較小的初始值。單元的控制閘極電壓係在第一電流值IR1 (例如,100na)及第二電流值IR2 (例如,10na)下量測,並且亞臨限斜率係基於彼等量測(例如,360 mV/dec)而判定並且儲存(步驟3703)。FIG. 37 depicts a first specific example of a rough programming method 3305, which is an adaptive calibration method 3700. The method starts (step 3701). The unit is programmed with a preset starting value v 0 (step 3702). Unlike in the search and execution method 3400, here v 0 is not derived from the lookup table, and may actually be a relatively small initial value. The control gate voltage of the unit is measured at the first current value IR1 (for example, 100na) and the second current value IR2 (for example, 10na), and the sub-threshold slope is based on these measurements (for example, 360 mV/ dec) to determine and store (step 3703).

判定新的所需電壓vi 。第一次執行此步驟時,i=1,並且v1 係使用諸如以下的亞臨限等式基於經儲存亞臨限斜率值及電流目標以及偏移值而經判定: Vi = Vi-1 + Vincrement, Vincrement係與Vg的斜率成比例 Vg= n*Vt*log [Ids/wa*Io] 此處,wa係記憶體單元之w,Ids係當前目標plusoffset值。Determining a new desired voltage v i. When this step is executed for the first time, i=1, and v 1 is determined based on the stored sub-threshold slope value, current target and offset value using a sub-threshold equation such as the following: Vi = Vi-1 + Vincrement, Vincrement is proportional to the slope of Vg Vg= n*Vt*log [Ids/wa*Io] Here, wa is the w of the memory unit, and Ids is the current target plusoffset value.

若經儲存斜率值相對較陡峭,則可使用相對較小電流偏移值。若經儲存斜率值相對較扁平,則可使用相對較高的電流偏移值。因此,判定斜率資訊將允許選擇針對所討論的特定單元定製的電流偏移值。此最終將使程式化程序較短。當重複此步驟時,i遞增,並且vi = vi-1 + vincrement 。接著使用vi程式化該單元。可自儲存vincrement 的值相對於目標電流值之查找表判定vincrementIf the stored slope value is relatively steep, a relatively small current offset value can be used. If the stored slope value is relatively flat, a relatively high current offset value can be used. Therefore, determining the slope information will allow the selection of a current offset value customized for the specific cell in question. This will eventually make the programming process shorter. When this procedure is repeated, I is incremented, and v i = v i-1 + v increment. Then use vi to program the unit. Available from the stored value v increment lookup table with respect to the target current value determination v increment.

接下來,進行驗證操作,其中對選定單元執行讀取操作,且量測藉由選定單元(Icell )汲取之電流(步驟3705)。若Icell 小於或等於ICT (其在此處為粗略目標臨限值),其中ICT 經設定= ID + ICTOFFSET ,其中ICTOFFSET 係經添加以防止程式化過沖之偏移值,則完成自適應性校準方法3700並且精確程式化方法2206可開始。若Icell 不小於或等於ICT ,則重複步驟3704到3705並且i遞增。Next, a verification operation is performed, in which a read operation is performed on the selected cell, and the current drawn by the selected cell (I cell ) is measured (step 3705). If I cell is less than or equal to I CT (which is the rough target threshold here), I CT is set = I D + I CTOFFSET , where I CTOFFSET is the offset value added to prevent programmed overshoot, Then the adaptive calibration method 3700 is completed and the precision programming method 2206 can begin. If I cell is not less than or equal to I CT , steps 3704 to 3705 are repeated and i is incremented.

圖38描繪自適應性校準方法3700之態樣。在步驟3803期間,電流源3801係用於將例示性電流值IR1及IR2應用於選定單元(此處,記憶體單元3802),且接著量測記憶體單元3802之控制閘極處之電壓(用於IR1之CGR1及用於IR2之CGR2)。該斜率將為(CGR2-CGR1)/dec。Figure 38 depicts an aspect of the adaptive calibration method 3700. During step 3803, the current source 3801 is used to apply the exemplary current values IR1 and IR2 to the selected cell (here, the memory cell 3802), and then measure the voltage at the control gate of the memory cell 3802 (using CGR1 for IR1 and CGR2 for IR2). The slope will be (CGR2-CGR1)/dec.

圖39描繪程式化方法3305之第二具體例,其為自適應性校準方法3900。該方法開始(步驟3901)。該單元以預設開始值V0 經程式化(步驟3902)。V0 係自查找表導出,諸如自矽特性化創建,該表值經偏移以便不過沖經程式化目標。FIG. 39 depicts a second specific example of the programming method 3305, which is the adaptive calibration method 3900. The method starts (step 3901). The unit is programmed with a preset starting value V 0 (step 3902). V 0 is derived from a look-up table, such as created from a silicon characterization, the table value is offset so as not to pass the programmed target.

在下一步驟3903中,創建I-V斜率參數,其用於預測下一程式化電壓,第一控制閘極讀取電壓VCGR1 經施加至選定單元,且量測所得單元電流IR1 。接著,第二控制閘極讀取電壓VCGR2 經施加至選定單元,且量測所得單元電流IR2 。斜率係例如根據子臨限區(在子臨限值中操作之單元)中之等式基於彼等量測而判定且儲存: 斜率= (VCGR1 - VCGR2 ) / (LOG(IR1 ) - LOG(IR2 )) (步驟3903)。用於VCGR1 及VCGR2 之值的實施例分別為1.5 V及1.3 V。In the next step 3903, an IV slope parameter is created, which is used to predict the next programmed voltage, the first control gate read voltage V CGR1 is applied to the selected cell, and the resulting cell current IR 1 is measured. Then, the second control gate read voltage V CGR2 is applied to the selected cell, and the resulting cell current IR 2 is measured. The slope is determined and stored, for example, based on the equations in the sub-threshold area (units operating in the sub-threshold value) based on their measurements: Slope = (V CGR1 -V CGR2 ) / (LOG(IR 1 )- LOG(IR 2 )) (Step 3903). Examples used for the values of V CGR1 and V CGR2 are 1.5 V and 1.3 V, respectively.

判定斜率資訊允許選擇針對所討論的特定單元定製的Vincrement 值。此最終將使程式化程序較短。The determination slope information allows the selection of a V increment value customized for the specific unit in question. This will eventually make the programming process shorter.

當重複步驟3904時,i遞增,新的所需程式化電壓Vi 係使用諸如以下之等式基於經儲存斜率值及電流目標以及偏移值而判定: Vi = Vi-1 + Vincrement , 其中對於i-1,Vincrement = α*斜率* (LOG (IR1 ) - LOG (ICT )), 其中ICT 為目標電流並且α為預定常數<1 (程式化偏移值)以防止過沖,例如,0.9。舉例而言,Vi係VSLP或VCGP,源極線或控制閘極程式化電壓。When step 3904 is repeated, i is incremented, and the new required programmed voltage V i is determined based on the stored slope value, current target and offset value using an equation such as the following: V i = V i-1 + V increment , Where for i-1, V increment = α*slope* (LOG (IR 1 )-LOG (I CT )), where I CT is the target current and α is a predetermined constant <1 (programmed offset value) to prevent Overshoot, for example, 0.9. For example, Vi is VSLP or VCGP, source line or control gate programming voltage.

該單元接著使用Vi經程式化。(步驟3904)The unit was then programmed using Vi. (Step 3904)

接下來,進行驗證操作,其中對選定單元執行讀取操作,且量測藉由選定單元(Icell )汲取之電流(步驟3906)。若Icell 小於或等於ICT (其在此處為粗略目標臨限值),其中ICT 經設定= ID + ICTOFFSET ,其中ICTOFFSET 為經添加以防止程式化過沖之偏移值,則該程序繼續進行至步驟3907。否則,該程序返回至步驟390且i遞增。Next, a verification operation is performed, in which a read operation is performed on the selected cell, and the current drawn by the selected cell (I cell ) is measured (step 3906). If I cell is less than or equal to I CT (which is the rough target threshold here), where I CT is set = I D + I CTOFFSET , where I CTOFFSET is the offset value added to prevent programmed overshoot, Then the procedure continues to step 3907. Otherwise, the procedure returns to step 390 and i is incremented.

在步驟3907中,Icell 與小於ICT 的臨限值CT2 進行比較。此目的在於觀察是否會發生過沖。亦即,儘管該目標係使Icell 小於ICT ,但若其遠小於ICT ,則會發生過沖且經儲存值可實際上對應於錯誤值。若Icell 不小於或等於ICT2 ,則不會發生過沖,並且自適應性校準方法3900已完成,此時,該程序進行至精確程式化方法3306。若Icell 小於或等於ICT2 ,則會發生過沖。接著抹除選定單元(步驟3908),且程式化程序在步驟3902處開始。視情況,若執行步驟3908超過預定數目的次數,則可認為選定單元為不應使用之不良單元。In step 3907, I cell is compared with a threshold value CT2 that is less than I CT. The purpose of this is to observe whether overshoot will occur. That is, although the target is to make I cell smaller than I CT , if it is much smaller than I CT , overshoot will occur and the stored value may actually correspond to an error value. If I cell is not less than or equal to I CT2 , no overshoot will occur, and the adaptive calibration method 3900 has been completed. At this time, the procedure proceeds to the precise programming method 3306. If I cell is less than or equal to I CT2 , overshoot will occur. The selected cell is then erased (step 3908), and the programming process starts at step 3902. Optionally, if step 3908 is executed more than a predetermined number of times, the selected unit can be considered as a bad unit that should not be used.

精確程式方法3306諸如由多個驗證及程式循環組成,其中以固定脈衝將程式化電壓遞增恆定的精密電壓或其中程式化電壓係固定的且程式化脈衝相對於下一個脈衝變化或為恆定的。The precise programming method 3306 is, for example, composed of multiple verification and programming cycles, in which the programming voltage is incremented by a constant pulse with a constant precision voltage or the programming voltage is fixed and the programming pulse changes or is constant with respect to the next pulse.

視情況,判定讀取或驗證操作期間之穿過選定的非揮發性記憶體單元之電流是否小於或等於第一臨限電流值之步驟可藉由將固定偏壓施加至非揮發性記憶體單元之端子、量測並數位化藉由選定的非揮發性記憶體單元汲取之電流以產生數位輸出位元,及比較數位輸出位元與表示第一臨限電流之數位位元來執行。Optionally, the step of determining whether the current passing through the selected non-volatile memory cell during the read or verify operation is less than or equal to the first threshold current value can be performed by applying a fixed bias to the non-volatile memory cell The terminal, measurement and digitization are performed by generating a digital output bit by the current drawn by the selected non-volatile memory unit, and comparing the digital output bit with the digital bit representing the first threshold current.

視情況,判定讀取或驗證操作期間之穿過選定的非揮發性記憶體單元之電流是否小於或等於第一臨限電流值之步驟可藉由將固定偏壓施加至非揮發性記憶體單元之端子、量測並數位化藉由選定的非揮發性記憶體單元汲取之電流以產生數位輸出位元、及比較數位輸出位元與表示第一臨限電流之數位位元來執行。Optionally, the step of determining whether the current passing through the selected non-volatile memory cell during the read or verify operation is less than or equal to the first threshold current value can be performed by applying a fixed bias to the non-volatile memory cell The terminal, measurement and digitization are performed by generating a digital output bit by the current drawn by the selected non-volatile memory unit, and comparing the digital output bit with the digital bit representing the first threshold current.

視情況,判定在讀取或驗證操作期間穿過選定的非揮發性記憶體單元之電流是否小於或等於第一臨限電流值之步驟可藉由將輸入施加至非揮發性記憶體單元之端子、以輸出脈衝調變藉由選定的非揮發性記憶體單元汲取之電流以產生經調變輸出、數位化經調變輸出以產生數位輸出位元、及比較數位輸出位元與表示第一臨限電流之數位位元來執行。Optionally, the step of determining whether the current passing through the selected non-volatile memory cell during the read or verify operation is less than or equal to the first threshold current value can be performed by applying an input to the terminal of the non-volatile memory cell , The output pulse modulates the current drawn by the selected non-volatile memory unit to generate a modulated output, digitizes the modulated output to generate a digital output bit, and compares the digital output bit with the first temporary It is implemented by the digital bits of the current limit.

圖40描繪程式化方法3305之第三具體例,其為絕對校準方法4000。該方法開始(步驟4001)。該單元以預設起始值V0 經程式化(步驟4002)。單元之控制閘極電壓(VCGRx)在電流值Itarget下經量測並且儲存(步驟4003)。新的所需電壓v1 係基於經儲存控制閘極電壓及電流目標以及偏移值Ioffset+Itarget而判定(步驟4004)。舉例而言,新的所需電壓v1 可如下計算:v1 = v0 + (VCGBIAS-經儲存VCGR),其中VCGBIAS =~ 1.5 V,其為最大目標電流下之預設讀取控制閘極電壓並且經儲存VCGR為步驟4003之經量測讀取控制閘極電壓。FIG. 40 depicts a third specific example of the programming method 3305, which is the absolute calibration method 4000. The method starts (step 4001). The unit is programmed with a preset starting value V 0 (step 4002). The control gate voltage (VCGRx) of the cell is measured and stored under the current value Itarget (step 4003). The new required voltage v 1 is determined based on the stored control gate voltage and current target and the offset value Ioffset+Itarget (step 4004). For example, the new required voltage v 1 can be calculated as follows: v 1 = v 0 + (VCGBIAS-stored VCGR), where VCGBIAS = ~ 1.5 V, which is the default read control gate at the maximum target current The voltage and the stored VCGR is the measured and read control gate voltage in step 4003.

使用vi 程式化該單元。當i=1時,使用來自步驟4004之電壓v1 。當i>=2時,使用電壓vi = vi-1 + Vincrement 。可自儲存vincrement 的值相對於目標電流值之查找表判定vincrement 。接下來,進行驗證操作,其中對選定單元執行讀取操作,且量測藉由選定單元(Icell )汲取之電流(步驟4006)。若Icell 小於或等於ICT (其在此處為臨限值),則完成絕對校準方法4000並且精確程式化方法3306可開始。若Icell 不小於或等於ICT ,則重複步驟4005到4006並且i遞增。V i using the programmable unit. When i=1, the voltage v 1 from step 4004 is used. When i> = 2, using a voltage v i = v i-1 + V increment. Available from the stored value v increment lookup table with respect to the target current value determination v increment. Next, a verification operation is performed, in which a read operation is performed on the selected cell, and the current drawn by the selected cell (I cell ) is measured (step 4006). If I cell is less than or equal to I CT (which is the threshold here), then the absolute calibration method 4000 is completed and the precision programming method 3306 can begin. If I cell is not less than or equal to I CT , steps 4005 to 4006 are repeated and i is incremented.

圖41描繪用於實施絕對校準方法4000之步驟4003的電路4100。電壓源(未展示)產生VCGR,其在初始電壓處開始並且向上斜升。此處,n+1個不同電流源4101 (4101-0、4101-1、4101-2、...、4101-n)產生具有逐漸增加的量值之不同電流IO0、IO1、IO2、…、IOn。每一電流源4101連接至反相器4102 (4102-0、4102-1、4102-2、...、4102-n)及記憶體單元4103 (4103-0、4103-1、4103-2、...、4103-n)。隨著VCGR向上斜升,每一記憶體單元4103汲取逐漸增加量的電流,且至每一反相器4102之輸入電壓減小。因為IO0 < IO1 < IO2 <... < IOn,所以反相器4102-0的輸出將隨著VCGR增加而自低切換為高。反相器4102-1之輸出接下來將自低切換為高,接著反相器4102-2之輸出將自低切換為高等等,直至反相器4102-n之輸出自低切換為高為止。每一反相器4102控制開關4104 (4104-0、4104-1、4104-2、…、4104-n),使得當反相器4102的輸出為高時,接通開關4104,此將使電容器4105 (4105-0、4105-1、4105-2、…、4105-n)對VCGR取樣。因此,開關4104及電容器4105形成取樣保持電路。IO0、IO1、IO2、…、IOn的值用作Itarget的可能值,且各別經取樣電壓用作圖40的絕對校準方法4000中之相關聯的值VCGRx。圖示4106展示VCGR隨時間推移向上斜升,且反相器4102-0、4102-1及4102-n之輸出在各個時間自低切換為高。Figure 41 depicts a circuit 4100 for implementing step 4003 of the absolute calibration method 4000. A voltage source (not shown) generates VCGR, which starts at the initial voltage and ramps up. Here, n+1 different current sources 4101 (4101-0, 4101-1, 4101-2,..., 4101-n) generate different currents IO0, IO1, IO2,..., with gradually increasing magnitudes. IOn. Each current source 4101 is connected to inverter 4102 (4102-0, 4102-1, 4102-2,..., 4102-n) and memory unit 4103 (4103-0, 4103-1, 4103-2, ..., 4103-n). As VCGR ramps up, each memory cell 4103 draws an increasing amount of current, and the input voltage to each inverter 4102 decreases. Because IO0 < IO1 < IO2 <... < IOn, the output of inverter 4102-0 will switch from low to high as VCGR increases. The output of inverter 4102-1 will then switch from low to high, and then the output of inverter 4102-2 will switch from low to high and so on, until the output of inverter 4102-n switches from low to high. Each inverter 4102 controls the switch 4104 (4104-0, 4104-1, 4104-2,..., 4104-n) so that when the output of the inverter 4102 is high, the switch 4104 is turned on, which will make the capacitor 4105 (4105-0, 4105-1, 4105-2,..., 4105-n) samples the VCGR. Therefore, the switch 4104 and the capacitor 4105 form a sample-and-hold circuit. The values of IO0, IO1, IO2, ..., IOn are used as possible values of Itarget, and the respective sampled voltages are used as the associated value VCGRx in the absolute calibration method 4000 of FIG. 40. Diagram 4106 shows that VCGR ramps up over time, and the outputs of inverters 4102-0, 4102-1, and 4102-n switch from low to high at each time.

圖42描繪用於在自適應性校準方法3700或絕對校準方法4000期間程式化選定單元之例示性進展4200。在一個具體例中,電壓Vcgp經施加至記憶體單元之選定列的控制閘極。選定列中之選定的記憶體單元之數目為例如= 32個單元。因此,可並行地程式化選定列中之至多32個記憶體單元。使每一記憶體單元能夠藉由位元線啟用信號耦接至程式化電流Iprog。若位元線啟用信號無效(意謂正電壓經施加至選定的位元線),則禁止記憶體單元(未經程式化)。如圖42中所展示,位元線啟用信號En_blx(其中x在1與n之間變化,其中n為位元線之數目)在不同時間以彼位元線(因此該位元線上之選定的記憶體)所需之Vcgp電壓位準被啟用。在另一具體例中,可使用位元線上之啟用信號控制施加至選定單元之控制閘極的電壓。每一位元線啟用信號使對應於彼位元線之所需電壓(諸如圖40中所描述之vi)作為Vcgp經施加。位元線啟用信號亦可控制流進位元線中之程式化電流。在此實施例中,每一後續控制閘極電壓Vcgp高於前一個電壓。替代地,每一後續控制閘極電壓可低於或高於前一個電壓。Vcgp之每一後續增量可等於或不等於前一個增量。FIG. 42 depicts an exemplary progression 4200 for programming selected cells during the adaptive calibration method 3700 or the absolute calibration method 4000. In a specific example, the voltage Vcgp is applied to the control gate of the selected row of memory cells. The number of selected memory cells in the selected row is, for example, = 32 cells. Therefore, up to 32 memory cells in the selected row can be programmed in parallel. Each memory cell can be coupled to the programming current Iprog through the bit line enable signal. If the bit line enable signal is invalid (meaning that a positive voltage is applied to the selected bit line), the memory cell is disabled (unprogrammed). As shown in Figure 42, the bit line enable signal En_blx (where x varies between 1 and n, where n is the number of bit lines) at different times varies with that bit line (therefore the selected bit line on the bit line The Vcgp voltage level required by the memory) is activated. In another specific example, the enable signal on the bit line can be used to control the voltage applied to the control gate of the selected cell. Each bit line enable signal causes the required voltage corresponding to that bit line (such as vi described in FIG. 40) to be applied as Vcgp. The bit line enable signal can also control the programmed current flowing into the bit line. In this embodiment, each subsequent control gate voltage Vcgp is higher than the previous voltage. Alternatively, each subsequent control gate voltage may be lower or higher than the previous voltage. Each subsequent increment of Vcgp may be equal to or not equal to the previous increment.

圖43描繪用於在自適應性校準方法3700或絕對校準方法4000期間程式化選定單元之例示性進展4300。在一個具體例中,位元線啟用信號使能夠以對應的Vcgp電壓位準程式化選定的位元線(意謂該位元線中之選定的記憶體單元)。在另一具體例中,可使用位元線啟用信號控制施加至選定單元之增量斜升式控制閘極的電壓。每一位元線啟用信號使對應於彼位元線之所需電壓(諸如圖40中所描述之vi)施加至控制閘極電壓。在此實施例中,每一後續增量等於前一個增量。FIG. 43 depicts an exemplary progression 4300 for programming selected cells during the adaptive calibration method 3700 or the absolute calibration method 4000. In a specific example, the bit line enable signal enables the selected bit line (meaning the selected memory cell in the bit line) to be programmed with the corresponding Vcgp voltage level. In another specific example, the bit line enable signal can be used to control the voltage applied to the incremental ramp-up control gate of the selected cell. Each bit line enable signal causes the required voltage corresponding to that bit line (such as vi described in FIG. 40) to be applied to the control gate voltage. In this embodiment, each subsequent increment is equal to the previous increment.

圖44描繪用於實施輸入及輸出方法之系統,該輸入及輸出方法用於讀取或驗證VMM陣列。輸入函數電路4401接收數位位元值並且將彼等數位值轉換為類比信號,該類比信號接著用於將電壓施加至陣列4404中之選定的單元之控制閘極,該類比信號係藉由控制閘極解碼器4402來判定。同時,字線解碼器4403亦用於選擇選定單元所處的列。輸出神經元電路區塊4405執行陣列4404中之單元的每一行(神經元)的輸出動作。輸出電路區塊4405可使用積分類比至數位轉換器(ADC)、逐次近似(SAR) ADC、積分三角ADC或任何其他ADC方案來實作。Figure 44 depicts a system for implementing input and output methods for reading or verifying VMM arrays. The input function circuit 4401 receives the digital bit values and converts them into analog signals. The analog signals are then used to apply voltage to the control gates of the selected cells in the array 4404. The analog signals are controlled by the control gates. The pole decoder 4402 determines. At the same time, the word line decoder 4403 is also used to select the column where the selected cell is located. The output neuron circuit block 4405 executes the output action of each row (neuron) of the unit in the array 4404. The output circuit block 4405 may be implemented using an integral analog-to-digital converter (ADC), successive approximation (SAR) ADC, integral delta ADC, or any other ADC scheme.

在一個具體例中,提供至輸入函數電路4401之數位值包含四個位元(DIN3、DIN2、DIN1及DIN0)作為例子,且各種位元值對應於經施加至控制閘極之不同數目個輸入脈衝。較大數目個脈衝將產生單元的較大輸出值(電流)。表11中展示位元值及脈衝值的例子: 11 :數位位元輸入相對於經產生脈衝 DIN3 DIN2 DIN1 DIN0 經產生輸入脈衝 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 1 0 1 0 10 1 0 1 1 11 1 1 0 0 12 1 1 0 1 13 1 1 1 0 14 1 1 1 1 15 In a specific example, the digital value provided to the input function circuit 4401 includes four bits (DIN3, DIN2, DIN1, and DIN0) as an example, and various bit values correspond to different numbers of inputs applied to the control gate pulse. A larger number of pulses will produce a larger output value (current) of the unit. Examples of bit values and pulse values are shown in Table 11 : Table 11: Digital bit input relative to generated pulse DIN3 DIN2 DIN1 DIN0 Input pulse 0 0 0 0 0 0 0 0 1 1 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 1 0 1 0 10 1 0 1 1 11 1 1 0 0 12 1 1 0 1 13 1 1 1 0 14 1 1 1 1 15

在以上例子中,最多存在用於讀出單元值的4個位元數位值之15個脈衝。每一脈衝等於一個單位單元值(電流)。舉例而言,若Icell單位=1 nA,則對於DIN[3-0] = 0001,Icell = 1*1 nA = 1 nA,且對於DIN[3-0] = 1111,Icell = 15*1nA = 15 nA。In the above example, there are at most 15 pulses for reading the 4-bit digital value of the cell value. Each pulse is equal to a unit cell value (current). For example, if the unit of Icell = 1 nA, then for DIN[3-0] = 0001, Icell = 1*1 nA = 1 nA, and for DIN[3-0] = 1111, Icell = 15*1nA = 15 nA.

在另一具體例中,數位位元輸入使用數位位元位置求和以讀出如表12中所展示之單元或神經元(例如,位元線輸出上之值)值。此處,僅需要4個脈衝或4個固定的相同偏壓輸入(例如,字線或控制閘極上之輸入)來評估4個位元數位值。舉例而言,第一脈衝或第一固定偏壓用於評估DIN0,與第一脈衝或第一固定偏壓具有相同值的第二脈衝或第二固定偏壓用於評估DIN1,與第一脈衝或第一固定偏壓具有相同值的第三脈衝或第三固定偏壓用於評估DIN2,且與第一脈衝或第一固定偏壓具有相同值的第四脈衝或第四固定偏壓用於評估DIN3。接著,來自四個脈衝之結果根據位元位置求和,其中每一輸出結果乘以亦即2^n之乘數因數(藉由其按比例調整),n係如表13中所展示之數位位元位置。所實現之數位位元求和等式係如下:輸出=2^0*DIN0 + 2^1*DIN1 + 2^2*DIN2 + 2^3*DIN3)*Icell單位。In another specific example, the digital bit input uses the sum of the digital bit positions to read the value of the cell or neuron (for example, the value on the bit line output) as shown in Table 12. Here, only 4 pulses or 4 fixed inputs of the same bias voltage (for example, inputs on the word line or control gate) are needed to evaluate the 4-bit digital value. For example, the first pulse or the first fixed bias voltage is used to evaluate DIN0, and the second pulse or the second fixed bias voltage having the same value as the first pulse or the first fixed bias voltage is used to evaluate DIN1. Or the third pulse or the third fixed bias with the same value of the first fixed bias is used to evaluate DIN2, and the fourth pulse or the fourth fixed bias with the same value as the first pulse or the first fixed bias is used for Evaluate DIN3. Then, the results from the four pulses are summed according to the bit position, where each output result is multiplied by a multiplier factor of 2^n (by its proportional adjustment), n is the number shown in Table 13 Bit position. The realized digital bit summation equation is as follows: output = 2^0*DIN0 + 2^1*DIN1 + 2^2*DIN2 + 2^3*DIN3)*Icell unit.

舉例而言,若Icell單位= 1 nA,則對於DIN[3-0] = 0001,Icell總數= 0+0+0+1*1nA = 1 nA;且對於DIN[3-0] = 1111,Icell總數= 8*1nA + 4*1nA + 2*1nA + 1*1nA =26 nA。 12 :數位位元輸入求和 2 ^ 3*DIN3 2 ^ 2*DIN2 2 ^ 1*DIN1 2 ^ 0*DIN0 總計值 0 0 0 0 0 0 0 0 1 1 0 0 2 0 2 0 0 2 1 3 0 4 0 0 4 0 4 0 1 5 0 4 2 0 6 0 4 2 1 7 8 0 0 0 8 8 0 0 1 9 8 0 2 0 10 8 0 2 1 11 8 4 0 0 12 8 4 0 1 13 8 4 2 0 14 8 4 2 1 15 13 :具有 2^n 輸出乘法因數之數位輸入位元 Dn 求和 DIN3 DIN2 DIN1 DIN0 輸出X因數          Y X1       Y    X2    Y       X4 Y          X8 For example, if Icell unit = 1 nA, then for DIN[3-0] = 0001, the total number of Icells = 0+0+0+1*1nA = 1 nA; and for DIN[3-0] = 1111, Icell Total = 8*1nA + 4*1nA + 2*1nA + 1*1nA = 26 nA. Table 12 : Digital input sum 2 ^ 3*DIN3 2 ^ 2*DIN2 2 ^ 1*DIN1 2 ^ 0*DIN0 Total value 0 0 0 0 0 0 0 0 1 1 0 0 2 0 2 0 0 2 1 3 0 4 0 0 4 0 4 0 1 5 0 4 2 0 6 0 4 2 1 7 8 0 0 0 8 8 0 0 1 9 8 0 2 0 10 8 0 2 1 11 8 4 0 0 12 8 4 0 1 13 8 4 2 0 14 8 4 2 1 15 Table 13 : Sum of digital input bits Dn with 2^n output multiplication factors DIN3 DIN2 DIN1 DIN0 Output X factor Y X1 Y X2 Y X4 Y X8

表14中針對例示性4位元數位inputIn展示具有多個數位輸入脈衝範圍及輸入數位範圍求和之混合式輸入的另一具體例,此具體例DINn-0可劃分成m個不同群組,其中評估每一群組且藉由群組二進位位置將輸出按比例調整一乘法因數。作為施子,對於4位元DIN3-0,群組可為DIN3-2及DIN1-0,其中用於DIN1-0之輸出係藉由一(X1)按比例調整且用於DIN3-2之輸出係藉由4 (X4)按比例調整。 14 :具有多個輸入範圍之混合式輸入輸出求和 DIN3 DIN2 DIN1 DIN0 輸入脈衝(或等效脈衝寬度)    輸出X因數       0 0 0    X1       0 1 1    X1       1 0 2    X1       1 1 3    X1                      0 0       0    X4 0 1       1    X4 1 0       2    X4 1 1       3    X4 Table 14 shows another specific example of a mixed input with multiple digital input pulse ranges and the sum of input digital ranges for an exemplary 4-digit digital inputIn. This specific example DINn-0 can be divided into m different groups. Among them, each group is evaluated and the output is proportionally adjusted by a multiplication factor based on the group binary position. As a benefactor, for 4-bit DIN3-0, the group can be DIN3-2 and DIN1-0, where the output for DIN1-0 is proportionally adjusted by one (X1) and used for the output of DIN3-2 It is adjusted proportionally by 4 (X4). Table 14 : Mixed input and output summation with multiple input ranges DIN3 DIN2 DIN1 DIN0 Input pulse (or equivalent pulse width) Output X factor 0 0 0 X1 0 1 1 X1 1 0 2 X1 1 1 3 X1 0 0 0 X4 0 1 1 X4 1 0 2 X4 1 1 3 X4

另一具體例組合混合式輸入範圍與混合式超大單元。混合式超大單元包括多個實體x位元單元以實作具有藉由2^n二進位位置按比例調整之x單元輸出之邏輯n位元單元。舉例而言,為了實作8位元邏輯單元,使用兩個4位元單元(cell1,cell0)。用於cell0之輸出係藉由一(X1)按比例調整,且用於cell1之輸出係藉由四(X, 2^2)按比例調整。用以實作n位元邏輯單元之實體x單元的其他組合係可能的,諸如兩個2位元實體單元及一個4位元實體單元,以實作8位元邏輯單元。Another specific example combines a hybrid input range with a hybrid ultra-large unit. The hybrid super cell includes multiple physical x-bit cells to implement a logical n-bit cell with x-cell output proportionally adjusted by 2^n binary positions. For example, in order to implement an 8-bit logic cell, two 4-bit cells (cell1, cell0) are used. The output for cell0 is scaled by one (X1), and the output for cell1 is scaled by four (X, 2^2). Other combinations of physical x-units used to implement n-bit logic cells are possible, such as two 2-bit physical cells and one 4-bit physical cell to implement 8-bit logic cells.

圖45描繪類似於圖44的系統之另一具體例,除了數位位元輸入使用數位位元位置求和以讀出藉由調變器4510以根據數位輸入位元位置設計之輸出脈衝寬度調變之單元或神經元(例如,位元線輸出上之值)電流(例如以將電流轉換成輸出電壓V =電流*脈衝寬度/電容)之外。舉例而言,第一偏壓(在字線或控制閘極等輸入上施加)係用於評估DIN0,電流(單元或神經元)輸出係藉由調變器4510以與DIN0位元位置成比例之單位脈衝寬度而經調變,該單位脈衝寬度為一(x1)單位,第二輸入偏壓係用於評估DIN1,電流輸出係藉由調變器4510以與DIN1位元位置成比例之脈衝寬度而經調變,該脈衝寬度為二(x2)單位,第三輸入偏壓係用於評估DIN2,電流輸出係藉由調變器4510以與DIN2位元位置成比例之脈衝寬度而經調變,該脈衝寬度為四(x4)單位,第四輸入偏壓係用於評估DIN3,電流輸出藉由調變器4510以與DIN3位元位置成比例之脈衝寬度而經調變,該脈衝寬度為八(x8)單位。每一經轉化電壓接著藉由類比至數位轉換器(ADC) 4511轉換成用於每一數位輸入位元之數位位元。總輸出接著藉由求和器4512作為自DIN0-3輸入產生之四個數位輸出的求和而輸出。Figure 45 depicts another specific example of the system similar to Figure 44, except that the digital bit input uses the digital bit position summation to read out the output pulse width modulation designed by the modulator 4510 according to the digital input bit position The cell or neuron (for example, the value on the bit line output) current (for example, to convert the current into an output voltage V = current * pulse width / capacitance). For example, the first bias voltage (applied on the word line or control gate input) is used to evaluate DIN0, and the current (unit or neuron) output is proportional to the DIN0 bit position by the modulator 4510 The unit pulse width is modulated. The unit pulse width is one (x1) unit. The second input bias is used to evaluate DIN1. The current output is a pulse proportional to DIN1 bit position by modulator 4510 The pulse width is modulated. The pulse width is two (x2) units. The third input bias is used to evaluate DIN2. The current output is modulated by modulator 4510 with a pulse width proportional to the DIN2 bit position. The pulse width is four (x4) units. The fourth input bias is used to evaluate DIN3. The current output is modulated by the modulator 4510 with a pulse width proportional to the DIN3 bit position. The pulse width It is eight (x8) units. Each converted voltage is then converted by an analog-to-digital converter (ADC) 4511 into a digital bit for each digital input bit. The total output is then output by the summer 4512 as the sum of the four digital outputs generated from the DIN0-3 input.

圖46描繪可用於在驗證操作期間或在輸出神經元類比至數位轉換期間對VMM的輸出總和以獲得表示該輸出並且可接著視情況轉換成數位位元值之單個類比值的電荷求和器4600的實施例。舉例而言,電荷求和器4600可用作求和器4512。電荷求和器4600包含電流源4601及取樣保持電路,該取樣保持電路包含開關4602及取樣保持(S/H)電容器4603。如針對4位元數位值之例子所展示,存在4個S/H電路以保持來自4個評估脈衝之值,其中該等值在程序結束時進行總計。以與用於彼S/H電容器之2^n*DINn位元位置相關聯的比率選擇S/H電容器4603;例如,C_DIN3 = x8 Cu,C_DIN2 = x4 Cu,C_DIN1 = x2 Cu,DIN0 = x1 Cu。電流源4601亦相應地比率化。FIG. 46 depicts a charge summer 4600 that can be used to sum the output of the VMM during the verification operation or during the analog-to-digital conversion of the output neuron to obtain a single analog value that represents the output and can then be converted into a digital bit value as appropriate.的实施例。 Example. For example, the charge summer 4600 may be used as the summer 4512. The charge summer 4600 includes a current source 4601 and a sample-and-hold circuit. The sample-and-hold circuit includes a switch 4602 and a sample-and-hold (S/H) capacitor 4603. As shown for the example of a 4-bit digital value, there are 4 S/H circuits to hold the values from the 4 evaluation pulses, where the values are totaled at the end of the program. Select the S/H capacitor 4603 at the ratio associated with the 2^n*DINn bit position for that S/H capacitor; for example, C_DIN3 = x8 Cu, C_DIN2 = x4 Cu, C_DIN1 = x2 Cu, DIN0 = x1 Cu . The current source 4601 is also ratioed accordingly.

圖47描繪電流求和器4700,其可用於在驗證操作期間或在輸出神經元類比至數位轉換期間對VMM的輸出進行總計。電流求和器4700包含電流源4701、開關4702、開關4703及4704,以及開關4705。如針對4位元數位值之例子所展示,存在用以保持來自4個評估脈衝之值的電流源電路,其中該等值在程序結束時經總計。電流源係基於2^n*DINn位元位置而比率化;例如,I_DIN3 = x8 Icell單位,_I_DIN2 = x4 Icell單位,I_DIN1 = x2 Icell單位,I_DIN0 = x1 Icell單位。Figure 47 depicts a current summer 4700, which can be used to total the output of the VMM during verification operations or during output neuron analog-to-digital conversion. The current summer 4700 includes a current source 4701, a switch 4702, switches 4703 and 4704, and a switch 4705. As shown for the example of a 4-bit digital value, there is a current source circuit to maintain the values from the 4 evaluation pulses, where the values are totaled at the end of the program. The current source is based on 2^n*DINn bit position and ratio; for example, I_DIN3 = x8 Icell unit, _I_DIN2 = x4 Icell unit, I_DIN1 = x2 Icell unit, I_DIN0 = x1 Icell unit.

圖48描繪數位求和器4800,其接收複數個數位值,對其進行總計且產生表示輸入之總和的輸出DOUT。可在驗證操作期間或在輸出神經元類比至數位轉換期間使用數位求和器4800。如針對4位元數位值之例子所展示,存在用以保持來自4個評估脈衝之值的數位輸出位元,其中該等值在程序結束時進行總計。數位輸出係基於2^n*DINn位元位置用數位方式按比例調整;例如,DOUT3 = x8 DOUT0,_DOUT2 = x4 DOUT1,I_DOUT1 = x2 DOUT0,I_DOUT0 = DOUT0。Figure 48 depicts a digital summer 4800, which receives a plurality of digital values, totals them, and produces an output DOUT that represents the sum of the inputs. The digital summer 4800 can be used during verification operations or during output neuron analog-to-digital conversion. As shown for the example of a 4-bit digital value, there are digital output bits to hold the values from 4 evaluation pulses, where the values are totaled at the end of the program. The digital output is based on the 2^n*DINn bit position and is adjusted digitally in proportion; for example, DOUT3 = x8 DOUT0, _DOUT2 = x4 DOUT1, I_DOUT1 = x2 DOUT0, I_DOUT0 = DOUT0.

圖49A展示積分雙斜率ADC 4900,其應用於輸出神經元以將單元電流轉換成數位輸出位元。由積分運算放大器4901及積分電容器4902組成之積分器將單元電流ICELL與參考電流IREF進行積分。如圖49B中所展示,在固定時間t1期間,單元電流被上積分(Vout上升),且接著在時間t2內將參考電流施加至下積分(Vout下降)。電流Icell為= t2/t1* IREF。舉例而言,對於t1,對於10位元數位位元解析度,使用1024個循環,且用於t2之循環數目取決於Icell值而在0至1024個循環之間變化。Figure 49A shows the Integral Dual Slope ADC 4900, which is applied to the output neuron to convert the cell current into digital output bits. An integrator composed of an integrating operational amplifier 4901 and an integrating capacitor 4902 integrates the cell current ICELL and the reference current IREF. As shown in FIG. 49B, during a fixed time t1, the cell current is up-integrated (Vout rises), and then the reference current is applied to the lower integration (Vout falls) during time t2. The current Icell is = t2/t1* IREF. For example, for t1, for a 10-bit resolution, 1024 cycles are used, and the number of cycles used for t2 varies from 0 to 1024 cycles depending on the Icell value.

圖49C展示積分單斜率ADC 4960,其應用於輸出神經元以將單元電流轉換成數位輸出位元。由積分運算放大器4961及積分電容器4962組成之積分器對單元電流ICELL進行積分。如圖49D中所展示,在時間t1期間,單元電流被上積分(Vout上升直至其達到Vref2為止),並且在時間t2期間,另一單元電流被上積分。單元電流Icell = Cint*Vref2/t。脈衝計數器用於對積分時間t期間之脈衝(數位輸出位元)之數目進行計數。舉例而言,如所展示,用於t1之數位輸出位元小於t2的數位輸出位元,此意謂t1期間之單元電流大於t2積分期間之單元電流。進行初始校準以運用參考電流及固定時間校準積分電容器值,Cint = Tref*Iref/Vref2。Figure 49C shows an integral single slope ADC 4960, which is applied to the output neuron to convert the cell current into digital output bits. An integrator composed of an integrating operational amplifier 4961 and an integrating capacitor 4962 integrates the cell current ICELL. As shown in Figure 49D, during time t1, the cell current is up-integrated (Vout rises until it reaches Vref2), and during time t2, another cell current is up-integrated. The cell current Icell = Cint*Vref2/t. The pulse counter is used to count the number of pulses (digital output bits) during the integration time t. For example, as shown, the digital output bits used for t1 are smaller than the digital output bits of t2, which means that the cell current during t1 is greater than the cell current during the integration period t2. Perform the initial calibration to calibrate the integrating capacitor value using the reference current and a fixed time, Cint = Tref*Iref/Vref2.

圖49E展示積分雙斜率ADC 4980,其應用於輸出神經元以將單元電流轉換成數位輸出位元。積分雙斜率ADC 4980不利用積分運算放大器。單元電流或參考電流直接在電容器4982上進行積分。脈衝計數器用於對積分時間期間之脈衝(數位輸出位元)進行計數。電流Icell為= t2/t1* IREF。Figure 49E shows the Integral Dual Slope ADC 4980, which is applied to the output neuron to convert the cell current into digital output bits. The Integral Dual Slope ADC 4980 does not use an integrating operational amplifier. The cell current or reference current is directly integrated on the capacitor 4982. The pulse counter is used to count the pulses (digital output bits) during the integration time. The current Icell is = t2/t1* IREF.

圖49F展示積分單斜率ADC 4990,其應用於輸出神經元以將單元電流轉換成數位輸出位元。積分單斜率ADC 4980不利用積分運算放大器。單元電流直接在電容器4992上進行積分。脈衝計數器用於對積分時間期間之脈衝(數位輸出位元)進行計數。單元電流Icell = Cint*Vref2/t。Figure 49F shows an integral single slope ADC 4990, which is applied to the output neuron to convert the cell current into digital output bits. The integrating single-slope ADC 4980 does not use an integrating operational amplifier. The cell current is directly integrated on the capacitor 4992. The pulse counter is used to count the pulses (digital output bits) during the integration time. The cell current Icell = Cint*Vref2/t.

圖50A展示逐次逼近暫存器(SAR) ADC,其應用於輸出神經元以將單元電流轉換成數位輸出位元。單元電流可橫跨電阻器下降以轉換成VCELL。替代地,單元電流可對S/H電容器進行充電以轉換成VCELL。二進位搜尋係用於計算自MSB位元(最高有效位元)開始的位元。在來自SAR 5001之數位位元上偏壓,DAC 5002係用於為比較器5003設定適當的類比參考電壓。比較器5003之輸出又回饋至SAR 5001以選擇下一個類比層級。如圖50B中所展示,對於4位元數位輸出位元之例子,存在4個評估週期:第一脈衝藉由中途設定類比層級來評估DOUT3,接著第二脈衝藉由在上半部分的中途或下半部分的中途設定類比層級來評估DOUT2等。Figure 50A shows a successive approximation register (SAR) ADC, which is applied to output neurons to convert cell currents into digital output bits. The cell current can drop across the resistor to be converted into VCELL. Alternatively, the cell current can charge the S/H capacitor to be converted into VCELL. Binary search is used to calculate the bits starting from the MSB bit (most significant bit). To bias the digital bits from the SAR 5001, the DAC 5002 is used to set an appropriate analog reference voltage for the comparator 5003. The output of the comparator 5003 is fed back to the SAR 5001 to select the next analog level. As shown in Figure 50B, for the example of a 4-bit digital output bit, there are 4 evaluation cycles: the first pulse evaluates DOUT3 by setting the analog level midway, and then the second pulse is evaluated by midway or in the upper half of the pulse. In the middle of the lower part, an analog level is set to evaluate DOUT2 and so on.

諸如循環(演算法)ADC之經改良二進位搜尋可用於單元調校(例如,程式化)驗證或輸出神經元轉換。諸如開關電容器(SC)電荷重新分配ADC之經改良二進位搜尋可用於單元調校(例如,程式化)驗證或輸出神經元轉換。Improved binary search such as cyclic (algorithmic) ADC can be used for unit calibration (for example, programming) verification or output neuron conversion. An improved binary search such as a switched capacitor (SC) charge redistribution ADC can be used for cell calibration (eg, programming) verification or output neuron conversion.

圖51展示積分三角ADC 5100,其應用於輸出神經元以將單元電流轉換成數位輸出位元。由運算放大器5101及電容器5105組成之積分器對來自選定單元電流之電流及產生於1位元電流DAC 5104之參考電流的求和進行積分。比較器5102比較積分輸出電壓與參考電壓。時控DFF 5103取決於比較器5102的輸出提供數位輸出流。數位輸出流通常在輸出為數位輸出位元之前轉至數位濾波器。Figure 51 shows the Integral Triangle ADC 5100, which is applied to the output neuron to convert the cell current into digital output bits. The integrator composed of the operational amplifier 5101 and the capacitor 5105 integrates the sum of the current from the selected cell current and the reference current generated by the 1-bit current DAC 5104. The comparator 5102 compares the integrated output voltage with a reference voltage. The time-controlled DFF 5103 depends on the output of the comparator 5102 to provide a digital output stream. The digital output stream is usually transferred to a digital filter before being output as digital output bits.

圖52A描繪斜坡類比至數位轉換器5200,其包含電流源5201(其表示經接收神經元電流,Ineu)、開關5202、可變的可組態電容器5203及比較器5204,該斜坡類比至數位轉換器接收橫跨可變的可組態電容器5203產生之標示為Vneu之電壓作為非反相輸入並且接收可組態的參考電壓Vreframp作為反相輸入並且產生輸出Cout。Vreframp以每一比較時鐘週期在離散層級中逐漸上升。比較器5204比較Vneu與Vreframp,並且因而當Vneu>Vreframp時,輸出Cout將為「1」,否則將為「0」。因此,輸出Cout將為一脈衝,其寬度回應於Ineu而變化。較大Ineu將使Cout在較長時間段為「1」,從而產生用於輸出Cout之較寬脈衝。數位計數器5220將輸出Cout之每一脈衝轉換成數位輸出位元,如圖52B中針對分別標示為OT1A及OT2A之兩個不同Ineu電流所展示。替代地,斜坡電壓Vreframp為連續斜坡電壓5255,如圖52B之圖示5250中所展示。圖52C中展示多斜坡具體例,其用於藉由利用粗略-精密斜坡轉換演算法來縮減轉換時間。第一粗略參考斜坡參考電壓5271以快速方式逐漸上升以找出用於每一Ineu之子範圍。接下來,精密參考斜坡參考電壓5272,亦即Vreframp1及Vreframp2,分別用於每一子範圍以轉換各別子範圍內之Ineu.currents。如所展示,存在用於精密參考斜坡電壓之兩個子範圍。多於兩個粗略/精密步驟或兩個子範圍係可能的。52A depicts a ramp analog-to-digital converter 5200, which includes a current source 5201 (which represents the received neuron current, Ineu), a switch 5202, a variable configurable capacitor 5203, and a comparator 5204, the ramp analog-to-digital conversion The device receives the voltage labeled Vneu generated across the variable configurable capacitor 5203 as a non-inverting input and receives a configurable reference voltage Vreframp as an inverting input and generates an output Cout. Vreframp gradually rises in discrete levels with each comparison clock cycle. The comparator 5204 compares Vneu with Vreframp, and thus when Vneu>Vreframp, the output Cout will be "1", otherwise it will be "0". Therefore, the output Cout will be a pulse whose width changes in response to Ineu. A larger Ineu will make Cout "1" for a longer period of time, thereby generating a wider pulse for outputting Cout. The digital counter 5220 converts each pulse of the output Cout into a digital output bit, as shown in FIG. 52B for two different Ineu currents respectively labeled OT1A and OT2A. Alternatively, the ramp voltage Vreframp is a continuous ramp voltage 5255, as shown in diagram 5250 of FIG. 52B. A specific example of multi-slope is shown in FIG. 52C, which is used to reduce the conversion time by using the coarse-precision ramp conversion algorithm. The first rough reference ramp reference voltage 5271 gradually rises in a rapid manner to find the sub-range for each Ineu. Next, the precision reference ramp reference voltage 5272, namely Vreframp1 and Vreframp2, are respectively used for each sub-range to convert Ineu. currents in each sub-range. As shown, there are two sub-ranges for the precision reference ramp voltage. More than two rough/precise steps or two sub-ranges are possible.

圖53描繪演算法類比至數位輸出轉換器5300,其包含開關5301、開關5302、取樣保持(S/H)電路5303、1位元類比至數位轉換器(ADC)5304、1位元數位至類比轉換器(DAC)5305、求和器5306及兩個殘餘運算放大器(2x opamp)5307之增益。演算法類比至數位輸出轉換器5300回應於施加至開關5302及5302之類比輸入Vin及控制信號而產生轉換數位輸出5308。在類比輸入Vin(例如圖52中之Vneu)處接收之輸入首先藉由開關5302由S/H電路5303取樣,接著對N個位元以N個時鐘週期執行轉換。對於每一轉換時鐘週期,1位元ADC 5304比較S/H電壓5309與參考電壓(例如,VREF/2,其中VREF為用於N個位元之全標度電壓)並且輸出數位位元(例如,若輸入<=VREF/2,則為「0」並且若輸入>VREF/2,則為「1」)。此數位位元為數位輸出信號5308,其又藉由1位元DAC 5305轉換成類比電壓(例如至VREF/2或0 V)並且經饋送至求和器5306以自S/H電壓5309減去。2x殘差運算放大器5307接著將求和器差電壓輸出放大為轉換殘差電壓5310,該轉換殘差電壓藉由開關5301經饋送至S/H電路5303以用於下一個時鐘週期。代替此1位元(亦即,2個層級)演算法ADC,1.5位元(亦即,3個層級)演算法ADC可用於降低諸如來自ADC 5304及殘差運算放大器5307之偏移的效應。1.5位元演算法ADC需要1.5位元或2位元(亦即,4個層級) DAC。Figure 53 depicts an algorithm analog to digital output converter 5300, which includes a switch 5301, a switch 5302, a sample-and-hold (S/H) circuit 5303, a 1-bit analog-to-digital converter (ADC) 5304, and a 1-bit digital-to-analog The gain of converter (DAC) 5305, summer 5306 and two residual operational amplifiers (2x opamp) 5307. The algorithm analog-to-digital output converter 5300 generates a converted digital output 5308 in response to the analog input Vin and control signals applied to the switches 5302 and 5302. The input received at the analog input Vin (such as Vneu in FIG. 52) is first sampled by the S/H circuit 5303 through the switch 5302, and then the N bits are converted in N clock cycles. For each conversion clock cycle, the 1-bit ADC 5304 compares the S/H voltage 5309 with a reference voltage (for example, VREF/2, where VREF is the full-scale voltage for N bits) and outputs digital bits (for example , If input <=VREF/2, it will be "0" and if input >VREF/2, it will be "1"). This digital bit is the digital output signal 5308, which is converted into an analog voltage (for example, to VREF/2 or 0 V) by the 1-bit DAC 5305 and fed to the summer 5306 to subtract from the S/H voltage 5309 . The 2x residual operational amplifier 5307 then amplifies the summator difference voltage output into a converted residual voltage 5310, which is fed to the S/H circuit 5303 through the switch 5301 for the next clock cycle. Instead of this 1-bit (ie, 2-level) algorithm ADC, a 1.5-bit (ie, 3-level) algorithm ADC can be used to reduce effects such as offset from the ADC 5304 and the residual operational amplifier 5307. The 1.5-bit algorithm ADC requires a 1.5-bit or 2-bit (ie, 4 levels) DAC.

在另一具體例中,可使用混合式ADC。舉例而言,對於9位元ADC,首4個位元可藉由SAR ADC產生,且剩餘的5個位元可使用斜率ADC或斜坡ADC產生。In another specific example, a hybrid ADC can be used. For example, for a 9-bit ADC, the first 4 bits can be generated by a SAR ADC, and the remaining 5 bits can be generated by a slope ADC or a ramp ADC.

應注意,如本文中所使用,術語「在...上方」及「在...上」兩者包括「直接在...上」(其間未裝設有中間材料、元件或空間)及「間接地在...上」(其間裝設有中間材料、元件或空間)。同樣地,術語「鄰近」包括「直接鄰近」(其間未裝設有中間材料、元件或空間)及「間接鄰近」(其間裝設有中間材料、元件或空間),「安裝至」包括「直接安裝至」(其間未裝設有中間材料、元件或空間)及「間接安裝至」(其間裝設有中間材料、元件或空間),且「電耦接」包括「直接電耦接至」(其間無將元件電連接在一起的中間材料或元件)及「間接電耦接至」(其間具有將元件電連接在一起的中間材料或元件)。舉例而言,「在基板上方」形成元件可包括直接在基板上形成元件而其間無中間材料/元件,以及間接地在基板上形成元件而其間具有一種或多種中間材料/元件。It should be noted that as used herein, the terms "above" and "above" both include "directly on" (no intermediate materials, components or spaces are installed therebetween) and "Indirectly on" (intermediate materials, components or spaces are installed in between). Similarly, the term "adjacent" includes "directly adjacent" (no intermediate materials, components or spaces are installed in between) and "indirect adjacent" (intermediate materials, components or spaces are installed in between), and "installed to" includes "directly "Install to" (no intermediate materials, components or spaces are installed in between) and "indirect installation to" (with intermediate materials, components or spaces in between), and "electrical coupling" includes "directly electrically coupled to" ( There is no intermediate material or element that electrically connects the elements together) and "indirect electrical coupling to" (there is an intermediate material or element that electrically connects the elements together). For example, forming an element "above the substrate" may include directly forming the element on the substrate without intermediate materials/elements in between, and indirectly forming the element on the substrate with one or more intermediate materials/elements in between.

12:半導體基板 14:源極區 16:汲極區 18:通道區 20:浮動閘極 22:字線端子 24:位元線端子 28:控制閘極端子 30:抹除閘極 32:向量矩陣乘法系統 32a,32b,32c,32d,32e:VMM系統 33,2801,3101,3201:VMM陣列 34:抹除閘極及字線閘極解碼器 35,4402:控制閘極解碼器 36:位元線解碼器 37:源極線解碼器 38:差分求和器 39:激發函數電路 110,210,310,510,3802,4103,4103-0,4103-1,4103-2,4103-n:記憶體單元 410:四閘極記憶體單元 610:三閘極記憶體單元 710:堆疊閘極記憶體單元 1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2300,2400:神經元VMM陣列 1101,1203,1303,1403,1503:記憶體陣列 1102,1301,1302,1201,1202,1401,1402,1501,1502:參考陣列 1103:控制閘極線 1104:抹除閘極線 1214:二極體連接之貫穿多工器 1404:串疊電晶體 1405,3204,2809,2810:多工器 1412:二極體連接之貫穿多工器 1514:二極體連接之參考單元貫穿多工器 2206:精確程式化方法 2500:長短期記憶體(LSTM) 2501,2502,2503,2504:單元 2600,2700,2800:LSTM單元 2601,2602,2603:S型函數裝置 2604,2605,3003:雙曲正切裝置 2606,2607,2608,2803,3004,3005,3006,3203:乘法器裝置 2609,2808,3007,3205:加法裝置 2701:MM陣列 2702:激發電路區塊 2802,3102,3202:激發函數區塊 2804,2805,2806,2807,3206,3207,3208:暫存器 2900:閘控循環單元(GRU) 2901-1,2901-2,2901-(N-1),2901-N:位元線控制閘極 2901,2902,2903,2904:單元 3000,3100,3200:GRU單元 3001,3002:S型函數裝置 3008,3209:互補裝置 3300,3310:程式化方法 390,3301,3302,3303,3304,3305,3306,3312,3313,3401,3402,3403,3404,3701,3702,3703,3704,3705,3803,3901,3902,3903,3904,3906,3907,3908,4001,4002,4003,4004,4005,4006:步驟 3400:搜尋及執行方法 3501,3502,3503,3601,3602,3603:進展 3700,3900:自適應性校準方法 3801,4101,4101-0,4101-1,4101-2,4101-n,4601,4701,5201:電流源 4000:校準方法 4100:電路 4102,4102-0,4102-1,4102-2,4102-(n-1),4102-n:反相器 4104,4104-0,4104-1,4104-2,4104-n,4602,4702,4703, 4704,4705,5202,5301,5302:開關 4105,4105-0,4105-1,4105-2,4105-n,4982,4992,5105:電容器 4106,5250:圖示 4200,4300:例示性進展 4401:輸入函數電路 4404:陣列 4405:輸出神經元電路區塊 4510:調變器 4511:類比至數位轉換器(ADC) 4512,5306:求和器 4600,4700:電荷求和器 4603:取樣保持(S/H)電容器 4800:數位求和器 4900,4980:積分雙斜率ADC 4901,4961:積分運算放大器 4902,4962:積分電容器 4960,4990:積分單斜率ADC 5001:SAR 5002:DAC 5003,5102,5204:比較器 5100:積分三角ADC 5101:運算放大器 5103:時控DFF 5200:斜坡類比至數位轉換器 5203:可變的可組態電容器 5220:數位計數器 5255:斜坡電壓 5271:第一粗略參考斜坡參考電壓 5272:精密參考斜坡參考電壓 5300:演算法類比至數位輸出轉換器 5303:取樣保持(S/H)電路 5304:1位元類比至數位轉換器(ADC) 5305:1位元數位至類比轉換器(DAC) 5307:殘餘運算放大器 5308:轉換數位輸出 5309:S/H電壓 5310:轉換殘差電壓 BL:位元線 BL0,BL1,BL2,BL3,BLN-1,BLN:位元線 BLR0,BLR1,BLR2,BLR3:端子 c0 ,c1 ,c2 ,c(t-1),c(t):單元狀態向量 C1、C2、C3:層 CB1、CB2、CB3、CB4:突觸 CG:控制閘極 CG0 ,CG1 ,CG2 ,CG3 ,CGM-1 ,CGM, CGN :控制閘極線 DIN3,DIN2,DIN1,DIN0:位元 EG:抹除閘極 EGR0,EG0,EG1,EGR1:EG線 FG:浮動閘極 h0 ,h1 ,h2 ,h3 ,h(t-1),h(t):輸出向量 IO0,IO1,IO2,IOn:電流 INPUT0 ,INPUT1 ,INPUT2 ,INPUT3 ,INPUT4 ,INPUTM-1 ,INPUTM ,INPUTN-1 ,INPUTN :輸入 OUTPUT0 ,OUTPUT1 ,OUTPUT2 ,OUTPUT3 ,OUTPUT4 ,OUTPUTN-1 ,OUTPUTN: :輸出 P1、P2:激發函數 S0、S1、S2:層 SG:選擇閘極 SL:源極線 SL0,SL1,SL2,SL3:源極線 WL:字線 WL0,WL1,WL2,WL3:電壓輸入 WLA0,WLB0,WLA1,WLB2,WLA2,WLB2,WLA3,WLB3:字線 x0 ,x1 ,x2 ,x3 ,x(t):輸入向量12: Semiconductor substrate 14: Source area 16: Drain area 18: Channel area 20: Floating gate 22: Word line terminal 24: Bit line terminal 28: Control gate terminal 30: Erase gate 32: Vector matrix Multiplication system 32a, 32b, 32c, 32d, 32e: VMM system 33, 2801, 3101, 3201: VMM array 34: erase gate and word line gate decoder 35, 4402: control gate decoder 36: bit Line decoder 37: Source line decoder 38: Differential summator 39: Excitation function circuit 110, 210, 310, 510, 3802, 4103, 4103-0, 4103-1, 4103-2, 4103-n: Memory unit 410: Four gates Memory cell 610: Tri-gate memory cell 710: Stacked gate memory cell 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000, 2100, 2300, 2400: Neuron VMM array 1101, 1203, 1303, 1403, 1503: Memory array 1102, 1301, 1302, 1201, 1202, 1401, 1402, 1501, 1502: Reference array 1103: Control gate line 1104: Erase gate line 1214: Diode Through multiplexer 1404 for body connection: Tandem transistor 1405, 3204, 2809, 2810: Multiplexer 1412: Through multiplexer for diode connection 1514: Reference unit for diode connection through multiplexer 2206: Precise programming method 2500: Long and short-term memory (LSTM) 2501,2502, 2503, 2504: Unit 2600, 2700, 2800: LSTM unit 2601, 2602, 2603: S-type function device 2604, 2605, 3003: Hyperbolic tangent device 2606, 2607, 2608, 2803, 3004, 3005, 3006, 3203: Multiplier device 2609, 2808, 3007, 3205: Adding device 2701: MM array 2702: Excitation circuit block 2802, 3102, 3202: Excitation function block 2804 , 2805, 2806, 2807, 3206, 3207, 3208: Register 2900: Gated Circulation Unit (GRU) 2901-1, 2901-2, 2901-(N-1), 2901-N: Bit line control gate Pole 2901, 2902, 2903, 2904: Unit 3000, 3100, 3200: GRU unit 3001, 3002: S-type function device 3008, 3209: Complementary device 3300, 3310: Stylized method 390, 3301, 3302, 3303, 3304, 3305 ,3306,3312,3313,3401,3402 ,3403,3404,3701,3702,3703,3704,3705,3803,3901,3902,3903,3904,3906,3907,3908,4001,4002,4003,4004,4005,4006: Step 3400: Search and execute method 3501, 3502, 3503, 3601, 3602, 3603: Progress 3700, 3900: Adaptive calibration method 3801, 4101, 4101-0, 4101-1, 4101-2, 4101-n, 4601, 4701, 5201: Current source 4000: Calibration method 4100: Circuit 4102, 4102-0, 4102-1, 4102-2, 4102-(n-1), 4102-n: Inverter 4104, 4104-0, 4104-1, 4104-2, 4104-n, 4602, 4702, 4703, 4704, 4705, 5202, 5301, 5302: Switch 4105, 4105-0, 4105-1, 4105-2, 4105-n, 4982, 4992, 5105: Capacitor 4106, 5250: Illustration 4200, 4300: Illustrative progress 4401: Input function circuit 4404: Array 4405: Output neuron circuit block 4510: Modulator 4511: Analog to digital converter (ADC) 4512, 5306: Summer 4600, 4700 : Charge summer 4603: Sample-and-hold (S/H) capacitor 4800: Digital summer 4900, 4980: Integral dual slope ADC 4901, 4961: Integral operational amplifier 4902, 4962: Integrating capacitor 4960, 4990: Integral single slope ADC 5001: SAR 5002: DAC 5003, 5102, 5204: Comparator 5100: Integral triangle ADC 5101: Operational amplifier 5103: Time-controlled DFF 5200: Ramp analog to digital converter 5203: Variable configurable capacitor 5220: Digital counter 5255 : Ramp voltage 5271: first rough reference ramp reference voltage 5272: precision reference ramp reference voltage 5300: algorithm analog to digital output converter 5303: sample and hold (S/H) circuit 5304: 1 bit analog to digital converter ( ADC) 5305: 1-bit digital-to-analog converter (DAC) 5307: Residual operational amplifier 5308: Convert digital output 5309: S/H voltage 5310: Convert residual voltage BL: Bit lines BL0, BL1, BL2, BL3, BLN-1, BLN: bit line BLR0, BLR1, BLR2, BLR3: terminal c 0 , c 1 , c 2 , c(t-1), c(t): cell state vector C1, C2, C3: layer C B1, CB2, CB3, CB4: Synapse CG: control gate CG 0 , CG 1 , CG 2 , CG 3 , CG M-1 , CG M, CG N : control gate line DIN3, DIN2, DIN1, DIN0: Bit EG: erase gate EGR0, EG0, EG1, EGR1: EG line FG: floating gate h 0 , h 1 , h 2 , h 3 , h(t-1), h(t): output vector IO0 ,IO1,IO2,IOn: Current INPUT 0 , INPUT 1 , INPUT 2 , INPUT 3 , INPUT 4 , INPUT M-1 , INPUT M , INPUT N-1 , INPUT N : Input OUTPUT 0 , OUTPUT 1 , OUTPUT 2 , OUTPUT 3 , OUTPUT 4 , OUTPUT N-1 , OUTPUT N:: output P1, P2: excitation function S0, S1, S2: layer SG: select gate SL: source line SL0, SL1, SL2, SL3: source line WL : Word line WL0, WL1, WL2, WL3: Voltage input WLA0, WLB0, WLA1, WLB2, WLA2, WLB2, WLA3, WLB3: Word line x 0 , x 1 , x 2 , x 3 , x(t): input vector

圖1為繪示先前技術人工神經網路之圖。Figure 1 is a diagram showing a prior art artificial neural network.

圖2描繪先前技術分離閘式快閃記憶體單元。Figure 2 depicts a prior art split gate flash memory cell.

圖3描繪另一先前技術分離閘式快閃記憶體單元。Figure 3 depicts another prior art split gate flash memory cell.

圖4描繪另一先前技術分離閘式快閃記憶體單元。Figure 4 depicts another prior art split gate flash memory cell.

圖5描繪另一先前技術分離閘式快閃記憶體單元。Figure 5 depicts another prior art split gate flash memory cell.

圖6描繪另一先前技術分離閘式快閃記憶體單元。Figure 6 depicts another prior art split gate flash memory cell.

圖7描繪先前技術堆疊閘極快閃記憶體單元。Figure 7 depicts a prior art stacked gate flash memory cell.

圖8為繪示利用一個或多個非揮發性記憶體陣列之例示性人工神經網路之不同層級的圖。FIG. 8 is a diagram showing different levels of an exemplary artificial neural network using one or more non-volatile memory arrays.

圖9為繪示向量矩陣乘法系統之方塊圖。Figure 9 is a block diagram showing a vector matrix multiplication system.

圖10為繪示利用一個或多個向量矩陣乘法系統之例示性人工神經網路的方塊圖。FIG. 10 is a block diagram showing an exemplary artificial neural network using one or more vector matrix multiplication systems.

圖11描繪向量矩陣乘法系統之另一具體例。Fig. 11 depicts another specific example of the vector matrix multiplication system.

圖12描繪向量矩陣乘法系統之另一具體例。Fig. 12 depicts another specific example of the vector matrix multiplication system.

圖13描繪向量矩陣乘法系統之另一具體例。Fig. 13 depicts another specific example of the vector matrix multiplication system.

圖14描繪向量矩陣乘法系統之另一具體例。Fig. 14 depicts another specific example of the vector matrix multiplication system.

圖15描繪向量矩陣乘法系統之另一具體例。Fig. 15 depicts another specific example of the vector matrix multiplication system.

圖16描繪向量矩陣乘法系統之另一具體例。Fig. 16 depicts another specific example of the vector matrix multiplication system.

圖17描繪向量矩陣乘法系統之另一具體例。Fig. 17 depicts another specific example of the vector matrix multiplication system.

圖18描繪向量矩陣乘法系統之另一具體例。Figure 18 depicts another specific example of the vector matrix multiplication system.

圖19描繪向量矩陣乘法系統之另一具體例。Figure 19 depicts another specific example of the vector matrix multiplication system.

圖20描繪向量矩陣乘法系統之另一具體例。Fig. 20 depicts another specific example of the vector matrix multiplication system.

圖21描繪向量矩陣乘法系統之另一具體例。Fig. 21 depicts another specific example of the vector matrix multiplication system.

圖22描繪向量矩陣乘法系統之另一具體例。Fig. 22 depicts another specific example of the vector matrix multiplication system.

圖23描繪向量矩陣乘法系統之另一具體例。Fig. 23 depicts another specific example of the vector matrix multiplication system.

圖24描繪向量矩陣乘法系統之另一具體例。Fig. 24 depicts another specific example of the vector matrix multiplication system.

圖25描繪先前技術長短期記憶體系統。Figure 25 depicts a prior art long and short-term memory system.

圖26描繪供用於長短期記憶系統中之例示性單元。Figure 26 depicts an exemplary unit for use in a long- and short-term memory system.

圖27描繪圖26的例示性單元之具體例。FIG. 27 depicts a specific example of the exemplary unit of FIG. 26.

圖28描繪圖26的例示性單元之另一具體例。FIG. 28 depicts another specific example of the exemplary unit of FIG. 26.

圖29描繪先前技術閘控循環部件系統。Figure 29 depicts a prior art gated cyclic component system.

圖30描繪供用於閘控循環部件系統中之例示性單元。Figure 30 depicts an exemplary unit for use in a gated circulatory component system.

圖31描繪圖30的例示性單元之具體例。FIG. 31 depicts a specific example of the exemplary unit of FIG. 30.

圖32描繪圖30的例示性單元之另一具體例。FIG. 32 depicts another specific example of the exemplary unit of FIG. 30.

圖33A描繪程式化非揮發性記憶體單元之方法之具體例。FIG. 33A depicts a specific example of a method of programming a non-volatile memory cell.

圖33B描繪程式化非揮發性記憶體單元之方法之另一具體例。FIG. 33B depicts another specific example of the method of programming the non-volatile memory cell.

圖34描繪粗略程式化方法之具體例。Figure 34 depicts a specific example of the rough stylization method.

圖35描繪用於非揮發性記憶體單元之程式化中的例示性脈衝。Figure 35 depicts an exemplary pulse used in the programming of a non-volatile memory cell.

圖36描繪用於非揮發性記憶體單元之程式化中之例示性脈衝。Figure 36 depicts an exemplary pulse used in the programming of a non-volatile memory cell.

圖37描繪用於非揮發性記憶體單元之程式化之校準演算法,其基於單元的斜率特性調節程式化參數。Figure 37 depicts a programmed calibration algorithm for non-volatile memory cells, which adjusts the programmed parameters based on the slope characteristics of the cell.

圖38描繪用於圖37之校準演算法中的電路。Figure 38 depicts the circuit used in the calibration algorithm of Figure 37.

圖39描繪用於非揮發性記憶體單元之程式化之校準演算法。Figure 39 depicts the programmed calibration algorithm for non-volatile memory cells.

圖40描繪用於非揮發性記憶體單元之程式化之校準演算法。Figure 40 depicts a programmed calibration algorithm for non-volatile memory cells.

圖41描繪用於圖41之校準演算法中之電路。Figure 41 depicts the circuit used in the calibration algorithm of Figure 41.

圖42描繪在程式化操作期間施加至非揮發性記憶體單元之控制閘極的電壓之例示性進展。FIG. 42 depicts an exemplary development of the voltage applied to the control gate of the non-volatile memory cell during the programming operation.

圖43描繪在程式化操作期間施加至非揮發性記憶體單元之控制閘極的電壓之例示性進展。FIG. 43 depicts an exemplary development of the voltage applied to the control gate of the non-volatile memory cell during the programming operation.

圖44描繪用於在向量矩陣乘法系統內之非揮發性記憶體單元之程式化期間施加程式化電壓之系統。FIG. 44 depicts a system for applying a programming voltage during programming of a non-volatile memory cell in a vector matrix multiplication system.

圖45描繪具有輸出區塊之向量矩陣乘法系統,該輸出區塊包含調變器、類比至數位轉換器及求和器。Figure 45 depicts a vector matrix multiplication system with an output block including a modulator, an analog-to-digital converter, and a summer.

圖46描繪電荷求和器電路。Figure 46 depicts the charge summer circuit.

圖47描繪電流求和器電路。Figure 47 depicts the current summer circuit.

圖48描繪數位求和器電路。Figure 48 depicts a digital summer circuit.

圖49A描繪用於神經元輸出之積分類比至數位轉換器之具體例。Figure 49A depicts a specific example of an integral analog-to-digital converter for neuron output.

圖49B描繪展示圖49A之積分類比至數位轉換器之隨時間推移的電壓輸出之圖。FIG. 49B depicts a graph showing the voltage output of the integral analog-to-digital converter of FIG. 49A over time.

圖49C描繪用於神經元輸出之積分類比至數位轉換器的另一具體例。Fig. 49C depicts another specific example of an integral analog-to-digital converter for neuron output.

圖49D描繪展示圖49C之積分類比至數位轉換器之隨時間推移的電壓輸出之圖。FIG. 49D depicts a graph showing the voltage output of the integral analog-to-digital converter of FIG. 49C over time.

圖49E描繪用於神經元輸出之積分類比至數位轉換器的另一具體例。Figure 49E depicts another specific example of an integral analog-to-digital converter for neuron output.

圖49F描繪用於神經元輸出之積分類比至數位轉換器的另一具體例。Fig. 49F depicts another specific example of an integral analog-to-digital converter for neuron output.

圖50A及圖50B描繪用於神經元輸出之逐次近似類比至數位轉換器。Figures 50A and 50B depict successive approximation analog-to-digital converters for neuron output.

圖51描繪積分三角類比至數位轉換器之具體例。Figure 51 depicts a specific example of the integral triangle analog to digital converter.

圖52A、圖52B及圖52C描繪斜坡類比至數位轉換器之具體例。Figures 52A, 52B, and 52C depict specific examples of ramp analog-to-digital converters.

圖53描繪演算法類比至數位轉換器之具體例。Figure 53 depicts a specific example of the algorithm analog to digital converter.

C1:層 C1: Layer

C2:層 C2: Layer

C3:層 C3: Layer

CB1:突觸 CB1: Synapse

CB2:突觸 CB2: Synapse

CB3:突觸 CB3: Synapse

CB4:突觸 CB4: Synapse

P1:激發函數 P1: Excitation function

P2:激發函數 P2: Excitation function

S0:層 S0: layer

S1:層 S1: layer

S2:層 S2: layer

Claims (49)

一種程式化一選定的非揮發性記憶體單元以儲存N個可能值中之一者之方法,其中,N為大於2之一整數,該選定的非揮發性記憶體單元包含一浮動閘極及一控制閘極,該方法包含: 執行一粗略程式化程序,其包含: 以一初始程式化電壓程式化該非揮發性記憶體單元; 將一第一電壓施加至該選定的非揮發性記憶體單元之該控制閘極且量測穿過該選定的非揮發性記憶體單元產生之一第一電流; 將一第二電壓施加至該選定的非揮發性記憶體單元之該控制閘極且量測穿過該選定的非揮發性記憶體單元產生之一第二電流; 基於該第一電壓、該第二電壓、該第一電流及該第二電流判定一斜率值; 基於該斜率值判定一下一個程式化電壓; 以該下一個程式化電壓程式化該非揮發性記憶體單元; 重複判定一下一個程式化電壓且以該下一個程式化電壓程式化該非揮發性記憶體單元之步驟,直至一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之一電流小於或等於一第一臨限電流值為止;及 執行一精確程式化程序,直至一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之一電流小於或等於一第二臨限電流值為止。A method for programming a selected non-volatile memory cell to store one of N possible values, where N is an integer greater than 2, and the selected non-volatile memory cell includes a floating gate and A control gate, the method includes: Perform a rough stylized procedure, which includes: Program the non-volatile memory unit with an initial programmed voltage; Applying a first voltage to the control gate of the selected non-volatile memory cell and measuring a first current generated through the selected non-volatile memory cell; Applying a second voltage to the control gate of the selected non-volatile memory cell and measuring a second current generated through the selected non-volatile memory cell; Determining a slope value based on the first voltage, the second voltage, the first current, and the second current; Determine a programmed voltage based on the slope value; Program the non-volatile memory unit with the next programmed voltage; Repeat the steps of determining a programming voltage and programming the non-volatile memory cell with the next programming voltage until a current passing through the selected non-volatile memory cell during a read or verify operation is less than or Equal to a first threshold current value; and A precise programming procedure is performed until a current passing through the selected non-volatile memory cell during a read or verify operation is less than or equal to a second threshold current value. 如請求項1之方法,其中,執行一粗略程式化程序之步驟進一步包含: 當穿過該選定的非揮發性記憶體單元之一電流小於或等於一第三臨限電流值時,抹除該選定的非揮發性記憶體單元且重複該粗略程式化程序。Such as the method of claim 1, wherein the step of executing a rough stylized procedure further includes: When a current passing through the selected non-volatile memory cell is less than or equal to a third threshold current value, the selected non-volatile memory cell is erased and the rough programming process is repeated. 如請求項1之方法,其進一步包含: 執行一第二精確程式化程序,直至一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之一電流小於或等於一第四臨限電流值為止。Such as the method of claim 1, which further includes: A second precise programming process is performed until a current passing through the selected non-volatile memory cell during a read or verify operation is less than or equal to a fourth threshold current value. 如請求項1之方法,其中,該精確程式化程序包含將量值逐漸增加之電壓脈衝施加至該選定的非揮發性記憶體單元之該控制閘極。The method of claim 1, wherein the precise programming process includes applying a voltage pulse of gradually increasing magnitude to the control gate of the selected non-volatile memory cell. 如請求項1之方法,其中,該精確程式化程序包含將持續時間逐漸增加之電壓脈衝施加至該選定的非揮發性記憶體單元之該控制閘極。The method of claim 1, wherein the precise programming process includes applying a voltage pulse of gradually increasing duration to the control gate of the selected non-volatile memory cell. 如請求項1之方法,其中,該選定的非揮發性記憶體單元為一分離閘式快閃記憶體單元。Such as the method of claim 1, wherein the selected non-volatile memory cell is a split gate flash memory cell. 如請求項1之方法,其中,該選定的非揮發性記憶體單元處於一類比記憶體深度神經網路中之一向量矩陣乘法陣列中。Such as the method of claim 1, wherein the selected non-volatile memory unit is in a vector matrix multiplication array in an analog memory deep neural network. 如請求項1之方法,其進一步包含: 在執行該粗略程式化程序之前: 將該選定的非揮發性記憶體單元程式化為一「0」狀態;及 將該選定的非揮發性記憶體單元抹除至一弱抹除位準。Such as the method of claim 1, which further includes: Before running this rough stylized procedure: Program the selected non-volatile memory unit to a "0" state; and The selected non-volatile memory cell is erased to a weak erase level. 如請求項1之方法,其進一步包含: 在執行該粗略程式化程序之前: 將該選定的非揮發性記憶體單元抹除為一「1」狀態;及 將該選定的非揮發性記憶體單元程式化至一弱程式化位準。Such as the method of claim 1, which further includes: Before running this rough stylized procedure: Erase the selected non-volatile memory cell to a "1" state; and The selected non-volatile memory unit is programmed to a weak programming level. 如請求項1之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一積分類比至數位轉換器對在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流進行積分以產生數位位元。Such as the method of claim 1, which further includes: Perform a read operation on the selected non-volatile memory cell; and An integral analog-to-digital converter is used to integrate the current drawn by the selected non-volatile memory cell during the read operation to generate digital bits. 如請求項1之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一積分三角類比至數位轉換器將在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流轉換成數位位元。Such as the method of claim 1, which further includes: Perform a read operation on the selected non-volatile memory cell; and An integral triangle analog-to-digital converter is used to convert the current drawn by the selected non-volatile memory cell during the read operation into digital bits. 如請求項1之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一演算法類比至數位轉換器將在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流轉換成數位位元。Such as the method of claim 1, which further includes: Perform a read operation on the selected non-volatile memory cell; and An algorithmic analog-to-digital converter is used to convert the current drawn by the selected non-volatile memory cell during the read operation into digital bits. 如請求項2之方法,其進一步包含: 執行一第二精確程式化程序,直至一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之一電流小於或等於一第四臨限電流值為止。Such as the method of claim 2, which further includes: A second precise programming process is performed until a current passing through the selected non-volatile memory cell during a read or verify operation is less than or equal to a fourth threshold current value. 如請求項2之方法,其中,該精確程式化程序包含將量值逐漸增加之電壓脈衝施加至該選定的非揮發性記憶體單元之該控制閘極。The method of claim 2, wherein the precise programming process includes applying a voltage pulse of gradually increasing magnitude to the control gate of the selected non-volatile memory cell. 如請求項2之方法,其中,該精確程式化程序包含將持續時間逐漸增加之電壓脈衝施加至該選定的非揮發性記憶體單元之該控制閘極。The method of claim 2, wherein the precise programming process includes applying a voltage pulse of gradually increasing duration to the control gate of the selected non-volatile memory cell. 如請求項2之方法,其中,該選定的非揮發性記憶體單元為一分離閘式快閃記憶體單元。Such as the method of claim 2, wherein the selected non-volatile memory cell is a split gate flash memory cell. 如請求項2之方法,其中,該選定的非揮發性記憶體單元處於一類比記憶體深度神經網路中之一向量矩陣乘法陣列中。Such as the method of claim 2, wherein the selected non-volatile memory unit is in a vector matrix multiplication array in an analog memory deep neural network. 如請求項2之方法,其進一步包含: 在執行該粗略程式化程序之前: 將該選定的非揮發性記憶體單元程式化為一「0」狀態;及 將該選定的非揮發性記憶體單元抹除至一弱抹除位準。Such as the method of claim 2, which further includes: Before running this rough stylized procedure: Program the selected non-volatile memory unit to a "0" state; and The selected non-volatile memory cell is erased to a weak erase level. 如請求項2之方法,其進一步包含: 在執行該粗略程式化程序之前: 將該選定的非揮發性記憶體單元抹除為一「1」狀態;及 將該選定的非揮發性記憶體單元程式化至一弱程式化位準。Such as the method of claim 2, which further includes: Before running this rough stylized procedure: Erase the selected non-volatile memory cell to a "1" state; and The selected non-volatile memory unit is programmed to a weak programming level. 如請求項2之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一積分類比至數位轉換器對在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流進行積分以產生數位位元。Such as the method of claim 2, which further includes: Perform a read operation on the selected non-volatile memory cell; and An integral analog-to-digital converter is used to integrate the current drawn by the selected non-volatile memory cell during the read operation to generate digital bits. 如請求項2之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一積分三角類比至數位轉換器將在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流轉換成數位位元。Such as the method of claim 2, which further includes: Perform a read operation on the selected non-volatile memory cell; and An integral triangle analog-to-digital converter is used to convert the current drawn by the selected non-volatile memory cell during the read operation into digital bits. 如請求項2之方法,其進一步包含: 對該選定的非揮發性記憶體單元執行一讀取操作;及 使用一演算法類比至數位轉換器將在該讀取操作期間由該選定的非揮發性記憶體單元汲取之該電流轉換成數位位元。Such as the method of claim 2, which further includes: Perform a read operation on the selected non-volatile memory cell; and An algorithmic analog-to-digital converter is used to convert the current drawn by the selected non-volatile memory cell during the read operation into digital bits. 如請求項1之方法,其進一步包含: 藉由將一輸入脈衝施加至該非揮發性記憶體單元之一端子、量測並數位化由該選定的非揮發性記憶體單元汲取之該電流以產生數位輸出位元、及比較該等數位輸出位元與表示該第一臨限電流之數位位元,來判定在一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之該電流是否小於或等於該第一臨限電流值。Such as the method of claim 1, which further includes: By applying an input pulse to a terminal of the non-volatile memory unit, measuring and digitizing the current drawn by the selected non-volatile memory unit to generate digital output bits, and comparing the digital outputs Bit and a digital bit representing the first threshold current to determine whether the current passing through the selected non-volatile memory cell during a read or verify operation is less than or equal to the first threshold current value . 如請求項1之方法,其進一步包含: 藉由將一固定偏壓施加至該非揮發性記憶體單元之一端子、量測並數位化由該選定的非揮發性記憶體單元汲取之該電流以產生數位輸出位元、及比較該等數位輸出位元與表示該第一臨限電流之數位位元,來判定在一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之該電流是否小於或等於該第一臨限電流值。Such as the method of claim 1, which further includes: By applying a fixed bias to a terminal of the non-volatile memory cell, measuring and digitizing the current drawn by the selected non-volatile memory cell to generate digital output bits, and comparing the digital bits Output bits and digital bits representing the first threshold current to determine whether the current passing through the selected non-volatile memory cell during a read or verify operation is less than or equal to the first threshold current value. 如請求項1之方法,其進一步包含: 藉由將一輸入施加至該非揮發性記憶體單元之一端子、以一輸出脈衝調變由該選定的非揮發性記憶體單元汲取之該電流以產生一經調變輸出、數位化該經調變輸出以產生數位輸出位元、及比較該等數位輸出位元與表示該第一臨限電流之數位位元,來判定在一讀取或驗證操作期間穿過該選定的非揮發性記憶體單元之該電流是否小於或等於該第一臨限電流值。Such as the method of claim 1, which further includes: By applying an input to a terminal of the non-volatile memory unit, the current drawn by the selected non-volatile memory unit is modulated with an output pulse to generate a modulated output and digitize the modulated Output to generate digital output bits, and compare the digital output bits with the digital bit representing the first threshold current to determine whether to pass through the selected non-volatile memory cell during a read or verify operation Whether the current is less than or equal to the first threshold current value. 一種用於在包含一輸入函數電路、一記憶體陣列及一輸出電路區塊之一向量矩陣乘法系統中執行一讀取或驗證操作之方法,其包含: 藉由該輸入函數電路接收數位位元輸入值; 將該等數位輸入值轉換成一輸入信號; 將該輸入信號施加至該記憶體陣列中之選定的單元之控制閘極端子;及 回應於自該記憶體陣列接收到之電流而藉由該輸出電路區塊產生一輸出值。A method for performing a read or verify operation in a vector matrix multiplication system including an input function circuit, a memory array, and an output circuit block, which includes: Receiving digital bit input values through the input function circuit; Converting the digital input values into an input signal; Applying the input signal to the control gate terminal of the selected cell in the memory array; and In response to the current received from the memory array, an output value is generated by the output circuit block. 如請求項26之方法,其中,該輸出值包含一組數位位元。Such as the method of claim 26, wherein the output value includes a set of digits. 如請求項26之方法,其中,該輸出值包含對應於該等數位位元輸入值中之每一位元位置的一輸出分量,且每一輸出分量乘以與該等數位輸入值之對應位元位置成比例的一因數。Such as the method of claim 26, wherein the output value includes an output component corresponding to each bit position in the digital input values, and each output component is multiplied by the corresponding bit of the digital input values A factor that is proportional to the meta position. 如請求項28之方法,其中,該因數對於該等數位輸入值之第一位元位置為一。Such as the method of claim 28, wherein the factor is one for the first bit position of the digital input values. 如請求項28之方法,其中,該因數對於該等數位輸入值之第二位元位置為二。Such as the method of claim 28, wherein the second bit position of the factor for the digital input values is two. 如請求項28之方法,其中,該因數對於該數位輸入值之第n位元位置為2nSuch as the method of claim 28, wherein the factor is 2 n for the n-th bit position of the digital input value. 如請求項26之方法,其中,該輸出值包含對應於該等數位位元輸入值中之每一位元位置之一輸出分量,且每一輸出分量為一位元位置群組之一部分,該位元位置群組乘以與該位元位置群組之對應位元位置成比例的一因數。Such as the method of claim 26, wherein the output value includes an output component corresponding to each bit position in the digital bit input values, and each output component is a part of a bit position group, the The bit position group is multiplied by a factor proportional to the corresponding bit position of the bit position group. 如請求項32之方法,其中,該因數對於第一位元位置群組為一。Such as the method of claim 32, wherein the factor is one for the first bit position group. 如請求項32之方法,其中,該因數對於第二位元位置群組為二。Such as the method of claim 32, wherein the factor is two for the second bit position group. 如請求項32之方法,其中,該因數對於第n位元位置群組為2nSuch as the method of claim 32, wherein the factor is 2 n for the n-th bit position group. 如請求項26之方法,其中,該輸入信號為一類比電壓。Such as the method of claim 26, wherein the input signal is an analog voltage. 如請求項26之方法,其中,該輸入信號包含一個或多個數位脈衝。The method of claim 26, wherein the input signal includes one or more digital pulses. 如請求項29之方法,其中,經產生之數位脈衝之數目係與由該等數位輸入值表示之值成比例。Such as the method of claim 29, wherein the number of generated digital pulses is proportional to the value represented by the digital input values. 如請求項26之方法,其中,該輸出電路區塊包含一積分類比至數位轉換器。Such as the method of claim 26, wherein the output circuit block includes an integral analog-to-digital converter. 如請求項26之方法,其中,該輸出電路區塊包含一逐次近似類比至數位轉換器。Such as the method of claim 26, wherein the output circuit block includes a successive approximation analog to digital converter. 如請求項26之方法,其中,該輸出電路區塊包含一積分三角類比至數位轉換器。Such as the method of claim 26, wherein the output circuit block includes an integral triangle analog-to-digital converter. 一種用於在包含一輸入函數電路、一記憶體陣列及一輸出電路區塊之一向量矩陣乘法系統中執行一讀取或驗證操作之方法,其包含: 藉由該輸入函數電路接收一組數位輸入位元;及 對於該組數位輸入位元中之每一數位輸入位元: 將該數位輸入位元轉換成一輸入信號; 將該輸入信號施加於該記憶體陣列中之選定的單元之一端子;及 以與該數位輸入位元之一位元位置成比例的一脈衝寬度調變耦接至該選定的單元之一位元線上之一輸出電流以產生一輸出電壓。A method for performing a read or verify operation in a vector matrix multiplication system including an input function circuit, a memory array, and an output circuit block, which includes: Receive a set of digital input bits through the input function circuit; and For each digital input bit in the group of digital input bits: Converting the digital input bit into an input signal; Applying the input signal to a terminal of the selected cell in the memory array; and A pulse width modulation proportional to a bit position of the digital input bit is coupled to an output current on a bit line of the selected cell to generate an output voltage. 如請求項42之方法,其進一步包含: 藉由一類比至數位轉換器將該輸出電壓轉換為一組數位輸出位元。Such as the method of claim 42, which further includes: An analog-to-digital converter converts the output voltage into a set of digital output bits. 如請求項43之方法,其進一步包含: 對針對該組數位輸入位元產生之該等若干組數位輸出位元進行求和以產生一數位輸出。Such as the method of claim 43, which further includes: The sets of digital output bits generated for the set of digital input bits are summed to generate a digital output. 如請求項42之方法,其中,每一輸入信號為一電壓。Such as the method of claim 42, wherein each input signal is a voltage. 如請求項42之方法,其中,每一輸入信號包含一個或多個數位脈衝。Such as the method of claim 42, wherein each input signal includes one or more digital pulses. 如請求項43之方法,其中,該類比至數位轉換器包含一積分類比至數位轉換器。Such as the method of claim 43, wherein the analog-to-digital converter includes an integral analog-to-digital converter. 如請求項43之方法,其中,該類比至數位轉換器包含一逐次近似類比至數位轉換器。Such as the method of claim 43, wherein the analog-to-digital converter includes a successive approximation analog-to-digital converter. 如請求項43之方法,其中,該類比至數位轉換器包含一積分三角類比至數位轉換器。Such as the method of claim 43, wherein the analog-to-digital converter includes an integral triangle analog-to-digital converter.
TW109131606A 2019-09-19 2020-09-15 Precision tuning for the programming of analog neural memory in a deep learning artificial neural network TWI784318B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US16/576,533 US11507816B2 (en) 2019-09-19 2019-09-19 Precision tuning for the programming of analog neural memory in a deep learning artificial neural network
US16/576,533 2019-09-19
PCT/US2019/068206 WO2021054992A1 (en) 2019-09-19 2019-12-22 Precision tuning for the programming of analog neural memory in a deep learning artificial neural network
WOPCT/US19/68206 2019-12-22

Publications (2)

Publication Number Publication Date
TW202121259A true TW202121259A (en) 2021-06-01
TWI784318B TWI784318B (en) 2022-11-21

Family

ID=69467680

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109131606A TWI784318B (en) 2019-09-19 2020-09-15 Precision tuning for the programming of analog neural memory in a deep learning artificial neural network

Country Status (7)

Country Link
US (2) US11507816B2 (en)
EP (1) EP4032088A1 (en)
JP (2) JP7340694B2 (en)
KR (1) KR20220020952A (en)
CN (1) CN114402391A (en)
TW (1) TWI784318B (en)
WO (1) WO2021054992A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11636322B2 (en) * 2020-01-03 2023-04-25 Silicon Storage Technology, Inc. Precise data tuning method and apparatus for analog neural memory in an artificial neural network
US11568021B2 (en) 2020-02-21 2023-01-31 Alibaba Group Holding Limited Vector-vector multiplication techniques for processing systems
US11756950B2 (en) * 2021-01-14 2023-09-12 Taiwan Semiconductor Manufacturing Company, Ltd Integrated circuit and method for manufacturing the same
US20220374161A1 (en) * 2021-05-19 2022-11-24 Silicon Storage Technology, Inc. Output circuit for analog neural memory in a deep learning artificial neural network
WO2024063792A1 (en) * 2022-09-22 2024-03-28 Silicon Storage Technology, Inc. Verification method and system in artificial neural network array

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5029130A (en) 1990-01-22 1991-07-02 Silicon Storage Technology, Inc. Single transistor non-valatile electrically alterable semiconductor memory device
US6747310B2 (en) 2002-10-07 2004-06-08 Actrans System Inc. Flash memory cells with separated self-aligned select and erase gates, and process of fabrication
US7139198B2 (en) * 2004-01-27 2006-11-21 Sandisk Corporation Efficient verification for coarse/fine programming of non-volatile memory
US7092288B2 (en) 2004-02-04 2006-08-15 Atmel Corporation Non-volatile memory array with simultaneous write and erase feature
KR102235492B1 (en) 2014-08-25 2021-04-05 삼성전자주식회사 Nonvolatile memory device and program-verifying method of the same
US9697877B2 (en) 2015-02-05 2017-07-04 The Board Of Trustees Of The University Of Illinois Compute memory
US9852800B2 (en) 2016-03-07 2017-12-26 Sandisk Technologies Llc Adaptive determination of program parameter using program of erase rate
JP6833873B2 (en) * 2016-05-17 2021-02-24 シリコン ストーリッジ テクノロージー インコーポレイテッドSilicon Storage Technology, Inc. Deep learning neural network classifier using non-volatile memory array
US10580492B2 (en) 2017-09-15 2020-03-03 Silicon Storage Technology, Inc. System and method for implementing configurable convoluted neural networks with flash memories
US10699785B2 (en) 2017-09-29 2020-06-30 Crossbar, Inc. Computing memory architecture
US10748630B2 (en) 2017-11-29 2020-08-18 Silicon Storage Technology, Inc. High precision and highly efficient tuning mechanisms and algorithms for analog neuromorphic memory in artificial neural networks

Also Published As

Publication number Publication date
JP7340694B2 (en) 2023-09-07
EP4032088A1 (en) 2022-07-27
WO2021054992A1 (en) 2021-03-25
US11507816B2 (en) 2022-11-22
TWI784318B (en) 2022-11-21
US20220383086A1 (en) 2022-12-01
JP2023166467A (en) 2023-11-21
KR20220020952A (en) 2022-02-21
JP2022549112A (en) 2022-11-24
US20210089875A1 (en) 2021-03-25
CN114402391A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
US11729970B2 (en) Input and digital output mechanisms for analog neural memory in a deep learning artificial neural network
TWI784318B (en) Precision tuning for the programming of analog neural memory in a deep learning artificial neural network
TW202042233A (en) Output array neuron conversion and calibration for analog neural memory in deep learning artificial neural network
TWI782343B (en) Precise programming method and apparatus for analog neural memory in an artificial neural network
TWI820532B (en) Digital output mechanisms for analog neural memory in a deep learning artificial neural network
TWI784816B (en) Input and digital output mechanisms for analog neural memory in a deep learning artificial neural network