Monitor Flash Memory Erase Progress Using Erase Credits
Monitoring and tracking the erase operation of NAND flash memory through the credit mechanism solves the erasure extension problem caused by read request interruption, achieves efficient erasure progress monitoring and completion, and improves system performance.
Patent Information
- Application Number
- CN202010772617.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-08-04
AI Technical Summary
When the existing NAND flash memory performs the erase operation, the erase operation is prolonged due to the interruption of the read request, resulting in an increase in service delay, and the inability to effectively monitor the erase progress, affecting system efficiency and reliability.
A credit mechanism is used to monitor the erase operation, and the erase progress is tracked through slice erase pulses and credit counters to ensure that the erase operation is completed when it reaches a predetermined threshold, thereby reducing the impact of interruptions on the erase operation.
It effectively reduces the extended time of the erase operation, improves system efficiency and reliability, and ensures the efficient completion of the erase operation in the face of a large number of read requests.
Smart Images

Figure CN112331246B_ABST
Abstract
Description
Technical Field
[0001] At least some embodiments disclosed herein relate generally to memory device operations, and more specifically, but not limited to, monitoring the progress of erasing or programming a memory device using a credit mechanism. Background Art
[0002] Various types of memory devices are used to store data for computing systems. One type of memory device uses flash memory to store data. Flash memory is a non-volatile computer storage medium that is electrically erased and programmed. One type of flash memory is a NAND type that can be written and read, for example, in blocks of data. NAND type flash memory is often used in memory cards, USB flash drives, and solid-state drives (SSDs) for storing data.
[0003] Flash memory provides non-volatile storage with relatively fast read access times. Exemplary applications using flash memory include personal computers, digital audio players, digital cameras, and mobile devices.
[0004] In some NAND-type flash memory devices, after a page program or block erase command is issued, subsequent read requests must wait until the relatively time-consuming program or erase operation is completed. Therefore, such read requests are subject to extended service delays due to the waiting time.
[0005] One flash memory method uses program / erase suspension, where execution of a program or erase operation is suspended in order to service a pending read. The suspended program or erase operation is resumed after servicing the pending read.
[0006] In one example of an erase operation for NAND flash, the erase process consists of two phases. The first phase uses an erase pulse that lasts for the erase time period applied to the target block in the memory. The second phase uses a verify operation that is performed to determine whether the previous erase pulse has successfully erased all bits in the block. Summary of the invention
[0007] One embodiment of the present application provides a method comprising: performing an erase operation to erase a memory; monitoring erase pulse segments used in the erase operation; determining an erase credit associated with the erase operation, wherein the erase credit includes a corresponding erase credit associated with each of the erase pulse segments; determining an erase degree of the memory based on the erase credit; and completing the erase operation in response to determining that the erase degree has reached a predetermined threshold.
[0008] Another embodiment of the present application provides a system comprising: a memory cell array configured to store data for a memory device; at least one processing device; and a memory containing instructions configured to instruct the at least one processing device to: perform an erase operation to erase at least a portion of the memory cell array, the erase operation using erase pulse segments; determine an erase credit associated with the erase operation, wherein the erase credit includes a corresponding erase credit associated with each of the erase pulse segments; determine an erase degree of the portion of the memory cell array based on the erase credit; and complete the erase operation in response to determining that the erase degree has reached a predetermined threshold.
[0009] Another embodiment of the present application provides a machine-readable storage medium storing instructions, which, when executed on at least one processing device, causes the at least one processing device to at least: perform an erase or program operation for a memory, the erase or program operation using pulse segments; determine credits associated with the erase or program operation, wherein the credits include corresponding credits associated with each of the pulse segments; determine an extent of erase or programming of the memory based on the credits; and complete the erase or program operation in response to determining that the extent of erase or programming has reached a predetermined threshold. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements.
[0011] Figure 1 An example computing system with an erase credit component is shown according to some embodiments of the present invention.
[0012] Figure 2 An example of a host device accessing data stored in a memory device according to one embodiment is shown.
[0013] Figure 3 An exemplary flow chart illustrating a process of performing an erase operation for a memory device is shown according to one embodiment.
[0014] Figure 4 An exemplary graph illustrating latency of erase and read operations in a memory device is shown according to one embodiment.
[0015] Figure 5 A method for monitoring progress when erasing memory according to one embodiment is shown.
[0016] Figure 6 A host system accessing data stored in non-volatile memory is shown according to one embodiment.
[0017] Figure 7 is a block diagram of an example computer system in which embodiments of the present invention may operate. DETAILED DESCRIPTION
[0018] At least some embodiments herein relate to monitoring progress during an erase or program operation for a memory device. In one embodiment, an erase credit counter is used to determine the degree of erase progress so that the erase operation continues to progress during a very large number of reads (e.g., a large number of read requests sent from a host device in a relatively short period of time).
[0019] In existing flash memory systems, the erase operation is suspended to service a read request. Specifically, when this method is used, the verify and erase pulses are interrupted. The verify and erase pulses are then repeated after resuming the erase operation. However, in the case of frequent interruptions, the erase will be performed significantly slower than required. Therefore, all incoming read requests may be affected by this interruption overhead. In more serious cases, the erase operation cannot operate efficiently and cause reliability issues.
[0020] In the case of existing managed NAND systems, in order to ensure low read latency (e.g., to meet quality of service requirements), program and erase operations are suspended. For example, in existing implementations, the NAND system suspends an ongoing sub-operation (e.g., pulse or verify) to handle an interruption caused by a read request. Upon resumption, the interrupted operation is immediately resumed at the previously defined entry point associated with the interruption. When resuming, a verify operation is first performed to check the validity of the interrupted program / erase pulse. Typically, the duplication generated by such suspended operations causes technical problems that adversely affect the overall efficiency of the NAND system (e.g., increased latency due to the suspended operations). In more severe cases, this duplication can lead to memory system timeouts, performance degradation, and adverse effects on system reliability.
[0021] In some cases, masking the interrupt to allow the current sub-operation to complete is applicable to the programming operation (which is done to ensure progress of the memory system operation algorithm). However, this masking method cannot match the latency requirements of the erase operation (for example, the erase pulse requires too much time to fully perform the erase of the memory block).
[0022] In one example of an existing managed NAND system, erasure of memory is completed in two main stages. These stages are an erase pulse and a verify operation. An erase pulse is applied to the memory, and then a verify operation is performed to determine whether the memory is sufficiently erased. A large number of interruptions caused by read requests interfere with the aforementioned two-stage process. Specifically, when erasing is resumed, erasing does not restart from the erase pulse. In fact, in existing systems, the process always restarts from the verify operation. This creates a technical problem of adding significant latency to the erase operation. For example, if erasing is resumed, and then paused immediately after the resume, then the erase will not progress forward because the same verify operation is repeated at each restart. These existing systems must restart with a verify operation because the system cannot otherwise determine the extent of progress in erasing the memory.
[0023] Various embodiments of the present invention provide technical solutions for one or more of the above-mentioned technical problems. For example, in one embodiment, the memory system actually slices the erase pulse (for example, by adding one or more break points due to a read request) and uses a credit system to track the erase effectiveness. In one example, a credit mechanism for erasing NAND-type flash memory is implemented to monitor the degree of erase by using a counter to track the erase pulse segments used in the erase operation. One benefit of the foregoing is that erase progress can be ensured even when there is a very large number of pauses (for example, a large number of read requests received from the host system in a short period of time).
[0024] As used herein, a "pulse segment" is a time period during which an erase or program voltage is applied for erasure or programming of a memory. In one example, an erase pulse segment is a time period during which an erase voltage is applied for erasure of a memory. In one example, the erase voltage used for an erase pulse segment is achieved after ramping the erase voltage from an initial voltage (e.g., such as a voltage used on a bus or line of a memory chip during a read operation) to a final maximum voltage (e.g., a maximum design or operating voltage for erasing a block or sub-block of memory cells). In one example, an erase pulse segment uses an erase voltage of 16 volts for a time period of T microseconds ("T" is an arbitrary time value for a particular design variation).
[0025] As used herein, "ramp" is the ramping of an erase or program voltage from an initial voltage to a final operating voltage for a particular erase or program operation to be performed over a time period (e.g., the erase voltage may be increased before an initial erase pulse segment in a set of erase pulse segments, or decreased after a final erase pulse segment in a set of erase pulse segments) (e.g., ramping to increase the voltage from 0V to a maximum voltage used to erase a memory sub-block). For example, in an erase operation, a ramp is used to increase the erase voltage of a bus or line of a memory device from an initial voltage to a final operating voltage before one or more erase pulse segments are used to erase, for example, one or more memory cells or one or more sub-blocks of a memory array. In one example, ramping is used to increase the voltage of the bus or line from 0V to 16V over a time period of T microseconds.
[0026] In one embodiment, a method includes: performing an erase operation to erase a memory; monitoring erase pulse segments used in the erase operation; determining erase credits associated with the erase operation, wherein the erase credits include a corresponding erase credit associated with each of the erase pulse segments; determining an erase extent of the memory based on the erase credits; and completing the erase operation in response to determining that the erase extent has reached a predetermined threshold.
[0027] In one example, a sub-block of memory typically requires an erase pulse of 10T microseconds in the absence of an interruption. During an erase operation, due to a read request interruption, ten erase pulse segments, each having a time period of T microseconds, are used to erase the memory. For example, each erase pulse segment is used starting from the interruption point caused by a read request from the host system. During the erase operation, a counter maintains an ongoing total of erase credits associated with each erase pulse segment. In this example, each of the erase pulse segments is assigned a weight of 100 based on the time period of the segment. When the counter reaches a predetermined threshold of a total of 1,000 erase credits (e.g., which corresponds to a 10T microsecond normal erase pulse), the memory system then determines that the memory is completely erased. In other examples, the time period associated with each pulse segment may vary. In this case, the weight of the corresponding erase credit will vary. For example, an erase pulse segment with a time period of 2T microseconds is assigned a weight of 200.
[0028] In the foregoing example, each erase pulse segment has an equal erase voltage. In other cases, the voltage of each erase pulse segment may vary. The weight assigned to the erase credit for this erase pulse segment may be based on the time period of the erase pulse segment and its voltage.
[0029] In one example, the erase credit counter reaches a predetermined threshold corresponding to complete erasure of the memory. In response to reaching this threshold, the erase operation is complete. In one example, the erase operation is complete by terminating any additional erase pulse segments. In one example, the erase operation is complete by performing a verify operation to confirm sufficient or complete erasure of the memory. In one example, after the verify operation confirms sufficient or complete erasure, the memory device sends a signal to the host system indicating that the memory has completed the erase operation.
[0030] In one embodiment, the predetermined threshold may vary for each of several memory types in a memory device. For example, a dedicated latch of the memory device may be used to allow the credit threshold to be adjusted independently for each memory type. Additionally, the erase credit weight or ramp assigned to the erase pulse segment may vary based on the memory type of the memory being erased. In one example, the credit threshold and / or credit weight corresponds to the silicon or other semiconductor characteristics of the memory device. In one example, the credit threshold and / or credit weight is determined empirically and then programmed into the memory device.
[0031] In one embodiment, the erase credits tracked by the counter described above may further include erase credits associated with one or more ramps used in the erase operation. For example, a ramp from 0V to 16V over a time period of T microseconds may be assigned a weight of 50 erase credits. It should be noted that in this example, the erase credit associated with the ramp is typically less than the erase credit associated with a pulse segment of the same duration. This reflects that the erase of the memory typically occurs to a lesser extent at a ramp voltage that is lower than the full operational erase voltage.
[0032] In one embodiment, the erase credit weight assigned to a ramp can be based on the time period of the ramp and the voltage profile of the ramp. For example, a ramp with a lower final voltage will have a lower erase credit weight.
[0033] In some cases, if the ramp used in the erase operation is interrupted before the final erase voltage is reached, the ramp may have no erase effect, causing the erase credit to be zero. Therefore, the erase progress cannot be ensured. However, according to the present invention, the aforementioned problem can be overcome by disabling the interruption of the erase operation based on counting the number of ramps that have been interrupted by the pause request.
[0034] In one embodiment, the number of ramps that have been interrupted by a suspend request is tracked by a counter. In response to determining that the number of interrupted ramps has reached a threshold, interruption of the erase operation by any subsequent suspend request may be disabled until the erase operation is completed.
[0035] In one example, one read latency is periodically sacrificed to ensure ramping is complete so that erase progress is made. For example, if the ramp is longer than the maximum suspend latency requirement of the memory device, further suspend requests may be disabled based on the number of interrupted ramps that have occurred during the current erase operation.
[0036] In one embodiment, the erase credit is used to delay any suspension request until at least a minimum predetermined degree of erasure is achieved. In one example, suspension of the erase operation is disabled or delayed until at least a predetermined erase credit total value has been achieved. After reaching the predetermined erase credit total, the erase operation is then interrupted and the read request is serviced by performing a read operation.
[0037] Various embodiments are described herein with respect to erase operations. However, credits associated with programming operations in a memory device may be determined and used in a manner similar to that used for erase operations. In one embodiment, a method includes: performing a programming operation for a memory, the programming operation using pulse segments; determining credits associated with the programming operation, wherein the credits include a respective credit associated with each of the pulse segments; determining a programming degree of the memory based on the credits; and completing the programming operation in response to determining that the programming degree has reached a predetermined threshold.
[0038] Figure 1 An example computing system with an erase credit component 107 according to some embodiments of the present invention is shown. The erase credit component 107 can be implemented in various computing systems. In one example system, a processing device (e.g., a system on a chip (SOC), an FPGA, a CPU, or a GPU) stores and / or accesses data stored in a non-volatile memory device (e.g., a device using NAND flash memory or cross-point memory (e.g., 3DXP memory), or an SSD).
[0039] The host system 101 communicates with the memory system 105 via the bus 103. The processing device 111 of the memory system 105 has read and write access to the memory areas 111, 113, ..., 119 of the non-volatile memory 123. In one example, the host system 101 reads data from the non-volatile memory 123 and writes data to the non-volatile memory 123.
[0040] In one example, processing device 111 and memory areas 111, 113, ..., 119 are on the same chip or die. In some embodiments, memory areas store data used by host system 101 and / or processing device 111 during processing for machine learning, and / or store other data generated by software processes executed on host system 101 or on processing device 111.
[0041] The computing system includes an erase credit component 107 in the memory system 105 that tracks erase credits to monitor the progress of erase operations associated with one or more memory regions of the memory system 105. The computing system may further include an erase credit component 107 in the host system 120 that coordinates with the erase credit component 107 in the memory system 105 to at least facilitate the tracking of erase credits. In various embodiments, the erase credit component 107 determines whether one or more memory regions of the non-volatile memory 123 are sufficiently erased based on an ongoing total of erase credits stored in, for example, a counter (not shown).
[0042] In one embodiment, the memory system 105 receives a read request to access data stored in the non-volatile memory 123. In response to receiving the request, the memory system 105 accesses the data stored in one or more of the memory areas. The memory system 105 provides the data in response to the read request to access the data. In one example, the request to access the data is received from the host system 101 via the bus 103.
[0043] In some embodiments, the non-volatile memory 123 is used to store data in response to a write command received on the bus 123 from a processing device (not shown) of the host system 101 .
[0044] In some embodiments, processing device 111 includes at least a portion of erase credit component 107. In other embodiments, or in combination, processing device 111 and / or a processing device in host system 101 includes at least a portion of erase credit component 107. For example, processing device 111 and / or a processing device of host system 101 may include logic circuitry that implements certain portions of erase credit component 107. For example, a controller or processing device (processor) of host system 101 may be configured to execute instructions stored in a memory for performing the operations of certain steps of erase credit component 107 described herein.
[0045] In some embodiments, erase credit component 107 is implemented in an integrated circuit chip disposed in memory system 105. In other embodiments, the portion of erase credit component 107 in host system 120 may be part of the host system's 120 operating system, device driver, or application.
[0046] An example of a memory system 105 is a memory module connected to a central processing unit (CPU) via a memory bus. Examples of memory modules include non-volatile dual in-line memory modules (NVDIMMs), etc. In some embodiments, the memory system can be a hybrid memory / storage system that provides both memory functions and storage functions. In general, a host system can use a memory system that includes one or more memory areas. The host system can provide data to be stored at the memory system and can request to retrieve data from the memory system. In one example, the host can access various types of memory including volatile and non-volatile memory.
[0047] The host system 101 may be a computing device, such as a controller in a vehicle, a network server, a mobile device, a cellular phone, an embedded system (e.g., an embedded system with a system on a chip (SOC) and internal or external memory), or any computing device that includes a memory and a processing device. The host system 101 may include or be coupled to a memory system 105, so that the host system 101 can read data from the memory system 105 or write data to the memory system 105. The host system 101 may be coupled to the memory system 105 via a physical host interface. As used herein, "coupled to" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without an intermediate component), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc. Examples of physical host interfaces include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, Fibre Channel, Serial Attached SCSI (SAS), a Double Data Rate (DDR) memory bus, etc. The physical host interface may be used to transfer data between the host system 101 and the memory system 105. The physical host interface may provide an interface for passing control, address, data, and other signals between the memory system 105 and the host system 101. Figure 1 Memory system 105 is illustrated as an example. In general, host system 101 can access multiple memory systems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0048] The host system 101 may include a processing device and a controller (not shown). The processing device of the host system 101 may be, for example, a microprocessor, a central processing unit (CPU), a processing core of a processor, an execution unit, etc. In some cases, the controller of the host system may be referred to as a memory controller, a memory management unit, and / or an initiator. In one example, the controller controls the communication on the bus 103 between the host system 101 and the memory system 105.
[0049] The controller of the host system 101 may communicate with the controller of the memory system 105 to perform operations such as reading data, writing data, or erasing data at a memory area of the non-volatile memory 123. In some cases, the controller is integrated into the same package of the processing device 111. In other examples, the controller is separate from the package of the processing device 111. The controller and / or the processing device may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, cache memory, or a combination thereof. The controller and / or the processing device may be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.
[0050] In one embodiment, memory regions 111, 113, ..., 119 may include any combination of different types of non-volatile memory components. In some embodiments, memory regions may be, but are not limited to, NAND flash memory or cross-point memory. In some embodiments, non-volatile memory may include flash memory, ferroelectric RAM, and computer storage devices (e.g., hard disk drives and solid-state drives). In addition, memory cells of a memory region may be grouped into memory pages or data blocks, which may refer to units used to store data.
[0051] In one embodiment, using the erase credit component 107, one or more controllers of the memory system 105 can communicate with the memory areas 111, 113, ..., 119 to perform operations related to erasing data. Each controller may include hardware such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. Each controller may be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.), or another suitable processor. The controller may include a processing device (processor) configured to execute instructions stored in a local memory. In one example, the local memory of the controller includes an embedded memory configured to store instructions for executing various processing programs, operations, logic flows, and routines for controlling the operation of the memory system 105 (including controlling the communication between the memory system 105 and the host system 101). In some embodiments, the local memory may include memory registers that store memory pointers, extracted data, etc. The local memory may also include a read-only memory (ROM) for storing microcode.
[0052] In general, the controller of the memory system 105 may receive commands or operations from the host system 101 and / or the processing device 111 and may convert the commands or operations into instructions or appropriate commands to achieve data transfer for the identified memory area. The controller may also be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical block addresses and physical block addresses associated with the memory area. The controller may additionally include host interface circuitry to communicate with the host system 101 via a physical host interface. The host interface circuitry may convert commands received from the host system into command instructions to access one or more of the memory areas, and convert responses associated with the memory areas into information for the host system 101.
[0053] The memory system 105 may also include additional circuits or components not illustrated. In some embodiments, the memory system 105 may include a cache memory or buffer (e.g., DRAM or SRAM) and address circuits (e.g., row decoders and column decoders) that may receive addresses from one or more controllers and decode the addresses to access memory regions.
[0054] In some embodiments, a controller and / or processing device 111 in host system 101 or memory system 105 includes at least a portion of erase credit component 107. For example, controller and / or processing device 111 may include logic circuitry that implements a portion of erase credit component 107. For example, a processing device (processor) may be configured to execute instructions stored in a memory for performing operations that provide read / write access to a memory area for erase credit component 107, as described herein. In some embodiments, erase credit component 107 is part of an operating system, a device driver, or an application.
[0055] Figure 2 An example of a host device 250 accessing data stored in a memory device 252 according to one embodiment is shown. The host device 250 may write data for storage to the memory device 252, and read data from the memory device 252 (e.g., using one or more read requests sent via a communication interface). Each of the host device 250 and the memory device 252 may include a number of receiver or driver circuits configured to send or receive signals through the communication interface. In one example, the memory device 252 is a universal flash storage (UFS) device or an embedded MMC (eMMC) device.
[0056] In one example, the memory device 252 receives control signals from the host device 250 over a control link at the controller 254. The control signals may include chip enable CE#, command latch enable CLE, address latch enable ALE, write enable WE#, read enable RE#, and write protect WP#. Additional or alternative control signals may be received over the control link further depending on the nature of the memory device 252. The memory device 252 receives command signals (representing commands), address signals (representing addresses), and data signals (representing data) from the host device 250, for example, on a multiplexed input / output (I / O) bus.
[0057] Memory device 252 includes a memory cell array 258. Memory cells of at least a portion of memory cell array 258 are capable of being programmed to one of at least two data states. In one example, memory cell array 258 is a NAND flash memory array. The memory cells of array 258 may be arranged into blocks (memory cell blocks). Each block may include sub-blocks.
[0058] In some embodiments, the memory cells of array 258 may have mixed memory cell types integrated in the same integrated circuit (IC) chip. In one example, the memory cells may include floating gate memory cells, charge trapping memory cells, or other types of non-volatile memory cells. In one example, the memory cells may include ferroelectric memory cells, phase change memory cells, resistive memory cells, conductive bridge memory cells, and spin transfer torque magnetic random access memory (STT-MRAM) cells, or other types of non-volatile memory cells.
[0059] The memory device 252 includes a controller 254 that controls access to the memory cell array 258 in response to commands (e.g., commands received from the host device 250). The controller 254 may generally receive commands or operations from the host device 250, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the various memory components of the memory device 252. For example, the controller 254 may communicate with the memory cell array 258 to perform operations such as reading data, writing data, or erasing data and other such operations (e.g., in response to commands dispatched on a command bus). In one example, the controller 254 generates state information for a processor of the host device 250. In one example, the controller 254 is configured to perform access operations, including read operations, program operations, and / or erase operations.
[0060] In one example, during a programming operation (eg, a write operation), data is passed for transfer to the memory cell array 258. During a read operation, data is passed for output to the host device 250.
[0061] In one embodiment, the controller 254 controls an erase operation to erase at least a portion of the memory cell array 258. The controller 254 monitors the erase pulse segments used in the erase operation. In one example, these erase pulse segments are applied to sub-blocks in the array 258. As each erase pulse segment is applied, the controller 254 determines an erase credit associated with the erase pulse segment. The value of this erase credit is stored in one of the counters 256. As each erase pulse segment is applied, the counter 256 increases the erase credit for that particular segment.
[0062] As the erase operation progresses, the controller 254 determines the extent of erase of the memory cells based on the erase credit total retrieved from the counter 256. When the controller 254 determines that the extent of erase has reached a predetermined threshold, the erase operation is complete. In one embodiment, the predetermined threshold is a predetermined erase credit total. In one example, the predetermined erase credit total corresponds to a complete erase of the memory. In one example, the predetermined erase credit total is determined based on a characterization of one or more physical IC chips containing the memory device 252.
[0063] Figure 3 An exemplary flow chart of a process for performing an erase operation for a memory device according to an embodiment of the present invention is shown. In one example, the memory device is Figure 2 Memory device 252. Although erase operations are now discussed below for purposes of illustration, similar processes may be used for programming operations.
[0064] An erase operation to erase one or more sub-blocks of memory begins at block 301. At block 303, a controller (e.g., controller 254) determines whether a suspend request has been received. If so, the erase operation is suspended while performing a read operation at block 305. After the read operation is completed, the erase operation is resumed.
[0065] Next, at block 307, the erase status of the current sub-block is verified. If verified at block 309, the controller determines at block 311 whether this is the last sub-block to be erased. If so, the erase operation ends at block 313. Otherwise, the erase operation proceeds to the next sub-block.
[0066] If the verification of the current sub-block fails, the controller determines whether a suspend request has been received at block 315. If so, the erase operation is suspended at block 317 while the read operation is being performed.
[0067] Next, at block 319, a ramp is performed. The controller determines the erase credits corresponding to the ramp and increases the ongoing erase credit total.
[0068] At block 321, the controller determines whether the credit threshold has been reached. If so, then at block 327, the erase operation for the current sub-block is terminated. The erase credit total is reset to zero in preparation for erasing the next sub-block. For example, counter 256 is reset to zero. In one embodiment, a verify operation is performed to confirm that the sub-block has been fully erased. If not, then erasing is resumed for the sub-block.
[0069] In some embodiments, two or more counters 256 are used, with each counter corresponding to a different memory type.At block 327, the counter 256 corresponding to the memory type of the sub-block that has just been erased is reset.
[0070] At block 323, if the credit threshold has not been reached, the controller determines whether a suspend request has been received. If so, at block 329, the current erase pulse or pulse segment is stopped. Then at block 317, a read operation is performed.
[0071] At block 323, if a suspend request is not received, then at block 325 an erase pulse segment is applied to the memory. The controller determines an erase credit corresponding to the erase pulse segment. The erase credit is added to the ongoing erase credit total. After applying the erase pulse segment, at block 321 the controller determines whether a credit threshold has been reached. If so, further erase pulses are stopped for the sub-block just erased at block 327.
[0072] Next, at block 303, the controller determines whether a suspend request has been received. If not, then at block 307, the erase status of the sub-block just erased is verified. At block 309, if verified, the erase operation continues for any remaining sub-blocks.
[0073] Figure 4 An exemplary graph illustrating the delay of erase and read operations in a memory device according to one embodiment is shown. More specifically, the delay characteristics of the erase operation (erase old) of the prior art method are compared with the delay characteristics of the erase operation (erase new) of the method of the present invention. Also, the delay characteristics of the read operation (read old) of the prior art method are compared with the delay characteristics of the read operation (read new) of the method of the present invention.
[0074] As illustrated, the latency of a read or erase operation is presented on the vertical axis and the number of interruptions is presented on the horizontal axis. In the simple case of no interruptions to an erase operation, the erase latency is the same in the old and new methods.
[0075] In the old method, as the number of interruptions increases, the progress of erasing is hindered because the erasing operation is interrupted to an increasing extent. Therefore, as the number of interruptions increases, the delay of the erasing operation in the old method increases continuously. As mentioned above, in severe cases, as the number of interruptions increases to a large number, the subsequent erasing operation may fail.
[0076] As explained, the latency of the read operation in the old method remains constant as the number of interruptions increases. This constant latency reflects the time required to perform the read operation plus the time the erase operation needs to enter the suspended mode.
[0077] In the new method, the erase progress in the erase operation is ensured so that the memory is completely erased to the point 405. Therefore, the additional portion of the interruption after reaching the point 405 does not increase the latency of the erase operation (the memory has completed the erase operation and no further erase is performed).
[0078] In the new method, the read latency is greater than the old method by an amount 401. This reflects that the additional read latency is tolerated in the new method so that erase progress can be ensured as described above. However, when the memory is fully erased (corresponding to point 405 as discussed above), the read latency is less than the old method by an amount 403 at point 407. This reflects that no further latency overhead is needed to ensure erase progress because the memory is already fully erased. For example, using the new method, the memory system will generally be busy for a reduced time compared to the old method, so the power consumption of the system will be less.
[0079] Figure 5 A method for monitoring progress when erasing memory according to one embodiment is shown. For example, Figure 5 The method can be implemented in Figure 1 and 2 in the system.
[0080] Figure 5 The method may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof.
[0081] In some embodiments, Figure 5 The method is at least partially performed by one or more processing devices (e.g., Figure 1 The processing device 111 or Figure 2 In some embodiments, the method is performed by the system using Figure 7 The invention is implemented by a processing device and a memory.
[0082] Although shown in a particular order or sequence, the order of the processing procedures may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in a different order, 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 required in every embodiment. Other process flows are also possible.
[0083] At block 501, an erase operation is performed to erase a memory. In one example, the memory is Figure 2 at least a portion of memory cell array 258.
[0084] At block 503, the erase pulse segments used in the erase operation are monitored. In one example, Figure 2 The controller 254 monitors the erase pulse segment. In one example, the erase pulse segment includes Figure 3 The pulse segment at box 325 of .
[0085] At block 505, erase credits associated with the erase operation are determined. The erase credits include a corresponding erase credit associated with each of the erase pulse segments. In one example, the controller 254 uses Figure 2 One or more counters 256 maintain an ongoing erase credit total.
[0086] At block 507, the erase degree of the memory is determined based on the erase credits. In one example, the erase degree is determined based on the erase credit total stored in one of the counters 256.
[0087] At block 509, in response to determining that the extent of erasure has reached a predetermined threshold, the erasure operation is completed. In one example, the predetermined threshold is Figure 3 The credit threshold at box 321 in FIG. If the credit threshold is reached, any further erase pulse segments are stopped.
[0088] In one embodiment, a method includes: performing an erase operation to erase a memory (e.g., memory cell array 258); monitoring erase pulse segments used in the erase operation; determining erase credits associated with the erase operation, wherein the erase credits include a corresponding erase credit associated with each of the erase pulse segments; determining an erase degree of the memory based on the erase credits; and completing the erase operation in response to determining that the erase degree has reached a predetermined threshold (e.g., controller 254 compares the credit total in counter 256 to a predetermined credit threshold).
[0089] In one embodiment, determining the extent of erasure includes: determining a total of erase credits; and comparing the total to a predetermined threshold.
[0090] In one embodiment, the memory is one or more sub-blocks of a memory array (eg, memory cell array 258).
[0091] In one embodiment, each respective erase credit is based on a time period of a corresponding erase pulse segment.
[0092] In one embodiment, each respective erase credit is further based on an erase voltage associated with a corresponding erase pulse segment.
[0093] In one embodiment, the erase operation further uses one or more ramps (e.g., Figure 3 The method further includes determining a corresponding erase credit associated with each of the ramps.
[0094] In one embodiment, the erase credits associated with an erase operation further include each of the erase credits associated with a ramp.
[0095] In one embodiment, the method further comprises: counting the number of ramps that have been interrupted by the suspend request; and in response to determining that the number of interrupted ramps has reached a threshold, disabling further interruption of the erase operation by any subsequent suspend request until the erase operation is completed.
[0096] In one embodiment, the method further includes: during an erase operation, storing a total number of erase credits using a counter (e.g., counter 256); in response to receiving a pause request, pausing the erase operation and performing a read operation; and after completing the read operation, determining whether to resume the erase operation based on the stored total number of erase credits.
[0097] In one embodiment, the method further includes, in response to determining to resume the erase operation, resuming the erase operation without performing a verify operation to determine an erase state of the memory.
[0098] In one embodiment, the method further includes resetting the counter after completing the erase operation to prepare for a subsequent erase operation.
[0099] In one embodiment, the weight for each respective erase credit increases as the time period for the corresponding erase pulse segment increases.
[0100] In one embodiment, completing the erase operation includes performing a verify operation to determine whether the memory has been erased.
[0101] In one embodiment, the method further includes using at least one additional ramp or erase pulse segment in the erase operation in response to determining based on the verify operation that the memory has not been erased.
[0102] In one embodiment, the method further includes: after determining the erase extent of the memory, determining whether a suspend request has been received; in response to determining that the suspend request has been received, suspending the erase operation and performing a read operation; and after completing the read operation, resuming the erase operation.
[0103] In one embodiment, a system includes: a memory cell array configured to store data for a memory device; at least one processing device; and a memory containing instructions configured to instruct the at least one processing device to: perform an erase operation to erase at least a portion of the memory cell array, the erase operation using erase pulse segments; determine erase credits associated with the erase operation, wherein the erase credits include a corresponding erase credit associated with each of the erase pulse segments; determine an erase degree of the portion of the memory cell array based on the erase credits; and complete the erase operation in response to determining that the erase degree has reached a predetermined threshold.
[0104] In one embodiment, the system further includes a counter configured to store a total number of erase credits associated with the erase operation.
[0105] In one embodiment, the instructions are further configured to instruct the at least one processing device to: in response to a read request from a host device requesting data stored in a memory device, suspend an erase operation to provide an interruption point for performing the read operation; determine a total number of erase credits stored in a counter after the read operation is completed; and determine whether to resume the erase operation based on the stored total number of erase credits.
[0106] In one embodiment, the memory device is a NAND-type flash memory device and the at least one processing device includes a controller configured to receive a read request from a host device.
[0107] In one embodiment, a non-transitory computer storage medium stores instructions that, when executed on at least one processing device, cause the at least one processing device to at least: perform an erase or program operation for a memory, the erase or program operation using pulse segments; determine credits associated with the erase or program operation, wherein the credits include a respective credit associated with each of the pulse segments; determine an extent of erase or programming of the memory based on the credits; and in response to determining that the extent of erase or programming has reached a predetermined threshold, complete the erase or program operation.
[0108] Figure 6A host system 101 is shown accessing data stored in a non-volatile memory 225 according to one embodiment. In one example, a processing device 217 receives read and write commands from the host system 101 via a bus 103. A read command may be sent, for example, by a processing device 207 of the host system 101. In response to the read command, data is selected for providing as output data. The communication interface 211 provides the selected data to the bus 103. The processing device 207 copies the selected data to a volatile memory 209 of the host system 101. In one example, the volatile memory 209 is a dynamic random access memory (DRAM). In one example, the volatile memory 209 is a system memory for the processing device 207.
[0109] In one embodiment, the accessed data is loaded into cache memory 215 from each of memory areas 201, 203, and 205. In some cases, the data entry is accompanied by a code. In one example, the code is a hash of the data entry.
[0110] In some embodiments, the processing device 217 and / or the processing device 207 identifies one or more memory partitions 219 to be used to service read requests for stored data. Any ongoing erase operations may be suspended to service read requests using the erase credit component 107 discussed above. In one embodiment, a read command is received from the host system 101. The read command is associated with a logical address. The processing device 217 determines the physical address within the memory area 201, 203, 205 that corresponds to the logical address. Data from these physical addresses is sequentially loaded into the cache memory 215 as the data is sequentially read from the non-volatile memory 225 and provided to the host system 101.
[0111] In one embodiment, a data portion may be read from each of the memory regions. In one example, the data portion corresponds to a data block or page.
[0112] In one example, the volatile memory 209 includes DRAM and / or SRAM. In one example, the processing device 217 is a state machine that receives a read command (eg, a read command to read a block or page of data).
[0113] In one embodiment, a signal sent by processing device 207 to processing device 217 initiates data transfer by processing device 217. The signal may be sent in response to various events determined by processing device 207. For example, a machine learning model may provide results to processing device 207. The signal may be sent in response to the results.
[0114] In one embodiment, the machine learning model receives input based on data received from various computing systems. In one example, the data is sensor data received from a vehicle system of an autonomous vehicle.
[0115] The output from the machine learning model may be used by processing device 207 as a basis for initiating a data transfer (eg, in response to a read command) by processing device 217. In one example, non-volatile memory 225 is flash memory or a solid state drive (SSD).
[0116] In one embodiment, system memory used by processing device 207 resides in volatile memory 209. Processing device 207 may initiate a data transfer process in response to various events (eg, detecting a loss of power to memory or other components of the computing system).
[0117] In one embodiment, a host system (e.g., host system 101) may collect data from sensors of an embedded system. For example, sensors may be located on an autonomous vehicle and collect image data for navigation of the vehicle. In one embodiment, the sensor data is input to a machine learning model (e.g., a neural network) and the output is used to control the vehicle. In one embodiment, processing associated with the neural network is performed by processing device 207 alone or in conjunction with a processing device of the host system.
[0118] In one embodiment, a neural network is trained or operated using processing device 207. During training or other operation of the neural network, data is read from and written to volatile memory 209 and / or non-volatile memory 225.
[0119] In one embodiment, the controller for accessing the non-volatile memory 225 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The controller may be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor. The controller may include one or more processors (processing devices) configured to execute instructions stored in a local memory.
[0120] The local memory of the controller may include embedded memory configured to store instructions for executing various processing programs, operations, logic flows, and routines that control aspects of the operation of the memory system. The local memory of the controller may include read-only memory (ROM) for storing microcode and / or memory registers that store, for example, memory pointers, fetched data, etc.
[0121] Figure 72 is a block diagram of an example computer system 200 in which embodiments of the present invention may operate. In one embodiment, a set of instructions for causing a machine to perform any one or more of the methodologies discussed herein may be executed in the computer system 200. In some embodiments, the computer system 200 may correspond to a memory system or a host system that includes, is coupled to, or utilizes a memory system (e.g., Figure 1 Memory system 105) or can be used to perform operations of erase credit component 107 (e.g., execute instructions to perform operations corresponding to reference Figure 1-6 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a peer-to-peer (or distributed) network environment, or in the capacity of a server or a client machine in a client-server network environment.
[0122] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. In addition, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform any one or more of the methodologies discussed herein.
[0123] The example computer system 200 includes a processing device 202, a main memory 204 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), static random access memory (SRAM), etc.), and a data storage system 218, which communicate with each other via a bus 230 (which may include multiple buses).
[0124] The processing device 202 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, and the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 202 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, and the like. The processing device 202 is configured to execute instructions 226 for performing the operations and steps discussed herein. The computer system 200 may further include a network interface device 208 to communicate over a network 220.
[0125] The data storage system 218 may include a machine-readable storage medium 224 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 226 or software embodying any one or more of the methods or functions described herein. The instructions 226 may also reside, in whole or in part, within the main memory 204 and / or within the processing device 202 during execution by the computer system 200, with the main memory 204 and the processing device 202 also constituting machine-readable storage media. The machine-readable storage medium 224, the data storage system 218, and / or the main memory 204 may correspond to Figure 1 Memory system 105.
[0126] In one embodiment, instructions 226 include implementing instructions corresponding to erasing credit component 107 (e.g., reference Figure 1-6 The term "machine-readable storage medium" should also be considered to include any medium that is capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present invention. Thus, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.
[0127] Conclusion
[0128] The present invention includes various devices for performing the above methods and implementing the above systems, including data processing systems for performing these methods, and computer-readable media containing instructions that, when executed on a data processing system, cause the system to perform these methods.
[0129] The description and drawings are illustrative and should not be construed as limiting. Many specific details are described to provide a thorough understanding. However, in some cases, well-known or conventional details are not described to avoid obscuring the description. References to one or an embodiment in the present invention do not necessarily refer to the same embodiment; and such references mean at least one.
[0130] References in this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention. The appearance of the phrase "in one embodiment" in various places in this specification does not necessarily refer to all of the same embodiment, nor does it necessarily refer to separate or alternative embodiments that are mutually exclusive of other embodiments. In addition, various features are described that may be exhibited by some embodiments but not by other embodiments. Similarly, various requirements are described that may be requirements of some embodiments but not others.
[0131] As used herein, “coupled to” generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intermediate components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0132] In this description, various functions and operations may be described as being performed by or caused by software code to simplify the description. However, those skilled in the art will recognize that such expressions mean that the functions are caused by the execution of code by one or more processors, such as microprocessors, application specific integrated circuits (ASICs), graphics processors, and / or field programmable gate arrays (FPGAs). Alternatively, or in combination, the functions and operations may be implemented using dedicated circuits (e.g., logic circuits) with or without software instructions. Embodiments may be implemented using fixed-wire circuits without software instructions or in combination with software instructions. Therefore, the technology is neither limited to any specific combination of hardware circuits and software, nor to any specific source of instructions executed by a computing device.
[0133] While some embodiments may be implemented on fully functional computers and computer systems, various embodiments are capable of being distributed in various forms of computing products and are applicable regardless of the particular type of machine or computer readable media actually used to implement the distribution.
[0134] At least some aspects disclosed may be embodied at least in part in software. That is, the techniques may be performed in a computing device or other system in response to its processor (e.g., a microprocessor) executing sequences of instructions contained in a memory (e.g., ROM, volatile RAM, nonvolatile memory, cache, or remote storage device).
[0135] The routines executed to implement the embodiments may be implemented as part of an operating system, middleware, business delivery platform, software development kit (SDK) component, network service, or other specific application, component, program, object, module, or sequence of instructions referred to as a "computer program". The calling interface of these routines may be exposed to the software development community as an application programming interface (API). A computer program typically includes one or more instruction sets at various times in various memories and storage devices in a computer, and the instruction sets, when read and executed by one or more processors in a computer, cause the computer to perform the operations necessary to perform the elements involved in various aspects.
[0136] Machine-readable media can be used to store software and data that, when executed by a computing device, causes the device to perform various methods. Executable software and data can be stored in various locations including, for example, ROM, volatile RAM, nonvolatile memory, and / or cache memory. Portions of this software and / or data can be stored in any of these storage devices. In addition, data and instructions can be obtained from a centralized server or a peer-to-peer network. Different portions of data and instructions can be obtained from different centralized servers and / or peer-to-peer networks at different times and in different communication sessions or the same communication session. All data and instructions can be obtained before executing the application. Alternatively, portions of data and instructions can be obtained dynamically and in a timely manner when execution is required. Therefore, it is not required that data and instructions are all on machine-readable media at a specific time.
[0137] Examples of computer-readable media include, but are not limited to, recordable and non-recordable types of media such as volatile and nonvolatile memory devices, read-only memory (ROM), random access memory (RAM), flash memory devices, solid-state drive storage media, removable magnetic disks, magnetic disk storage media, optical storage media (e.g., compact disk read-only memory (CD ROM), digital versatile disk (DVD), etc.), and other media. A computer-readable medium may store instructions.
[0138] Generally speaking, a tangible or non-transitory machine-readable medium includes any mechanism that provides (e.g., stores) information in a form accessible by a machine (e.g., a computer, mobile device, network device, personal digital assistant, manufacturing tool, any device with a set of one or more processors, etc.).
[0139] In various embodiments, hard-wired circuits may be used in combination with software instructions to implement the technology. Thus, the technology is neither limited to any specific combination of hardware circuitry and software nor to any specific source of instructions executed by a computing device.
[0140] Although some of the figures illustrate several operations in a particular order, non-sequence dependent operations may be reordered and other operations may be combined or decomposed. Although some reordering or other groupings are specifically mentioned, other reorderings or groupings are obvious to those skilled in the art, so an exhaustive list of alternatives is not provided. In addition, it should be recognized that the stages may be implemented in hardware, firmware, software, or any combination thereof.
[0141] In the foregoing description, the invention has been described with reference to specific exemplary embodiments of the invention. It will be apparent that various modifications may be made without departing from the broader spirit and scope as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative rather than a restrictive sense.
[0142] Various different types of computing devices may be used to implement the various embodiments described herein. As used herein, examples of "computing devices" include, but are not limited to, servers, centralized computing platforms, systems of multiple computing processors and / or components, mobile devices, user terminals, vehicles, personal communication devices, wearable digital devices, electronic self-service terminals, general-purpose computers, electronic document readers, tablet computers, portable computers, smart phones, digital cameras, residential home equipment, televisions, or digital music players. Additional examples of computing devices include devices that are part of what is referred to as the "Internet of Things (IOT)". Such "things" may occasionally interact with their owners or administrators, who may monitor the things or modify the settings on these things. In some cases, such owners or administrators play the role of users of "thing" devices. In some instances, a user's primary mobile device (e.g., an Apple iPhone) may be a management server for a paired "thing" device (e.g., an Apple watch) worn by a user.
[0143] In some embodiments, the computing device may be a host system, which is implemented, for example, as a desktop computer, a portable computer, a network server, a mobile device, or other computing device that includes a memory and a processing device. The host system may include or be coupled to a memory subsystem so that the host system can read data from the memory subsystem or write data to the memory subsystem. The host system may be coupled to the memory subsystem via a physical host interface.
[0144] Examples of physical host interfaces include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, Fibre Channel, Serial Attached SCSI (SAS), a Double Data Rate (DDR) memory bus, and the like. The physical host interface may be used to transmit data between a host system and a memory subsystem. When a memory subsystem is coupled to a host system through a PCIe interface, the host system may also utilize an NVM Express (NVMe) interface to access memory components of the memory subsystem. The physical host interface may provide an interface for transmitting control, address, data, and other signals between a memory subsystem and a host system. In general, a host system may access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0145] In one embodiment, the host system includes a processing device and a controller. The processing device of the host system may be, for example, a microprocessor, a graphics processing unit, a central processing unit (CPU), an FPGA, a processing core of a processor, an execution unit, etc. In one example, the processing device may be a single package that combines an FPGA and a microprocessor, wherein the microprocessor performs most of the processing but leaves certain predetermined specific tasks to the FPGA block. In one example, the processing device is a soft microprocessor (sometimes also referred to as a soft-core microprocessor or soft processor), which is a microprocessor core implemented using logic synthesis. The soft microprocessor can be implemented via different semiconductor devices containing programmable logic (e.g., ASIC, FPGA, or CPLD).
[0146] In some examples, the controller is a memory controller, a memory management unit, and / or an initiator. In one example, the controller controls communications between a host system and a memory subsystem via a bus.
[0147] In general, the controller may send commands or requests for access to the memory components to the memory subsystem. The controller may further include interface circuitry for communicating with the memory subsystem. The interface circuitry may convert responses received from the memory subsystem into information for the host system. The controller of the host system may communicate with the controller of the memory subsystem to perform operations such as reading data, writing data, or erasing data at the memory components, as well as other such operations.
[0148] In some cases, the controller may be integrated with the processing device in the same package. In other examples, the controller is separate from the packaging of the processing device. The controller and / or the processing device may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, cache memory, or a combination thereof. The controller and / or the processing device may be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.
[0149] The memory components may include any combination of different types of non-volatile memory components and / or volatile memory components. Examples of non-volatile memory components include NAND type flash memory. Each of the memory components may include one or more arrays of memory cells, such as single-level cells (SLC) or multi-level cells (MLC) (e.g., three-level cells (TLC) or four-level cells (QLC)). In some embodiments, a particular memory component may include both an SLC portion and an MLC portion of a memory cell. Each of the memory cells may store one or more data bits (e.g., data blocks) used by a host system. Although a non-volatile memory component such as a NAND type flash memory is described, the memory component may be based on any other type of memory, such as a volatile memory.
[0150] In some embodiments, the memory component may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a phase change memory (PCM), a magnetic random access memory (MRAM), a spin transfer torque (STT)-MRAM, a ferroelectric random access memory (FeTRAM), a ferroelectric RAM (FeRAM), a conductive bridge RAM (CBRAM), a resistive random access memory (RRAM), an oxide-based RRAM (OxRAM), a non-OR (NOR) flash memory, an electrically erasable programmable read-only memory (EEPROM), a nanowire-based nonvolatile memory, a memory incorporating memristor technology, and a cross-point array of nonvolatile memory cells. The cross-point array of nonvolatile memory may be combined with a stackable cross-grid data access array to perform bit storage based on changes in bulk resistance. In addition, in contrast to many flash-based memories, the cross-point nonvolatile memory may perform write-in-place operations, where the nonvolatile memory cells may be programmed without pre-erasing the nonvolatile memory cells. Furthermore, memory cells of a memory component may be grouped into memory pages or data blocks, which may refer to cells of a memory component used to store data.
[0151] The controller of the memory subsystem may communicate with the memory components to perform operations, such as reading data, writing data, or erasing data at the memory components, and other such operations (e.g., in response to commands dispatched by the controller on a command bus). The controller may include a processing device (processor) configured to execute instructions stored in a local memory. The local memory of the controller may include an embedded memory configured to store routines for performing various processes, operations, logic flows, and controlling the operation of the memory subsystem, including instructions for handling communications between the memory subsystem and the host system. In some embodiments, the local memory may include memory registers that store memory pointers, extracted data, etc. The local memory may also include a read-only memory (ROM) for storing microcode. Although the example memory subsystem includes a controller, in another embodiment of the present invention, the memory subsystem may not include a controller and may instead rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).
[0152] In general, the controller may receive commands or operations from the host system and may convert the commands or operations into instructions or suitable commands to achieve the desired access to the memory component. The controller may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address conversion between logical block addresses and physical block addresses associated with memory regions. The controller may additionally include host interface circuitry to communicate with the host system via a physical host interface. The host interface circuitry may convert commands received from the host system into command instructions to access the memory component, and convert responses associated with the memory component into information for the host system.
[0153] The memory subsystem may also include additional circuits or components not illustrated. In some embodiments, the memory subsystem may include a cache memory or buffer (e.g., DRAM or SRAM) and address circuits (e.g., row decoders and column decoders) that may receive addresses from a controller and decode the addresses to access memory components.
Claims
1. A method comprising: performing an erase operation to erase the memory; monitoring an erase pulse segment used in the erase operation; determining erase credits associated with the erase operation, wherein the erase credits include respective erase credits associated with each of the erase pulse segments, and wherein a weight for each respective erase credit increases as a time period for a corresponding erase pulse segment increases; determining an erasure degree of the memory based on the erasure credits; as well as In response to determining that the erasure degree has reached a predetermined threshold, the erasure operation is completed.
2. The method of claim 1 , wherein determining the degree of erasure comprises: determining a total amount of said erase credits; as well as The total is compared to the predetermined threshold.
3. The method of claim 1, wherein the memory is one or more sub-blocks of a memory array. The method of claim 1 , wherein each respective erase credit is based on a time period of a corresponding erase pulse segment.
5. The method of claim 4, wherein each respective erase credit is further based on an erase voltage associated with the corresponding erase pulse segment.
6. The method of claim 1, wherein the erase operation further uses one or more ramps, the method further comprising determining a respective erase credit associated with each of the ramps.
7. The method of claim 6, wherein the erase credits associated with the erase operation further include each of the erase credits associated with the ramping.
8. The method according to claim 6, further comprising: counting the number of said ramps that have been interrupted by a pause request; as well as In response to determining that the number of interrupted ramps has reached a threshold, further interruption of the erase operation by any subsequent suspend requests is disabled until the erase operation is completed.
9. The method according to claim 1, further comprising: During said erase operation, using a counter to store a total of said erase credits; In response to receiving the suspend request, suspending the erase operation and performing a read operation; as well as After completing the read operation, determining whether to resume the erase operation is based on the stored total of the erase credits.
10. The method of claim 9, further comprising, in response to determining to resume the erase operation, resuming the erase operation without performing a verify operation to determine an erase state of the memory.
11. The method of claim 9, further comprising resetting the counter after completing the erase operation to prepare for a subsequent erase operation.
12. The method of claim 1, wherein completing the erase operation comprises performing a verify operation to determine whether the memory has been erased.
13. The method of claim 12, further comprising using at least one additional ramp or erase pulse segment in the erase operation in response to determining that the memory is not erased based on the verify operation.
14. The method of claim 1, further comprising: after determining the extent of erasure of the memory, determining whether a suspend request has been received; In response to determining that a suspend request has been received, suspending the erase operation and performing a read operation; as well as After the read operation is completed, the erase operation is resumed.
15. A system comprising: a memory cell array configured to store data for a memory device; at least one processing device; as well as a memory containing instructions configured to instruct the at least one processing device to: performing an erase operation to erase at least a portion of the memory cell array, the erase operation using erase pulse segments; determining erase credits associated with the erase operation, wherein the erase credits include respective erase credits associated with each of the erase pulse segments, and wherein a weight for each respective erase credit increases as a time period for a corresponding erase pulse segment increases; determining an extent of erasure of the portion of the memory cell array based on the erase credits; as well as In response to determining that the erasure degree has reached a predetermined threshold, the erasure operation is completed.
16. The system of claim 15, further comprising a counter configured to store a total of the erase credits associated with the erase operation.
17. The system of claim 16, wherein the instructions are further configured to instruct the at least one processing device to: In response to a read request from a host device requesting data stored in the memory device, pausing the erase operation to provide a break point for performing a read operation; determining the total number of erase credits stored in the counter after completing the read operation; as well as Whether to resume the erase operation is determined based on the stored total of the erase credits.
18. The system of claim 15, wherein the memory device is a NAND-type flash memory device and the at least one processing device includes a controller configured to receive a read request from a host device.
19. A machine-readable storage medium storing instructions that, when executed on at least one processing device, cause the at least one processing device to at least: performing an erase or program operation for a memory, the erase or program operation using the pulse segments; determining credits associated with the erase or program operation, wherein the credits include respective credits associated with each of the pulse segments, and wherein a weight for each respective erase credit increases as a time period for a corresponding erase pulse segment increases; determining an extent of erasing or programming of the memory based on the credit; as well as In response to determining that the extent of the erasure or programming has reached a predetermined threshold, the erasure or programming operation is completed.
Citation Information
Patent Citations
Write state machine architecture for flash memory internal instructions
US20020114182A1
