Read offset compensation in read operations of memory devices
By detecting the degree of charge loss and calculating customized read offsets, the problem of read errors caused by charge loss in flash memory storage devices is solved and the efficiency and performance of the storage system are improved.
Patent Information
- Application Number
- CN202380007878.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2024-09-06
AI Technical Summary
Existing flash memory devices cannot effectively compensate for changes in threshold voltage distribution due to charge loss during read operations, resulting in read errors and reduced efficiency.
By detecting the degree of charge loss of each block, a customized read offset is calculated and updated periodically to compensate for the default read voltage, avoid read errors, and increase read speed.
The performance of storage devices and storage systems is significantly improved, the impact of charge loss on read operations is reduced, read errors are avoided, and read speed is increased.
Smart Images

Figure CN118613872A
Abstract
Description
Technical Field
[0001] The present disclosure relates to memory devices and their operation.
[0002] Flash memory is a low-cost, high-density, non-volatile solid-state storage medium that can be electrically erased and reprogrammed. Flash memory includes NOR flash memory and NAND flash memory. Flash memory can perform various operations such as reading, programming (writing), and erasing. For NAND flash memory, an erase operation can be performed at the block level, and a program operation or a read operation can be performed at the page level. Summary of the invention
[0003] In one aspect, a memory system includes a memory device and a memory controller. The memory device includes an array of memory cells and a peripheral circuit. Each memory cell is configured to be set to 2 corresponding to a segment of N bits of data. N The memory device is configured to be one of states, wherein N is an integer greater than 1, and the array of memory cells is divided into one or more unit devices. The peripheral circuit is coupled to the memory cell and is configured to: perform a read operation on a selected memory cell in the unit device in the unit device. The memory controller is coupled to the memory device and is configured to: control the memory device to perform the read operation using a compensated read voltage having an offset relative to a default read voltage by sending an instruction to the peripheral circuit. The offset is equal to the offset in the unit device in the 2 N The number P of memory cells in one or more programmed states is related to the number P of memory cells in one or more programmed states.
[0004] In some embodiments, the offset is associated with the unit device and is updated after the number P of storage cells in the unit device changes.
[0005] In some implementations, the offset is updated periodically.
[0006] In some embodiments, the refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
[0007] In some embodiments, the number P is obtained by a verification read operation configured to count the number P of the memory cells in the unit device.
[0008] In some embodiments, the memory controller is configured to: select the 2 Nand determining a verification voltage used in the verification read operation based on a default range of threshold voltages corresponding to the selected one or more states. The verification voltage is equal to a minimum threshold voltage in the default range of threshold voltages corresponding to the selected one or more states.
[0009] In some embodiments, the 2 N The number of the selected one or more programmed states among the states is one, and the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
[0010] In some embodiments, the peripheral circuit includes a word line driver configured to apply the verification voltage to at least some of the memory cells in the unit device through a word line.
[0011] In some embodiments, the memory controller includes a digital signal processor configured to count the number P after the verification voltage is applied to at least some of the memory cells in the unit device.
[0012] In some embodiments, each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of selected pages in the one or more selected pages. N The average number of memory cells in one or more programmed states in a state.
[0013] In some embodiments, the controller includes a processor configured to obtain the offset by looking up the offset corresponding to the number P and a first mapping table between the offset and the number P through a lookup operation.
[0014] In some implementations, the memory controller includes a first register configured to store the first mapping table.
[0015] In some embodiments, the memory controller includes a digital signal processor configured to: calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
[0016] In some embodiments, the memory controller includes a processor configured to obtain the offset through a lookup operation by looking up an offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
[0017] In some implementations, the memory controller includes a second register configured to store the second mapping table.
[0018] In some embodiments, the memory controller includes a third register configured to store the default number P'.
[0019] In some embodiments, the processor is configured to: for a memory cell in the unit device, adjust the offset based on a default threshold voltage of the memory cell.
[0020] In some implementations, the adjusted offset of the memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
[0021] In some implementations, the memory controller includes a fourth register configured to store the offset obtained by the processor.
[0022] In some implementations, the processor is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
[0023] In another aspect, a memory controller is coupled to a memory device including an array of memory cells, each memory cell being configured to correspond to a segment of N-bit data. N wherein N is an integer greater than 1, and the array of the memory cells is divided into one or more cell devices. The memory controller is coupled to the memory device and is configured to, when executing an instruction: obtain from the memory device a cell device in the cell device that is in the 2 N The invention relates to a method for storing a memory device in a cell device of the present invention, wherein the memory device comprises a plurality of memory cells in a plurality of programmed states in the plurality of programmable states; a plurality of memory cells in a plurality of programmable states in the plurality of programmable states are provided for storing the memory device in the plurality of programmable states; a plurality of memory cells in a ...
[0024] In some embodiments, the offset is associated with the unit device and is updated after the number P of storage cells in the unit device changes.
[0025] In some embodiments, the offset is updated periodically. In some embodiments, the update period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
[0026] In some embodiments, the memory controller includes a processor configured to control the memory device to count the number P of the memory cells in the cell device by executing a verification read operation.
[0027] In some embodiments, the processor is configured to: select the 2 N one or more programmed states of the selected state; and determining a verification voltage used in the verification read operation based on a default range of threshold voltages corresponding to the selected one or more states; and the verification voltage is equal to a minimum threshold voltage in the default range of threshold voltages corresponding to the selected one or more states.
[0028] In some embodiments, the 2 N The number of the selected one or more programmed states among the states is one and is the same as the selected 2 N The minimum threshold voltage in the default range of threshold voltages corresponding to the states is higher than 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
[0029] In some embodiments, the memory controller includes a digital signal processor configured to count the number P after the verification voltage is applied to at least some of the memory cells in the unit device.
[0030] In some embodiments, each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of selected pages in the one or more selected pages. N The average number of memory cells in one or more programmed states in a state.
[0031] In some implementations, a processor is included, and the processor is configured to: obtain the offset by searching an offset corresponding to the number P and a first mapping table between the offset and the number P through a search operation.
[0032] In some implementations, the memory controller includes a first register configured to store the first mapping table.
[0033] In some embodiments, the memory controller includes a digital signal processor configured to: calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
[0034] In some embodiments, the memory controller includes a processor configured to obtain the offset through a lookup operation by looking up an offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
[0035] In some implementations, the memory controller includes a second register configured to store the second mapping table.
[0036] In some embodiments, the memory controller includes a third register configured to store the default number P'.
[0037] In some embodiments, the processor is configured to: for a memory cell in the unit device, adjust the offset based on a default threshold voltage of the memory cell.
[0038] In some implementations, the adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
[0039] In some implementations, the memory controller includes a fourth register configured to store the offset obtained by the processor.
[0040] In some implementations, the processor is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
[0041] In yet another aspect, a memory device includes an array of memory cells and a peripheral circuit. Each memory cell is configured to be set to 2 corresponding to a segment of N-bit data. N wherein N is an integer greater than 1, and the array of memory cells is divided into one or more cell devices. The peripheral circuit is coupled to the memory cells and configured to: perform a read operation on a selected memory cell in the memory cells in the cell devices using a compensated read voltage having an offset relative to a default read voltage. The offset is equal to the number of cells in the cell devices that are in the 2 states. N The number P of memory cells in one or more programmed states is related to the number P of memory cells in one or more programmed states.
[0042] In some embodiments, the offset is associated with the unit device and is updated after the number P of storage cells in the unit device changes.
[0043] In some implementations, the offset is updated periodically.
[0044] In some embodiments, the refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
[0045] In some embodiments, the number P is obtained by a verification read operation, and the verification read operation is configured to count the number P of the memory cells in the unit device.
[0046] In some embodiments, the peripheral circuit is configured to: select the 2 N and determining a verification voltage used in the verification read operation based on a default range of threshold voltages corresponding to the selected one or more states. The verification voltage is equal to a minimum threshold voltage in the default range of threshold voltages corresponding to the selected one or more states.
[0047] In some embodiments, the 2 N The number of the selected one or more programmed states among the states is one, and the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the minimum threshold voltage in the default range of threshold voltages corresponding to the 2 states. N The threshold voltage of the memory cell corresponding to the unselected state among the states.
[0048] In some embodiments, the peripheral circuit includes a word line driver configured to apply the verification voltage to at least some of the memory cells in the unit device through a word line.
[0049] In some embodiments, the peripheral circuit includes an operator configured to count the number P after the verification voltage is applied to at least some of the memory cells in the unit device.
[0050] In some embodiments, each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
[0051] In some implementations, the peripheral circuit includes a control logic configured to obtain the offset by looking up the offset corresponding to the number P and a first mapping table between the offset and the number P through a lookup operation.
[0052] In some implementations, the peripheral circuit includes a first register configured to store the first mapping table.
[0053] In some embodiments, the peripheral circuit includes an operator configured to calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
[0054] In some implementations, the control logic is configured to obtain the offset through a lookup operation by looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
[0055] In some implementations, the peripheral circuit includes a second register configured to store the second mapping table.
[0056] In some embodiments, the peripheral circuit includes a third register configured to store the default number P'.
[0057] In some embodiments, the processor is configured to: for a memory cell in the unit device, adjust the offset based on a default threshold voltage of the memory cell.
[0058] In some implementations, the adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
[0059] In some implementations, the peripheral circuit includes a fourth register configured to store the offset obtained by the processor.
[0060] In some implementations, the control logic is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
[0061] In yet another aspect, a method for reading a memory device, the memory device comprising an array of memory cells, each memory cell being configured to: be set to 2 bits corresponding to a segment of N bits of data; Nwherein N is an integer greater than 1, and the array of the memory cells is divided into one or more unit devices, the method comprising: obtaining a unit device in the state of one of the two N calculating a number P of memory cells in one or more programmed states in a state; calculating a compensated read voltage having an offset relative to a default read voltage; and performing a read operation on a selected memory cell among the memory cells in the cell device using the compensated read voltage.
[0062] In some embodiments, after calculating the compensated read voltage, the method further includes: updating the offset after a number P of the memory cells in the cell device changes.
[0063] In some implementations, the offset is updated periodically.
[0064] In some embodiments, the refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
[0065] In some embodiments, the number P of memory cells in the cell device is calculated by running a verify read operation.
[0066] In some implementations, executing a verification read operation includes: selecting the 2 N and determining a verification voltage used in the verification read operation based on a default range of threshold voltages corresponding to the selected one or more states. The verification voltage is equal to a minimum threshold voltage in the default range of threshold voltages corresponding to the selected one or more states.
[0067] In some embodiments, the 2 N The number of the selected one or more programmed states among the states is one, and the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
[0068] In some embodiments, each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
[0069] In some embodiments, calculating the compensated read voltage with the offset includes looking up the offset corresponding to the number P and a first mapping table between the offset and the number P.
[0070] In some implementations, the first mapping table is stored in a first register.
[0071] In some embodiments, calculating the compensated read voltage with the offset includes calculating a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
[0072] In some embodiments, calculating the compensated read voltage with the offset further includes looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
[0073] In some implementations, the second mapping table is stored in a second register.
[0074] In some embodiments, the default number P' is stored in a third register.
[0075] In some implementations, after calculating the compensated read voltage having the offset, the method further includes adjusting the offset based on a default threshold voltage of the memory cell.
[0076] In some implementations, the adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
[0077] In some implementations, the adjusted offset is stored in a fourth register.
[0078] In some implementations, determining the compensated read voltage includes: retrieving the offset from the fourth register; and calculating the compensated read voltage by adding the offset to the default read voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate certain aspects of the disclosure and, together with the description, further serve to explain the disclosure and enable one skilled in the relevant art to make and use the disclosure.
[0080] Figure 1 A threshold voltage distribution variation trend diagram of a memory device after charge loss according to some aspects of the present disclosure is shown.
[0081] Figure 2A A storage time diagram of a block in a storage device is shown according to some aspects of the present disclosure.
[0082] Figure 2B A graph showing the relationship between storage time and threshold voltage distribution of a memory device according to some aspects of the present disclosure is shown.
[0083] Figure 3A A graph showing the length of time incurred by a read operation without error recovery.
[0084] Figure 3B A graph showing the length of time incurred by a read operation with error recovery.
[0085] Figure 3C A graph showing the length of time incurred by a read operation according to some aspects of the present disclosure.
[0086] Figure 4 A block diagram of a system having a memory device according to some aspects of the present disclosure is shown.
[0087] Figure 5A A diagram showing a memory card having a storage device according to some aspects of the present disclosure is shown.
[0088] Figure 5B A diagram of a solid state drive (SSD) having a storage device according to some aspects of the present disclosure is shown.
[0089] Figure 6 A schematic diagram of a memory device including peripheral circuits according to some aspects of the present disclosure is shown.
[0090] Figure 7 A block diagram of a memory device including a memory cell array and peripheral circuits according to some aspects of the present disclosure is shown.
[0091] Figure 8 A block diagram of a memory system including a host, a memory controller, and a memory device according to some aspects of the present disclosure is shown.
[0092] Fig.9A A block diagram of a memory controller coupled to an array of memory cells is shown in accordance with some aspects of the present disclosure.
[0093] Fig. 9B A block diagram of another memory controller coupled to an array of memory cells according to some aspects of the present disclosure is shown.
[0094] Fig. 10A A graph showing the relationship between the verify voltage and the threshold voltage distribution in the absence of charge loss is shown.
[0095] Fig. 10B A graph showing the relationship between the verify voltage and the threshold voltage distribution in the presence of charge loss is shown.
[0096] Fig.11 A diagram showing a first mapping table.
[0097] Fig.12 A graph showing the shift of the programming state and the number P of memory cells is shown.
[0098] Fig.13 A diagram showing an offset table for each unit device.
[0099] Fig.14A A graph showing the relationship between the verify voltage and the threshold voltage distribution in the absence of charge loss is shown.
[0100] Fig. 14B A graph showing the relationship between the verify voltage and the threshold voltage distribution in the presence of charge loss is shown.
[0101] Fig.15 A flow chart of a method for read offset compensation based on a number P of memory cells according to some aspects of the present disclosure is shown.
[0102] Aspects of the present disclosure will be described with reference to the accompanying drawings. DETAILED DESCRIPTION
[0103] Typically, a term can be understood at least in part from its use in context. For example, the term "one or more" as used herein may be used to describe any feature, structure, or characteristic in a singular sense, or may be used to describe a combination of features, structures, or characteristics in a plural sense, depending at least in part on the context. Similarly, terms such as "a," "an," or "the" may be understood to convey singular usage or to convey plural usage, depending at least in part on the context. In addition, the term "based on" may be understood to not necessarily be intended to convey an exclusive set of factors, but may depend at least in part on the context, allowing for the presence of other factors that are not necessarily explicitly described.
[0104] Memory devices, such as NAND flash memory devices, can store more than 1 bit of information in each memory cell with multiple states to increase storage capacity and reduce cost per bit by utilizing charge trap technology. In the programming operation of a memory device using charge trap technology, data can be programmed (written) into a multi-level cell (MLC) block, such as a triple-level cell (TLC) block, a quad-level cell (QLC) block, a penta-level cell (PLC), etc., thereby significantly increasing programming speed. Figure 1, due to charge loss, the threshold voltage distribution of the block will be reduced, and the memory cells in different programming states suffer different degrees of charge loss. When the charge loss is severe, the reduction in the threshold voltage distribution will cause error bits and trigger read error recovery. A read offset is provided to compensate for the charge loss. For example, a first offset will be added to the default read voltage to compensate for the change in the threshold voltage distribution. This method is not very effective because the charge loss is closely related to the duration after the data is written. Figure 2A and Figure 2B As shown, the durations in different blocks do not remain statistical but vary dynamically. Therefore, the read offset cannot compensate for the charge loss of all blocks and cannot avoid read errors.
[0105] Figure 3A A diagram showing the length of time caused by a normal read operation, including a first duration t of reading data from a memory page R and a second duration t of transferring the data to the memory controller XER . Figure 3B A diagram showing the time length caused by a read operation with error recovery is shown, except for the first duration t R and the second duration t XER In addition, a third duration t OV , for the memory controller and hardware to be ready to try again after a read error. The actual time caused by a read operation on a memory block with charge loss may be the first duration t R , the second duration t XER and the third duration t OV The efficiency of the storage system is therefore significantly reduced.
[0106] To solve one or more of the above problems, the present disclosure introduces a solution in which the charge loss degree of each block is detected and a customized read offset is generated to compensate the default read voltage based on the charge loss degree, thereby avoiding read errors and significantly improving the read speed, such as Figure 3C As shown, the time caused by the read operation on the memory block is the first duration t R , the second duration t XER and the third duration t OVThe sum of is independent of charge loss. In each block, the extent of charge loss can be detected by counting the number of memory cells in a programmed state, since the number will decrease due to charge loss. The read voltage can be accurately compensated by a customized offset based on the detected degree of charge loss. The scheme can detect charge loss in each block regardless of the cause of the charge loss, i.e., whether the charge loss is caused by time, temperature, programming operation, etc., and can accurately compensate the read voltage. The relationship between the offset and the number of memory cells in a programmed state is pre-calculated and stored as a mapping table so that the offset can be quickly determined after the number is obtained. The offset is updated periodically, rather than calculated before each read operation, to balance the efficiency and accuracy of the read operation, since charge loss requires a certain amount of time to accumulate. The scheme of the present disclosure reduces the adverse effects of charge loss at a relatively low cost and significantly improves the performance of storage devices and storage systems.
[0107] Figure 4 A block diagram of a system 100 having a storage device according to some aspects of the present disclosure is shown. The system 100 may be a mobile phone, a desktop computer, a laptop computer, a tablet computer, a car computer, a game console, a printer, a positioning device, a wearable electronic device, a smart sensor, a virtual reality (VR) device, an augmented reality (AR) device, or any other suitable electronic device having storage therein. Figure 4 As shown, the system 100 may include a host 108 and a storage system 102 having one or more storage devices 104 and a memory controller 106. The host 108 may be a processor (e.g., a central processing unit device (CPU)) or a system on chip (SoC) (e.g., an application processor (AP)) of an electronic device. The host 108 may be configured to send data to the storage device 104 or receive data from the storage device 404.
[0108] The memory device 104 may be any memory device disclosed in detail in the present disclosure. According to some embodiments, the memory controller 106 is coupled to the memory device 104 and the host 108 and is configured to control the memory device 104. The memory controller 106 may manage the data stored in the memory device 104 and communicate with the host 108. In some embodiments, the memory controller 106 is designed to operate in a low duty cycle environment, such as a secure digital (SD) card, a compact flash (CF) card, a universal serial bus (USB) flash drive, or other media for electronic devices, such as personal computers, digital cameras, mobile phones, etc. In some embodiments, the memory controller 106 is designed to operate in a high duty cycle environment SSD or an embedded multimedia card (eMMC) used as data storage for mobile devices (e.g., smartphones, tablets, laptops, etc.) and an enterprise storage array. The memory controller 106 may be configured to control the operation of the memory device 104, such as read, erase, and program operations. The memory controller 106 may also be configured to manage various functions regarding data stored or to be stored in the memory device 104, including but not limited to bad block management, garbage collection, logical to physical address translation, wear leveling, etc. In some embodiments, the memory controller 106 is also configured to process error correction codes (ECC) for data read from or written to the memory device 104. Any other suitable functions may also be performed by the memory controller 106, such as formatting the memory device 104. According to some aspects of the present disclosure, in some embodiments, the memory controller 106 is configured to perform read offset compensation in whole or in part, as described in detail below.
[0109] The memory controller 106 may communicate with an external device (e.g., the host 108) according to a specific communication protocol. For example, the memory controller 106 may communicate with an external device through at least one of various interface protocols, such as a USB protocol, an MMC protocol, a peripheral component interconnect (PCI) protocol, a PCI-express (PCI-E) protocol, an advanced technology attachment (ATA) protocol, a serial ATA protocol, a parallel ATA protocol, a small computer mini interface (SCSI) protocol, an enhanced small disk interface (ESDI) protocol, an integrated drive electronics (IDE) protocol, a firewire protocol, etc.
[0110] The memory controller 106 and the one or more memory devices 104 can be integrated into various types of memory devices, for example, included in the same package, such as a universal flash memory (UFS) package or an eMMC package. That is, the memory system 102 can be implemented and packaged into different types of terminal electronic products. Figure 5AIn one example shown, the memory controller 106 and the single memory device 104 may be integrated into a memory card 202. The memory card 202 may include a PC card (PCMCIA, Personal Computer Memory Card International Association), a CF card, a Smart Media (SM) card, a memory stick, a multimedia card (MMC, RS-MMC, MMCmicro), an SD card (SD, miniSD, microSD, SDHC), UFS, etc. The memory card 202 may also include a computer that connects the memory card 202 to a host (e.g., Figure 1 The host 108 in the memory card connector 204 is coupled. Figure 5B In another example shown, the memory controller 106 and the plurality of memory devices 104 may be integrated into an SSD 206. The SSD 206 may also include a processor that interfaces the SSD 206 with a host (e.g., Figure 4 In some implementations, the storage capacity and / or operating speed of the SSD 206 is greater than the storage capacity and / or operating speed of the memory card 202.
[0111] Figure 6 1 shows a schematic circuit diagram of a memory device 300 including peripheral circuits according to some aspects of the present disclosure. The memory device 300 may be Figure 4 300. The memory device 300 may include a memory cell array 301 and a peripheral circuit 302 coupled to the memory cell array 301. The memory cell array 301 may be an array of NAND flash memory cell devices, wherein the memory cells 306 are provided in the form of an array of NAND memory strings 308, each memory string 308 extending vertically above a substrate (not shown). In some embodiments, each NAND memory string 308 includes a plurality of memory cells 306 coupled in series and stacked vertically. Each memory cell 306 may hold a continuous analog value, such as a voltage or charge, depending on the number of electrons trapped in the region of the memory cell 306. Each memory cell 306 may be a floating gate type memory cell having a floating gate transistor or a charge trap type memory cell having a charge trap transistor.
[0112] In some embodiments, each memory cell 306 is a single-level cell (SLC), which can have two possible storage states and can therefore store one bit of data. For example, the first storage state "0" can correspond to a first voltage range, and the second storage state "1" can correspond to a second voltage range. In some embodiments, each memory cell 306 is a multi-level cell (MLC) capable of storing more than a single bit of data in more than four storage states. For example, the MLC can store two bits per cell, three bits per cell (also known as a three-level cell (TLC)), or four bits per cell (also known as a quad-level cell (QLC)). Each MLC can be programmed to assume a range of possible nominal storage values. In one example, if each MLC stores two bits of data, the MLC can be programmed to assume one of three possible programming levels from an erased state by writing one of the three possible nominal storage values to the cell. The fourth nominal storage value can be used for an erased state.
[0113] like Figure 6 As shown, each NAND memory string 308 may include a source select gate (SSG) 310 at its source end and a drain select gate (DSG) 312 at its drain end. The SSG 310 and the DSG 312 may be configured to activate the selected NAND memory string 308 (column of the array) during read and program operations. In some embodiments, the sources of the NAND memory strings 308 in the same block 304 are coupled by the same source line (SL) 314 (e.g., a common SL). In other words, according to some embodiments, all NAND memory strings 308 in the same block 304 have an array common source (ACS). According to some embodiments, the DSG 312 of each NAND memory string 308 is coupled to a corresponding bit line 316, from which data can be read or written via an output bus (not shown). In some embodiments, each NAND memory string 308 is configured to be selected or deselected by applying a selection voltage (e.g., higher than the threshold voltage of a transistor having the DSG 312) or a deselection voltage (e.g., 0 V) to a corresponding DSG 312 via one or more DSG lines 313, and / or applying a selection voltage (e.g., higher than the threshold voltage of a transistor having the SSG 310) or a deselection voltage (e.g., 0 V) to a corresponding SSG 310 via one or more SSG lines 315.
[0114] like Figure 6As shown, the NAND memory string 308 can be organized into a plurality of blocks 304, each of which can have a common source line 314, for example, which is coupled to the ACS. In some embodiments, each block 304 is a basic data unit device for an erase operation, that is, all memory cells 306 on the same block 304 are erased at the same time. In order to erase the memory cells 306 in the selected block 304, the source line 315 coupled to the selected block 304 and the unselected blocks 304 in the same plane as the selected block 304 can be biased with an erase voltage (Vers), such as a high positive voltage (e.g., 20V or higher). It should be understood that in some examples, the erase operation can be performed at the half-block level, the quarter-block level, or at the level of any suitable number of blocks or any suitable portion of a block. The memory cells 306 of adjacent NAND memory strings 308 can be coupled by word lines 318, which select which row of memory cells 306 is affected by the read and program operations. In some embodiments, each word line 318 is coupled to a page 320 of memory cells 306, which is a basic data unit device for programming operations. The size of a page 320 in bits can be related to the number of NAND memory strings 308 coupled by word lines 318 in one block 304. For ease of description, the memory cells 306 in a page 320 can be coupled to the same word line 318, and the terms "page" and "word line" can be used interchangeably in the present disclosure. However, it should be understood that in some examples, the memory cells 306 in a page 320 can be coupled to more than one word line 318. Each word line 318 can include a plurality of control gates (gate electrodes) at each memory cell 306 in the corresponding page 320 and a gate line coupling the control gates.
[0115] like Figure 6 As shown, it is consistent with the scope of the present disclosure because the programming operation is performed at the page / word line level for each block 304. The peripheral circuit 302 can be coupled to the memory cell array 301 through the bit line 316, the word line 318, the source line 314, the SSG line 315, and the DSG line 313. The peripheral circuit 302 may include any suitable analog, digital, and mixed signal circuits to facilitate the operation of the memory cell array 301 by applying a voltage signal and / or a current signal to each target memory cell 306 through the bit line 316, the word line 318, the source line 314, the SSG line 315, and the DSG line 313 and sensing the voltage signal and / or the current signal from each target memory cell 306. The peripheral circuit 302 may include various types of peripheral circuits formed using metal oxide semiconductor (MOS) technology. For example, Figure 74 shows peripheral circuits in the memory device 104, including page buffer / sense amplifier 404, column decoder / bit line driver 406, row decoder / word line driver 408, voltage generator 410, control logic 412, register 414, interface 416 and data bus 418. It should be understood that in some examples, it may also include Figure 7 Additional peripheral circuits not shown.
[0116] The page buffer / sense amplifier 404 may be configured to read data from the memory cell array 301 and program (write) data to the array 401 of memory cells according to control signals from the control logic 412. In one example, the page buffer / sense amplifier 404 may store a page of programming data (write data) to be programmed into a page 320 of the memory cell array 301. In another example, the page buffer / sense amplifier 404 may perform a program verification operation to ensure that the data has been correctly programmed into the memory cell 306 coupled to the selected word line 318. In yet another example, the page buffer / sense amplifier 404 may also sense a low-power signal from the bit line 316 representing a data bit stored in the memory cell 306 and amplify a small voltage swing to a recognizable logic level in a read operation. The column decoder / bit line driver 406 may be configured to be controlled by the control logic 412 and select one or more NAND memory strings 308 by applying a bit line voltage generated from the voltage generator 410.
[0117] The row decoder / word line driver 408 may be configured to be controlled by the control logic 412 and to select / deselect the block 304 of the memory cell array 301 and to select / deselect the word line 318 of the block 304. The row decoder / word line driver 408 may also be configured to drive the word line 318 using the word line voltage generated from the voltage generator 410. In some embodiments, the row decoder / word line driver 408 may also select / deselect and drive the SSG line 315 and the DSG line 313. As described in detail below, the row decoder / word line driver 408 is configured to apply a read voltage to the selected word line 318 in a read operation of the memory cell 306 coupled to the selected word line 318.
[0118] The voltage generator 410 may be configured to be controlled by the control logic 412 and generate a word line voltage (e.g., a read voltage, a program voltage, a pass voltage, a local voltage, a verification voltage, etc.), a bit line voltage, and a source line voltage to be applied to the memory cell array 301. The control logic 412 may be coupled to each of the above-mentioned peripheral circuits and configured to control the operation of each peripheral circuit. The register 415 may be coupled to the control logic 412 and may include a status register, a command register, and an address register for storing status information, a command operation code (OP code), and a command address for controlling the operation of each peripheral circuit.
[0119] The interface 416 may be coupled to the control logic 412 and act as a control buffer to buffer and relay control commands of the control logic 412 received from a host (not shown) and status information received from the control logic 412 to the host. The interface 416 may also be coupled to the column decoder / bit line driver 406 via a data bus 418 and act as a data input / output (I / O) interface and a data buffer to buffer and relay data to and from the memory cell array 301.
[0120] Reference Figure 8 According to some embodiments of the present disclosure, a memory system 500 is provided that includes a plurality of memory devices 104 and a memory controller 106. Each memory device 104 includes an array of memory cells and peripheral circuits, such as Figure 7 The storage unit in the storage device 104 is an MLC, and each storage unit is configured as follows: 2 N one of states, where N is an integer greater than 1. The array of memory cells is divided into one or more cell devices. The cell device may be a physical cell device or a logical cell device. For example, based on the physical connection between the memory cells, the cell device may be a page or a block; the cell device may also be a group of memory cells in different pages or blocks, which are operated in the same write operation. The number of memory cells in each cell device may be the same or different, depending on the actual needs of the storage. In one embodiment, the number of memory cells in a cell device may be one. The division manner of the cell devices and the number of memory cells in the cell devices described herein are for illustrative purposes only and should not be construed as limitations on the present disclosure. The peripheral circuit is coupled to the memory cell and is configured to perform a read operation on selected memory cells in the memory cells in the cell devices in some of the cell devices.
[0121] The memory controller 106 may be coupled to the memory device and configured to execute the various interface protocols disclosed herein. Figure 8As shown, the memory controller 106 is coupled to one or more memory devices 104 and is configured to control cache programming of the memory devices 104. The memory controller 106 may include various interface layers, including but not limited to a peripheral component interconnect express (PCIe) layer 510, a non-volatile memory express (NVMe) layer 520, and / or a NAND controller interface (NFI) layer 530 that interface with the host 108 and the memory device 104. The PCIe layer 510 and / or the NVMe layer 520 may be coupled to one or more processing unit devices 540 (e.g., a microcontroller), which may be configured to implement various memory control functions by executing instructions stored in a read-only memory (ROM) 550, such as firmware. The processing unit device 540 may be coupled to a dynamic random access memory (DRAM) 570 via a DRAM controller 560. The DRAM controller 560 may be configured to store and access data stored on the DRAM 570, such as cached new programming data and / or reconstructed current programming data sent from the memory device 104 to the memory controller 106 according to various interface protocols disclosed herein. It should be appreciated that in some examples, DRAM 570 and DRAM controller 560 may be omitted. In other words, memory controller 106 may be a non-DRAM memory controller.
[0122] Fig.9A An embodiment of a memory controller 106 coupled to a memory cell array 301 via a back-end interface 628 is shown. The memory controller 106 includes a processor 622 and a digital signal processor (DSP) 624 coupled to the back-end interface 628. The processor 622 is configured to control the memory cell array 301 to count the number P of memory cells in the cell device by running a verification read operation. The DSP 624 is configured to count the number P after a verification voltage is applied to at least part of the memory cells in the cell device. The memory controller 106 also includes a register 626 configured to store a first mapping table and an offset. The number P counted by the DSP 624 can be stored in a register, such as register 626, from which the processor 622 can extract the number P. The first mapping table, the number P, and the offset can be stored in the same register, or can also be stored in different registers, depending on the size of the register. In this embodiment, the first mapping table is stored in the first register, and the offset is stored in the fourth register.
[0123] In one embodiment of the present disclosure, the memory controller 106 is configured to control the memory device 104 to perform a read operation using a compensated read voltage having an offset relative to a default read voltage by sending instructions to a peripheral circuit. NThe number P of memory cells in one or more programmed states is related to the number of memory cells in one or more programmed states in the states. In the present embodiment, a TLC cell device is taken as an example, (N=3), and each TLC cell device has 8 states. Other MLC cell devices, such as a QLC cell device and a PLC cell device, can also be used in the present disclosure. In a QLC cell device, N=4, and the memory cells in the QLC cell device have 16 states, and 15 of the 16 states are programmed states. In a PLC cell device, N=5, and the memory cells in the QLC cell device have 32 states, and 31 of the 32 states are programmed states. The present disclosure can be applied to any MLC cell devices regardless of how many states these cell devices have.
[0124] refer to Fig. 10A , after data is programmed into the memory device, the number of memory cells in each of the eight states is approximately the same. The default read voltages of memory cells in different states are set at the edge between adjacent states. Taking state L7 as an example, the default read voltage of the memory cell in state L7 is less than or equal to the minimum threshold voltage of the memory cell in state L7 and greater than the maximum threshold voltage of the memory cell in state L6. Fig. 10B Figure 1 shows the threshold voltage distribution of the same cell device after a period of time in the memory device. Although the number of memory cells in each of the eight states changes slightly when the threshold voltage is lowered, the default read voltage for the read operation remains at the original level. In the case where the default read voltage is equal to the minimum threshold voltage of the memory cell in state L7, the read operation will be Fig. 10A The distribution shown is completed with Fig. 10B The distribution shown fails. When a read operation fails, refer to Figure 3B , error recovery will be triggered to adjust the read voltage. This process can be time consuming because the threshold voltage drops differently for each cell device. The greater the threshold voltage deviates from the default read voltage, the longer the error recovery will take. Fixed offsets cannot solve this problem.
[0125] In order to save time for error recovery, it is necessary to accurately compensate for the charge loss of each memory cell device, that is, after the cell device is programmed, the offset is customized for each cell device based on the cycle of each read operation. The offset is updated regularly to accurately compensate for the charge loss because the charge loss accumulates and changes over time. Compared with the speed and frequency of the read operation, the charge loss is relatively slow; for example, the threshold voltage of the memory cell will not be affected until the lost charge accumulates to a certain extent, which may take a month or more. Therefore, there is no need to update the offset for each read operation. In this embodiment, the offset can be updated periodically after the programming operation. In some embodiments, the update cycle is less than or equal to the minimum interval between two adjacent programming operations performed on the cell device. For example, the offset is updated monthly after the write operation.
[0126] The number P of memory cells in the cell device is obtained by a verification read operation using a verification voltage. To determine the verification voltage, select 2 N One or more programmed states of the selected state are selected, and then the default range of threshold voltages corresponding to the selected state or states are extracted. The verification voltage should be equal to the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state or states so that any slight charge loss can be detected.
[0127] In this embodiment, 2 N The number of the selected one or more programmed states is one, that is, the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than 2. N The threshold voltage of the memory cell corresponding to the unselected state in the state. Fig. 10A and Fig. 10B , eight states can be stored in a TLC cell device, where L0 is an erased state and L1 to L7 are seven programmed states. The highest level L7 is selected, and the corresponding L7 verification voltage is equal to the minimum threshold voltage of L7. In a verification read operation, a verification voltage is applied to at least a portion of the memory cells in the cell device through a word line 318 driven by a word line driver 408. In other MLC cell devices, such as a QLC cell device, 16 states can be stored in a QLC cell device, where L0 is an erased state and L1 to L15 are 15 programmed states. The highest level L15 can be selected, and the corresponding L15 verification voltage is equal to the minimum threshold voltage of L15.
[0128] The principle of the verification read operation is to regard the MLC cell device as a single-level cell (SLC) cell device, that is, the memory cell with a threshold voltage higher than the verification voltage will be in the first state and feedback data "0", and the memory cell with a threshold voltage lower than the verification voltage will be in the second state and feedback data "1". Assuming that there is no charge loss in the memory device in an ideal situation, the number of memory cells in the first state should remain unchanged over time. However, in reality, as the charge in the memory cell is released, the threshold voltage distribution moves to the left, such as Figure 1 As shown. Therefore, when a verification read operation is performed on the memory device, the number of memory cells in the first state decreases. The more charge is lost, the fewer memory cells in the first state will be. In this way, the extent of charge loss can be accurately detected, and the offset can be customized to accurately compensate for the charge loss. The first state and the second state are distinguished by the verification voltage of the verification read operation. The verification voltage can be set to select 2 N One or more programmed states in a state. Typically, to improve the speed and accuracy of the verification read operation, the memory cells at the highest level are selected, such as level 7 for TLC devices and level 15 for QLC devices. Once the verification voltage is determined, it is fixed and will not change in subsequent verification read operations.
[0129] When the L7 verification voltage is applied to the cell device just after the programming operation is completed, the number P of memory cells in state L7 is equal to the default number P′. Since there is a scrambler to randomize the data pattern in each programming operation, the number of memory cells in each of the eight states is close. For example, in an 18kB NAND page, there are a total of 18×1024×8=147456 bits, and the number of memory cells in each of the eight states is 147456 / 8=18432 bits. For a cell device including 1 page, the number of memory cells in each of the eight states is 18432×1=18432 bits. For a cell device including 4 pages, the number of memory cells in each of the eight states is 18432×4=73728 bits. For a cell device including 8 pages, the number of memory cells in each of the eight states is 18432×8=147456 bits. In this embodiment, taking a unit device including 4 pages as an example, after the unit device is just programmed, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, ie, 73728 bits.
[0130] As time goes by, more and more electrons are released to the cell due to charge loss. Therefore, the threshold voltage distribution moves downward, that is, L7 moves to the left, and the number P of the number of cells decreases. After applying the L7 verification voltage to at least part of the memory cells in the cell device, the number P is counted by the digital signal processor of the memory controller. Fig. 10B As shown, as the threshold voltage distribution shifts to the left, at the same verification voltage, the number P of memory cells in the L7 state is less than the default number P′. In order to solve the offset to compensate for the charge loss, the processor 622 sends an instruction to the memory cell array 301 through the back-end interface 628 to control the memory cell array 301 to count the number P of memory cells in the L7 state by running a verification read operation. As described above, the verification voltage used in the verification read operation is confirmed by the processor 622, that is, the minimum threshold voltage of the memory cell in the L7 state.
[0131] After the verification read operation is completed, the DSP 624 counts the number P. In one embodiment, the DSP 624 is coupled to the page buffer of the memory cell array 301 through the back-end interface 628. For the memory cells coupled to the same bit line, the number of memory cells and the current generated by each memory cell in the L7 state are stored in the register 626, and the total current generated under the verification voltage can be tested by the page buffer, and the number of memory cells in the L7 state is proportional to the current tested by the page buffer.
[0132] In some embodiments, each of the one or more unit devices includes one or more pages, a verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of selected pages in the one or more selected pages that are in 2 N The verification read operation is performed page by page, that is, the memory cells driven by the same bit line will be verified in the same verification read operation. For the case where the unit device includes multiple pages, sampling some but not all pages can improve the verification efficiency. For example, the unit device 1 includes 1024 pages, which are all written by the same write operation, and it is very time-consuming to run a verification read operation on all 1024 pages. Since the charge loss is closely related to the time period after the last write operation, the pages in the same unit device have a similar degree of charge loss. Therefore, it is reasonable to sample a small number of pages in 1024 pages to obtain the quantity P. For example, one page is selected to run the verification read operation. In other embodiments, two or more pages can be selected to run the verification read operation, and the quantity P can be obtained by averaging the number of memory cells in the selected state in the selected page to reduce errors.
[0133] After the quantity P is confirmed, the processor 622 can obtain the offset through a lookup operation by looking up the offset corresponding to the quantity P and a first mapping table between the offset and the quantity P. The first mapping table can be stored in a first register of the register 626. The first mapping table can also be stored in a static random access memory (SRAM). Fig.11 An example of a first mapping table is shown, where M corresponds to the number P. This means that when P is the number of cells in 2 N When M is the number of memory cells in the cell device in one or more programmed states, and when P is the number of memory cells in the selected page in one or more programmed states, N When the number of memory cells in one or more programmed states is selected, M is the number of memory cells in the selected page of the cell device. In this embodiment, only some but not all pages of the cell device are selected to run the verification read operation, and M is the number of memory cells in the selected page of the cell device in 2 N In another embodiment, all pages in the cell device are selected to perform a verification read operation, then M is the number of memory cells in the cell device that are in one or more programmed states. N In this embodiment, M is the number of memory cells in the selected page in the L7 state immediately after the selected page is programmed, i.e., 18432. Based on the number P counted by the DSP 624, the degree of charge loss is divided into eight levels, ranging from D0 to D7. Fig.11 As shown, if the quantity P is 18340, it is less than M and greater than The charge loss corresponding to 18340 is D0, which is slight and does not require adjustment of the default read voltage. The offset should be 0. If the number P is 14240, which is less than and greater than The charge loss degree corresponding to 14240 is D2, and an offset of -120 mV should be applied to the memory cell in the L7 state. If the number P is 3072, which is less than and greater than The charge loss level corresponding to 3072 is D5, and an offset of -300 mV should be applied to the memory cell in the L7 state. If the number P is 1120, which is less than The charge loss degree corresponding to 3072 is D7, which means that the charge loss of the unit device is too severe to be compensated, and the data stored in the unit device needs to be relocated.
[0134] For memory cells that suffer the same degree of charge loss, the higher the threshold voltage of the memory cell, the more severe the threshold reduction will be. Therefore, it is necessary to adjust the offset based on the default threshold voltage of the memory cell, and the adjusted offset of the memory cell in the unit device is positively correlated with the default threshold voltage of the memory cell. For example, for a charge loss of D2, the offset of the memory cell in the L7 state is -120mV, while the offset of the memory cell in the L4 state should be -60mV, and the offset of the memory cell in the L1 state should be -20mV. The relationship between the offset in different states and the degree of charge loss of the memory cell is as shown in Fig.12 For other MLC devices, such as QLC devices, the relationship between the offset in different states and the degree of charge loss of the memory cell is similar to Fig.12 The trends shown are similar.
[0135] After obtaining the offset of the unit device, it is stored in the index table, such as Fig.13 As shown. Since the charge loss degree of different unit devices is different, the offset of different unit devices is also different. For example, the charge loss degree of unit device 1 is D0, which means that the memory cell in unit device 1 has not suffered charge loss, and the offset of each memory cell of unit device 1 is 0. The charge loss degree of unit device 2 is D5, which means that the memory cell in unit device 2 has suffered severe but not fatal charge loss and needs to be offset. Fig.13 , for the memory cell in unit device 2, the offset of the level 1 memory cell is -130mV, the offset of the level 3 memory cell is -200mV, and the offset of the level 7 memory cell is -300mV. If the charge loss degree of the unit device is D7, it means that the memory cell in the unit device suffers from severe and fatal charge loss, and the data may not be read correctly, similar to unit device 3, and the data in unit device 3 needs to be relocated. Fig.13 The index table in is stored in registers or SRAM and will be periodically updated by running verification read operations. For each read operation, the index table is accessed to obtain the corresponding offset to avoid read errors. Since the time required to access the index table is negligible, the efficiency of the storage device is greatly improved.
[0136] Fig. 9B Another embodiment of the present disclosure is shown, in which the difference ΔP between the calculated number P and the default number P′ is the number of cells in 2 NThe number of memory cells in one or more programmed states in a state. As described above, in a cell device including four 18kB NAND pages, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, that is, 73728 bits. In this embodiment, the processor 622 is configured to obtain the offset by a lookup operation by looking up an offset corresponding to the number difference ΔP and a second mapping table between the offset and the number difference ΔP. The second mapping table is stored in a second register of the register 626, and the default number P′ is stored in a third register of the register 626. The memory controller 106 also includes an operator 629 coupled to the processor 622 and the DSP 624. The operator 629 is configured to calculate the number difference ΔP based on the default number P′ stored in the third register and the number P obtained by the DSP 624. The number difference ΔP is then sent to the processor 622 to determine the offset based on the number difference ΔP and the second mapping table. The number difference ΔP used in this embodiment has the same function as the number P in the above-mentioned embodiment, that is, to reflect the charge loss by the change in the number under the selected state. The methods of counting the quantity difference ΔP and the quantity P are different, and both can be implemented in various ways. The above-mentioned embodiments are exemplary and should not be construed as limiting the present disclosure.
[0137] Fig.14A and Fig. 14B Some embodiments of the present disclosure are shown in which four programming states are selected instead of one to reflect the change in the number P. The verification voltage is set to the minimum threshold voltage of the memory cells in all states from L4 to L7, that is, the minimum threshold voltage of the memory cells in state L4. The memory cells from the L4 state to the L7 state will be in the first state and feedback data "0" when the verification voltage is applied. When the threshold voltage distribution shifts due to charge loss, the number P of memory cells will decrease at the verification voltage, as shown in FIG. Fig. 14B As shown. Therefore, the offset can be customized based on the quantity P. The verification read operation is the same as the above operation and will not be repeated here.
[0138] The storage system of the present disclosure can detect the exact degree of charge loss and customize the offset used to compensate for the charge loss in the read operation. Therefore, error recovery is avoided and the time consumed by each read operation is greatly saved. The performance of the storage system is significantly improved.
[0139] Fig.9A and Fig. 9B Various embodiments of a memory controller 106 coupled to a memory cell array 301 of memory cells are shown, such as Figure 7 Each storage unit is set to 2 corresponding to a segment of N bits of data.N one of a number of states, where N is an integer greater than 1, and the array of memory cells is divided into one or more unit devices.
[0140] exist Fig.9A In the embodiment, the memory controller 106 is coupled to the memory device to solve the above problem. The memory controller is coupled to the memory cell array 301 and is configured to: obtain the memory device in the memory cell array 301 in the state of 2 when executing the instruction. N The invention relates to a method for determining a number P of memory cells in one or more programmed states in a plurality of states; calculating a compensated read voltage having an offset relative to a default read voltage based on the number P; and providing the compensated read voltage to a memory device for performing a read operation on selected memory cells in the memory cells in the unit devices in some unit devices. Fig.9A , the memory controller 106 includes a processor 622 and a DSP 624 coupled to a backend interface 628. The processor 622 is configured to control the memory cell array 301 to count the number P of memory cells in the cell device by running a verification read operation. The DSP 624 is configured to count the number P after a verification voltage is applied to at least some of the memory cells in the cell device. The memory controller 106 also includes a register 626 configured to store a first mapping table and an offset. The first mapping table and the offset can be stored in the same register or in different registers, depending on the size of the register. In this embodiment, the first mapping table is stored in the first register, and the offset is stored in the fourth register. In Fig. 9B In the embodiment, the memory controller further comprises an operator 629 coupled to the processor 622 and the DSP 624. Then the quantity difference ΔP is sent to the processor 622 to determine the offset based on the quantity difference ΔP and the second mapping table. The quantity difference ΔP used in this embodiment has the same function as the quantity P in the above embodiment, that is, reflecting the charge loss by the change of the quantity under the selected state.
[0141] Fig. 9B Another embodiment of the present disclosure is shown, in which the difference ΔP between the calculated number P and the default number P′ is the number of cells in 2 NThe number of memory cells in one or more programmed states in a state. The processor 622 is configured to obtain the offset by a lookup operation by looking up the offset corresponding to the quantity difference ΔP and the second mapping table between the offset and the quantity difference ΔP. The second mapping table is stored in the second register of the register 626, and the default quantity P′ is stored in the third register of the register 626. The memory controller 106 also includes an operator 629 coupled to the processor 622 and the DSP 624. The operator 629 is configured to calculate the quantity difference ΔP based on the default quantity P′ stored in the third register and the quantity P obtained by the DSP 624. The quantity difference ΔP is then sent to the processor 622 to determine the offset based on the quantity difference ΔP and the second mapping table. The quantity difference ΔP used in this embodiment has the same function as the quantity P in the above-mentioned embodiment, that is, the charge loss is reflected by the change in the quantity in the selected state. The method of counting the quantity difference ΔP and the quantity P is different, and both can be implemented in a variety of ways. The above-mentioned embodiments are exemplary and should not be interpreted as limiting the contents of the present disclosure.
[0142] In some embodiments of the present disclosure, an offset that can accurately compensate for charge loss can be provided by the memory device without the involvement of the memory controller. Figure 7 As shown, the memory device 104 includes an array 301 of memory cells and a peripheral circuit 302. Each memory cell is configured to be set to 2 corresponding to a segment of N-bit data. N One of states, where N is an integer greater than 1, and the array 301 of memory cells is divided into one or more cell devices. The peripheral circuit 302 is coupled to the memory cells and is configured to perform a read operation on a selected memory cell among the memory cells in the cell devices in some of the cell devices using a compensated read voltage having an offset relative to a default read voltage. The offset is proportional to the number of memory cells in the cell device being in 2 N The number P of memory cells in one or more programmed states is related to the number P of memory cells in one or more programmed states.
[0143] Take TLC equipment as an example, refer to Fig. 10A and Fig. 10B , eight states can be stored in a TLC cell device, where L0 is an erased state and L1 to L7 are seven programmed states. N The number of the selected one or more programmed states is one, that is, the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than 2. NThe threshold voltage of the memory cell corresponding to the unselected state in the eight states is selected. The highest level L7 is selected, and the corresponding L7 verification voltage is equal to the minimum threshold voltage of L7. In the verification read operation, the verification voltage is applied to at least part of the memory cells in the memory cell in the unit device through the word line 318 driven by the word line driver 408. When the L7 verification voltage is applied to the unit device just after the programming operation is completed, the number P of memory cells in state L7 is equal to the default number P'. Since there is a scrambler to randomize the data pattern in each programming operation, the number of memory cells in each of the eight states is very close. For example, in an 18kB NAND page, there are a total of 18×1024×8=147456 bits, and the number of memory cells in each of the eight states is 147456 / 8=18432 bits. For a unit device including 1 page, the number of memory cells in each of the eight states is 18432×1=18432 bits. For a cell device including 4 pages, the number of memory cells in each of the eight states is 18432×4=73728 bits. For a cell device including 8 pages, the number of memory cells in each of the eight states is 18432×8=147456 bits. In this embodiment, taking a cell device including 4 pages as an example, after the cell device is just programmed, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, i.e., 73728 bits.
[0144] As time goes by, more and more electrons are released to the cell due to charge loss. Therefore, the threshold voltage distribution moves downward, that is, L7 moves to the left, and the number P of the number of cells decreases. After applying the L7 verification voltage to at least part of the memory cells in the unit device, the number P is counted by the operator 302 of the peripheral circuit 302. Fig. 10B As shown, as the threshold voltage distribution shifts to the left, at the same verification voltage, the number P of memory cells in the L7 state is less than the default number P'. In order to solve the offset to compensate for the charge loss, the control logic 412 sends an instruction to the memory cell array 301 to control the memory cell array 301 to count the number P of memory cells in the L7 state by running a verification read operation. As described above, the verification voltage used in the verification read operation is confirmed by the control logic 412, that is, the minimum threshold voltage of the memory cell in the L7 state.
[0145] After the verification read operation is completed, the page buffer 624 counts the number P. For the memory cells coupled to the same bit line, the number of memory cells and the current generated by each memory cell in the L7 state are stored in the register 414, and the page buffer can test the total current generated under the verification voltage, and the number of memory cells in the L7 state is proportional to the current tested by the page buffer. In some embodiments, each of the one or more cell devices includes one or more pages, and the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of memory cells in the L7 state in the one or more selected pages. N The verification read operation is performed page by page, that is, the memory cells driven by the same bit line will be verified in the same verification read operation. For the case where the unit device includes multiple pages, sampling some pages instead of all pages can improve the verification efficiency. For example, the unit device 1 includes 1024 pages, which are all written by the same write operation, and it is very time-consuming to run a verification read operation on all 1024 pages. Since the charge loss is closely related to the time period after the last write operation, the pages in the same unit device have a similar degree of charge loss. Therefore, it is reasonable to sample a small number of pages from 1024 pages to obtain the quantity P. For example, one page is selected to run the verification read operation. In other embodiments, two or more pages can be selected to run the verification read operation, and the quantity P can be obtained by averaging the number of memory cells in the selected state in the selected page to reduce errors.
[0146] After the number P is confirmed, the control logic 412 can obtain the offset through a lookup operation by looking up the offset corresponding to the number P and a first mapping table between the offset and the number P. The first mapping table is stored in a first register of the register 414 . Fig.11 An example of a first mapping table is shown, where M is the number of unit devices in 2 N In this embodiment, M is the number of memory cells in the L7 state in the cell device just after the cell device is programmed, that is, 18432. Based on the number P counted by the page buffer, the degree of charge loss is divided into eight levels, ranging from D0 to D7. Fig.11 As shown, if the quantity P is 18340, it is less than M and greater than The charge loss corresponding to 18340 is D0, which is slight and does not require adjustment of the default read voltage, the offset should be 0. If the number P is 14240, which is less than and greater than The charge loss degree corresponding to 14240 is D2, and an offset of -120 mV should be applied to the memory cell in the L7 state. If the number P is 3072, which is less than and greater than The charge loss level corresponding to 3072 is D5, and an offset of -300 mV should be applied to the memory cell in the L7 state. If the number P is 1120, which is less than The charge loss degree corresponding to 3072 is D7, which means that the charge loss of the unit device is too severe to be compensated, and the data stored in the unit device needs to be relocated.
[0147] For memory cells that suffer the same degree of charge loss, the higher the threshold voltage of the memory cell, the more severe the threshold reduction will be. Therefore, it is necessary to adjust the offset based on the default threshold voltage of the memory cell, and the adjusted offset of the memory cell in the unit device is positively correlated with the default threshold voltage of the memory cell. For example, for a charge loss of D2, the offset of the memory cell in the L7 state is -120mV, and the offset of the memory cell in the L4 state should be -60mV, and the offset of the memory cell in the L1 state should be -20mV. The relationship between the offset in different states and the degree of charge loss of the memory cell is as follows: Fig.12 For other MLC devices, such as QLC devices, the relationship between the offset in different states and the degree of charge loss of the memory cell is similar to Fig.12 The trends shown are similar.
[0148] After obtaining the offset of the unit device, it is stored in the index table, such as Fig.13 As shown. Since the charge loss degree of different unit devices is different, the offset of different unit devices is also different. For example, the charge loss degree of unit device 1 is D0, which means that the memory cell in unit device 1 has not suffered charge loss, and the offset of each memory cell of unit device 1 is 0. The charge loss degree of unit device 2 is D5, which means that the memory cell in unit device 2 has suffered severe but not fatal charge loss and needs to be offset. Fig.13 , for the memory cell in unit device 2, the offset of the level 1 memory cell is -130mV, the offset of the level 3 memory cell is -200mV, and the offset of the level 7 memory cell is -300mV. If the charge loss degree of the unit device is D7, it means that the memory cell in the unit device suffers from severe and fatal charge loss, and the data may not be read correctly, similar to unit device 3, and the data in unit device 3 needs to be relocated. Fig.13The index table in is stored in registers or SRAM and will be periodically updated by running verification read operations. For each read operation, the index table is accessed to obtain the corresponding offset to avoid read errors. Since the time required to access the index table is negligible, the efficiency of the storage device is greatly improved.
[0149] In another embodiment of the present disclosure, a difference ΔP between the number P and a default number P′ is calculated. The default number P′ is the number of cells in 2 N The number of memory cells in one or more programmed states in a state. As described above, in a cell device including four 18kB NAND pages, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, that is, 73728 bits. In this embodiment, the control logic 412 is configured to obtain the offset by a lookup operation by looking up an offset corresponding to the number difference ΔP and a second mapping table between the offset and the number difference ΔP. The second mapping table is stored in the second register of the register 414, and the default number P′ is stored in the third register of the register 414. The control logic 412 also includes an operator, which is configured to calculate the number difference ΔP based on the default number P′ stored in the third register and the obtained number P. The number difference ΔP is then used to determine the offset based on the number difference ΔP and the second mapping table. The number difference ΔP used in this embodiment has the same function as the number P in the above-mentioned embodiment, that is, the charge loss is reflected by the change in the number under the selected state. The method of counting the number difference ΔP and the number P is different, and both can be implemented in a variety of ways. The above-described embodiments are exemplary and should not be construed as limiting the present disclosure.
[0150] Fig.15 1 is a flowchart of a method 1500 for operating a memory device according to some aspects of the present disclosure. The memory device may be any suitable memory device disclosed herein, such as the memory device 104. The memory device 104 includes an array 301 of memory cells, which is configured to: NOne of states, where N is an integer greater than 1, and the array 301 of memory cells is divided into one or more unit devices. The method 1500 may be implemented by the peripheral circuit 302, such as the row decoder / word line driver 408, the voltage generator 410, the control logic 412, and the register 414. The method 1500 may be implemented by the memory controller 106, such as the processor 622, the DSP 624, and the register 626. It should be understood that the operations shown in the method 1500 may not be exhaustive, and other operations may be performed before, after, or between any of the illustrated operations. In addition, some of these operations may be performed simultaneously or in parallel. Fig.15 The different orders are shown in .
[0151] refer to Fig.15 The method 1500 begins at operation 1502, wherein a unit device in 2 is obtained. N The number of memory cells in one or more programmed states P is as follows. Taking the TLC device as an example, refer to Fig. 10A and Fig. 10B , eight states can be stored in a TLC cell device, where L0 is an erased state and L1 to L7 are seven programmed states. N The number of the selected one or more programmed states is one, that is, the minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than 2. NThe threshold voltage of the memory cell corresponding to the unselected state in the eight states is selected. The highest level L7 is selected, and the corresponding L7 verification voltage is equal to the minimum threshold voltage of L7. In the verification read operation, the verification voltage is applied to at least part of the memory cells in the memory cell in the unit device through the word line 318 driven by the word line driver 408. When the L7 verification voltage is applied to the unit device just after the programming operation is completed, the number P of memory cells in state L7 is equal to the default number P'. Since there is a scrambler to randomize the data pattern in each programming operation, the number of memory cells in each of the eight states is very close. For example, in an 18kB NAND page, there are a total of 18×1024×8=147456 bits, and the number of memory cells in each of the eight states is 147456 / 8=18432 bits. For a unit device including 1 page, the number of memory cells in each of the eight states is 18432×1=18432 bits. For a cell device including 4 pages, the number of memory cells in each of the eight states is 18432×4=73728 bits. For a cell device including 8 pages, the number of memory cells in each of the eight states is 18432×8=147456 bits. In this embodiment, taking a cell device including 4 pages as an example, after the cell device is just programmed, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, i.e., 73728 bits.
[0152] As time goes by, more and more electrons are released to the cell due to charge loss. Therefore, the threshold voltage distribution moves downward, that is, L7 moves to the left, and the number P of the number of cells decreases. After applying the L7 verification voltage to at least part of the memory cells in the unit device, the number P is counted. Fig. 10B As shown, as the threshold voltage distribution shifts to the left, at the same verification voltage, the number P of memory cells in the L7 state is less than the default number P'. In order to solve the offset to compensate for the charge loss, a verification read operation is performed. As described above, the verification voltage used in the verification read operation is confirmed, that is, the minimum threshold voltage of the memory cell in the L7 state.
[0153] After the verification read operation is completed, the page buffer 624 counts the number P. For memory cells coupled to the same bit line, the number of memory cells and the current generated by each memory cell in the L7 state are stored in a register. The page buffer can test the total current generated under the verification voltage, and the number of memory cells in L7 is proportional to the current tested by the page buffer. In some embodiments, each of the one or more cell devices includes one or more pages, and the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of selected pages in the 2 N The verification read operation is performed page by page, that is, the memory cells driven by the same bit line will be verified in the same verification read operation. For the case of a cell device including multiple pages, sampling some but not all pages can improve the verification efficiency. For example, the cell device 1 includes 1024 pages, which are all written by the same write operation, and it is very time-consuming to run a verification read operation on all 1024 pages. Since the charge loss is closely related to the time period after the last write operation, the pages in the same cell device have a similar degree of charge loss. Therefore, it is reasonable to sample a small number of pages in 1024 pages to obtain the quantity P. For example, one page is selected to run the verification read operation. In other embodiments, two or more pages can be selected to run the verification read operation, and the quantity P can be obtained by averaging the number of memory cells in the selected state in the selected page to reduce errors.
[0154] Method 1500 proceeds to operation 1504, such as Fig.15 As shown, a compensated read voltage having an offset relative to a default read voltage is obtained. After the quantity P is confirmed, the offset is obtained by a lookup operation by looking up the offset corresponding to the quantity P and a first mapping table between the offset and the quantity P. The first mapping table is stored in a first register of the register. Fig.11 An example of a first mapping table is shown, where M corresponds to the number P. This means that when P is the number of cells in 2 N When M is the number of memory cells in the cell device in one or more programmed states, and when P is the number of memory cells in the selected page in one or more programmed states, N When the number of memory cells in one or more programmed states is selected, M is the number of memory cells in the selected page of the cell device. In this embodiment, only some but not all pages of the cell device are selected to run the verification read operation, where M is the number of memory cells in the selected page of the cell device in the cell device in 2 NIn another embodiment, all pages in the cell device are selected to perform a verification read operation, then M is the number of memory cells in the cell device that are in one or more programmed states. N In this embodiment, M is the number of memory cells in the L7 state in the selected page just after the selected page is programmed, that is, 18432. Based on the number P counted by the page buffer, the degree of charge loss is divided into eight levels, ranging from D0 to D7. Fig.11 As shown, if the quantity P is 18340, it is less than M and greater than The charge loss corresponding to 18340 is D0, which is slight and does not require adjustment of the default read voltage, the offset should be 0. If the number P is 14240, which is less than and greater than The charge loss degree corresponding to 14240 is D2, and an offset of -120 mV should be applied to the memory cell in the L7 state. If the number P is 3072, which is less than and greater than The charge loss level corresponding to 3072 is D5, and an offset of -300 mV should be applied to the memory cell in the L7 state. If the number P is 1120, which is less than The charge loss degree corresponding to 3072 is D7, which means that the charge loss of the unit device is too severe to be compensated, and the data stored in the unit device needs to be relocated.
[0155] For memory cells that suffer the same degree of charge loss, the higher the threshold voltage of the memory cell, the more severe the threshold reduction will be. Therefore, it is necessary to adjust the offset based on the default threshold voltage of the memory cell, and the adjusted offset of the memory cell in the unit device is positively correlated with the default threshold voltage of the memory cell. For example, for a charge loss of D2, the offset of the memory cell in the L7 state is -120mV, and the offset of the memory cell in the L4 state should be -60mV, and the offset of the memory cell in the L1 state should be -20mV. The relationship between the offset in different states and the degree of charge loss of the memory cell is as shown in Fig.12 For other MLC devices, such as QLC devices, the relationship between the offset in different states and the degree of charge loss in the memory cell is similar. Fig.12 The trends shown are similar.
[0156] In another embodiment of the present disclosure, a difference ΔP between the number P and a default number P′ is calculated. The default number P′ is the number of cells in 2 NThe number of memory cells in one or more programmed states in a state. As described above, in a cell device including four 18kB NAND pages, the number P of memory cells in state L7 is equal to the default number P′ of memory cells in state L7, that is, 73728 bits. In this embodiment, the offset is obtained by a lookup operation by looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP. The second mapping table is stored in the second register of the register, and the default number P′ is stored in the third register of the register. The quantity difference ΔP is then calculated based on the default number P′ stored in the third register and the obtained number P. The quantity difference ΔP is then used to determine the offset based on the quantity difference ΔP and the second mapping table. The quantity difference ΔP used in this embodiment has the same function as the number P in the above-mentioned embodiment, that is, the charge loss is reflected by the change in the number in the selected state. The method of counting the quantity difference ΔP and the number P is different, and both can be implemented in a variety of ways. The above-mentioned embodiments are exemplary and should not be interpreted as limiting the contents of the present disclosure.
[0157] Method 1500 proceeds to operation 1506, such as Fig.15 As shown, a read operation is performed on a selected memory cell among the memory cells in the unit device using a compensated read voltage.
[0158] By treating an MLC cell device as a single-level cell (SLC) cell device and running a verification read operation to confirm the actual charge loss of a cell device, the present disclosure is able to confirm a custom offset to compensate for the default read voltage of the read operation. Error recovery is avoided, and the time consumed by each read operation is greatly saved. The performance of the storage system is significantly improved.
[0159] The foregoing description of specific embodiments can be readily modified and / or adapted for various applications. Therefore, such adaptations and modifications are intended to fall within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein.
[0160] The breadth and scope of the present disclosure should not be limited by any of the above-described embodiments, but should be defined only in accordance with the following claims and their equivalents.
[0161] Although specific configurations and arrangements are discussed, it should be understood that this is for illustrative purposes only. Therefore, other configurations and arrangements may be used without departing from the scope of the present disclosure. In addition, the inventive subject matter described in the present disclosure may also be used for various other applications. The functions and structural features described in the present disclosure may be combined, adjusted, modified, and rearranged with each other in a manner consistent with the scope of the present disclosure.
Claims
1. A storage system, comprising: A storage device comprising: An array of memory cells, each memory cell being configured to be set to 2 corresponding to a segment of N bits of data N one of states, wherein N is an integer greater than 1, and the array of memory cells is divided into one or more unit devices; and a peripheral circuit coupled to the memory cell and configured to: perform a read operation on a selected one of the memory cells in the cell arrangement in the cell arrangement; and a memory controller coupled to the memory device and configured to: control the memory device to perform the read operation using a compensated read voltage having an offset relative to a default read voltage by sending an instruction to the peripheral circuit; wherein the offset is in the 2 N The number P of memory cells in one or more programmed states is related to the number P of memory cells in one or more programmed states.
2. The storage system according to claim 1, wherein: The offset is associated with the unit device, and the offset is updated after the number P of storage cells in the unit device changes.
3. The storage system according to claim 2, wherein: The offset is updated periodically.
4. The storage system according to claim 3, wherein: The refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
5. The storage system according to claim 1, wherein: The number P is obtained by a verification read operation configured to count the number P of the memory cells in the unit device.
6. The storage system according to claim 5, wherein: The memory controller is configured to: Select the 2 N one or more programmed states of states; as well as determining a verify voltage used in the verify read operation based on a default range of threshold voltages corresponding to the selected one or more states; and The verification voltage is equal to a minimum threshold voltage in a default range of threshold voltages corresponding to the selected one or more states.
7. The storage system according to claim 6, wherein: 2 N the number of the selected one or more programmed states in the states is one; and The minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
8. The storage system according to claim 6, wherein: The peripheral circuit includes a word line driver configured to apply the verification voltage to at least part of the memory cells in the cell device through a word line.
9. The storage system according to claim 8, wherein: The memory controller includes a digital signal processor configured to count the number P after the verification voltage is applied to at least some of the memory cells in the unit device.
10. The storage system according to claim 5, wherein: Each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
11. The storage system according to claim 1, wherein: The controller includes a processor configured to obtain the offset by looking up the offset corresponding to the number P and a first mapping table between the offset and the number P through a lookup operation.
12. The storage system according to claim 11, wherein: The memory controller includes a first register configured to store the first mapping table.
13. The storage system according to claim 1, wherein: The memory controller includes a digital signal processor, wherein the digital signal processor is configured to: calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
14. The storage system according to claim 13, wherein: The memory controller includes a processor configured to obtain the offset through a lookup operation by looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
15. The storage system according to claim 14, wherein: The memory controller includes a second register configured to store the second mapping table.
16. The storage system according to claim 14, wherein: The memory controller comprises a third register configured to store the default number P'.
17. The storage system according to any one of claims 11 to 16, wherein: The processor is configured to adjust the offset based on a default threshold voltage of a memory cell in the cell device.
18. The storage system according to claim 17, wherein: The adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
19. The storage system according to claim 11 or 14, wherein: The memory controller includes a fourth register configured to store an offset obtained by the processor.
20. The storage system according to claim 19, wherein: The processor is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
21. A memory controller coupled to a memory device comprising an array of memory cells, each memory cell being configured to correspond to a segment of N bits of data. N One of the states, N is an integer greater than 1, and the array of memory cells is divided into one or more unit devices, wherein the memory controller is coupled to the memory device and is configured to: when executing an instruction: Obtain from the storage device the unit device in the unit device in the 2 N A number P of memory cells in one or more programmed states; calculating a compensated read voltage having an offset relative to a default read voltage based on the quantity P; and The compensated read voltage is provided to the memory device for a read operation performed on a selected one of the memory cells in the cell devices in the cell devices.
22. The memory controller according to claim 21, wherein: The offset is associated with the unit device, and the offset is updated after the number P of storage cells in the unit device changes.
23. The memory controller according to claim 22, wherein: The offset is updated periodically.
24. The memory controller according to claim 23, wherein: The refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device. 25 . The memory controller of claim 21 , further comprising a processor configured to control the memory device to count the number P of memory cells in the cell arrangement by executing a verification read operation.
26. The memory controller of claim 25, wherein: The processor is configured to: Select the 2 N one or more programmed states of states; as well as determining a verify voltage used in the verify read operation based on a default range of threshold voltages corresponding to the selected one or more states; and The verification voltage is equal to a minimum threshold voltage in a default range of threshold voltages corresponding to the selected one or more states.
27. The memory controller of claim 26, wherein 2 N the number of the selected one or more programmed states in the states is one; and The minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
28. The memory controller of claim 27, wherein: The memory controller includes a digital signal processor configured to count the number P after the verification voltage is applied to at least some of the memory cells in the unit device.
29. The memory controller of claim 25, wherein: Each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
30. The memory controller of claim 21, wherein: A processor is included, and the processor is configured to obtain the offset by searching the offset corresponding to the number P and a first mapping table between the offset and the number P through a search operation.
31. The memory controller of claim 30, wherein: The memory controller includes a first register configured to store the first mapping table.
32. The memory controller of claim 21, wherein: The memory controller includes a digital signal processor, wherein the digital signal processor is configured to: calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
33. The memory controller of claim 32, wherein: The memory controller includes a processor configured to obtain the offset through a lookup operation by looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
34. The memory controller of claim 33, wherein: The memory controller includes a second register configured to store the second mapping table.
35. The memory controller of claim 33, wherein: The memory controller comprises a third register configured to store the default number P'.
36. A memory controller according to claim 30 or claim 33, wherein: The processor is configured to, for a memory cell in the cell device, adjust the offset based on a default threshold voltage of the memory cell.
37. The memory controller of claim 36, wherein: The adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
38. A memory controller according to claim 30 or claim 33, wherein: The memory controller includes a fourth register configured to store an offset obtained by the processor.
39. The memory controller of claim 38, wherein: The processor is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
40. A storage device comprising: An array of memory cells, each memory cell being configured to be set to 2 corresponding to a segment of N bits of data N one of states, wherein N is an integer greater than 1, and the array of memory cells is divided into one or more unit devices; and a peripheral circuit coupled to the memory cell and configured to: perform a read operation on a selected memory cell of the memory cells in the cell device of the cell device using a compensated read voltage having an offset relative to a default read voltage, wherein the offset is in the 2 N The number P of memory cells in one or more programmed states is related to the number P of memory cells in one or more programmed states.
41. The memory device according to claim 40, wherein: The offset is associated with the unit device, and the offset is updated after the number P of storage cells in the unit device changes.
42. The memory device according to claim 41, wherein: The offset is updated periodically.
43. The memory device according to claim 42, wherein: The refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
44. The memory device according to claim 40, wherein: The number P is obtained by a verification read operation configured to count the number P of the memory cells in the unit device.
45. The memory device according to claim 44, wherein: The peripheral circuit configuration is: Select the 2 N one or more programmed states of states; as well as determining a verify voltage used in the verify read operation based on a default range of threshold voltages corresponding to the selected one or more states; and The verification voltage is equal to a minimum threshold voltage in a default range of threshold voltages corresponding to the selected one or more states.
46. The memory device of claim 45, wherein 2 N the number of the selected one or more programmed states in the states is one; and The minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
47. The memory device according to claim 45, wherein: The peripheral circuit includes a word line driver configured to apply the verification voltage to at least part of the memory cells in the cell device through a word line.
48. The memory device according to claim 47, wherein: The peripheral circuit includes an operator configured to calculate the number P after the verification voltage is applied to at least part of the memory cells in the unit device.
49. The memory device of claim 44, wherein Each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
50. The memory device according to claim 40, wherein: The peripheral circuit includes a control logic configured to obtain the offset through a lookup operation by looking up the offset corresponding to the number P and a first mapping table between the offset and the number P.
51. The memory device according to claim 50, wherein: The peripheral circuit includes a first register configured to store the first mapping table.
52. The memory device according to claim 50, wherein: The peripheral circuit includes an operator configured to calculate a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
53. The memory device according to claim 52, wherein: The control logic is configured to obtain the offset through a lookup operation by looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
54. The memory device according to claim 53, wherein: The peripheral circuit includes a second register configured to store the second mapping table.
55. The memory device according to claim 53, wherein: The peripheral circuit includes a third register configured to store the default number P'.
56. A storage device according to claim 50 or claim 53, wherein: The control logic is configured to, for a memory cell in the cell device, adjust the offset based on a default threshold voltage of the memory cell.
57. The memory device according to claim 56, wherein: The adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
58. A storage device according to claim 50 or claim 53, wherein: The peripheral circuit includes a fourth register configured to store an offset obtained by the control logic.
59. The memory device according to claim 58, wherein: The control logic is configured to: retrieve the offset from the fourth register; and calculate the compensated read voltage by adding the offset to the default read voltage.
60. A method for reading a memory device, the memory device comprising an array of memory cells, the memory cells being configured to: be set to 2 corresponding to a segment of N-bit data; N One of the states, N is an integer greater than 1, the array of memory cells is divided into one or more unit devices, and the method comprises: Get the unit device in the 2 N A number P of memory cells in one or more programmed states; calculating a compensated read voltage having an offset relative to a default read voltage; and A read operation is performed on a selected one of the memory cells in the cell device using the compensated read voltage.
61. The method of claim 60, wherein: After calculating the compensated read voltage, the method further includes updating the offset after a number P of the memory cells in the cell device changes.
62. The method of claim 61, wherein: The offset is updated periodically.
63. The method of claim 62, wherein: The refresh period is less than or equal to a minimum interval between two adjacent programming operations performed on the cell device.
64. The method of claim 60, wherein: The number P of memory cells in the cell device is calculated by running a verify read operation.
65. The method of claim 64, wherein: Running a verify read operation involves: Select the 2 N one or more programmed states of states; and determining a verification voltage used in the verification read operation based on a default range of threshold voltages corresponding to the selected one or more states; and The verification voltage is equal to a minimum threshold voltage in a default range of threshold voltages corresponding to the selected one or more states.
66. The method of claim 65, wherein: 2 N the number of the selected one or more programmed states in the states is one; and The minimum threshold voltage in the default range of threshold voltages corresponding to the selected state is higher than the 2 N The threshold voltage of the memory cell corresponding to the unselected state among the states.
67. The method of claim 64, wherein: Each of the one or more unit devices includes one or more pages, the verification read operation is performed on one or more selected pages of the one or more pages, and the number P is the number of pages in the one or more selected pages that are in the 2 N The average number of memory cells in one or more programmed states in a state.
68. The method of claim 66, wherein: Calculating the compensated read voltage with the offset includes looking up the offset corresponding to the number P and a first mapping table between the offset and the number P.
69. The method of claim 68, wherein: The first mapping table is stored in a first register.
70. The method of claim 66, wherein: Calculating the compensated read voltage with the offset includes: calculating a quantity difference ΔP between the quantity P and a default quantity P′, wherein the default quantity P′ is the number of cells in the 2 N The number of memory cells in the one or more programmed states is determined based on the number of memory cells in the one or more programmed states.
71. The method of claim 70, wherein: Calculating the compensated read voltage with the offset further includes looking up the offset corresponding to the quantity difference ΔP and a second mapping table between the offset and the quantity difference ΔP.
72. The method of claim 71, wherein: The second mapping table is stored in a second register.
73. The method of claim 71, wherein: The default number P' is stored in a third register.
74. The method of claim 67 or 71, wherein: After calculating the compensated read voltage having the offset, the method further includes adjusting the offset based on a default threshold voltage of the memory cell.
75. The method of claim 74, wherein: The adjusted offset of a memory cell in the cell device is positively correlated to the default threshold voltage of the memory cell.
76. The method of claim 74, wherein: The adjusted offset is stored in a fourth register.
77. The method of claim 76, wherein: Determining the compensated read voltage includes: retrieving the offset from the fourth register; and The compensated read voltage is calculated by adding the offset to the default read voltage.
