Hybrid memory management for non-volatile memory (NVM) devices used with recurrent neural networks

Through the self-NTM-NAND management mechanism and error correction technology, the NTM controller directly manages the NAND memory, solving the problem of limited NTM processing speed and efficiency, and realizing more efficient data storage and learning capabilities.

CN117693758BActive Publication Date: 2026-11-24SANDISK TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280049453.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-10-12
Filing Date
2022-05-24
Publication Date
2026-11-24
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

In the prior art, the flash management operation of NTM is limited by the management method of the flash drive, which results in limited processing speed and efficiency of NTM, and FTL and host management methods are not suitable for the unique operational needs of NTM.

Method used

By introducing a self-NTM-NAND management mechanism into the NTM controller, the NTM controller directly manages its own NAND memory, bypassing the overhead of SSD flash memory management and host management, and employing a majority rule error correction procedure and data correction technology based on inconsistency counting.

Benefits of technology

It improves the processing speed and efficiency of NTM, reduces flash memory management overhead, and enhances the learning ability of the NTM controller and the reliability of data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117693758B_ABST
    Figure CN117693758B_ABST
Patent Text Reader

Abstract

A recurrent neural network (RNN) is constructed, where a non-volatile memory (NVM) array provides storage for the RNN. The RNN may include a neural Turing machine (NTM), and the storage may be an NTM matrix stored within the NVM array. In some examples, the data storage device (DSD) controlling the NVM array comprises both a data storage controller and a separate NTM controller. The separate NTM controller directly accesses the NTM matrix within the NVM array, while bypassing the flash translation layer (FTL) component of the data storage controller. Additionally, various majority-win error detection and correction procedures, as well as various procedures based on inconsistency counting, are described.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications

[0002] For all purposes, this application claims the benefit of the entire contents of U.S. Nonprovisional Application No. 17 / 499,588, filed October 12, 2021, entitled “Hybrid memory management of non-volatile memory (NVM) devices for use with recurrent neural networks”, and pursuant to which such contents are incorporated by reference. Technical Field

[0003] In some aspects, this disclosure relates to data storage devices having arrays of non-volatile memory (NVM). More specifically, but not exclusively, aspects relate to systems and methods for managing NVM arrays used with recurrent neural networks. Background Technology

[0004] Recurrent Neural Networks (RNNs) are artificial neural networks configured such that the connections between nodes form a directed graph along a time series, allowing the network to exhibit temporally dynamic behavior. Neural Turing Machines (NTMs) (or more generally, Memory-Enhanced Neural Networks (MANNs)) are a type of RNN. NTMs have a neural network controller coupled to an external memory resource, which interacts with the external memory resource using attention mechanisms (e.g., mechanisms that focus the network's attention on specific portions of data stored in external memory). NTMs have the potential to speed up how RNNs process information. There is a continuous need to provide improvements within NTMs, MANNs, and other RNNs, as well as in devices configured to implement NTMs, MANNs, and other RNNs. Summary of the Invention

[0005] The following is a brief overview of some aspects of this disclosure to provide a basic understanding of these aspects. This overview is not a comprehensive summary of all contemplative features of this disclosure, and is neither intended to identify key or essential elements of all aspects of this disclosure, nor to depict the scope of any or all aspects of this disclosure. Its sole purpose is to present the various concepts of some aspects of this disclosure in a simplified form as a prelude to the more detailed description that follows.

[0006] One embodiment of this disclosure provides a data storage device comprising: a non-volatile memory (NVM) array; a controller coupled to the NVM array and having a processor configured to: store at least three copies of neural network data of a neural network in the NVM array, wherein the neural network data includes weights; read the at least three copies of the neural network data from the NVM array; and perform a majority rule error correction procedure on the at least three copies of the neural network data read from the NVM array.

[0007] Another embodiment of this disclosure provides a method for use in a data storage device including an NVM array. The method includes: storing at least three copies of neural network data of a neural network, wherein the neural network data includes weights, in the NVM array; reading the at least three copies of the neural network data from the NVM array; and performing a majority rule error correction procedure on the at least three copies of the neural network data read from the NVM array.

[0008] Another embodiment of this disclosure provides a data storage device including an NVM array and a controller coupled to the NVM array. The controller has a processor configured to: store scrambled neural network data in the NVM array; read the scrambled neural network data from the NVM array; maintain an accumulated sum of inconsistencies in the counts of binary ones and binary zeros in the scrambled neural network data; descramble the neural network data read from the NVM array in response to determining that the accumulated sum does not exceed an inconsistency threshold; and generate an indication of errors in the neural network data in response to determining that the accumulated sum exceeds the inconsistency threshold.

[0009] Another embodiment of this disclosure provides a method for use with a data storage device including an NVM array. The method includes: storing scrambled neural network data in the NVM array; reading the scrambled neural network data from the NVM array; maintaining an accumulated sum of inconsistencies in the counts of binary ones and binary zeros in the scrambled neural network data; descrambling the neural network data read from the NVM array in response to determining that the accumulated sum does not exceed an inconsistency threshold; and generating an indication of errors in the neural network data in response to determining that the accumulated sum exceeds the inconsistency threshold. Attached Figure Description

[0010] Figure 1This is a schematic block diagram of a data storage device in the form of an exemplary solid-state device (SSD) or other data storage device (DSD) having an array of non-volatile memory (NVM), wherein the NVM array stores neural Turing machine (NTM) memory that can be directly accessed by an NTM controller separate from the SSD controller.

[0011] Figure 2 An exemplary NVM array die for storing an NTM matrix or storage volume and an NTM controller for accessing the NTM matrix are illustrated.

[0012] Figure 3 An exemplary method for NTM training controlled by an NTM controller based on data stored in the NTM memory bank in an NVM array is illustrated.

[0013] Figure 4 An exemplary method is illustrated for use by an NTM controller to control durability balancing / wear leveling within an NTM memory within an NVM array.

[0014] Figure 5 Another exemplary method is illustrated for use by an NTM controller to control durability balancing / wear leveling within an NTM memory within an NVM array.

[0015] Figure 6 An exemplary method is illustrated for use by an NTM controller to control read threshold calibration within an NTM memory within an NVM array.

[0016] Figure 7 An exemplary method for controlling NTM operation based on a loss function is illustrated for use by a DSD having an NTM controller and a data storage controller.

[0017] Figure 8 The example illustrates a majority of winning error correction procedures, in which multiple copies of the neural network data are stored in an NVM array.

[0018] Figure 9 An exemplary method for use by DSD to control the majority-win error correction procedure is illustrated.

[0019] Figure 10 An exemplary method for use by DSD to control an error correction procedure based on inconsistency counting is illustrated.

[0020] Figure 11 A first aspect of an exemplary method for use by the DSD to control an error correction procedure based on inconsistency counting is illustrated.

[0021] Figure 12 This is a schematic block diagram configuration of an exemplary DSD with an NTM controller and a separate data storage controller.

[0022] Figure 13 An exemplary method is illustrated for use with a DSD having an NTM controller and a separate data storage controller.

[0023] Figure 14 This is a schematic block diagram configuration of an exemplary DSD configured to perform a majority-win error correction procedure.

[0024] Figure 15 An exemplary majority-win error correction procedure is illustrated.

[0025] Figure 16 This is a schematic block diagram configuration of an exemplary DSD configured to perform an error correction procedure based on inconsistency counting.

[0026] Figure 17 An exemplary error correction procedure based on inconsistency counting is illustrated.

[0027] Figure 18 This is a schematic block diagram configuration of an exemplary device such as a DSD having an NTM controller separate from the SSD controller. Detailed Implementation

[0028] In the following detailed description, reference is made to the accompanying drawings, which form part of this detailed description. In addition to the exemplary aspects, embodiments, and features described above, other aspects, embodiments, and features will become apparent from the accompanying drawings and the following detailed description. The description of elements in each figure may refer to elements in the preceding figures. Similar numerals may refer to similar elements in the drawings, including alternative embodiments of similar elements.

[0029] The examples in this document relate to non-volatile memory (NVM) arrays and to data storage devices or apparatuses for controlling NVM arrays, such as controllers for data storage devices (DSDs) (such as solid-state devices (SSDs)), and more specifically, to solid-state memory storage devices, such as those using NAND flash memory (referred to herein as "NAND"). (NAND is a type of non-volatile storage technology that does not require power to retain data. It utilizes negative AND (i.e., NAND) logic.) For brevity, an SSD having one or more NAND dies will be used as a non-limiting example of a DSD in the following description of various embodiments. It should be understood that at least some aspects described herein are also applicable to other forms of data storage devices. For example, at least some aspects described herein are applicable to data storage or memory devices, including phase-change memory (PCM) arrays, magnetoresistive random access memory (MRAM) arrays, storage-class memory, and resistive random access memory (ReRAM) arrays. Furthermore, various embodiments can be used in various machine learning devices that may include some combination of processing elements and memory / data storage elements, including NVM arrays constructed / configured according to the embodiments described.

[0030] Overview

[0031] As mentioned above, recurrent neural networks (RNNs) are configured to allow the network to exhibit time-dynamic behavior. Neural Turing machines (NTMs) are a type of RNN with a neural network controller coupled to external memory resources, where the controller utilizes a mechanism to focus the network's attention on specific portions of data stored in external memory. NTMs with Long Short-Term Memory (LSTM) network controllers can infer algorithms such as copying, sorting, and associative recall from examples. NTMs are changing and accelerating the way RNNs process information. A neural network machine (CTM) has two main components: a neural network controller and a memory bank. The controller performs neural network operations on the memory bank to form virtually any type of neural network, including those with feedforward components. The memory bank stores the processed information, for example, in a matrix of size N×N, with N vector rows, where each row has D columns or dimensions. In one update iteration, the controller processes the input and interacts with the memory bank to generate an output. This interaction is handled by a set of parallel read "heads" and write "heads," which are the computational components of the NTM architecture. The NTM read head outputs a weighted combination of memory locations, which may be referred to as the read vector, and this weighted combination is fed back to the controller at the next time step. The NTM write head "softly" modifies the memory (e.g., depending on its weights) using erase and add vectors, both of which are generated by the controller.

[0032] The memory portion of a typical NTM architecture is a simple buffer that typically lacks computational power. The memory can be, for example, random access memory (RAM). Each component of the NTM architecture is differentiable, allowing the network to be trained directly using gradient descent and backpropagation. This is achieved by defining “fuzzy” read and write operations that interact more or less with all elements in the memory (rather than addressing individual elements). The degree of fuzziness is determined by an attention focus mechanism that constrains each read and write operation to interact with a small portion of the memory, ignoring the rest. In other words, a small or sparse portion of the memory is attentionally selected. Because the interaction with the memory is sparse, the NTM is biased towards storing data undisturbed. The memory locations that attract attention are determined by specialized output values ​​from the aforementioned heads. These outputs define normalized weights on the rows of the memory matrix (called memory “positions”). Each weight (one for each read or write head) sets the degree to which the head reads or writes at each position. Thus, the head can strongly focus on memory at a single position or weakly focus on memory at many positions.

[0033] In terms of reading, let M t Let w be the content of an N×N memory matrix at time t, where N is the number of memory locations, and D is the vector size or dimension at each location. t This is a weighted vector at N positions emitted by the readhead at time t. Since all weights are normalized, w... t N elements w t Follow these constraints:

[0034]

[0035] Read vector r t Defined as a row vector M in memory t Linear combinations of (i):

[0036]

[0037] This is differentiable for both the memory and the weighting.

[0038] For NTM writes, the write operation consists of two parts: an erase operation followed by an addition operation. Given the weighted w emitted by the write header at time t... t And an erase vector e with M elements all located in the range (0, 1). t The memory vector M from the previous time step t -1(i) can be modified as follows:

[0039]

[0040] Here, 1 represents a row vector of all 1s, and the multiplication of memory locations is applied point-by-point. Therefore, an element at a memory location is reset to zero only if both the weighted and erased elements are one. If either the weighting or erasure is zero, the memory remains unchanged (i.e., erasure here means setting to zero). When multiple write heads exist, erasure can be performed in any order because multiplication is commutative. Each write head also produces a length D and a vector a. t The vector is added to memory after the erasure step has been performed:

[0041]

[0042] Note again that the order in which the append operations are performed by multiple heads is irrelevant. The combined erase and append operations of all write heads produce the final contents of the memory at time t. Since both erase and append are differentiable, the composite write operation is also differentiable. It should also be noted that both the erase and append vectors have D independent components, allowing for fine-grained control over which elements in each memory location are modified.

[0043] Typically, NTM uses RAM as its external memory resource. The NTM matrix is ​​stored in RAM, and all computations are performed within the NTM controller based on data read from and written to RAM. That is, the aforementioned read and write heads are components of the controller that operate on the data stored in RAM. The NTM controller can be configured to control the RNN based on inputs to RAM and outputs from RAM, in order to optimize the RNN algorithm performance based on labels provided externally during the training phase. RAM only stores data and does not perform NTM computations.

[0044] This paper describes an NTM configuration and architecture that alternatively uses a non-volatile memory (NVM) array to store the NTM memory matrix or other RNN memory or related data and information.

[0045] NVM arrays are typically integrated within a flash drive (or NAND drive) that includes a data storage controller that writes and reads data from the NVM array. While it's possible to use the flash drive's data storage controller to access NTM memory stored on the NAND NVM array (making it possible for a host, for example, to act as the NTM controller), problems can arise due to the flash management operations of the flash drive. In this respect, the inherent nature of NAND flash technology often necessitates sophisticated and complex flash management techniques to make the NAND NVM array a viable storage medium for computing systems, and these flash management techniques can hinder the speed and efficiency of NTM processing.

[0046] Many of these flash management technologies are implemented by the Flash Translation Layer (FTL) within the data storage controller of the flash drive (i.e., SSD). (An FTL is a type of NVM management component or flash management component that is primarily configured in the firmware and manages access to the NAND NVM array by performing logical-to-physical address translation and other functions such as garbage collection, wear leveling, error correction coding (ECC), and bad block management. However, for open channel SSDs, the management of the physical solid-state storage is controlled by the host computer's operating system. (An open channel SSD is a solid-state drive that does not implement an FTL within the drive itself. The Linux 4.4 kernel is an example of an operating system kernel that supports open channel SSDs.)

[0047] Flash management issues of NAND NVM that can be addressed or managed (at least partially) by the host of an FTL or an open-channel SSD include: 1) wear mechanisms that limit lifespan; 2) the need for erase before programming (writing); 3) data errors caused by write and read interference; 4) data retention errors; and 5) management of initial and growing bad blocks. Key factors affecting the reliability, performance, and write endurance of NAND NVM include: the use of single-cell (SLC) and multi-cell (MLC) NAND flash memory technologies; wear leveling algorithms; ensuring data integrity through bad block management techniques; the use of error detection and correction techniques; and write amplification.

[0048] These characteristics of NAND flash drives can be managed using appropriate FTL and other flash management technologies to provide reliable data storage devices. However, the operation of the FTL and other flash management components of the NAND data storage controller (or by the host operating system used for Open Channel SSDs) is not necessarily well-suited for the read and write head operations of NTMs or other forms of RNNs. For example, the unique aspects of NTMs (as briefly described above) may be affected by the overhead of an external flash management supervisor (e.g., FTL), but it may still not justify the stringent use case limitations of full host management of flash (via Open Channel systems).

[0049] This paper describes systems and methods in which the NTM manages its own NAND memory to avoid the need for the all-flash management overhead (e.g., FTL, etc.) of using SSD flash drives, while also avoiding the need for a host-based memory management system (as in open-channel SSDs where flash management is performed by the host). This management of its own NAND memory by the NTM can be referred to as self-NTM-NAND management. For example, this paper describes an NTM configuration and architecture that provides an NTM controller separate from the SSD data storage controller (and also separate from the host), where the SSD data storage controller and the separate NTM controller are configured to access separate portions or partitions of the NVM array using separate physical address sets. In this way, the NTM controller bypasses the FTL of the data storage controller. Although described primarily with reference to the NTM example, aspects of this paper are also applicable to other forms of RNNs.

[0050] Other aspects described herein relate to error correction techniques applicable to NTM data in NTM storage or other types of neural network data stored in an NVM array. In one aspect, a majority-rule error correction procedure is provided, wherein a controller coupled to the NVM array: 1) stores at least three copies of neural network data in the NVM array; 2) reads at least three copies of the neural network data from the NVM array; and 3) performs the majority-rule error correction procedure on the at least three copies of the neural network data read from the NVM array. Other aspects relate to scrambling and descrambling the data. For example, a procedure based on inconsistency counting for use with scrambled data is described, wherein a controller coupled to an NVM: 1) stores a scrambled version of neural network data in an NVM array; 2) reads a scrambled version of neural network data from the NVM array; 3) maintains an accumulated sum of inconsistencies in the counts (or quantities) of binary one and binary zero in the scrambled version of the data; 4) descrambles the neural network data read from the NVM array in response to determining that the accumulated sum does not exceed an inconsistency threshold; and 5) rewrites or restores the neural network data stored in the NVM array in response to determining that the accumulated sum exceeds the inconsistency threshold.

[0051] These and other features will be described below.

[0052] An exemplary data storage device with an NVM-based NTM memory matrix / memory bank

[0053] Figure 1This is a block diagram of a system 100 including an exemplary SSD (or DSD) with an NVM having an NTM memory matrix or other RNN storage. System 100 includes a host 102 and an SSD 104 or other DSD coupled to the host 102. The host 102 provides commands to the SSD 104 for transferring data between the host 102 and the SSD 104. For example, the host 102 may provide a write command to the SSD 104 to write data to the SSD 104, or a read command to the SSD 104 to read data from the SSD 104. The host 102 may also provide labels for training the NTM. The host 102 can be any system or device that requires data storage or retrieval and a compatible interface for communicating with the SSD 104. For example, the host 102 can be a computing device, a personal computer, a laptop, a workstation, a server, a personal digital assistant, a digital camera, or a digital telephone, to name just a few examples. Additionally or alternatively, host 102 may be a system or device that requires neural network processing, such as speech recognition, computer vision, and autonomous vehicles. For example, host 102 may be a component of an autonomous driving system for a vehicle.

[0054] SSD 104 includes a host interface 106, an SSD / DSD controller 108, a separate NTM controller 109, volatile memory 110 (such as DRAM) or other working memory, an NVM interface 112 (which may be referred to as a flash memory interface), and an NVM array 114. The NVM array 114 includes one or more NAND dies, each NAND die configured with (a) a first portion of memory serving as main memory 115 and (b) a second portion of memory serving as NTM bank 117. Main memory 115 corresponds to a first set of physical memory addresses within the NVM array 114, which is assigned to the SSD controller 108 and accessed by the NVM controller 116 via the NVM interface 112. The NVM controller 116 is configured to access the NVM physical addresses assigned to the SSD using an NVM management unit (e.g., FTL). NTM storage 117 corresponds to a second set of physical memory addresses within NVM array 114, which is assigned to and directly accessed by NTM controller 109 (i.e., not via NVM interface 112) to bypass the NVM management components of SSD controller 108 (e.g., bypassing FTL operations that would otherwise be performed in conjunction with reads from NVM array 114). It should be noted that NTM controller 109 and NTM storage 117 may be collectively referred to as an NTM module. In some examples, NTM storage 117 may be a separate partition of the NVM array. In other examples, the NTM storage is simply a separate part of the NVM array. It should also be noted that although the description primarily refers to an example where NTM controller 109 is a component of SSD 104, NTM controller 109 may alternatively be separate from SSD 104.

[0055] The portion of NVM array 114 allocated to SSD controller 108 can also be referred to as user data storage, as it will primarily store user data provided by host 102. However, other types of data, such as other types of non-NTM data provided by host 102 or SSD controller 108, can be stored in main memory 115. Furthermore, in some examples, some NTM data may also be stored in main memory 115. The portion of NVM array 114 allocated to NTM controller 109 is referred to as NTM storage bank 117, as it will primarily store NTM storage bank data provided by NTM controller 109. However, other types of data may be stored in NTM storage bank 117.

[0056] Host interface 106 is coupled to SSD controller 108 and facilitates communication between host 102 and SSD controller 108. SSD controller 108 is coupled to volatile memory 110 and via NVM interface 112 to the main memory 115 portion of NVM array 114. Host interface 106 can be any suitable communication interface, such as a Non-Volatile Memory Express (NVMe) interface, a Universal Serial Bus (USB) interface, a Serial Peripheral (SP) interface, an Advanced Technology Attachment (ATA) or Serial Advanced Technology Attachment (SATA) interface, a Small Computer System Interface (SCSI), an IEEE 1394 (FireWire) interface, etc. In some embodiments, host 102 includes SSD 104. In other embodiments, SSD 104 is remote relative to host 102 or is included in a remote computing system communicatively coupled to host 102. For example, host 102 can communicate with SSD 104 via a wireless communication link.

[0057] Despite Figure 1 In the illustrated example, SSD 104 includes a single channel between SSD controller 108 and NVM die 114 via interface 112, but the subject matter described herein is not limited to having a single memory channel. For example, in some NAND memory system architectures, two, four, eight, or more NAND channels couple the controller and the NAND memory device, depending on the controller's capabilities. In any implementation described herein, even if a single channel is shown in the figures, more than one single channel may be used between the controller and the memory die. SSD controller 108 may be implemented in a single integrated circuit chip and may communicate with different layers of memory in NVM die 114 via one or more command channels.

[0058] SSD controller 108 controls the operation of SSD 104 (e.g., excluding the operation of NTM controller 109). In various ways, SSD controller 108 receives commands from host 102 via host interface 106 and executes those commands to transfer data between host 102 and the main memory 115 of NVM array 114. Figure 1As shown, the NVM controller 116 of the SSD controller 108 is configured to use a flash management unit (e.g., FTL) to access the NVM physical address corresponding to the main memory 115. This flash management unit may include firmware-based (FW) components. (Some of these components may reside within the NVM / flash interface 112.) That is, the SSD controller 108 may include a FW-based flash management unit or a memory management unit for managing the main memory 115 of the NVM array 114. Furthermore, the SSD controller 108 can manage writes / reads to the volatile memory 110 to perform various functions implemented by the SSD controller 108, and maintain and manage cached information stored in the volatile memory 110.

[0059] The NTM controller 109 is also connected to the host interface 106 to receive NTM-specific commands and data (such as NTM input training data) from the host 102, and to send command responses and output data (such as trained NTM neural network parameters) to the host 102. The NTM controller 109 may also be connected to volatile memory 110 (or to a separate volatile memory, not shown) for writing to and reading from the volatile memory. The NVM array 114 may also include at least some on-chip NTM computing units and at least some on-chip user data computing units.

[0060] SSD controller 108 and NTM controller 109 may include any type of processing device, such as a microprocessor, microcontroller, embedded controller, logic circuit, software, firmware, etc. In some aspects, some or all of the functions described herein as being performed by SSD controller 108 or NTM controller 109 may alternatively be performed by another element of SSD 104. For example, SSD 104 may include a microprocessor, microcontroller, embedded controller, logic circuit, software, firmware, or any type of processing device for performing one or more of the functions described herein as being performed by SSD controller 108 or NTM controller 109. According to other aspects, one or more of the functions described herein as being performed by SSD controller 108 or NTM controller 109 may alternatively be performed by host 102. In yet another aspect, some or all of the functions described herein as being performed by SSD controller 108 or NTM controller 109 may alternatively be performed by another element, such as a controller in a hybrid drive that includes both non-volatile memory elements and magnetic storage elements.

[0061] Volatile memory 110 can be any suitable memory, computing device, or system capable of storing data. For example, volatile memory 110 can be ordinary RAM, DRAM, double data rate (DDR) RAM (DRAM), static RAM (SRAM), synchronous dynamic RAM (SDRAM), flash memory, erasable programmable read-only memory (EPROM), electrically erasable programmable ROM (EEPROM), or other fast non-volatile memory such as storage-class memory (e.g., MRAM, ReRAM, PCM). In various embodiments, SSD controller 108 and NTM controller 109 use volatile memory 110 or a portion thereof to store data during data transfers between host 102 and NVM array 114. For example, volatile memory 110 or a portion thereof can be cache memory. NVM array 114 receives data from SSD controller 108 via NVM interface 112 and stores the data in main memory 115. NVM array 114 can be any suitable type of non-volatile memory, such as NAND flash memory. In some implementations, the volatile memory 110 may be replaced by a non-volatile memory such as MRAM, PCM, ReRAM, etc., to serve as the working memory for the entire device.

[0062] exist Figure 1 In the example, NTM controller 109 may include hardware, firmware, software, or any combination thereof that provides an NTM, MANN, and / or RNN controller for use with NTM memory bank 117. NTM controller 109 may also be configured to perform various NTM operations on data in NTM memory bank 117, such as NTM read head and NTM write head operations.

[0063] although Figure 1 An exemplary SSD is shown, and the SSD is generally used as an illustrative example throughout this specification, but the various embodiments disclosed are not necessarily limited to SSD applications / specific implementations. As an example, the disclosed NVM die and associated processing components may be implemented as part of a package that includes other processing circuitry and / or components. For example, a processor may include the embedded NVM described herein, along with associated circuitry and / or components for NTM processing, or otherwise coupled to the embedded NVM described herein and associated circuitry and / or components. As an example, a processor may offload certain NTM processing tasks from the NTM controller 109 to the NVM and associated circuitry and / or components.

[0064] therefore, Figure 1An example of a hybrid memory management system is provided, among other features, which offers flash memory management (FW) level control of the main memory 115 by the NVM controller 116 of the SSD controller 108, while also allowing NTM-based direct dynamic memory management operations on the NTM memory bank 117 by the NTM controller. In this way, the system allows the NTM controller 109 to perform self-booting memory access on the NTM memory bank 117. Thus, a NAND-based NTM system is provided, which may include an NTM-NAND management system. This "dual-style" memory management system allows autonomous direct management of pre-allocated NAND flash memory regions (e.g., NTM memory bank 117), while memory controller functions for the remainder of the NVM array (e.g., main memory 115) can still be performed by the FW in the SSD controller 108. Furthermore, the host 102 does not need to manage the low-level memory management of any part of the NVM array 114.

[0065] In some examples, as will be explained below, NTM memory bank 117 can be controlled by SSD controller 108 during later stages of the NTM program (or whenever NTM controller 109 requests such control from SSD controller 108). This mechanism allows NTM to converge to the optimal solution faster and more accurately with less runtime and less computation (especially when such computation is redundant in other respects), while allowing NTM controller 109 to spend more time on actions “valuable for learning.” This can be used to enhance the functionality of NTM controller 109 because memory management of NTM memory bank 117 can be modified during the algorithm processing of NTM for cost function optimization. It also reduces latency and power overhead associated with the flash memory management processes of SSD controller 108, which are not essential for the operation of NTM.

[0066] Among other features, the SSD controller 108 allocates a specific physical address range for use by the NTM controller 109 to store data in the NTM memory bank 117. The NTM controller 109 then manages this physical address range independently (autonomously), allowing it to directly optimize its own NTM operations using the NVM array 114, and reducing the flash management overhead of the NVM controller 116. The remaining memory management of the NVM array 114 can be performed using other standard FW-based management methods (such as the FTL method), thus benefiting from the optimized FW-based hypervisors available in prior art flash drives.

[0067] It should be noted that the storage controller management of the NVM array 114 performed by the data storage controller 108 can be deterministic, that is, the memory management operations it performs can be performed in a predefined manner according to the embedded FW code, while the operation of the NTM controller 109 can be non-deterministic, because the NTM learns optimized operating rules dynamically during the device's lifetime based on the current device conditions.

[0068] Therefore, among other things, a system is described that provides: 1) allocation of NAND regions dedicated to NTM operations; 2) a hybrid memory management system with dual controller intervention levels (i.e., a main memory management module shown as controller 116), having a FW-based memory controller system (e.g., controller 108) and an NTM controller (e.g., controller 109) with direct (autonomous) memory management; wherein 3) the main memory management module (e.g., controller 116) operates with a deterministic nature based on FW, while the NTM controller (e.g., controller 109) operates in a non-deterministic manner (according to NTM operations).

[0069] Additionally, in some aspects, the NTM controller 109 is configured to perform additional or alternative functions, such as: 1) wear leveling, which differs from wear leveling (WL) performed by the SSD controller 108; 2) read threshold calibration (RTC), which differs from wear leveling performed by the SSD controller 108; 3) ECC, which differs from ECC performed by the SSD controller 108 and may include, for example, majority rule ECC; 4) ECC, which differs from ECC performed by the SSD controller 108 and may include, for example, majority rule ECC; and 5) selective data scrambling of NTM storage data. Furthermore, the NTM controller 109 can be configured to implement different data management functions based on the NTM loss function. These features will be described in detail below.

[0070] Figure 2 A block diagram illustrating an exemplary NTM memory bank 202 portion of an NVM die configured to store an NTM memory matrix 204 (or other RNN memory bank matrix or MANN memory bank matrix) and NTM memory management data 206 (e.g., any NTM memory management data that should be stored in the NVM, or other RNN memory management data or MANN memory management data). In some examples, the NTM memory bank portion 202 corresponds to... Figure 1 NTM memory 117. Figure 2 The NTM controller 208 is also illustrated (which in some examples corresponds to...). Figure 1The NTM controller 109 is shown in the figure. Not all circuitry or memory elements that may be used in an actual NVM die, such as input / output components, voltage regulation components, clock and timing components, are illustrated. Instead, only some components and circuitry are shown, summarized in a block diagram or schematic.

[0071] Figure 2 The NTM controller 208 includes components configured to perform or control NTM computing operations. Figure 2 In the example, exemplary NTM component 210 includes: one or more NTM vector read computation components 212 configured to perform at least some vector read operations on data stored in NTM memory matrix 204 (which may include at least some of the read head computations described above); one or more NTM vector write computation components 214 configured to perform at least some vector write operations on data stored in NTM memory matrix 204 (which may include at least some of the write head computations described above); one or more weight summing and / or counting components 218 configured to sum and / or count certain weights, as described below; and one or more NTM level control components 220 configured to control various functions depending on the stage of NTM processing, also described below. Multiple instances of each NTM component (e.g., 212, 214, 218, and 220) are shown because in some examples, multiple such devices can operate in parallel, for example, as metadata blocks along with NTM data maintained across the die array. Furthermore, at least some of these components (such as 212, 214, 218, and 220) can be configured on-chip, i.e., on an NVM die using, for example, under-array or array-side circuitry to hold the NTM memory matrix. Some of these components can be configured to accelerate convergence.

[0072] Figure 2 The NTM controller 208 also includes: an NTM memory management controller 222 configured to update memory management data 206; and an NTM "read head" and "write head" data input / output controller 224 configured to send / receive data to / from memory management data. Figure 1The host 102 inputs / outputs NTM data associated with NTM read heads and write operations; a wear leveling controller 226 (which performs a different wear leveling procedure on the NTM storage 202 than the wear leveling performed on other parts of the NVM by the SSD controller 108); a read threshold calibration controller 228 (which performs a different read threshold calibration procedure on the NTM storage 202 than the read threshold calibration performed on other parts of the NVM by the SSD controller 108); and a data storage management policy controller 230 (which implements a different read threshold calibration procedure on the NTM storage 202 than the one performed on other parts of the NVM by the SSD controller 108). The system includes: controller 108 (applied to different data memory management strategies for other parts of the NVM); ECC controller 232, configured to control any ECC applied to data when reading from or writing to the NTM memory matrix 204, in some examples the NTM memory matrix may perform a majority-rule-based error correction procedure; and data scrambler controller 234, which scrambles and descrambles data when it is written to and then read from the NTM memory. Data scrambler controller 234 may be configured to perform inconsistency counting-based processing. The operation of these components will be described in more detail below.

[0073] It should be noted that this is not the case. Figure 2 All the features shown are required. For example, in some implementations, the NTM controller will omit the wear leveling controller 226, read threshold calibration controller 228, data management policy controller 230, ECC controller 232, and data scrambler controller 234. Some of these functions may be performed by the SSD controller (e.g., controller 108) or omitted entirely. Regarding ECC, the data storage controller may be configured to perform ECC decoding and encoding by default whenever data is read from or written to the NVM. Power savings and speed enhancements can be achieved by limiting ECC to data stored only in a separate portion of the NVM from the NTM memory bank and not performing ECC on data in the NTM memory bank. In some aspects, ECC is applied to some blocks in the NTM memory bank but not to others (e.g., strong blocks versus weak blocks as determined by programming / erasing cycles). Similar considerations also apply to wear leveling and read threshold calibration.

[0074] In an embodiment where both the data storage controller 108 and the NTM controller 109 are configured to perform operations such as wear leveling, read threshold calibration, and ECC, the data storage controller 108 may be configured to perform its operation on a portion of the NVM die excluding the NTM memory, while the NTM controller 109 may be configured to perform its operation on the memory blocks of the NTM memory (117 / 202). Different versions of these operations may be performed based on different parameters, thresholds, etc. For example, the data storage controller may be configured to perform a first wear leveling procedure, a first ECC procedure, or a first read threshold calibration procedure on a portion of the NVM array, while the NTM controller may be configured to perform a second wear leveling procedure, a second ECC procedure, or a second read threshold calibration procedure different from the first wear leveling procedure, or different from the first read threshold calibration procedure, on the NTM memory. Some examples are discussed below.

[0075] Figure 3 An exemplary method 300 for use with NTM processing according to various aspects of this disclosure is illustrated, wherein the NTM processing is performed by an NTM controller (such as...) Figure 1 NTM controller 109 or Figure 2 The NTM controller (208) performs or controls based on data stored in the NTM memory bank of the NVM. Starting at box 302, the NTM controller determines or sets the size of the N×D matrix of the NTM, which may be determined according to standard techniques based on the needs of a particular RNN. At box 304, the NTM controller inputs labeled data (such as labeled RNN training images) for training the RNN associated with the NTM. At box 306, the NTM controller generates an initial set of NTM matrix elements (M) from the input labeled data and stores the matrix elements of the N×D matrix in the NVM array. At box 308, the NTM controller performs RNN training operations to train the RNN using the NTM by performing NTM read and write head operations on the attention selection portion of the NTM matrix, wherein the read and write head operations use physical addresses assigned to the NTM controller that are different from those assigned to a separate SSD controller to transfer data to / from the NTM matrix. Exemplary read and write head operations applied to the attention selection portion of the NTM matrix are illustrated in equations (1) through (4) above.

[0076] Figure 4 Examples are shown that can be generated by NTM controllers (such as...) Figure 1 The NTM controller 109 or other appropriately equipped device performs or controls a wear leveling / durability balancing method 400. The NTM controller maintains a "bitmap" buffer vector (which may contain several bits per address) and tracks or determines the representation of the NTM memory (such as... Figure 1The bitmap represents the access programming rate of different NTM internal blocks within the storage bank 117. In some respects, the bitmap corresponds to the entire NTM storage bank. The access programming rate can be a per-NTM block programming count value, which indicates how many times a particular block has been programmed (i.e., written) and thus provides information about the most used and least used blocks within the block set dedicated to the storage bank. Blocks with the highest access programming rate are the most used blocks because they are accessed the most. Blocks with the lowest access programming rate are the least used blocks because they are accessed the least. Using this information, the NTM controller switches between the currently most used and currently least used blocks once every predefined time period to balance physical block durability. This wear leveling procedure can be performed instead of being handled by an SSD controller (e.g., Figure 1 The controller 108 performs a complex wear leveling operation on other blocks within the NVM that are not allocated to the NTM memory. In this way, the NTM controller performs a form of self-durability balancing to maintain approximately the same bit error rate (BER) between blocks within the NTM memory. This reduces access latency to the NTM memory in the NVM and thus allows the NTM controller to converge to the solution of its NTM algorithm more quickly.

[0077] from Figure 4 Beginning at box 402, the NTM controller tracks or determines the access programming rate (also simply called the programming rate) of NTM internal blocks within the NTM memory. As described above, the access programming rate indicates the frequency at which a particular block is programmed (written). This information can be represented by a series of bits maintained in a bitmap buffer held by the NTM controller (e.g., in volatile memory used by the NTM controller such as...). Figure 1 (within the buffer held by volatile memory 110). At block 404, the NTM controller determines the currently most used (or most accessed) block and the currently least used (or least accessed) block based on access programming rate information. At block 406, the NTM controller periodically switches or exchanges its most recently computed NTM bank data between storing it in the most used block and storing it in the least used block to balance physical block durability. For example, a trackable timer can be used, and the switch can occur every X milliseconds, where X is a programmable value.

[0078] Figure 5 Examples are shown that can be generated by NTM controllers (such as...) Figure 1 Another method 500 for wear leveling / durability balancing is performed or controlled by the NTM controller 109 or other appropriately equipped devices. In this embodiment, the NTM controller receives the wear leveling / durability balancing data from the ECC engine (e.g., Figure 2 ECC controller 232 or Figure 1The SSD controller 108 (within the ECC controller) obtains information about the performance of each NTM storage block, including one or more of the following: 1) average / edge decoding latency; 2) typical failure bit count (FBC) per block; 3) corrector subweight; and 4) full-power decoding mode access time value. The NTM controller combines this information with its own self-tracking of the programming count or program / erase cycle (PEC) for each NTM block allocated physical blocks (e.g., ...). Figure 1 Durability balancing of blocks within storage 117. In some examples, the NTM controller may select, construct, or otherwise establish a strategy (or procedure) for durability balancing based on these parameters.

[0079] In short, decoding latency refers to the time it takes for the ECC controller to decode data read from the NVM that may have various errors. The ECC controller tracks both the average latency value and the edge value, which represents a more challenging decoding situation where more bits are faulty. FBC represents the number of bad bits (i.e., flipped bits) detected by the ECC controller. The corrector weight provides an indication of the general number of remaining bit errors in a given data block during ECC decoding. Full-power decode mode access time refers to the amount of time it takes for the ECC to read from or program (write) a block in the NVM when operating at full power. Each of these values ​​represents an indication of the wear level of a particular block of memory within the NVM. Therefore, any or all of these parameters can be used by the NTM controller in conjunction with the per-NTM block programming count or PEC to control wear leveling. The NTM controller can select some combinations of these parameters (based on the NTM controller's pre-programming) for wear leveling control.

[0080] from Figure 5Beginning at box 502, the NTM controller obtains performance information about each NTM block in the NVM from the ECC (such as an ECC or SSD controller), including: 1) average / edge decoding latency; 2) typical FBC; 3) corrector subweight; and 4) full-power decoding mode access time value. At box 504, the NTM controller determines or tracks the programming count (or PEC) per NTM block. At box 506, the NTM controller uses the information obtained in boxes 502 and 504, such as by selecting blocks that exhibit relatively low wear (as indicated by parameters) for programming (writing) new NTM data, while avoiding blocks that exhibit relatively more or higher wear (as indicated by parameters), to control the durability balancing (wear leveling) of the NTM blocks. In some examples, the NTM controller may select or establish a strategy or procedure for durability balancing based on the information collected. For example, the NTM controller can select a durability strategy that operates to achieve a combination of execution objectives based on selected parameters, such as minimizing the FBC on all blocks and the programming count per NTM block.

[0081] Figure 6 Examples are shown that can be generated by NTM controllers (such as...) Figure 1 The method 600 performs or controls read threshold calibration by the NTM controller 109 or other appropriately equipped device. Read thresholds in an NVM die may deviate from default values ​​due to external conditions (such as variations in device temperature or other factors affecting data retention) and / or due to numerous program / erase (P / E) cycles. Read threshold calibration is typically performed by the data storage controller and can be a relatively lengthy process. By configuring the NTM controller (e.g., controller 109) to control read threshold calibration of blocks of NTM memory (e.g., memory bank 117) independently of the data storage controller (e.g., controller 108), the need for read threshold calibration by the data storage controller can be avoided, or at least the frequency of read threshold calibration by the data storage controller can be reduced, allowing the entire DSD to operate faster and consume less power. For example, a different (and higher, less stringent, or more lenient) ECC failure rate threshold can be used for the ECC of the NTM (and applied to data read from the NTM memory bank) than for the ECC of the data storage controller (and applied to data read from other parts of the NVM die). Similarly, different (and higher or more lenient) P / E thresholds can be used for NTM compared to those for the data storage controller. Both effectively reduce the frequency of read threshold calibration compared to DSD, which applies a lower (and more stringent) threshold to the entire NVM die.

[0082] from Figure 6Beginning at frame 602, the NTM controller determines whether the read threshold level of the NTM memory block of the NVM die should be recalibrated based on, for example, (a) a predetermined time interval elapsed, (b) an ECC decoding failure, and / or (c) a P / E cycle exceeding a P / E threshold. Therefore, for example, the NTM controller can be configured to perform read threshold calibration weekly or monthly. ECC decoding failure information can be obtained from the NTM controller's ECC controller (e.g., Figure 2 The ECC controller 322 provides this capability. Read threshold calibration can be triggered if the ECC failure rate (or some other suitable failure metric) exceeds a threshold. Similarly, read threshold calibration can be triggered once the total number of P / E cycles for the NTM bank blocks exceeds a P / E threshold. At block 604, in response to the determination of recalibration, the NTM controller performs read threshold calibration on the NTM bank blocks in the NVM die.

[0083] Figure 7 An example is shown that it can be generated by a controller with an NTM (such as...) Figure 1 The NTM controller 109) and separate data storage controllers (such as Figure 1 The method 700 is executed or controlled by the data storage controller 108's DSD or other appropriately equipped device. In this example, during the first phase of operation, when the NTM loss function to be optimized by the NTM controller is above a certain threshold, the firmware components of the DSD are operated according to a custom strategy (e.g., ECC encoding or decoding is not present), and read threshold calibration is disabled to allow the fastest possible operation while maintaining the rising BER number. In the second phase, when the loss function drops below the threshold, finer-grained operation is implemented, where wear leveling is applied, read threshold calibration is performed more frequently, and ECC is fully operated. This reduces the bit error rate (BER) and allows for more accurate NTM calculations.

[0084] from Figure 7 Starting with box 701, the NTM controller (or the DSD implementing the NTM controller) disables or disables any FW-based ECC, read threshold calibration, and wear leveling operations on the NTM storage portion of the NVM, such as those that would otherwise be performed by... Figure 1The operation is performed by the FW component of the data storage controller 108. At block 702, the NTM controller reads a batch of data from the NTM storage and performs iterations of the NTM learning program, estimating the loss function (also known as the cost function or error function, and typically representing the prediction error of the RNN associated with the NTM). During this first phase, the operation of block 702 is performed without FW-based ECC, read threshold calibration, and wear leveling functions, and therefore the data read from the NTM storage may contain uncorrected errors. However, such errors are not a problem during this initial phase, and in fact, any such errors or "noise" introduced into the data may help the NTM program converge toward a solution. In this respect, many machine language algorithms or programs running on the NTM can benefit from avoiding errors arising from ECC decoding as a form of regularization. Machine learning algorithms employ various techniques, such as loss or data augmentation, which add noise to the data to avoid overfitting. Figure 7 The method allows a form of regularization to be implemented during the first stage of processing, enabling regularization effects to be achieved without any explicit regularization procedures.

[0085] At box 704, the NTM controller evaluates the performance on retained validation data (which is also available from the NTM storage) and updates the estimate of the loss function. Retained validation data is data not used during NTM training. At box 704, the NTM controller compares the estimated loss function (LF) with the loss function threshold (LF). T The comparison is performed. As long as the loss function remains above (or equal to) the loss function threshold (as indicated by decision box 708), the NTM controller continues to iteratively execute the operations of boxes 702, 704, and 706 to read more data and update the loss function without any FW-based ECC, read threshold calibration, and wear leveling operations. However, once the NTM converges to a point where the loss function falls below the loss function threshold, the NTM controller (or the DSD in which the NTM controller is installed) activates FW-based ECC, read threshold calibration, and wear leveling operations on the NTM bank portion of the NVM at box 710. This is used to reduce errors that might otherwise prevent the NTM program from fully converging to the solution. The start of the operation at box 710 marks the completion of the first or initial stage of the NTM program and the start of the second or subsequent stages of the NTM program. Note that although Figure 7 It involves FW-based functionality, but Figure 7 The program can also be used to selectively activate / deactivate any software-based version of ECC, read threshold calibration, and wear leveling, such as software-based versions implemented within the NTM controller or elsewhere.

[0086] Methods and apparatuses for implementing NTM using flash memory have been described to date. These methods and apparatuses can enhance emerging technologies in the field of artificial intelligence (AI), such as NTM. The aforementioned dual independent-level memory management system allows the DSD to maintain the normal characteristics of FW-based memory management (without host intervention), while also allowing efficient NTM-NAND collaboration through autonomous direct NVM NAND processing of the NTM module.

[0087] The following describes various error correction systems and techniques used with data stored in NTM storage on NVM or with other NVM data.

[0088] Majority-based error correction used with neural network data stored in NVM

[0089] Generally speaking, for NTM systems or other systems with relatively low bit error rates, the probability of multiple positions having the same bit error simultaneously is very low, and therefore processing can be sped up by using a majority-wins procedure. Since neural networks are highly tolerant of failure, the occurrence of two bit errors simultaneously (i.e., queuing) is extremely rare and generally does not affect the processing of the neural network. That is, even without correction, any such errors are unlikely to affect the neural network processing, which is tolerant of such errors and can provide some beneficial regularization as discussed above.

[0090] Therefore, bit inconsistencies in neural network data read from an NVM array can be tabulated for each access, and once a threshold indicating too many bit errors is exceeded, the data can be rewritten / relocated by the DSD or the host. For example, Figure 1 In a hybrid system configured in the NTM, the NTM controller can control or execute this procedure. In some examples, the data is scrambled / descrambled to further reduce the likelihood of any bit errors occurring in the same direction (i.e., tending to flip binary zeros to binary one more often than binary one to binary one), which could be due to NVM array reliability issues (such as charge loss or read / programming interference) that can cause bit errors to be consistent and thus missed. Therefore, in the case of ECC, a scheme utilizing three versions or three copies of the same data allows for strong bit error correction because ECC can be performed individually or simultaneously considering multiple copies. It should be noted that a storage device storing three versions or three copies of the same data can also be considered as storing that data plus two copies of the same data. For consistency throughout this document, the term "three copies" will be used to refer to a total of three versions of the same data, where each version is a copy of the data to be stored, which is sent to the storage device or host by the storage device controller.

[0091] Figure 8System 800 is illustrated, which stores three copies of neural network data in three separate locations of NVM 801: NVM location 0 (802); NVM location 1 (804); and NVM location 2 (806). All three copies are read from NVM 801 by DSD 808 and applied to the majority-winning controller of DSD (e.g., which may be...). Figure 1 The majority of the winning circuitry within the NTM controller 109 (or the DSD's ECC controller) (e.g., which may be a component of the NTM controller 109) or the DSD's ECC controller. Figure 1 (Components of the data storage controller 108). In the event of inconsistencies between data, the majority winner component of the DSD 808 determines the "winner." This greatly speeds up correction capabilities because the ECC engine can prioritize inconsistent flipped bits to quickly correct errors that would otherwise be time-consuming using standard ECC decoding. The system 800 also provides RAID 1 type performance improvements (where RAID 1 consists of an exact copy or mirror of a set of data on two or more disks or storage devices) because the data can originate from any available die, thus increasing bandwidth. That is, memory locations 802, 804, and 806 can reside on separate dies. This also applies to writes, as data can be written to any available location and subsequently written to another location as a copy.

[0092] These procedures prevent write errors caused by external defects because the probability of failure occurring at two or more locations in the same cycle and on the same page is extremely small for media of any reasonable maturity. This scheme is effectively suited for in-place replication because one location can be erased and then rewritten in-place with data from other copies. These other copies are also available to the host. These procedures are also highly consistent with the wear-leveling block swapping method described above, as blocks can be swapped one copy at a time. It should also be noted that the media footprint of NTM storage or other neural network data storage may be relatively small relative to the total capacity of the DSD. (For example, an NTM storage might consume 1GB in a 1TB NVM array.) Therefore, any overhead associated with implementing these characteristics of neural network data does not need to affect other regular processing of other user data stored in the DSD. These and other error correction procedures will now be described further with reference to the next set of figures.

[0093] Figure 9 An example is given of a DSD (such as one with an NTM controller) that can be used by... Figure 2 The NTM controller 208 or the ECC controller 232 Figure 8 A majority-win controller 808 or other appropriately equipped device for controlling / executing a majority-rule-based program to perform or control a method 900, the majority-rule-based program being used to detect and correct data stored in, for example, a majority-win controller 808. Figure 1Errors in the neural network data in the NVM of the NTM memory 117. Alternatively, the procedure can be controlled by ECC (such as...). Figure 1 The majority rule circuitry within the data storage controller 108 (ECC) is used to execute the rules, or the majority rule components or circuitry within the DSD are used to execute them.

[0094] As mentioned above, for systems where the probability of encountering a bit error at the same bit in multiple locations simultaneously is very low, processing can be accelerated by using a majority-win procedure. For example, weights (such as NTM weights) represent a type of data whose probability of a simultaneous bit error at the same bit in two separate storage locations of the stored neural network weight data is below a threshold representing acceptable fault tolerance within the neural network. Therefore, the acceptable level of fault tolerance for a neural network used in a particular application can be determined and quantified in advance. An appropriate value for the threshold can then be set based on the acceptable level of fault tolerance. If the weights to be stored exhibit a probability of bit errors (simultaneous occurrence at the same bit in two separate storage locations) below the threshold, a majority-rule error correction procedure can be used; otherwise, conventional ECC can be used. Therefore, an apparatus can be provided that determines the type of input data and performs normal ECC on rule-based data (e.g., user data, control data, or other data that is not neural network data (i.e., non-neural network data) but performs a separate majority-rule error correction procedure on neural network data (such as neural network weights). The weight data can also be scrambled before being stored in three locations and then descrambled after being read back and the majority-rule procedure applied.

[0095] Starting at box 902, the NTM controller stores three copies of the neural network data in the NVM array, such as storing a batch of NTM data of an RNN in the NTM memory of the NVM array (where the probability of a bit error occurring simultaneously at the same bit in two separate storage locations is less than a threshold representing acceptable fault tolerance within the neural network, and / or the neural network is configured such that uncorrected errors in the weights increase the network's regularization, and where the data may be scrambled before storage). See again Figure 8 In this example, three copies of the same data are stored in three NVM locations. These three locations can be located on different NVM dies. Subsequently, at box 904, as part of a machine learning program or other data processing procedure, the NTM controller reads three copies of the neural network data from the NVM array. This can be part of one iteration of an iterative program, such as... Figure 7 The iterative process.

[0096] At box 906, the NTM controller performs or controls a majority rule error correction procedure on three copies of neural network data read from the NVM array by the following steps: 1) detecting differences between the three copies of neural network data read from the NVM array; 2) identifying the correct version of the neural network data based on a majority rule strategy; and 3) re-storing or re-writing the correct version of the neural network data into the NVM array by, for example, re-storing or re-writing the correct version of the neural network data in a new memory location within the NVM array, or erasing the memory location of the incorrect copy and writing the corrected version of the data to the erased memory location, or otherwise refreshing the data (and eventually descrambling the data if it was previously scrambled).

[0097] The detection of differences between the three copies can be performed, for example, by reading each copy into a latch and then detecting any bit differences between the latched data (e.g., bit positions where one copy is 1 but the other two are 0). The identification of the correct version of the neural network data can be performed bit-by-bit based on a majority-rule strategy, for example, by selecting the same bit value (e.g., 0) in two copies and rejecting the different bit (e.g., 1). That is, for a system storing three copies, the majority-rule strategy could be that two matching bit values ​​take precedence over a single different bit. More generally, for a system storing an odd number of copies (e.g., five copies), the majority bit value wins. For a system storing four copies, the majority-rule strategy could be that three matching bits take precedence over a single different bit, and further, a tie (two 1 bits versus two 0 bits) is considered indeterminate, and therefore more complex ECC decoding can be applied. More generally, for systems storing an even number of replicas (e.g., four or six), the majority rule strategy prioritizes the majority of matching bits over the minority of matching bits. Furthermore, any constraints (e.g., three 1s against three 0s) are considered pending, and therefore more complex ECC decoding can be applied. In practice, storing three replicas is often sufficient, but more replicas may be required if the BER is high. Depending on the DSD requirements, once the majority rule strategy is applied to resolve inconsistencies, the correct data can be rewritten to the NVM (and stored as three replicas again), or the correct data can be processed by the NTM or sent to the host, or appropriate action can be taken. If data is rewritten, it can be written to a new set of storage locations (where the original storage location is marked for garbage collection), or the original memory location with incorrect data can be erased and the corrected data written to that memory location without interfering with other correct replicas. As mentioned above, the memory locations for the various replicas may reside on separate dies.

[0098] Error detection based on inconsistency counting used with neural network data stored in NVM

[0099] In cases of data retention issues, hybrid DSD NTM controllers (e.g., Figure 1 The controller 109 of the DSD 104 can signal a problem to the host based on a count of zeros and ones. As data passes through the NTM controller, the NTM controller can track the accumulated increment (D) between zeros and ones. (This assumes the data is essentially equal to zeros and ones, as would be expected in cases where the data is scrambled via encryption or other means such as a channel scrambler). A zero / one count is performed before any descrambling of the data. In one example, to calculate or count inconsistencies, an increment can be applied to 1s and a decrement can be applied to 0s. This can be done on the data stream processed by the NTM controller. If the inconsistency exceeds a predetermined or adaptively adjustable threshold, the NTM controller can flag the inconsistency to the host, or the NTM controller can refresh the data or take other action. This threshold can depend on the fault tolerance of the specific NTM procedure being executed and any ECC system being used (such as...). Figure 2 The ECC 232) correction capability. By storing inconsistency counts for comparison over time, changes or variations in inconsistencies can be detected more robustly. For example, the most recent inconsistency count can be compared with inconsistency counts from earlier (e.g., the previous day or week), making it possible to detect trends in inconsistency counts that may indicate a degradation in data retention in a particular die or a specific section of a die storing NTM data, thus triggering wear leveling, read threshold calibration, or other maintenance procedures.

[0100] It should be noted that scrambled data may still have some difference (D) between zero and one, which can be compensated for by eliminating the original inconsistency in the data to improve the accuracy of the count at read time. For example, any initial or original difference (D) or inherent bias in the zero-to-one count can be recorded by the NTM controller and then applied to the newly determined count to compensate for the initial bias. Inconsistency can also be useful when using SLC, which offers performance and reliability advantages over MLC. In the case of SLC, for a specific memory degradation problem, all bits tend to move in the same direction (such as a drift in the read voltage threshold over time causing zero to be incorrectly read as one, and vice versa), and therefore the growing inconsistency in the count can be used to detect a specific degradation mechanism, allowing appropriate action (e.g., read threshold calibration) to address the specific degradation mechanism. In higher bit-per-cell usage (e.g., MLC), NVM NAND pages are formed by multiple senses with logical operations for combining senses to read data, and therefore any bit drift may not be as coherent as in SLC. However, some MLC sensing is more prone to error than other sensing methods, and thus stands out as a detectable inconsistency. Generally, there may be more noise associated with such inconsistencies, and therefore a different threshold can be used compared to SLC.

[0101] Figure 10 An example is given of a DSD (such as one with an NTM controller) that can be used by... Figure 2 The method 1000 is executed or controlled by a device (such as the NTM controller 208, data scrambler controller 234) or other suitable equipment for controlling / executing a program based on inconsistency counting, which is used to detect, for example, using... Figure 1 Errors in the neural network data stored in the NVM are stored in the NTM memory 117. Alternatively, the procedure can be executed by other components or circuitry within the DSD.

[0102] Starting at box 1002, the NTM controller stores the scrambled neural network data in the NVM array, such as storing the scrambled NTM data in an NTM memory within the NVM array. As described above, in some examples, the data is preferably stored in an SLC element. The data may be scrambled by a data scrambler or an ECC component (which tends to scramble or randomize data due to its error coding). Subsequently, at box 1004, as part of a machine learning program or other data processing program, the NTM controller reads the scrambled neural network data from the NVM array. This may be part of an iteration of an iterative program, such as... Figure 7 The iterative process.

[0103] At box 1006, the NTM controller maintains an accumulated sum of inconsistencies in the counts (or quantities) of binary 1s and binary zeros in the scrambled data. In one example, each block or word line of scrambled data is read into a latch, and the latch circuitry outputs a value representing the inconsistency count. In a particular example, if there are 512 bits in a given portion of the data, with 250 bits being binary zeros and 262 bits being binary 1s, the inconsistency of 1s and zeros is 12, indicating a bias favoring 1s within that particular portion of the data. As each new portion of data is read in, the accumulated sum is updated to reflect the latest inconsistency bit count. Note that within box 1006, the NTM controller can compensate for any initial or inherent biases in the scrambled data. As explained above, a difference may still exist between zeros and 1s in the scrambled data. For example, if ECC is used to “scramble” the data, a particular ECC procedure may result in a bias between 1s and zeros. Therefore, the initial deviation can be detected or determined by the NTM controller and applied to each new inconsistency count to compensate for the original inconsistency in the data.

[0104] At block 1008, the NTM controller compares the accumulated sum to a predetermined (or adjustable) threshold. As mentioned above, this threshold may depend on the fault tolerance of the particular NTM program and the correction capability of any ECC system used. Alternatively, engineers may perform routine experiments on a test CSD with an NTM controller and ECC system to identify a suitable threshold programmable into a DSD to be deployed to consumers. In some implementations, the threshold may be changed by the DSD based on various factors, such as whether the ECC is currently set to perform strong ECC or relatively weak ECC. At block 1010, in response to determining that the accumulated sum does not exceed the inconsistency threshold (i.e., the data behaves valid), the NTM controller descrambles the neural network data read from the NVM array and processes the data according to the NTM machine learning program.

[0105] At box 1010, in response to determining that the accumulated sum exceeds an inconsistency threshold (i.e., the data is invalid due to a storage read or write error), the NTM controller generates an indication of an error in the neural network data. In response to the error indication, the DSD can notify the host and apply error mitigation to the NVM array, such as read threshold recalibration, wear leveling, etc. Alternatively, data can be discarded and erased from the NVM, and then, if possible, the correct data can be obtained from the host and regenerated by the NTM controller, or the correct data can be recovered from volatile memory in the DSD (if available in volatile memory). In some cases, the NTM controller may need to be reset to a previous state to regenerate the data.

[0106] Figure 11An example is given of a DSD (such as one with an NTM controller) that can be used by... Figure 2 The method 1100 is executed or controlled by a device (such as the NTM controller 208, data scrambler controller 234) or other suitable equipment for controlling / executing a program based on inconsistency counting, which is used to detect, for example, using... Figure 1 The NTM memory 117 stores the trend of inconsistency counts within the neural network data in the NVM over time. Alternatively, this procedure can be executed by other components or circuitry within the DSD. Starting at block 1102, the NTM controller periodically stores inconsistency counts of the NTM neural network data stored in SLC elements (such as SLC elements of the NTM memory) within the NVM array. For example, after each iteration of the NTM procedure, inconsistency counts for the data read from the NVM by the procedure can be stored. This information can be collected and stored for the entire NTM memory or a portion thereof.

[0107] At box 1104, the NTM controller compares the most recent inconsistency count with previous counts to detect a trend in the inconsistency count, if any, that indicates a degradation in data retention within the NTM memory bank or a portion thereof (such as within SLC memory elements of the NTM memory bank). For example, if the SLC inconsistency count within a week is significantly larger than the previous week, this may indicate a degradation of the SLC elements of the NTM memory bank. Furthermore, the NTM controller examines the direction of the trend, such as a trend toward more binary zeros or a trend toward more binary ones. At box 1106, the NTM controller attempts to determine a specific mechanism or direction of data retention degradation based on the trend direction of the NTM memory bank as a whole or its portions over time. For example, in a particular DSD design, a drift toward more binary ones than binary zeros across all SLC elements of the NTM memory bank may indicate a drift toward increasing the read threshold, while a drift toward more binary zeros than binary one may indicate a drift toward decreasing the read threshold. This information can be used to make the read threshold calibration procedure more effective. As another example, a drift towards more binary ones than binary zeros within the first section of the NTM memory bank, compared to the second section, can indicate wear in the first section. This information can be used to make wear leveling procedures more effective. Alternatively, engineers can perform routine experiments on CSDs designed with NTM controllers to identify which trends in inconsistency counts correspond to which data retention degradation mechanisms, such as read voltage drift or general wear. At box 1108, the NTM controller applies specific error mitigation procedures to the NVM array to address specific mechanisms, such as recalibrating by applying read thresholds or wear leveling. It should be noted that inconsistency counts, trends, and mitigation procedures may be transparent to the host; that is, the host does not need to be notified and does not need to respond to such information.

[0108] In practice, any of the procedures described above may be completely transparent to the host, making it unaware of ECC, inconsistencies, redundancy, rewrites, etc. Therefore, the DSD can still effectively appear as an open channel to the host (e.g., no intermediate FTL), leading the host to believe it is implementing any algorithm the host programmer wishes, and the procedures described in this paper can improve backend reliability. NVM express (NVMe) can be used.

[0109] It should also be noted that the methods described in this article can be used with intelligent or managed NAND, such as those with microcontroller units (MCUs), advanced logic, CMOS bonding arrays (CBAs), etc. These methods provide transparency to SSD firmware / application-specific integrated circuits (ASICs), which is helpful for firmware management of memory locations that might otherwise be problematic, such as those used in boot (e.g., file systems, firmware copies, etc.), where the firmware media management algorithm may have only minimal functionality.

[0110] Additional exemplary methods and apparatus

[0111] Figure 12 An embodiment of apparatus 1200 configured according to one or more aspects of this disclosure is illustrated. Apparatus 1200 or its components may be embodied or implemented within any suitable apparatus or device capable of performing operations, such as having a data storage controller and a separate RNN controller DSD. Apparatus 1200 includes an NVM array 1202 having a first portion 1204 and a second portion 1206, the second portion being configured to serve as an RNN storage bank, such as an NTM storage bank. Apparatus 1200 also includes a data storage controller 1208 coupled to the NVM array 1202 and configured to access at least the first portion 1204 of the NVM array, the first portion having physical memory addresses assigned to the data storage controller 1208. Apparatus 1200 also includes an RNN controller 1210 (such as an NTM controller), coupled to the NVM array 1202 and configured to access the second portion 1206 of the NVM array, the second portion having physical memory addresses assigned to the RNN controller 1210. It should be noted that in some implementations, the data storage controller 1208 is further configured to access the second portion 1206 of the NVM array. That is, the physical memory address of the second portion 1206 of the NVM array is non-exclusively assigned to the RNN controller 1210, thus allowing the data storage controller 1208 to perform wear leveling or other maintenance operations, for example, on the entire NVM array 1202. This access also allows the data storage controller 1208 to apply a wear-based FTL procedure to the data in the RNN memory bank 1206, for example, during the second phase of a two-stage NTM procedure, as described above.

[0112] Figure 13 Another process 1300 according to some aspects of this disclosure is illustrated in general. Process 1300 can be performed in any suitable means or device (such as...) capable of performing operations coupled to an NVM array. Figure 12 This occurs within the device. At block 1302, the device uses a data storage controller to access at least a first portion of the NVM array, the first portion of which has a physical memory address assigned to the data storage controller. At block 1304, the device uses an RNN controller to access a second portion of the NVM array, the second portion of which has a physical memory address assigned to the RNN controller, wherein the second portion of the NVM array is configured to be used as an RNN storage bank. As discussed above, in some embodiments, the data storage controller is also configured to access the second portion of the NVM array, i.e., the physical memory address of the second portion of the NVM array is non-exclusively assigned to the RNN controller, thus allowing the data storage controller to perform wear leveling or other maintenance operations, for example, on the entire NVM array, or to apply a wear-based FTL procedure to the data in the RNN storage bank during the second phase of a two-phase NTM procedure.

[0113] Figure 14 An embodiment of apparatus 1400 configured according to one or more aspects of this disclosure is illustrated. Apparatus 1400 or components thereof may be embodied or implemented in any suitable apparatus or device (such as a DSD) capable of performing the operation. Apparatus 1400 includes an NVM array 1402 and a controller 1404 (such as a data storage controller or a separate RNN controller) coupled to the NVM array 1402 and having a processor configured to: 1) store at least three copies of neural network data of a neural network in the NVM array, wherein the neural network data includes weights; 2) read at least three copies of the neural network data from the NVM array, such as during iterations of an NTM program; and 3) perform a majority rule error correction procedure on the at least three copies of the neural network data read from the NVM array. Detailed examples have been described above.

[0114] Figure 15 The process 1500 according to some aspects of this disclosure is illustrated in general. The process 1500 can be performed on any suitable apparatus or device (such as...) capable of performing operations coupled to an NVM array. Figure 14This occurs within the device. At box 1502, the device stores at least three copies of the neural network data (such as NTM weight data) in an NVM array. At box 1504, the device reads at least three copies of the neural network data from the NVM array. This can occur during subsequent iterations of the NTM procedure. At box 1506, the device performs a majority rule error correction procedure on the at least three copies of the neural network data read from the NVM array. A detailed example has been described above.

[0115] Figure 16 An embodiment of apparatus 1600 configured according to one or more aspects of this disclosure is illustrated. Apparatus 1600 or components thereof may be embodied or implemented in any suitable apparatus or device (such as a DSD) capable of performing the operation. Apparatus 1600 includes an NVM array 1602 and a controller 1604 (such as a storage controller or a separate RNN controller) coupled to the NVM array 1602 and having a processor configured to: 1) store a scrambled neural network in the NVM array 1602; 2) read the scrambled neural network from the NVM array 1602; 3) maintain an accumulated sum of inconsistencies in the counts (or quantities) of binary one and binary zero in the scrambled neural network data; 4) descramble the neural network data read from the NVM array 1602 in response to determining that the accumulated sum does not exceed an inconsistency threshold; and 5) generate an indication of errors in the neural network data in response to determining that the accumulated sum exceeds the inconsistency threshold. Detailed examples have been described above.

[0116] Figure 17 Process 1700 is illustrated in general terms according to some aspects of this disclosure. Process 1700 can be performed in any suitable apparatus or device (such as...) capable of performing operations coupled to an NVM array. Figure 14This occurs within the device. At block 1702, the device stores scrambled neural network data (such as scrambled NTM data) in an NVM array. At block 1704, the device reads the scrambled neural network data from the NVM array, as may be performed during the next iteration of the NTM procedure. At block 1706, the device maintains an accumulated sum of inconsistencies in the counts (or quantities) of binary one and binary zero in the scrambled neural network data. At block 1708, in response to determining that the accumulated sum does not exceed an inconsistency threshold, the device descrambles the neural network data read from the NVM array. At block 1710, in response to determining that the accumulated sum exceeds the inconsistency threshold, the device alternatively generates an indication of an error in the neural network data. For example, the error may be sent to a host connected to the device, or to other components of the device for remedial action. As explained, the device may respond to the error indication by re-storing or refreshing the data and / or by taking action to address read threshold voltage drift, NVM wear, etc. The above describes a detailed example.

[0117] Exemplary device with NVM array

[0118] Figure 18 An embodiment of apparatus 1800 configured according to one or more aspects of this disclosure is illustrated. Apparatus 1800 or components thereof may be embodied or implemented within a DSD, other types of devices supporting data storage. In various specific embodiments, apparatus 1800 or components thereof may be components of a processor, controller, computing device, personal computer, portable device, or workstation, server, personal digital assistant, digital camera, digital telephone, entertainment device, medical device, autonomous vehicle control device, or any other electronic device that stores, processes, or uses data.

[0119] Device 1800 is communicatively coupled to NVM array 1801, which includes one or more memory dies 1804. Each memory die may include a physical memory array 1806 (e.g., a NAND block), wherein at least one memory die includes an NTM memory bank 1808 (or other RNN or MANN memory bank). The physical memory array 1806 is communicatively coupled to device 1800, allowing device 1800 to read or sense information from and write or program information into the physical memory array. That is, the physical memory array 1806 is coupled to the circuitry of device 1800, making the physical memory array 1806 accessible by the circuitry of device 1800. Note that not all components of the memory die are shown. The die may include, for example, off-array processing circuitry (e.g., under-array or side-array circuitry) and input / output components. The connection between device 1800 and the memory dies 1804 of NVM array 1801 may include, for example, one or more buses.

[0120] Device 1800 includes a communication interface 1802, an NTM controller 1810, and a data storage controller 1811. The NTM controller 1810 and the data storage controller 1811 may reside on separate chips (e.g., separate ASICs) within device 1800. In other embodiments, the NTM controller 1810 and the data storage controller 1811 may reside on the same chip. These components can be connected via suitable components (by...) Figure 18 The connecting lines (generally indicated) are coupled to each other and / or placed so as to be electrically connected to each other and to the NVM array 1801. Although not shown, other circuitry, such as timing sources, peripherals, voltage regulators, and power management circuitry, may be provided, which are well known in the art and will therefore not be described further.

[0121] Communication interface 1802 provides components for communicating with other devices via a transmission medium. In some embodiments, communication interface 1802 includes circuitry and / or programming (e.g., a program) adapted to facilitate bidirectional transmission of information relative to one or more devices in the system. In some embodiments, communication interface 1802 may be configured for wired communication. For example, communication interface 1802 may be a bus interface, a transmit / receive interface, or some other type of signal interface, including circuitry for outputting and / or receiving signals (e.g., outputting signals from an SSD and / or receiving signals into an SSD). Communication interface 1802 serves as an example of a component for receiving and / or transmitting.

[0122] The NTM controller 1810 and data storage controller 1811 include modules and / or circuitry arranged or configured to acquire, process, and / or transmit data, control data access and storage, issue or respond to commands, and control other desired operations. For example, various modules and / or circuitry may be implemented as one or more processors, one or more controllers, and / or other structures configured to perform functions. According to one or more aspects of this disclosure, modules / circuits may be adapted to perform various features, processes, functions, operations, and / or routines described herein. For example, various modules and / or circuitry may be configured to perform relative to… Figures 1 to 17 Describe the steps, functions, and / or processes.

[0123] It should be noted that in some implementations, the features of the NTM controller 1810 are implemented as a nondeterministic software module, while the features of the data storage controller 1811 are implemented as a deterministic FW or HW circuit. Various features in Figure 18 The term "circuit / module" is used because, in at least some embodiments, at least some features of the NTM controller 1810 can be implemented as circuits, and at least some features of the data storage controller 1811 can be implemented in software. Furthermore, in some embodiments, some features of the NTM controller 1810 can be implemented as array-under or array-side circuitry on the memory die 1804.

[0124] As used herein, the term "suitable" in relation to a processing module / circuit may mean that the module / circuit is configured, adopted, implemented, and / or programmed to perform one or more operations to execute specific processes, functions, operations, and / or routines according to the various features described herein. The module / circuit may include a dedicated processor (such as an application-specific integrated circuit (ASIC)) used for performing combined... Figures 1 to 17 A component of any of the operations described (e.g., a component for performing that operation). A module / circuit is used as an example of a component for processing. In various specific embodiments, a module / circuit may at least partially provide and / or incorporate the functionality described above for the components in the various embodiments shown.

[0125] According to at least one example of device 1800, NTM controller 1810 may include circuitry / module 1820 configured to access NVM physical memory addresses (e.g., addresses associated with NTM memory bank 1808) assigned to the NTM controller. The allocation of physical memory addresses to NTM controller 1810 may be performed at boot time by boot circuitry (not shown), or, for example, by a host coupled to device 1800. The NTM controller 1810 may also include one or more of the following: circuitry / module 1822 configured to determine NTM output values ​​using NTM data read from the NTM memory 1808 (e.g., for performing various iterations of an NTM machine learning program to generate trained neural network parameters (such as trained synaptic weights, etc.) for output to a host); FTL circuitry / module 1824 configured to be used with the NTM memory 1808, such as ECC circuitry / modules, read threshold calibration circuitry / modules, and wear leveling circuitry / modules (which may differ from the corresponding FTL component of the data storage controller 1811 that applies FW FTL to the entire NVM array 1801, and in some embodiments may be completely omitted from the NTM controller 1810); and circuitry / module 1826 configured to control the first stage of the NTM program (e.g., such as...). Figure 7 (as shown); Circuit / module 1828, which is configured to determine the NTM loss function (e.g., as shown). Figure 7 (as shown); circuit / module 1830, configured to control an NTM memory management strategy (which may differ from the memory management strategy applied by the data storage controller 1811); circuit / module 1831, configured to control a majority rule error correction procedure or strategy; circuit / module 1832, configured to control data scrambling; circuit / module 1833, configured to control an inconsistency counting procedure; and circuit / module 1835, configured to control a most used block / least used block wear leveling procedure.

[0126] According to at least one example of device 1800, data storage controller 1811 may include circuitry / module 1834 configured to access all physical memory addresses within NVM array 1801 or a portion of those addresses (or, in some embodiments, all addresses not assigned to NTM memory bank 1808). The allocation of physical memory addresses to data storage controller 1811 may be performed at boot time by boot circuitry (not shown), or, for example, by a host coupled to device 1800. Data storage controller 1811 may also include one or more of the following: FTL circuitry / module 1836 configured for use with NVM array 1801, such as ECC circuitry / module, read threshold calibration circuitry / module, and wear leveling circuitry / module (which may differ from the corresponding FTL component of NTM controller 1810, which only applies FW FTL (if any) to NTM memory bank 1808); circuitry / module 1838 configured to control a second level of NTM program (e.g., such as...). Figure 7 (as shown); circuit / module 1840, which is configured to control a non-NTM memory management strategy (which may be different from the memory management strategy applied to the NTM memory bank 1808 by the NTM controller 1810).

[0127] In at least some examples, it is available for execution. Figure 18 The illustrated functions and / or other functions illustrated or described herein. For example, the component may include one or more of the following: a component for accessing an NVM physical memory address assigned to the NTM controller (e.g., an address associated with NTM memory bank 1808), such as circuit / module 1820; a component for determining NTM output values ​​using NTM data read from NTM memory bank 1808 (e.g., for performing various iterations of an NTM machine learning program to generate trained neural network parameters (such as trained synaptic weights, etc.) for output to the host), such as circuit / module 1822; a component configured to apply FTL operations to NTM memory bank 1808, such as ECC, read threshold calibration, and wear leveling (which may differ from the corresponding FTL operations of data storage controller 1811), such as circuit / module 1824; a component for controlling the first level of the NTM program (e.g., such as...). Figure 7 Components, such as circuit / module 1826, used to determine the NTM loss function (e.g., as shown). Figure 7Components, such as circuit / module 1828; components for controlling NTM memory management strategies (which may differ from the memory management strategies applied by data storage controller 1811), such as circuit / module 1830; components for controlling majority rule error correction procedures or strategies, such as circuit / module 1831; components for controlling data scrambling, such as circuit / module 1832; components for controlling inconsistency counting procedures, such as circuit / module 1833; components for controlling most used block / least used block wear leveling procedures, such as... Circuit / module 1835; components for accessing all physical memory addresses within the NVM array 1801 or a portion of those addresses (or, in some embodiments, all addresses not assigned to the NTM memory bank 1808), such as circuit / module 1834; components for applying FTL operations to the NVM array 1801, such as ECC, read threshold calibration, and wear leveling (which may differ from the corresponding FTL operations of the NTM controller 1810), such as circuit / module 1836; and components for controlling a second level of the NTM program (e.g., such as...). Figure 7 Components such as circuit / module 1838 (as shown); and components such as circuit / module 1840 configured to control non-NTM memory management strategies (which may differ from the memory management strategies applied to NTM memory bank 1808 by NTM controller 1810).

[0128] In another aspect of this disclosure, a non-transitory computer-readable medium is provided having one or more instructions that, when executed by processing circuitry or a software module in a DSD controller, cause the controller to perform one or more of the functions or operations listed above.

[0129] In at least some examples, it is available for execution. Figure 18 The software code for the illustrated functions and / or other functions illustrated or described herein. For example, the code may include one or more of the following: code for accessing an NVM physical memory address assigned to the NTM controller (e.g., an address associated with NTM memory bank 1808); code for determining NTM output values ​​using NTM data read from NTM memory bank 1808 (e.g., performing various iterations of an NTM machine learning program to generate trained neural network parameters (such as trained synaptic weights, etc.) for output to the host); code for applying FTL operations to NTM memory bank 1808, such as ECC, read threshold calibration, and wear leveling (which may differ from the corresponding FTL operations of data storage controller 1811); code for controlling the first level of the NTM program (e.g., such as...). Figure 7 The code shown; used to determine the NTM loss function (e.g., as shown). Figure 7Code for controlling the NTM memory management policy (which may differ from the memory management policy applied by the data storage controller 1811); code for controlling the majority rule error correction procedure or policy; code for controlling data scrambling; code for controlling the inconsistency counting procedure; code for controlling the most used block / least used block wear leveling procedure; code for accessing all physical memory addresses within the NVM array 1801 or a portion of those addresses (or, in some embodiments, all addresses not assigned to the NTM memory bank 1808); code for applying FTL operations to the NVM array 1801, such as ECC, read threshold calibration, and wear leveling (which may differ from the corresponding FTL operations of the NTM controller 1810); code for controlling the second level of the NTM program (e.g., as shown). Figure 7 The code shown); and the code for controlling non-NTM memory management policies (which may differ from the memory management policies applied to the NTM memory bank 1808 by the NTM controller 1810).

[0130] Additional aspects

[0131] At least some of the processing circuits described herein are generally suitable for processing, including the execution of programming code stored on a storage medium. As used herein, the terms “code” or “programming” should be interpreted broadly to include, but are not limited to, instructions, instruction sets, data, code, code segments, program code, programs, programming, subroutines, software modules, application programs, software applications, software packages, routines, subroutines, objects, executable files, execution threads, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description languages, or others.

[0132] At least some of the processing circuits described herein may be arranged to acquire, process, and / or transmit data, control data access and storage, issue commands, and control other desired operations. In at least one example, the processing circuit may include circuitry configured to implement desired programming provided by a suitable medium. For example, the processing circuit may be implemented as one or more processors, one or more controllers, and / or other structures configured to perform executable programming. Examples of processing circuitry may include general-purpose processors, digital signal processors (DSPs), ASICs, field-programmable gate arrays (FPGAs), or other programmable logic components, discrete gate or transistor logic, discrete hardware components, or any combination thereof, designed to perform the functions described herein. General-purpose processors may include microprocessors, as well as any conventional processor, controller, microcontroller, or state machine. At least some of the processing circuitry may also be implemented as combinations of computing components, such as controllers and microprocessors, multiple microprocessors, one or more microprocessors combined with an ASIC and a microprocessor, or any other combination of varying configurations. These examples of processing circuitry pointed out herein are for illustrative purposes, and other suitable configurations are contemplated within the scope of this disclosure.

[0133] The aspects of the topics described herein can be implemented in any suitable NAND flash memory, such as 3D NAND flash memory. Semiconductor memory devices include volatile memory devices such as DRAM or SRAM devices, NVM devices such as ReRAM, EEPROM, flash memory (which can also be considered a subset of EEPROM), ferroelectric random access memory (FRAM), and MRAM, as well as other semiconductor elements capable of storing information. Each type of memory device can have different configurations. For example, flash memory devices can be configured in either a NAND or NOR configuration.

[0134] The memory device can be formed from passive and / or active components in any combination. As a non-limiting example, a passive semiconductor memory element includes a ReRAM device element, which in some embodiments includes resistivity-switching storage elements such as antifuse, phase-change materials, etc., and optionally includes guiding elements such as diodes. As a further non-limiting example, an active semiconductor memory element includes EEPROM and flash memory device elements, which in some embodiments include elements having charge storage regions, such as floating gates, conductive nanoparticles, or charge storage dielectric materials.

[0135] Typically, associated circuitry is required to operate and communicate with the memory elements. As a non-limiting example, a memory device may have circuitry for controlling and driving the memory elements to perform functions such as programming and reading. This associated circuitry may be located on the same substrate as the memory elements and / or on a separate substrate. For example, a controller for memory read-write operations may be located on a separate controller chip and / or on the same substrate as the memory elements. Those skilled in the art will recognize that the subject matter described herein is not limited to the described two-dimensional and three-dimensional exemplary structures, but covers all relevant memory structures as described herein and as understood by those skilled in the art to be of the substance and scope of this subject matter.

[0136] Examples set forth herein are provided to illustrate certain concepts of this disclosure. The apparatus, device, or component shown above may be configured to perform one or more of the methods, features, or steps described herein. Those skilled in the art will understand that these are merely exemplary in nature, and other examples may fall within the scope of this disclosure and the appended claims. Based on the teachings herein, those skilled in the art will understand that the aspects disclosed herein may be implemented independently of any other aspects, and two or more of these aspects may be combined in various ways. For example, an apparatus or a method may be practiced using any number of the aspects set forth herein. Furthermore, such an apparatus or method may be practiced using other structures, functions, or structures and functions, in addition to or in lieu of one or more aspects set forth herein.

[0137] The following description, with reference to schematic flowcharts and / or block diagrams of methods, apparatus, systems, and computer program products according to embodiments of this disclosure, describes various aspects of the present disclosure. It should be understood that each block of the schematic flowcharts and / or block diagrams, and combinations of blocks in the schematic flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor or other programmable data processing apparatus, create means for implementing the functions and / or actions specified in one or more blocks of the schematic flowcharts and / or block diagrams.

[0138] The subject matter described herein may be implemented in hardware, software, firmware, or any combination thereof. Thus, the terms “function,” “module,” etc., as used herein may refer to hardware, which may also include software and / or firmware components for implementing the described features. In one exemplary embodiment, the subject matter described herein may be implemented using a computer-readable medium having computer-executable instructions stored thereon, which, when executed by a computer (e.g., a processor), control the computer to perform the functions described herein. Examples of suitable computer-readable media for implementing the subject matter described herein include non-transitory computer-readable media, such as disk storage devices, on-chip memory devices, programmable logic devices, and application-specific integrated circuits (ASICs). Furthermore, computer-readable media for implementing the subject matter described herein may reside on a single device or computing platform, or may be distributed across multiple devices or computing platforms.

[0139] It should also be noted that in some alternative embodiments, the functions shown in the boxes may not occur in the order shown in the figures. For example, two boxes shown consecutively may actually be executed substantially simultaneously, or these boxes may sometimes be executed in reverse order, depending on the functions involved. Other steps and methods that are functionally, logically, or effectively equivalent to one or more boxes or portions thereof in the figures shown can be envisioned. Although various types of arrows and lines may be used in flowcharts and / or block diagrams, it should be understood that these types of arrows and lines do not limit the scope of the respective embodiments. For example, arrows may indicate waiting or monitoring periods of unspecified duration between enumerated steps of the depicted embodiment.

[0140] The various features and processes described above can be used independently of each other or combined in various ways. All possible combinations and sub-combinations are intended to fall within the scope of this disclosure. Furthermore, certain methods, events, states, or process blocks may be omitted in some specific embodiments. The methods and processes described herein are not limited to any particular sequence, and the blocks or states associated with them may be executed in other suitable sequences. For example, the described tasks or events may be executed in a different order than specifically disclosed, or multiple tasks or events may be combined in a single block or state. Exemplary tasks or events may be executed serially, in parallel, or in some other suitable manner. Tasks or events may be added to or removed from the disclosed exemplary embodiments. The exemplary systems and components described herein may be configured differently from those described. For example, elements may be added, removed, or rearranged compared to the disclosed exemplary embodiments.

[0141] Those skilled in the art will understand that information and signals can be represented using any of a variety of different techniques and methods. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the foregoing specification can be represented by voltage, current, electromagnetic waves, magnetic fields or particles, light fields or particles, or any combination thereof.

[0142] The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any aspect described herein as “exemplary” is not necessarily to be construed as being better or more advantageous than other aspects. Similarly, the term “aspect” does not require all aspects to include the features, advantages, or modes of operation discussed.

[0143] While the foregoing description includes many specific embodiments of the invention, these should not be construed as limiting the scope of the invention, but rather as examples of specific embodiments. Therefore, the scope of the invention should not be determined by the illustrated embodiments, but by the appended claims and their equivalents. Furthermore, throughout this specification, the terms "an embodiment," "implementation," or similar language refer to a particular feature, structure, or characteristic described in connection with that embodiment being included in at least one embodiment of this disclosure. Therefore, the phrases "in one embodiment," "in an embodiment," and similar language appearing throughout this specification may, but not necessarily all, refer to the same embodiment, but rather to "one or more, but not all, embodiments," unless otherwise expressly stated.

[0144] The terminology used herein is for descriptive purposes only and is not intended to limit those aspects. As used herein, the singular forms “a,” “an,” and “the” are also intended to include the plural forms (i.e., one or more) unless the context explicitly states otherwise. An enumerated list of items does not imply that any or all items in the list are mutually exclusive and / or mutually inclusive unless otherwise explicitly stated. It should be further understood that, unless otherwise explicitly stated, the terms “comprises,” “comprising,” “includes,” “including,” “having,” and their variations as used herein mean “including, but not limited to.” That is, these terms may specify the presence of a stated feature, integer, step, operation, element, or component, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof. Furthermore, it should be understood that the word “or” has the same meaning as the Boolean operator “OR,” that is, it includes the possibility of “or” and “both,” and is not limited to “exclusive OR” (“XOR”), unless otherwise explicitly stated. It should also be understood that the symbol “ / ” between two adjacent words has the same meaning as “or”, unless otherwise explicitly stated. Furthermore, phrases such as “connected to,” “coupled to,” or “communicate with” are not limited to direct connections, unless otherwise explicitly stated.

[0145] Any reference to elements in this document using names such as “first,” “second,” etc., does not generally limit the number or order of those elements. Rather, these designations serve as a convenient way to distinguish two or more elements or instances of elements. Therefore, references to first and second elements do not imply that only two elements can be used there, or that the first element must somehow precede the second element. Additionally, unless otherwise stated, a group of elements may include one or more elements. Furthermore, terms of the form “at least one of A, B, or C” or “A, B, C, or any combination thereof” as used in the specification or claims mean “A or B or C or any combination of these elements.” For example, this term may include A, or B, or C, or A and B, or A and C, or A and B and C, or 2A, or 2B, or 2C, or 2A and B, etc. As another example, “at least one of A, B, or C” is intended to cover A, B, C, AB, AC, BC, and ABC, as well as multiples of the same members (e.g., any list including AA, BB, or CC). Similarly, "at least one of A, B, and C" is intended to cover A, B, C, AB, AC, BC, and ABC, as well as multiples of the same members. Likewise, as used herein, phrases referring to a list of items linked with "and / or" refer to any combination of items. As an example, "A and / or B" is intended to cover A alone, B alone, or A and B together. As another example, "A, B, and / or C" is intended to cover A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B, and C together.

[0146] As used herein, the term "determine" encompasses a wide range of actions. For example, "determine" can include arithmetic, calculation, processing, derivation, investigation, lookup (e.g., searching in a table, database, or another data structure), and confirmation. Furthermore, "determine" can include receiving (e.g., receiving information), accessing (e.g., accessing data in memory), and so on. Moreover, "determine" can include parsing, selecting, choosing, and building.

Claims

1. A data storage device, comprising: Non-volatile memory arrays are also known as NVM arrays; and A controller, coupled to the NVM array and having a processor, is configured to: Receive data for storage in the NVM array; Determine whether the data is neural network data or non-neural network data; In response to determining that the data is neural network data, At least three copies of the neural network data are stored in the NVM array; Read at least three copies of the neural network data from the NVM array; as well as Perform a majority-rule error correction procedure on at least three copies of the neural network data read from the NVM array; as well as In response to determining that the data is non-neural network data, The non-neural network data is stored in the NVM array; Read the non-neural network data from the NVM array; as well as An error correction code procedure, or ECC procedure, is performed on the non-neural network data. This ECC procedure differs from the majority rule error correction procedure.

2. The data storage device of claim 1, wherein the neural network data corresponds to a neural network, the neural network being configured such that uncorrected errors in the neural network data increase the regularization of the neural network.

3. The data storage device according to claim 1, wherein the processor is further configured to: The neural network data is scrambled, and then at least three copies of the scrambled neural network data are stored in the NVM array; The majority rule error correction procedure is performed on at least three copies of the scrambled neural network data read from the NVM array; and The scrambled neural network data is then descrambled.

4. The data storage device of claim 1, wherein the processor is further configured to perform the majority rule error correction procedure on the neural network data by performing the following steps: Detecting the differences between at least three copies of the neural network data read from the NVM array; and The correct version of the neural network data is identified based on a majority rule strategy.

5. The data storage device of claim 4, wherein the processor is further configured to rewrite the correct version of the neural network data into a new memory location within the NVM array.

6. The data storage device of claim 4, wherein the processor is further configured to rewrite the correct version of the neural network data by erasing the memory location of an incorrect copy of the data and writing the correct version of the data to the erased memory location.

7. The data storage device of claim 1, wherein the at least three copies consist of an odd number of copies.

8. The data storage device of claim 1, wherein the processor is further configured to store the at least three copies, wherein at least one of the copies is stored on a die different from the other copies within the NVM array.

9. The data storage device of claim 1, wherein the processor is further configured to perform a wear leveling procedure on the NVM array by means of the following steps: The programming rate of the blocks storing the neural network data in the NVM array is tracked to identify the most and least used blocks; and The neural network data stored in the most used block is periodically exchanged with the neural network data stored in the least used block.

10. The data storage device according to claim 1, wherein the neural network data corresponds to a recurrent neural network, i.e., an RNN, which includes at least one of a memory-enhancing neural network, i.e., a MANN, or a neural Turing machine network, i.e., an NTM network.

11. The data storage device according to claim 1, wherein the controller comprises a data storage controller and a separate recurrent neural network controller, i.e., an RNN controller.

12. The data storage device according to claim 11, The data storage controller is configured to access at least a first portion of the NVM array, the first portion having a physical memory address assigned to the data storage controller; and The RNN controller is configured to access a second portion of the NVM array, different from the first portion, the second portion having a physical memory address assigned to the RNN controller, wherein the second portion of the NVM array is configured to be used as an RNN storage bank.

13. A method for use with a data storage device including a non-volatile memory array, i.e., an NVM array, the method comprising: Receive data for storage in the NVM array; Determine whether the data is neural network data or non-neural network data; In response to determining that the data is neural network data, At least three copies of the neural network data are stored in the NVM array; Read at least three copies of the neural network data from the NVM array; as well as Perform a majority-rule error correction procedure on at least three copies of the neural network data read from the NVM array; as well as In response to determining that the data is non-neural network data, The non-neural network data is stored in the NVM array; Read the non-neural network data from the NVM array; as well as An error correction code procedure, or ECC procedure, is performed on the non-neural network data. This ECC procedure differs from the majority rule error correction procedure.

14. The method of claim 13, wherein the probability of a bit error occurring at the same bit in two separate storage locations of the stored neural network data is less than a threshold representing acceptable fault tolerance.

15. The method of claim 13, wherein the neural network data corresponds to a neural network, the neural network being configured such that uncorrected errors in the neural network increase the regularization of the neural network.

16. The method of claim 13, wherein the majority rule error correction procedure comprises: Detect the differences between the at least three copies of the neural network data read from the NVM array; as well as The correct version of the neural network data is identified based on a majority rule strategy.

17. The method of claim 16, further comprising rewriting the correct version of the neural network data into a new memory location within the NVM array.

18. The method of claim 16, further comprising rewriting the correct version of the neural network data by erasing a memory location of an incorrect copy of the data and writing the correct version of the data to the erased memory location.

19. The method according to claim 13, further comprising: The neural network data is scrambled, and then at least three copies of the scrambled neural network data are stored in the NVM array; The majority rule error correction procedure is performed on at least three copies of the scrambled neural network data read from the NVM array; as well as The scrambled neural network data is then descrambled.

20. The method of claim 13, wherein the at least three copies consist of an odd number of copies.

21. The method of claim 13, further comprising storing the at least three copies, wherein at least one of the copies is stored on a die different from the other copies within the NVM array.

22. The method of claim 13, further comprising performing a wear leveling procedure on the NVM array by the following steps: The programming rate of the blocks storing the neural network data in the NVM array is tracked to identify the most and least used blocks; and The neural network data stored in the most used block is periodically exchanged with the neural network data stored in the least used block.

23. A data storage device, comprising: Non-volatile memory arrays are also known as NVM arrays; and A controller, coupled to the NVM array and having a processor, is configured to: The scrambled neural network data is stored in the NVM array; Read the scrambled neural network data from the NVM array; Maintain the cumulative sum of inconsistencies in the counts of binary one and binary zero in the scrambled neural network data; In response to determining that the accumulated sum does not exceed an inconsistency threshold, the neural network data read from the NVM array is descrambled; as well as In response to determining that the accumulated sum exceeds the inconsistency threshold, an indication of an error in the neural network data is generated.

24. The data storage device of claim 23, wherein the scrambled neural network data is scrambled by at least one of an error correction code component, i.e., an ECC component, or a data scrambler.

25. The data storage device of claim 23, wherein the processor is further configured to: Multiple inconsistency counts are stored over time, each inconsistency count representing the cumulative sum of the inconsistency counts at a given point in time; and Identify any changes in the inconsistency count over time.

26. The data storage device of claim 23, wherein the processor is further configured to apply error mitigation to the NVM array in response to the indication of the error.

27. The data storage device of claim 23, wherein the data storage device receives neural network data from a host for storage in the NVM array and sends neural network data read from the NVM array to the host, and wherein the cumulative sum maintaining the inconsistency between the count of binary ones and the count of binary zeros is transparent to the host.

28. A method for use with a data storage device including a non-volatile memory array, i.e., an NVM array, the method comprising: The scrambled neural network data is stored in the NVM array; Read the scrambled neural network data from the NVM array; Maintain the cumulative sum of inconsistencies in the counts of binary one and binary zero in the scrambled neural network data; In response to determining that the accumulated sum does not exceed an inconsistency threshold, the neural network data read from the NVM array is descrambled; as well as In response to determining that the accumulated sum exceeds the inconsistency threshold, an indication of an error in the neural network data is generated.

Citation Information

Patent Citations

  • Error correction with non-volatile memory on an integrated circuit

    US20140136915A1

  • Sorting Instances of Input Data for Processing through a Neural Network

    US20200174748A1