Erasing of partially programmed memory cells

By monitoring and managing partial programming/erase cycles of memory cells, and setting indicators and erase counters, the problem of data retention performance degradation in non-volatile memory devices after multiple programming/erase cycles is solved, thereby improving the reliability and data retention capability of memory devices.

CN115512749BActive Publication Date: 2026-11-27MICRON TECHNOLOGY INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210638292.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-06-07
Filing Date
2022-06-07
Publication Date
2026-11-27
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

In the prior art, non-volatile memory devices experience a decline in data retention performance after undergoing multiple back-to-back partial programming/erasing cycles, leading to reliability issues and data loss problems.

Method used

By monitoring partial programming/erasing cycles of memory cells, setting indicators and erase counters, it is ensured that erasure does not occur until the conditions are met, or that erasure is delayed until data programming is complete, thus preventing unprogrammed pages or word lines from being erased.

Benefits of technology

It reduces or avoids data retention performance degradation caused by partial programming/erase cycles, improving the reliability and data retention capability of memory devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115512749B_ABST
    Figure CN115512749B_ABST
Patent Text Reader

Abstract

Various embodiments implement erasure of one or more portions of memory cells that are programmed memory cells of a memory device. In particular, various embodiments implement monitoring (e.g., tracking) of a portion programming / erasure cycle of memory cells (e.g., blocks) of a memory device, and perform erasure of the memory cells based on the monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of this disclosure generally relate to memory devices, and more specifically, to the erasure of portions of programmable memory cells (e.g., blocks) that may be performed by a memory subsystem. Background Technology

[0002] A memory subsystem may include one or more memory devices for storing data. Memory devices may be, for example, non-volatile memory devices and volatile memory devices. Generally, a host system can utilize a memory subsystem to store data at memory devices and retrieve data from memory devices. Summary of the Invention

[0003] One aspect of this disclosure relates to a system comprising: a memory device; and a processing means operatively coupled to the memory device and configured to perform operations including: monitoring a request to erase a memory cell of the memory device; and, in response to the request to erase the memory cell, prior to erasing the memory cell, determining whether the last memory sub-cell of the memory cell has been programmed since the last erasure of the memory cell; and, in response to determining that the last memory sub-cell has not been programmed since the last erasure of the memory cell: setting an indicator of the memory cell to indicate that the memory cell is being erased prior to the last memory sub-cell being programmed; and adjusting an erase counter for tracking the erasure of the memory cell.

[0004] Another aspect of this disclosure relates to a method comprising: monitoring a request to erase a memory cell of the memory subsystem at a controller of the memory subsystem; and, in response to the request to erase the memory cell, prior to erasing the memory cell: determining, via the controller, whether the memory cell has been partially programmed; and, in response to determining that the memory cell has been partially programmed: setting, via the controller, an indicator of the memory cell to indicate that the memory cell is being erased before it is fully programmed; and adjusting, via the controller, an erase counter for tracking the erasure of the memory cell.

[0005] Another aspect of this disclosure relates to a non-transitory machine-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to perform operations including: detecting a request to erase a memory cell of an erasing memory device operatively coupled to the processing device; and, in response to the request, before erasing the memory cell: determining whether the last memory sub-cell of the memory cell has been programmed since the last erasure of the memory cell; and, in response to determining that the last memory sub-cell has been programmed since the last erasure of the memory cell, adjusting an erase counter used to track the erasure of the memory cell. Attached Figure Description

[0006] This disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments thereof. However, the drawings should not be construed as limiting this disclosure to the specific embodiments, but are for explanation and understanding only.

[0007] Figure 1 This is a block diagram illustrating an example computing system including a memory subsystem according to some embodiments of the present disclosure.

[0008] Figures 2 to 4 This is a flowchart of an example method for tracking and erasing portions of a programmable memory cell according to some embodiments of the present disclosure.

[0009] Figure 5 These are diagrams illustrating examples of partial programmable erasure of memory cells and examples of complete programmable erasure of memory cells according to some embodiments of the present disclosure.

[0010] Figure 6A and 6B An interaction diagram is provided illustrating the interactions between components of a computing environment in the context of some embodiments, in which methods for tracking and erasing portions of programmable memory cells as described herein are performed.

[0011] Figure 7 This is a block diagram of an example computer system in which embodiments of the present disclosure can be operated. Detailed Implementation

[0012] This disclosure relates to erasing one or more partially programmed memory cells (e.g., blocks), the erasure of which can be performed by a memory subsystem. Specifically, some embodiments described herein can monitor one or more memory cells (e.g., blocks) used for partial programming, and based on this monitoring, erase one or more of those memory cells. The memory subsystem can be a storage device, a memory module, or a hybrid of a storage device and a memory module. The following is in conjunction with… Figure 1Describe examples of storage devices and memory modules. Generally, a host system may utilize a memory subsystem that includes one or more components, such as a memory device for storing data. The host system may send access requests to the memory subsystem to store data at the memory subsystem and to read data from the memory subsystem.

[0013] The host system can send access requests (e.g., write commands, read commands) to the memory subsystem to store data on memory devices at the memory subsystem, read data from memory devices at the memory subsystem, or write / read constructs (e.g., commit and complete queues) relative to memory devices at the memory subsystem. The data to be read or written, as specified by the host request, is referred to hereinafter as "host data". The host request may contain logical address information (e.g., logical block address (LBA), namespace) for the host data, which is the location associated between the host system and the host data. The logical address information (e.g., LBA, namespace) may be part of the metadata of the host data. The metadata may also include error handling data (e.g., error correction code (ECC) codeword, parity check code), data version (e.g., the period used to distinguish the data being written), a validity bitmap (which LBAs or logical pass units contain valid data), and so on.

[0014] The memory subsystem can initiate media management operations, such as write operations, on host data stored on the memory device. For example, as part of a garbage collection management operation, the firmware of the memory subsystem can rewrite previously written host data from its location on the memory device to a new location. The rewritten data (e.g., as booted via firmware) is referred to below as "garbage collection data".

[0015] In the following text, "user data" generally refers to host data and garbage collection data. "System data" refers to data generated and / or maintained by the memory subsystem for operation in response to host requests and for media management. Examples of system data include, but are not limited to, system tables (e.g., logical-to-physical memory address mapping tables, also referred to herein as L2P tables), data from logging, high-speed scratchpad data, etc.

[0016] The memory device can be a non-volatile memory device. A non-volatile memory device is a package of one or more dies. Each die can consist of one or more planes. For some types of non-volatile memory devices (e.g., "NAND" type devices), each plane includes a set of physical blocks. For some memory devices, a block is the smallest erasable area. Each block includes a set of pages. Each page consists of a set of memory cells that store data bits. The memory device can be a raw memory device (e.g., NAND), which is externally managed, for example, by an external controller. The memory device can be a managed memory device (e.g., managed NAND), which is a raw memory device combined with a local embedded controller that performs memory management within the same memory device package.

[0017] As mentioned herein, some memory devices (e.g., NAND flash memory devices) comprise multiple blocks, each of which comprises multiple pages (also referred to as word lines). Typically, writing data to such a memory device involves programming the memory device at the page level of the block, and erasing data from such a memory device involves erasing the memory device at the block level (i.e., page-level erasure of data is not possible). Therefore, using such memory devices often results in a cycle where a given block is programmed (at the page level) and then completely erased before all pages of that given block have been programmed (e.g., written with data). Such cycles are referred to herein as partial block programming and erasure cycles (or partial programming / erasure cycles). In certain use cases / hardware applications, such as where small amounts of data are repeatedly written to blocks or where data is written to individual blocks to improve performance through parallelism, one or more blocks of the memory device may undergo multiple back-to-back partial programming / erasure cycles. Unfortunately, multiple back-to-back partial programming / erasure cycles can cause permanent degradation of data retention in the memory device. Specifically, unprogrammed pages or word lines (WLs) that are sequentially erased (before programming) within a block can experience faster charge loss when eventually programmed with data. This faster charge loss of pages (attributed to the history of partial programming / erasing cycles on the block) can degrade the performance of the memory device by increasing the trigger rate (e.g., representing the probability of entering an error handling sequence) or causing data loss. Furthermore, data retention is a major reliability limiting metric for memory devices, especially replacement-gate (RG) NAND type memory devices.

[0018] This disclosure addresses the above and other drawbacks by monitoring (e.g., tracking) partial programming / erasing cycles of memory cells (e.g., blocks) of a memory device and performing erasure of memory cells based on said monitoring (e.g., in response to an erase request). Specifically, various embodiments track whether a memory cell is partially programmed (e.g., a block has at least some unprogrammed pages) before an erase is performed on the memory cell. In response to the partial programming of a memory cell being erased, an indicator (e.g., a flag) for the memory cell can be set and an erase counter can be updated (e.g., incremented) to maintain the count of the partial programming / erasing cycles. Finally, if the erase counter of the memory cell meets a condition (e.g., the erase counter exceeds a threshold), then embodiments can program any unprogrammed portion of the memory cell (e.g., unprogrammed pages or open word lines of a block) with dummy data and then erase the memory cell, or alternatively, delay the erasure of the memory cell until additional non-dummy data (e.g., new user data from the host system) is programmed into any remaining unprogrammed portion of the memory cell. Some embodiments ensure that a full program / erase cycle is always performed on a memory cell (e.g., a block) after a certain number of partial program / erase cycles have been performed on the memory cell. Therefore, the use of the various embodiments described herein can reduce or avoid permanent degradation of data retention in a memory device caused by partial program / erase cycles.

[0019] As used herein, a memory cell may include a block of memory devices, and a memory subcell may include a page of a block. In some embodiments, the memory cells and memory subcells may differ from those described herein.

[0020] This document discloses some examples of erasing one or more portions of a programmable memory cell (e.g., a block) as described herein.

[0021] Figure 1 This description describes an example computing system 100 including a memory subsystem 110 according to some embodiments of the present disclosure. The memory subsystem 110 may include media, such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of the like.

[0022] The memory subsystem 110 may be a storage device, a memory module, or a combination of both. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, secure digital cards (SD cards), embedded multimedia controller (eMMC) drives, universal flash memory (UFS) drives, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).

[0023] The computing system 100 may be a computing device, such as a desktop computer, laptop computer, web server, mobile device, vehicle (e.g., airplane, drone, train, car or other means of transport), Internet of Things (IoT) enabled device, embedded computer (e.g., computer contained in a vehicle, industrial equipment or networked commercially available device), or such computing device that includes memory and processing power.

[0024] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to different types of memory subsystems 110. Figure 1 This describes an example of a host system 120 coupled to a memory subsystem 110. As used herein, “coupled to…” or “coupled with…” generally refers to a connection between components, which can be an indirect or direct communication connection (e.g., without an intervening component), whether wired or wireless, and includes connections such as electrical, optical, and magnetic connections.

[0025] Host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a Peripheral Component Interconnect High Speed ​​(PCIe) controller, a Serial Advanced Technology Attachment (SATA) controller). Host system 120 uses, for example, memory subsystem 110 to write data to and read data from memory subsystem 110.

[0026] Host system 120 can be coupled to memory subsystem 110 via a physical host interface. Examples of physical host interfaces include, but are not limited to, SATA interfaces, peripheral component interconnect high-speed (PCIe) interfaces, universal serial bus (USB) interfaces, Fibre Channel, serially connected SCSI (SAS), small computer system interface (SCSI), dual data rate (DDR) memory bus, dual in-line memory module (DIMM) interfaces (e.g., DDR-enabled DIMM socket interfaces), open NAND flash interface (ONFI), double data rate (DDR), low power double data rate (LPDDR), or any other interface. The physical host interface can be used to transmit data between host system 120 and memory subsystem 110. When memory subsystem 110 is coupled to host system 120 via a PCIe interface, host system 120 can further utilize an NVM high-speed (NVMe) interface to access components (e.g., memory device 130). The physical host interface provides an interface for transmitting control, address, data, and other signals between memory subsystem 110 and host system 120. Figure 1 The memory subsystem 110 is described as an example. Generally, the host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.

[0027] Memory devices 130 and 140 may comprise any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).

[0028] Some examples of non-volatile memory devices (e.g., memory device 130) include NAND flash memory and in-place write memory, such as three-dimensional cross-point ("3D cross-point") memory devices, which are cross-point arrays of non-volatile memory cells. The cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in volume resistance. Furthermore, compared to many flash-based memories, cross-point non-volatile memory can perform in-place write operations, where non-volatile memory cells can be programmed without pre-erasing them. NAND flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).

[0029] Each of the memory devices 130 may include one or more arrays of memory cells. One type of memory cell, such as a single-level cell (SLC), may store one bit per cell. Other types of memory cells, such as multi-level cell (MLC), total-level cell (TLC), quadruple-level cell (QLC), and five-level cell (PLC), may store multiple bits per cell. In some embodiments, each of the memory devices 130 may include one or more arrays of memory cells, such as SLC, MLC, TLC, QLC, or any combination of such arrays. In some embodiments, a particular memory device may include an SLC portion of memory cells, as well as an MLC portion, a TLC portion, or a QLC portion. The memory cells of the memory device 130 may be grouped into pages, which may refer to logical cells of the memory device used for storing data. For some types of memory (e.g., NAND), pages may be grouped to form blocks.

[0030] As used herein, a block that includes SLC may be referred to as an SLC block, a block that includes MLC may be referred to as an MLC block, a block that includes TLC may be referred to as a TLC block, and a block that includes QLC may be referred to as a QLC block.

[0031] While non-volatile memory components, such as NAND flash memory (e.g., 2D NAND, 3D NAND) and 3D cross-point non-volatile memory cell arrays, are described, memory device 130 may be based on any other type of non-volatile memory, such as read-only memory (ROM), phase-change memory (PCM), auto-select memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin-transfer torque (STT)-MRAM, conductive bridged RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), NOR flash memory, and electrically erasable programmable read-only memory (EEPROM).

[0032] The memory subsystem controller 115 (for simplicity, controller 115) can communicate with the memory device 130 to perform operations, such as reading data, writing data, erasing data, and other such operations at the memory device 130. The memory subsystem controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memories, or combinations thereof. The hardware may include digital circuitry with dedicated (i.e., hard-decoded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, a dedicated logic circuit system (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.), or other suitable processor.

[0033] The memory subsystem controller 115 may include a processor (processing device) 117 configured to execute instructions stored in local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes embedded memory configured to store instructions for performing various processes, operations, logic flows, and routines for controlling the operation of the memory subsystem 110 (including handling communication between the memory subsystem 110 and the host system 120).

[0034] In some embodiments, local memory 119 may include memory registers storing memory pointers, retrieved data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Although in Figure 1 The instance memory subsystem 110 has been described as including a memory subsystem controller 115, but in another embodiment of this disclosure, the memory subsystem 110 does not include a memory subsystem controller 115, but instead may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0035] Generally, the memory subsystem controller 115 can receive commands or operations from the host system 120 and can translate these commands or operations into instructions or appropriate commands to enable desired access to memory devices 130 and / or 140. The memory subsystem controller 115 may be responsible for other operations, such as wear leveling, garbage collection, error detection and error correction (ECC) operations, encryption, caching, and address translation between logical addresses (e.g., logical block addresses, namespaces) associated with memory device 130 and physical memory addresses (e.g., physical block addresses). The memory subsystem controller 115 may additionally include host interface circuitry for communication with the host system 120 via a physical host interface. The host interface circuitry can translate commands received from the host system 120 into command instructions to access memory devices 130 and / or 140, and translate responses associated with memory devices 130 and / or 140 into information for the host system 120.

[0036] The memory subsystem 110 may also include additional circuitry or components not described. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and an address circuitry (e.g., row decoder and column decoder) that can receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130.

[0037] In some embodiments, memory device 130 includes a local media controller 135, which operates in conjunction with memory subsystem controller 115 to perform operations on one or more memory cells of memory device 130. An external controller (e.g., memory system controller 115) may externally manage memory device 130 (e.g., perform media management operations on memory device 130). In some embodiments, memory device 130 is a managed memory device, which is a native memory device combined with a local controller (e.g., local media controller 135) that performs media management within the same memory device package. An example of a managed memory device is a managed NAND (MNAND) device.

[0038] The memory subsystem controller 115 includes a partially programmable memory cell eraser 113, which implements monitoring (e.g., tracking) of partial programming / erasing cycles of memory cells (e.g., blocks) and erasure of memory cells based on the monitoring. According to some embodiments, the partially programmable memory cell eraser 113 causes the memory subsystem controller 115 to track whether a memory cell (e.g., a block having at least some unprogrammed pages) is partially programmed before performing an erase on a memory cell of at least one memory device 130, 140. For example, the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to detect when a memory cell is requested (e.g., via a generated or received request) to be erased. When a request to erase a memory cell is detected before an erase is performed, the partially programmed memory cell eraser 113 causes the memory subsystem controller 115 to determine whether the memory cell is partially programmed, and if so, to set an indicator (e.g., a flag) for the memory cell and update (e.g., increment) an erase counter for the memory cell, wherein the erase counter is intended to maintain a count of memory cells erased while partially programmed. Depending on the embodiment, a memory cell is considered partially programmed when memory sub-cells of the memory cell remain unprogrammed (e.g., not storing valid data). For example, a memory cell may comprise a block of one of memory devices 130, 140, and memory sub-cells may comprise pages or word lines of that block, and the block is considered partially programmed if at least one of the pages or word lines of the block remains unprogrammed (e.g., the word line remains open). In some embodiments, memory sub-cells (e.g., pages) of a memory cell (e.g., a block) are programmed with data in order from the first memory sub-cell to the last memory sub-cell, and a memory cell (e.g., a block) is considered to be partially programmed until the last memory sub-cell (e.g., the last page) is not programmed.

[0039] In some embodiments, before erasing a memory cell, the partially programmable memory cell eraser 113 causes the memory subsystem controller 115 to determine whether the erase counter of a memory cell in one of the memory devices 130, 140 meets a condition (e.g., the erase counter exceeds a threshold). In some embodiments, the erase counter meets the condition by the current value of the erase counter exceeding (e.g., greater than) a threshold. The threshold may be a definable value that may be determined or adjusted by the host system 120 (e.g., by a user of the host system 120) (e.g., on the memory subsystem 110). The threshold may ensure that a full programming / cycle is performed after a certain number of partial programming / erasing cycles have been performed on the memory cell. Alternatively, the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to determine whether both the indicator and the erase counter of the memory cell meet a condition (e.g., the indicator is set and the erase counter exceeds a threshold). In some embodiments, the erase counter and indicator satisfy the condition by the current value of the erase counter exceeding (e.g., greater than) a threshold and the current value of the indicator indicating that a partial programmable erase of a memory cell has occurred.

[0040] In response to a condition being met (e.g., via an erase counter or via an erase counter and indicator), the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to allow memory erasure or cause memory erasure until after any remaining unprogrammed portion of the memory cell has been programmed with data (e.g., until the last memory subcell of the memory cell has been programmed with data). For example, the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to program any unprogrammed portion of the memory cell (e.g., unprogrammed pages or open word lines of a block) with dummy data before erasing the memory cell. Alternatively, the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to wait until additional non-dummy data (e.g., new user data from the host system) is programmed into the memory cell and then allow the memory cell to be erased. In this way, the partially programmable memory cell eraser 113 may cause the memory subsystem controller 115 to delay the erasure of the memory cell. If the received additional non-dummy data is insufficient to program the remaining unprogrammed portion of the memory cell, the memory subsystem controller 115 may program the additional non-dummy data into the memory cell and program any remaining unprogrammed portion with dummy data.

[0041] Figures 2 to 4This is a flowchart of an example method for tracking and erasing portions of a programmable memory cell according to some embodiments of this disclosure. Methods 200, 300, and 400 can be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, through... Figure 1 The memory subsystem controller 115 performs one or more operations of methods 200, 300, or 400 based on a portion of the programmable memory cell eraser 113. Alternatively or additionally, in some embodiments, at least one of methods 200, 300, or 400 is at least partially... Figure 1 The local media controller 135 of the memory device 130 executes the process. Although shown in a specific order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are used in each embodiment. Other process flows are also possible.

[0042] For reference Figure 2 Method 200 is performed prior to erasing memory cells (e.g., blocks) of a memory device (e.g., 140). The memory device may include multiple memory cells, each of which may include multiple memory sub-cells. Each memory cell may include a block of the memory device, and each memory sub-cell may include pages of the block. Depending on the embodiment, method 200 may be performed in response to a processing device (e.g., processor 117 of memory subsystem controller 115) detecting a request to erase a memory cell, wherein the request may be generated or received by the processing device (e.g., processor 117). The request detection may be performed as part of monitoring by the processing device (e.g., processor 117) regarding the request to erase a memory cell.

[0043] As illustrated, operation 204 is performed by a processing device (e.g., processor 117) before erasing the memory cell. During operation 204, the processing device (e.g., 117) performs operations 220 through 226. At operation 220, the processing device (e.g., processor 117) determines whether the memory cell is partially programmed, and if so, method 200 proceeds to operation 222; otherwise, method 200 proceeds to operation 228. In some embodiments, the processing device (e.g., processor 117) determines whether the memory cell is partially programmed by determining whether the last memory sub-cell (e.g., the last page) of the memory cell since the last erasure of the memory cell has been programmed.

[0044] At operation 222, the processing device (e.g., 117) sets an indicator for a memory cell (e.g., via a value represented as true) to indicate that the memory cell is being erased before it is fully programmed (e.g., the last memory sub-cell of the memory cell has not been programmed since the last erase of the memory cell). The indicator may indicate that the memory cell has undergone at least one partial programming / erasing cycle. In some embodiments, the indicator is stored in the metadata of the memory cell (e.g., the metadata of a block). The metadata of the memory cell may be stored in the memory cell or, alternatively, in one or more certain memory cells reserved for such purposes (e.g., one or more reserved blocks that can be used to store system data of the memory device or memory subsystem). In some embodiments, each memory cell being tracked by the memory device (e.g., 117) has its own erase counter. For example, the memory device may include a first memory cell tracked by a first erase counter and a second memory cell tracked by a second erase counter.

[0045] Subsequently, at operation 224, the processing device (e.g., 117) adjusts an erase counter for the memory cell, wherein the erase counter is intended to track the erasure of the memory cell as it is partially programmed. In some embodiments, adjusting the erase counter involves incrementing the erase counter by one, indicating that another request to erase the memory cell has been detected (e.g., generated or received) while the memory cell is currently being partially programmed. As described herein, the erase counter may satisfy a condition by exceeding (e.g., being greater than) a threshold. Alternatively, depending on the embodiment, the erase counter may be decremented (e.g., wherein the erase counter is initialized with the maximum number of partial programming / erasing cycles, and a value of zero or lower may indicate that the condition has been satisfied within a full programming / erasing cycle). As described herein, the erase counter and indicator may satisfy a condition by the current value of the erase counter exceeding (e.g., being greater than) a threshold and the current value of the indicator indicating that a partial programming erase of the memory cell has occurred. In some embodiments, the erase counter is stored in the metadata of the memory cell (e.g., the metadata of the block). As described herein, metadata for memory cells may be stored in the memory cells themselves or, alternatively, in one or more reserved memory cells. In some embodiments, each memory cell being tracked in the memory device (e.g., 117) has its own indicator. For example, the memory device may include a first memory cell tracked via a first indicator and a second memory cell tracked via a second indicator.

[0046] At operation 226, the processing device (e.g., 117) continues erasing the memory cell based at least on an erase counter for the memory cell (e.g., the current value of the erase counter). For example, in response to a condition being met by the erase counter, at operation 226, the processing device may first fully program the memory cell before continuing to erase the memory cell, and then erase the memory cell when it has been fully erased (e.g., a complete program-erase of the memory cell). In some embodiments, the processing device (e.g., 117) continues erasing the memory cell based on an indicator for the memory cell (e.g., the value of the indicator) and an erase counter (e.g., the current value of the erase counter). For example, in response to a condition being met by both the indicator and the erase counter, at operation 226, the processing device may first fully program the memory cell before continuing to erase the memory cell.

[0047] At operation 228, the processing device (e.g., 117) continues erasing the memory cell. In some embodiments, the erasure in operation 228 represents the erasure of the memory cell when it has been fully programmed (e.g., a full program erase of the memory cell). Depending on the embodiment, the processing device directly or indirectly causes the erasure of the memory cell. In some embodiments, at operation 228, the processing device (e.g., 117) sets (e.g., resets) an indicator to (e.g., via a value represented as false) indicating that the memory cell is being erased while it is fully programmed (i.e., erasing when the memory cell is not being partially programmed), and sets (e.g., resets) an erase counter to an initial state (e.g., a value of 0, where operation 224 increments).

[0048] For reference Figure 3 In method 300, a processing device (e.g., processor 117 of memory subsystem controller 115) monitors at operation 302 for one or more requests to erase memory cells (e.g., blocks) of a memory device (e.g., 140). In response to detecting a request to erase a memory cell, operation 304 is performed by the processing device (e.g., 117) before erasing the memory cell. During operation 304, operations 320 to 334 are performed by the processing device (e.g., 117) before erasing the memory cell. At operation 320, the processing device (e.g., 117) determines whether the memory cell is partially programmed, and if so, method 300 proceeds to operation 322; otherwise, method 300 proceeds to operation 334. During operation 334, the processing device (e.g., 117) continues erasing the memory cell. By continuing from operation 320 to operation 334, the processing device continues to perform a full programming erase of the memory cell at operation 334.

[0049] At operation 322, the processing device (e.g., 117) sets an indicator for the memory cell (e.g., via a value represented as true) to indicate that the memory cell is being erased before it is fully programmed (e.g., the last memory sub-cell of the memory cell has not been programmed since the last erase of the memory cell). Thereafter, at operation 324, the processing device (e.g., 117) adjusts (e.g., increments or decrements) an erase counter for the memory cell, wherein the erase counter is intended to track the erasure of the memory cell while it is being partially programmed. Operations 320, 322, and 324 are respectively similar to... Figure 2 Method 200 includes operations 220, 222, and 224.

[0050] At operation 326, the processing device (e.g., 117) determines whether the erase counter meets the conditions for a full programmable erase of the memory cell (or the conditions for allowing a partial programmable erase of the memory cell). Therefore, these conditions determine how the erase of the requested memory cell will proceed. In response to a condition being met (e.g., avoiding erasure while the memory cell is partially programmed), method 300 proceeds to operation 328; otherwise, method 300 continues to operation 334, where the processing device (e.g., 117) continues erasing the memory cell. By continuing from operation 326 to operation 334, the processing device continues partial programming erasure of the memory cell at operation 334. For some embodiments, the two different memory cells of the memory device (e.g., 117) may themselves have different conditions applied at operation 326. For example, the memory device may include a first memory cell and a second memory cell, and a first condition applied to the first memory cell at operation 326 may be different from a second condition applied to the second memory cell at operation 326. Different conditions may be applied to different memory cells based on their respective differences. For example, the first memory cell and the second memory cell may include different memory cell types (e.g., SLC, MLC, TLC, QLC, etc.), and therefore may have different conditions applied to determine when a full programming / erasing cycle will be performed.

[0051] At operation 328, the processing device (e.g., 117) programs any memory sub-cells of the memory cell that remain unprogrammed with data. In doing so, operation 328 ensures that the memory cell is fully programmed before being erased by the memory subsystem. Depending on the embodiment, the data programmed into the remaining memory sub-cells includes dummy data (e.g., non-user data). At operation 330, the processing device (e.g., 117) sets (e.g., resets) an indicator to (e.g., via a value represented as false) indicating that the memory cell is being erased while it is fully programmed, and at operation 332, the processing device (e.g., 117) sets (e.g., resets) an erase counter to an initial state (e.g., a value of 0, which is incremented in operation 324).

[0052] Following operation 332, method 300 proceeds to operation 334, where the processing device (e.g., 117) continues erasing the memory cells. By continuing from operation 332 to operation 334, the processing device continues to perform a complete programming erase of the memory cells at operation 334 (wherein the memory cells have already been fully programmed via operation 328).

[0053] For reference Figure 4 Method 300 and Method 400 are similar Figure 3 Method 300, wherein operations 402, 404, 420, 422, 424, 426, 430, 432, and 434 are similar to operations 302, 304, 320, 322, 324, 326, 330, 332, and 334, respectively. At operation 428, the processing device (e.g., 117) postpones erasing the memory cell until after new data is programmed into any remaining unprogrammed memory sub-cells of the memory cell, wherein the new data represents non-dummy data (e.g., new user data from host system 120). If the new data is insufficient to program the remaining unprogrammed portion of the memory cell, the processing device (e.g., 117) can program any remaining portion of the memory cell (after programming the new data) with dummy data. Through operation 428, the processing device ensures that a complete program / erase cycle is performed on the memory cell (e.g., block) before the memory cell is erased. As shown, from operation 428, method 400 continues to operations 430, 432, and 434.

[0054] Figure 5 These are illustrations of example 500, which depicts partial program erasure of a memory cell, and example 520, which depicts complete program erasure of a memory cell, according to some embodiments of this disclosure. For illustrative purposes, Figure 5 Each memory cell in the memory comprises a block of memory devices, and each block comprises multiple pages (page 0 to page 1). 最后一个Regarding example 500 of partial programmable erasure, the block illustrated at 502 is partially programmed with user data 510. At 504, this partially programmed block is erased, resulting in an erased block. Regarding example 520 of complete programmable erasure, the block illustrated at 522 is partially programmed with user data 530. In response to the request to erase the block at 522, the block is programmed with data 532 until it is fully programmed before erasing, as shown at 524. Depending on the embodiment, data 532 may include new data (e.g., new user data received from the host system) or dummy data, or some combination of both. At 526, this fully programmed block is erased, resulting in an erased block.

[0055] Figure 6A and 6B An interaction diagram is provided illustrating the interactions between components of a computing environment in the context of some embodiments, in which methods for tracking and erasing portions of programmable memory cells as described herein are performed.

[0056] Figure 6A and 6B Interaction diagrams are provided illustrating interactions between components of a computing environment in the context of some embodiments, where methods for tracking and erasing portions of programmable memory cells as described herein are performed. The operation of the methods may be performed by processing logic, which may include hardware (e.g., processing devices, circuit systems, dedicated logic, programmable logic, microcode, device hardware, integrated circuits, etc.), software (e.g., instructions that run or execute on a processing device), or a combination thereof. In some embodiments, the methods are performed by a host system (e.g., 120), a memory subsystem controller (e.g., 115), a memory device (e.g., 130 or 140), or a combination thereof. While operations are shown in a particular order or sequence, the order of the processes may be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are merely examples, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. Furthermore, one or more processes may be omitted in various embodiments. Therefore, not all processes are used in each embodiment. Figure 6A and 6B In the context of the example described herein, the host system may include host system 120, the memory subsystem controller may include memory subsystem controller 115, and the memory device may include memory device 140.

[0057] like Figure 6AAs shown, at operation 602, host system 120 sends a command (e.g., a command to write data) to memory subsystem 110. In response to receiving the command, at operation 610, memory subsystem controller 115 generates a request to erase one or more memory cells of memory device 140 based on the command. Memory subsystem controller 115 detects the generated request to erase one of the memory cells at operation 612. Subsequently, at operation 614, memory subsystem controller 115 determines whether the last memory subcell of the memory has been programmed since the last erase. As described herein, by operation 614, memory subsystem controller 115 determines whether the memory cell was partially programmed before being erased. Memory device 140 assists in determining the programming state of the last page at operation 630. In response to determining that the last memory subcell of the memory has been programmed since the last erase, memory subsystem controller 115 performs operation 622; otherwise, memory subsystem controller 115 performs operation 616.

[0058] At operation 616, the memory subsystem controller 115 adjusts (e.g., increases) the erase counter used to track the erasure of memory cells, wherein the erase counter is stored on the memory device 140. To facilitate the adjustment of the erase counter, the memory device 140 provides access to the erase counter to the memory subsystem controller 115 at operation 632. Additionally, at operation 618, the memory subsystem controller 115 sets an indicator for the memory cell to indicate that a partial programming / erasing cycle is being performed on the memory cell.

[0059] For reference Figure 6B At operation 620, the memory subsystem controller 115 determines whether the erase counter and indicator meet the conditions for a full programming / erasing cycle to be performed on the memory cell. If so, the memory subsystem controller 115 executes operation 624; otherwise, the memory subsystem controller 115 executes operation 622. At operation 622, the memory subsystem controller 115 causes the memory cell to be erased, and the memory device 140 induces the erase at operation 634.

[0060] At operation 624, the memory subsystem controller 115 resets the erase counter and indicator of the memory cell. To facilitate this reset, the memory device 140 provides access to at least the erase counter of the memory cell at operation 636. Additionally, at operation 626, the memory subsystem controller 115 programs the memory cell with data (e.g., new data or dummy data), thereby fully programming the memory cell before it is erased. The memory device 140 causes the memory cell to be programmed with data at operation 638. Thereafter, the memory subsystem controller 115 causes the memory cell to be erased at operation 622.

[0061] Figure 7 An example machine illustrating computer system 700 is described, capable of executing a set of instructions within said computer system 700 for causing said machine to perform any or more methods discussed herein. In some embodiments, computer system 700 may be connected to a host system (e.g., Figure 1 The host system 120 corresponds to a host system that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 may be used to perform the operations described herein. In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a local area network (LAN), intranet, extranet, and / or the Internet. The machine may operate as a peer-to-peer machine in a peer-to-peer (or distributed) network environment or as a server or client machine in a cloud computing infrastructure or environment, or within the capacity of a server or client machine in a client-server network environment.

[0062] The machine may be a personal computer (PC), tablet PC, set-top box (STB), personal digital assistant (PDA), cellular phone, network appliance, server, network router, switch, or bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions specifying actions to be taken by the machine. Furthermore, although a single machine is described, the term "machine" should also be understood to include any set of machines that individually or collectively execute one or more sets of instructions to perform any one or more of the methods discussed herein.

[0063] The example computer system 700 includes a processing device 702, a main memory 704 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 706 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 718, which communicate with each other via a bus 730.

[0064] Processing device 702 represents one or more general-purpose processing devices, such as microprocessors, central processing units, etc. More specifically, processing device 702 may be a Complex Instruction Set Computing (CISC) microprocessor, a Reduced Instruction Set Computing (RISC) microprocessor, a Very Long Instruction Word (VLIW) microprocessor, a processor implementing other instruction sets, or a processor implementing a combination of instruction sets. Processing device 702 may also be one or more special-purpose processing devices, such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), network processors, etc. Processing device 702 is configured to execute instructions 726 to perform the operations and steps discussed herein. Computer system 700 may additionally include a network interface device 708 for communication on network 720.

[0065] Data storage device 718 may include machine-readable storage medium 724 (also referred to as computer-readable medium) storing one or more sets of instructions 726 or software embodying any or more of the methods or functions described herein. The instructions 726 may also reside wholly or at least partially within main memory 704 and / or processing device 702 during execution by computer system 700, the main memory 704 and processing device 702 also constituting machine-readable storage medium. Machine-readable storage medium 724, data storage device 718, and / or main memory 704 may correspond to... Figure 1 The memory subsystem 110.

[0066] In one embodiment, instruction 726 includes implementing actions corresponding to tracking and erasing portions of a programmable memory cell (e.g., as described herein). Figure 1 The machine-readable storage medium 724 is a functional instruction of the programmable memory cell eraser 113. Although the machine-readable storage medium 724 is shown as a single medium in the exemplary embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions executable by a machine and causing the machine to perform any one or more of the methods of this disclosure. The term "machine-readable storage medium" should therefore be considered to include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0067] Some parts of the previously described algorithms and symbolic representations of operations on data bits within computer memory have been presented. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing most effectively communicate the essence of their work to others skilled in the art. In this document, and generally in general, an algorithm is conceived as a self-consistent sequence of operations that produce a desired result. An operation is an operation that requires physical manipulation of a physical quantity. Typically (but not always), these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has been shown that it is sometimes convenient to refer to these signals as bits, values, elements, symbols, characters, items, numbers, etc., primarily for common use.

[0068] However, it should be remembered that all these and similar terms will be associated with appropriate physical quantities and are merely convenient notations for application to those quantities. This disclosure can refer to the actions and processes of a computer system or similar electronic computing device that manipulate and transform data represented as physical (electronic) quantities in the registers and memories of a computer system into other data similarly represented as physical quantities in the computer system's memory or registers or other such information storage systems.

[0069] This disclosure also relates to apparatus for performing the operations described herein. Such apparatus may be specifically constructed for the desired purpose, or may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in a computer. This computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, CD-ROMs and magneto-optical disks, read-only memory (“ROM”), random access memory (“RAM”), EPROM, EEPROM, magnetic cards or optical cards, or any type of media suitable for storing electronic instructions and each coupled to a computer system bus.

[0070] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general-purpose systems can be used with the programs taught herein, or it may prove convenient to construct more specialized devices to perform the methods described herein. The structures of various such systems will be presented as illustrated in the description below. Furthermore, this disclosure is described without reference to any particular programming language. It should be understood that the teachings of this disclosure as described herein can be implemented using various programming languages.

[0071] This disclosure may be provided as a computer program product or software, which may include a machine-readable medium having instructions stored thereon for programming a computer system (or other electronic device) to perform processes according to this disclosure. Machine-readable media includes any mechanism for storing information in a machine-readable (e.g., computer-readable) form. In some embodiments, machine-readable (e.g., computer-readable) media includes machine-readable (e.g., computer-readable) storage media, such as read-only memory (“ROM”), random access memory (“RAM”), disk storage media, optical storage media, flash memory components, etc.

[0072] In the foregoing description, embodiments of this disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to this disclosure without departing from the broader spirit and scope of the embodiments set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative rather than restrictive sense.

Claims

1. A memory system comprising: Memory devices; and A processing device, operatively coupled to the memory device, is configured to perform operations including: Monitor requests to erase memory cells of the memory device; and In response to a request to erase the memory cell, before erasing the memory cell: Determine whether the last memory sub-cell of the memory cell has been programmed since the last erasure of the memory cell; and In response to determining that the last memory sub-cell has not been programmed since the last erase of the memory cell: The indicator of the memory cell is set to a representative value indicating that the memory cell has undergone at least one partial program-erase cycle, in which the memory cell is erased for the last time before the last memory sub-cell is programmed; and An erase counter is incremented to maintain the count of partial program-erase cycles for the memory cell.

2. The memory system of claim 1, wherein the representative value is a first representative value, and wherein, prior to the memory cell being erased, in response to the request to erase the memory cell: In response to determining that the last memory sub-cell has been programmed since the last erase of the memory cell: The indicator is set to a second representative value indicating that the memory cell has not yet undergone at least one partial program-erase cycle, in which the memory cell is last erased before the last memory cell is programmed; and Set the erase counter to its initial state.

3. The memory system of claim 1, wherein in response to determining that the last memory sub-cell has been programmed since the last erase of the memory cell: Determine whether the erase counter meets the conditions; and In response to the erase counter satisfying the condition: The memory cell is programmed to retain any memory subcells that are not programmed with dummy data; and After the programming of any unprogrammed memory sub-cells is maintained, the erasure of the memory cells continues.

4. The memory system of claim 3, wherein the condition is satisfied when the erase counter exceeds a threshold.

5. The memory system of claim 3, wherein in response to determining that the last memory sub-cell has been programmed since the last erase of the memory cell: In response to the erase counter not meeting the condition, the erasure of the memory cell continues.

6. The memory system of claim 3, wherein the memory cell is a first memory cell, wherein the erase counter is a first erase counter of the first memory cell, wherein the condition is a first condition of the first memory cell, wherein the memory device includes a second memory cell, and wherein a second erase counter for the second memory cell is maintained.

7. The memory system of claim 6, wherein the second condition is used in conjunction with the second erase counter to determine whether any memory subcell of the second memory cell that has been kept unprogrammed with dummy data is programmed prior to the erasure of the second memory cell.

8. The memory system of claim 7, wherein the first memory cell and the second memory cell comprise different memory cell types.

9. The memory system of claim 1, wherein in response to determining that the last memory sub-cell has been programmed since the last erase of the memory cell: Determine whether the erase counter meets the conditions; and In response to the erase counter satisfying the condition: The erasure of the memory cell is postponed until after any unprogrammed memory sub-cell of the memory cell has been programmed with new data received from the host system.

10. The memory system of claim 1, wherein the memory cell is a block comprising a plurality of pages of the memory of the device, and wherein the last memory sub-cell is a page among the plurality of pages.

11. The memory system of claim 1, wherein the indicator is stored in the metadata of the memory cell.

12. The memory system of claim 1, wherein the erase counter is stored in the metadata of the memory cell.

13. A method for operating a memory subsystem, comprising: The controller of the memory subsystem monitors requests to erase memory cells of the memory subsystem. and In response to a request to erase the memory cell, before erasing the memory cell: The controller determines whether the memory cell has been partially programmed. and In response to determining that the memory cell has been partially programmed: The controller sets the indicator of the memory cell to a representative value indicating that the memory cell has undergone at least one partial program-erase cycle, in which the memory cell is last erased before it is fully programmed; and The controller increments an erase counter used to maintain the count of partial program-erase cycles for the memory cell.

14. The method of claim 13, wherein the memory subsystem includes a memory device, and wherein the memory device includes the memory cell.

15. The method of claim 14, wherein the memory device includes the controller.

16. The method of claim 14, wherein the controller is external to the memory device.

17. The method of claim 16, wherein the controller is a memory subsystem controller.

18. The method of claim 13, wherein the indicator is stored in the metadata of the memory unit.

19. The method of claim 13, wherein the erase counter is stored in the metadata of the memory cell.

20. A non-transitory machine-readable storage medium comprising instructions that, when executed by a processing means, cause the processing means to perform operations including: Detects a request for an erase memory cell, the memory device being operatively coupled to the processing device; and In response to the request, before erasing the memory cell: Based on the indicator of the memory cell, it is determined whether the last memory sub-cell of the memory cell has been programmed since the last time the memory cell was erased. The indicator is configured to store a representative value indicating whether the memory cell has undergone at least one partial program-erase cycle, in which the memory cell was last erased before the last memory sub-cell was programmed. and In response to determining that the last memory sub-cell has been programmed since the last erase of the memory cell, the erase counter used to maintain the count of the partial programming-erasure cycle of the memory cell is incremented.

Citation Information

Patent Citations

  • Optimized Erase Operation For Non-Volatile Memory With Partially Programmed Block

    US20140003147A1

  • Apparatus, computer program product, system, and method for managing multiple regions of a memory device

    US20190079859A1

  • Memory system and control method thereof

    US20200133496A1

  • Storage device, nonvolatile memory and method operating same

    US9286990B1