Data storage in memory systems
Patent Information
- Application Number
- JP2025027346
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2024-04-11
- Filing Date
- 2025-02-21
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-02-21
Smart Images

Figure 0007957598000002 
Figure 0007957598000003 
Figure 0007957598000004
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to memory devices and systems for storing data.
Background Art
[0002] A memory system may include one or more memory devices and a memory controller that manages data stored in the one or more memory devices and communicates with a host. The memory system may be a non-volatile memory (e.g., NAND flash memory) that stores data in memory pages and erases data in a memory block including a plurality of memory pages. In some cases, errors in stored data may cause read failures and affect the reliability of the memory system. The memory system can detect and correct errors in stored data by using an error correction code (ECC).
Summary of the Invention
[0003] The present disclosure relates to data storage in a memory system. In one embodiment, a method of operating a memory system includes receiving a first write command for writing first user data to a memory device. The method further includes generating first parity data corresponding to the first user data based on a first encoding algorithm. The method further includes storing the first user data and the first parity data in a memory block of a memory device of the memory system. The method further includes receiving a second write command for writing second user data to the memory device. The method further includes generating second parity data corresponding to the second user data based on a second encoding algorithm. The second encoding algorithm is different from the first encoding algorithm. The method further includes storing the second user data and the second parity data in the same memory block as the first user data and the first parity data.
[0004] This method may include one or more of the following features:
[0005] In some implementations, the second user data and the second parity data are stored in the same memory block as the first user data and the first parity data.
[0006] In some implementations, the first parity data and the second parity data include low-density parity check (LDPC) parity data. The first coding algorithm includes the first LDPC matrix, and the second coding algorithm includes the second LDPC matrix.
[0007] In some implementations, this method further includes storing a first identifier for first user data in the memory controller of the memory system, and storing a second identifier for second user data in the memory controller. The first identifier corresponds to a first coding algorithm, and the second identifier corresponds to a second coding algorithm.
[0008] In some implementations, the first and second identifiers are stored in a physical-to-logical (P2L) mapping table.
[0009] In some implementations, the logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
[0010] In some implementations, this method further includes identifying a first LDPC matrix based on a first identifier and decoding the first parity data based on the first LDPC matrix.
[0011] In some implementations, the first user data is contained within a logical block of the first format, and the second user data is contained within a logical block of the second format.
[0012] Certain embodiments relating to the subject matter described herein can be implemented as a memory system. The memory system may include one or more memory devices and a memory controller coupled to one or more memory devices. The memory system is configured to perform an operation which includes receiving a first write command for writing first user data to one or more memory devices. This operation further includes generating first parity data corresponding to the first user data based on a first coding algorithm. This operation further includes storing the first user data and the first parity data in a memory block of the memory devices of the memory system. This operation further includes receiving a second write command for writing second user data to one or more memory devices. This operation further includes generating second parity data corresponding to the second user data based on a second coding algorithm, the second coding algorithm being different from the first coding algorithm. This operation further includes storing the second user data and the second parity data in the same memory block as the first user data and the first parity data.
[0013] This memory system may include one or more of the following features:
[0014] In some implementations, the second user data and the second parity data are stored in the same memory block as the first user data and the first parity data.
[0015] In some implementations, the first parity data and the second parity data include low-density parity check (LDPC) parity data. The first coding algorithm includes the first LDPC matrix, and the second coding algorithm includes the second LDPC matrix.
[0016] In some implementations, this operation further includes storing a first identifier for the first user data in the memory controller of the memory system, and storing a second identifier for the second user data in the memory controller. The first identifier corresponds to a first coding algorithm. The second identifier corresponds to a second coding algorithm.
[0017] In some implementations, the first and second identifiers are stored in a physical-to-logical (P2L) mapping table. The logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
[0018] In some implementations, the first user data is contained within a logical block of the first format, and the second user data is contained within a logical block of the second format.
[0019] Certain embodiments relating to the subject matter described herein can be implemented as a memory controller. The memory controller may include a first interface, a second interface, and an encoder. The first interface may be configured to receive a first write command containing first user data and a second write command containing second user data. The encoder may be configured to generate first parity data corresponding to the first user data based on a first coding algorithm and generate second parity data corresponding to the second user data based on a second coding algorithm. The second coding algorithm is different from the first coding algorithm. The second interface may be configured to send a third write command for writing the first user data and first parity data to a memory block of a memory device and a fourth write command for writing the second user data and second parity data to a memory block.
[0020] This memory system may include one or more of the following features:
[0021] In some implementations, the memory controller is configured to control the memory device in order to store the second user data and the second parity data in the same memory block as the first user data and the first parity data.
[0022] In some implementations, the memory controller may further include a decoder. The second interface may be further configured to receive first user data and first parity data from a memory block, and second user data and second parity data from a memory block. The decoder may be configured to decode the first parity data based on a first coding algorithm and decode the second parity data based on a second coding algorithm.
[0023] In some implementations, the memory controller is further configured to store a first identifier for first user data and a second identifier for second user data. The first identifier corresponds to a first encoding algorithm, and the second identifier corresponds to a second encoding algorithm.
[0024] In some implementations, the first and second identifiers are stored in a physical-to-logical (P2L) mapping table. The logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
[0025] In some implementations, the first parity data and the second parity data include low-density parity check (LDPC) parity data. The first coding algorithm includes the first LDPC matrix, and the second coding algorithm includes the second LDPC matrix.
[0026] In general, while each aspect has been described as computer-implemented software embodied on a tangible medium that processes and transforms respective data, some or all of these aspects may be computer-implemented methods for performing the functions described herein, or may be further included in respective systems or other devices. These and other aspects of the disclosure, as well as details of implementations, are set forth in the accompanying drawings and the following description. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] [Figure 1] A block diagram of an example system having a memory device according to some aspects of the present disclosure. [Figure 2A] A diagram illustrating an example storage product according to some aspects of the present disclosure. [Figure 2B] A diagram illustrating an example storage product according to some aspects of the present disclosure. [Figure 3] A diagram illustrating an example schematic diagram of a memory device including peripheral circuitry according to some aspects of the present disclosure. [Figure 4] A diagram illustrating some example peripheral circuits according to some aspects of the present disclosure. [Figure 5A] A block diagram of an example system including a memory device, a memory controller, and a host according to some aspects of the present disclosure. [Figure 5B] A block diagram of an example system including a memory device, a memory controller, and a host according to some aspects of the present disclosure. [Figure 6A] A diagram illustrating an example data structure of an LBA format according to some aspects of the present disclosure. [Figure 6B] A diagram illustrating another example data structure of an LBA format according to some aspects of the present disclosure. [Figure 7]This figure illustrates an example of a physical-to-logical (P2L) mapping table relating to several aspects of this disclosure. [Figure 8] This diagram illustrates an example data structure of a write command relating to several aspects of this disclosure. [Figure 9] This figure illustrates one example method for writing data to a memory system, relating to several aspects of this disclosure. [Figure 10] This figure illustrates one example method for reading data from a memory system, relating to several aspects of this disclosure. [Figure 11] This is a flowchart illustrating an exemplary method for storing data in a memory system, relating to some aspects of this disclosure.
[0028] Similar reference numbers and designations in various drawings refer to the same elements. [Modes for carrying out the invention]
[0029] Error correction is performed in memory systems to ensure data integrity and system reliability. Various factors, such as physical defects in memory cells, electrical noise, thermal fluctuations, and the natural aging of the memory system, can cause errors in data stored in the memory system. Such errors, specifically erroneous bits in the data, can lead to read failures or data loss. Memory systems can maintain data accuracy by detecting and correcting errors using error correction codes (ECC). For example, a memory system can process data using low-density parity check (LDPC) codes for error correction. When receiving user data from a host, the memory system can encode the user data by generating parity data using an LDPC matrix. Both the user data and the corresponding parity data are stored in the memory device of the memory system. In a read operation, the memory system can retrieve the user data and the corresponding parity data from the memory device. The memory system can further detect and correct erroneous bits in the data using the LDPC matrix.
[0030] In some implementations, a memory system can be configured to receive user data in different logical block addressing (LBA) formats. For example, the memory space of a memory system can be logically divided into multiple namespaces. Each namespace can have a corresponding LBA format. That is, the format of logical blocks in different namespaces can be different. The memory system can encode user data in different LBA formats using various encoding algorithms (e.g., various LDPC matrices).
[0031] In some implementations, memory blocks within a memory device store user data and corresponding parity data with the same LBA format. If user data with a different LBA format is received, a different memory block can be used to store the user data and its corresponding parity data. Consequently, a memory system may contain an excessive number of free memory blocks (i.e., memory blocks that are partially filled with data but still have space to store additional data), which can increase the demand for hold-up capacitors to retain data in the memory controller of the memory system in the event of a power failure. Furthermore, an excessive number of free memory blocks can increase the demand for independent disk redundant array (RAID) resources, leading to higher hardware costs for the memory system.
[0032] In some implementations, memory blocks within a memory device can store user data in various LBA formats, as well as corresponding parity data. In response to receiving user data with a different LBA format than previous user data, the memory device can store the user data and its corresponding parity data in the same memory block as the previous user data, without opening a separate memory block. The memory system can record identifiers that indicate the encoding algorithm for encoding user data in each LBA format. Therefore, optimizing the allocation of free memory blocks within the memory device can further improve the cost-effectiveness and power efficiency of the memory system's operation.
[0033] The above-mentioned aspects of this disclosure, as well as several other aspects, will be described in more detail below.
[0034] Figure 1 illustrates a block diagram of an exemplary system 100 having a memory device, relating to several aspects of the present disclosure. System 100 may be a mobile phone, a desktop computer, a laptop computer, a tablet, a vehicle 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 internal storage. As seen in Figure 1, system 100 may include a host 108 and a memory system 102 having one or more memory devices 104 and a memory controller 106. The host 108 may include one or more processors of the electronic device. The processor may be a central processing unit (CPU) or a system-on-a-chip (SoC) such as an application processor (AP). The host 108 may be configured to send or receive data and commands to and from the memory system 102.
[0035] The memory device 104 may be any memory device disclosed in this disclosure, such as a NAND flash memory device. Note that NAND flash is merely an example of a memory device for illustrative purposes. This may include any suitable solid-state non-volatile memory, such as NOR flash, ferroelectric RAM (FeRAM), phase-change memory (PCM), magnetoresistive random-access memory (MRAM), spin-transition torque magnetic random-access memory (STT-RAM), or resistive random-access memory (RRAM). In some implementations, the memory device 104 includes a three-dimensional (3D) NAND flash memory device.
[0036] The memory controller 106 may be implemented by a microprocessor, a microcontroller (also known as a microcontroller unit (MCU)), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a programmable logic device (PLD), a state machine, gate logic, separate hardware circuits, and other suitable hardware, firmware, and / or software configured to perform various functions detailed below.
[0037] In some embodiments, the memory controller 106 is configured to be coupled to the memory device 104 and the host 108, and to control the memory device 104. The memory controller 106 can manage the data stored in the memory device 104 and communicate with the host 108. In some implementations, the memory controller 106 is designed to operate in low-duty-cycle environments such as Secure Digital (SD) cards, CompactFlash® (CF) cards, Universal Serial Bus (USB) flash drives, or other media used in electronic devices such as personal computers, digital cameras, and mobile phones. In some implementations, the memory controller 106 is designed to operate in high-duty-cycle environments such as solid-state drives (SSDs) or embedded multimedia cards (eMMCs) used as data storage in mobile devices such as smartphones, tablets, and laptop computers, and in enterprise storage arrays. The memory controller 106 can be configured to control the operation of the memory device 104, such as read operations, erase operations, and program operations. Furthermore, the memory controller 106 can be configured to manage various functions related to 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, logical-to-physical mapping management, and wear leveling. In some implementations, the memory controller 106 is further configured to process error correction codes (ECC) with respect to data read from or written to the memory device 104. Other appropriate functions, such as formatting the memory device 104, can also be performed by the memory controller 106.
[0038] The memory controller 106 can communicate with an external device (e.g., host 108) according to a specific communication protocol. For example, the memory controller 106 can communicate with an external device through at least one of various interface protocols, such as the USB protocol, MMC protocol, Peripheral Component Interconnection (PCI) protocol, PCI-Express (PCI-E) protocol, Advanced Technology Attachment (ATA) protocol, serial-ATA protocol, parallel-ATA protocol, Small Computer Small Interface (SCSI) protocol, Extended Small Disk Interface (ESDI) protocol, Integrated Drive Electronics (IDE) protocol, and Firewire protocol. The memory controller 106 is configured to receive and send commands to and from the host 108, and to perform or execute a number of functions and operations provided in this disclosure, which are described later.
[0039] The memory controller 106 and one or more memory devices 104 can be integrated into various types of storage devices. For example, the memory controller 106 and one or more memory devices 104 can be packaged into a Universal Flash Storage (UFS) package or an eMMC package. In the embodiment shown in Figure 2A, the memory controller 106 and a single memory device 104 can be integrated into a memory card 202. The memory card 202 may include PC cards (PCMCIA: Personal Computer Memory Card International Association), CF cards, SmartMedia (SM) cards, Memory Sticks, Multimedia Cards (MMC, RS-MMC, MMCmicro), SD cards (SD, miniSD, microSD, SDHC), UFS, etc. The memory card 202 may further include a memory card connector 204 that connects the memory card 202 to a host (for example, the host 108 in Figure 1). In another embodiment shown in Figure 2B, a memory controller 106 and multiple memory devices 104 can be integrated into the SSD 206. The SSD 206 may further include an SSD connector 208 that connects the SSD 206 to a host (e.g., the host 108 in Figure 1). In some implementations, the storage capacity and / or operating speed of the SSD 206 is greater than that of the memory card 202.
[0040] Figure 3 illustrates an example of a schematic diagram of a memory device 300 including peripheral circuits according to several embodiments of the present disclosure. The memory device 300 may include a memory cell array 301 and peripheral circuits 302 coupled to the memory cell array 301. The memory cell array 301 may be a NAND flash memory cell array in which memory cells 306 are provided in the form of an array of NAND memory strings 308 that extend vertically on a substrate (not shown in Figure 3). In some implementations, each NAND memory string 308 includes a plurality of memory cells 306 coupled in series and stacked vertically. Each memory cell 306 can hold a continuous analog value, such as a voltage or charge, which depends on the number of electrons captured in the memory layer of the memory cell 306. The logical state (i.e., data) of each memory cell 306 in the memory block 304 is determined by the threshold voltage V of the memory cell 306. th Based on this, a decision can be made. Each memory cell 306 can be a floating-gate type memory cell including a floating-gate transistor, or a charge-trap type memory cell including a charge-trap transistor.
[0041] In some implementations, each memory cell 306 is a single-level cell (SLC) having two assumed memory states capable of storing 1 bit of data. For example, the first memory state "0" may correspond to a first voltage range, and the second memory state "1" may correspond to a second voltage range. In some implementations, each memory cell 306 is a multi-level cell (MLC) capable of storing 2 or more bits of data in three or more memory states. For example, an MLC can store 2 bits per cell, 3 bits per cell (also called a triple-level cell (TLC)), or 4 bits per cell (also called a quad-level cell (QLC)). Each MLC can be programmed to support a certain range of assumed nominal storage values. In one embodiment, if each MLC stores 2 bits of data, the MLC can be programmed from the erased state to one of three assumed programming levels by writing one of three assumed nominal storage values to the cell. A fourth nominal storage value can be used for the erased state.
[0042] As shown in Figure 3, each NAND memory string 308 may include a source selection gate (SSG) 310 at its source end and a drain selection gate (DSG) 312 at its drain end. The SSG 310 and DSG 312 can be configured to activate selected NAND memory strings 308 (array columns) during read and program operations. In some implementations, the sources of NAND memory strings 308 within the same memory block 304 are connected through the same source line (SL) 314, for example, a common SL. That is, according to some implementations, NAND memory strings 308 within the same memory block 304 have an array common source (ACS). According to some implementations, the DSG 312 of each NAND memory string 308 is connected to its respective bit line 316, which can read or write data via an output bus (not shown). In some implementations, each NAND memory string 308 is configured to be selected or deselected by applying a selection voltage (e.g., above the threshold voltage of the transistor having the DSG 312) or a deselection voltage (e.g., 0V) to each DSG 312 through one or more DSG lines 313, and / or by applying a selection voltage (e.g., above the threshold voltage of the transistor having the SSG 310) or a deselection voltage (e.g., 0V) to each SSG 310 through one or more SSG lines 315.
[0043] As shown in Figure 3, the NAND memory string 308 can be organized into multiple memory blocks 304, each memory block having a common SL314 coupled to the ACS. In some implementations, each memory block 304 can function as the basic data unit for the erase operation, such that the memory cells 306 on the same memory block 304 are erased simultaneously. To erase the memory cells 306 in the selected memory blocks 304, the SL314 coupled to the selected memory blocks 304 and the deselected memory blocks in the same plane can be biased with an erase voltage. For example, the erase voltage can be a high positive voltage (e.g., 20V or higher). In some implementations, the erase operation can be performed at the 1 / 2 block level, the 1 / 4 block level, or at any appropriate number of memory blocks, or at a level with a fraction of a memory block.
[0044] Memory cells 306 of adjacent NAND memory strings 308 can be connected via word lines 318. The word lines 318 can select rows of memory cells 306 that are affected by read and program operations. Each word line 318 may include gate lines that connect to multiple control gates (gate electrodes) of multiple memory cells 306. The example word lines shown in Figure 3 are located between one or more DSG lines 313 and one or more SSG lines 315.
[0045] Figure 4 illustrates some exemplary peripheral circuits 302 relating to several aspects of the present disclosure. Peripheral circuits 302 can be coupled to the memory cell array 301 through bit lines 316, word lines 318, SL 314, SSG lines 315, and DSG lines 313. Peripheral circuits 302 may include any suitable analog signaling circuits, digital signaling circuits, and mixed signaling circuits to support the operation of the memory cell array 301 by applying and sensing voltage signals and / or current signals to and from each target memory cell 306 through bit lines 316, word lines 318, SL 314, SSG lines 315, and DSG lines 313. Peripheral circuits 302 may include various types of peripheral circuits formed using metal-oxide-semiconductor (MOS) technology. The illustrative peripheral circuitry 302 includes a page buffer / sense amplifier 404, a column decoder / bit line driver 406, a row decoder / word line driver 408, a voltage source 410, control logic 412, registers 414, an interface 416, and a data bus. In some embodiments, additional peripheral circuitry not shown in Figure 4 may also be included.
[0046] The page buffer / sense amplifier 404 can be configured to read and program (write) data to and from the memory cell array 301 according to control signals from the control logic 412. In one embodiment, the page buffer / sense amplifier 404 can store one page of program data (write data) to be programmed into one page 320 of the memory cell array 301. In another embodiment, the page buffer / sense amplifier 404 can perform a program verification operation to ensure that the data has been properly programmed into the memory cell 306 coupled to the selected word line 418. In yet another embodiment, the page buffer / sense amplifier 404 can further detect a low-power signal from the bit line 316 representing the data bits stored in the memory cell 306 and amplify this minute voltage swing to a recognizable logic level during a read operation. The column decoder / bit line driver 406 can be controlled by the control logic 412 and configured to select one or more NAND memory strings 308 by applying bit line voltages generated from a voltage source 410.
[0047] The row decoder / word line driver 408 is controlled by control logic 412 and can be configured to select / deselect memory blocks 304 of the memory cell array 301, and further to select / deselect word lines 418 of memory blocks 304. The row decoder / word line driver 408 can further be configured to drive word lines 418 using word line voltages generated from a voltage source 410. In some implementations, the row decoder / word line driver 408 can further select / deselect and drive SSG lines 415 and DSG lines 413. As detailed below, the row decoder / word line driver 408 is configured to apply a program voltage to selected word lines 418 during the programming operation of memory cells 306 coupled to the selected word lines 418.
[0048] The voltage source 410 can be controlled by the control logic 412 and configured to generate word line voltages (e.g., read voltage, program voltage, path voltage, local voltage, verify voltage, etc.), bit line voltages, and source line voltages to be supplied to the memory cell array 301.
[0049] The control logic 412 can be configured to be coupled to each of the peripheral circuits described above and to control the operation of each peripheral circuit. The registers 414 can be coupled to the control logic 412 and may include a status register, a command register, and an address register for storing status information, command operation codes (opcodes), and command addresses for controlling the operation of each peripheral circuit.
[0050] Interface 416 is coupled to control logic 412 and can function as a control buffer that buffers and relays control commands received from a host (not shown) to control logic 412, and status information received from control logic 412 to the host. Interface 416 is further coupled to column decoder / bit line driver 406 via a data bus and can function as a data input / output (I / O) interface and data buffer that buffers and relays data to and from the memory cell array 301.
[0051] Figure 5A illustrates a block diagram of an exemplary system 500, including a memory device 104a, a memory controller 106a, and a host 108, according to some aspects of the present disclosure. In some implementations, the memory device 104a is a NAND flash memory device. The host 108 can transmit user data 520 (also known as host data) to be stored in the memory device 104a. The host 108 can transmit commands (e.g., write (program) commands, read commands, and erase commands) to the memory controller 106a, thereby configuring the memory device 104a to perform corresponding operations under the control of the memory controller 106a.
[0052] As shown in Figure 5A, the memory controller 106a may include a controller processor 504, such as a memory chip controller (MCC) or a memory controller unit (MCU). The controller processor 504 is configured to control a module that executes commands or instructions for performing the functions disclosed herein. The controller processor 504 may also be configured to control the operation of the memory device 104a by generating and transmitting various control signals, such as program instructions for program operations and read instructions for read operations. In some implementations, the memory controller 106a may include one or more controller processors. The one or more processors may include a primary processor and one or more secondary processors.
[0053] The memory controller 106a may further include a storage medium 506. The storage medium 506 may be volatile memory or non-volatile memory. In some implementations, the memory controller 106a may include a volatile controller and non-volatile memory. A storage medium 506 in the form of volatile memory may include registers or cache memory to enable faster access and processing speeds for reading, programming, or erasing data stored internally, but it cannot retain stored information when the power is off. In some implementations, the storage medium 506 may include either dynamic random access memory (DRAM) or static random access memory (SRAM). A storage medium 506 in the form of non-volatile memory can retain stored information even when the power is off. In some implementations, the storage medium 506 may not be provided with the memory controller 106a. For example, the storage medium 506 may be coupled to the memory controller 106a and located outside of it.
[0054] In some implementations, the memory controller 106a may include a first interface 502 configured to receive and send commands or instructions to and from the host 108. In some implementations, the first interface 502 is coupled to the controller processor 504 and configured to receive and send commands or instructions to the controller processor 504 causing it to perform the functions disclosed herein. In addition, the memory controller 106a may include a second interface 510 configured to receive and send data or commands to and from the memory device 104a. In some implementations, the second interface 510 is coupled to the controller processor 504 and configured to send commands from the controller processor 504 to the memory device 104a.
[0055] In some implementations, the memory controller 106a may include an encoder 532 that includes one or more encoding circuits. When the first interface 502 receives user data 520 to be stored in the memory device 104a, the encoder 532 can encode the user data 520 by generating parity data for the user data 520. The parity data can be used for error correction when programming and reading data from the memory device 104a. In some cases, when storing the user data 520 in the memory device 104a, some bits of the user data 520 may be inverted from their initially set bits (e.g., "1") to "0" due to electronic drift, data retention problems, or other phenomena. Such erroneous bits can cause reading errors and may affect the reliability of the memory device 104a. By using parity data to detect and correct erroneous bits, the data read from the memory device 104a can be made accurate and reliable.
[0056] In some implementations, the generated parity data is appended to the user data 520 to form a codeword 522. For example, the codeword 522 may include a user data section containing the user data 520 received from the host, and a parity data section following the user data section, which contains the generated parity data. The second interface 510 can transmit the codeword 522 to the memory device 104a for storage.
[0057] In some implementations, the encoder 532 can generate parity data based on an error correction code (ECC), such as an LDPC code. An LDPC code is a type of linear block error correction code that includes a sparse parity check matrix, enabling efficient error detection and correction for high-density memory devices such as NAND memory devices. An LDPC code is based on a set of parity check equations that transmitted or stored data must satisfy. During a read operation, the decoder 534 can employ an iterative algorithm to identify and correct errors by analyzing inconsistencies in the parity check equations. Specifically, the encoder 532 can generate parity data for user data 520 based on an LDPC matrix representing the set of parity check equations. The LDPC matrix is a sparse binary matrix, mostly consisting of zeros and possibly only a small number of ones. In some implementations, the rows of the LDPC matrix represent the parity check equations, and the columns of the LDPC matrix correspond to the bits of the codeword 522. The presence of "1"s in specific rows and columns indicates that the corresponding bits in codeword 522 are included in the relevant parity check equation. During a read operation, the decoder 534 can use the LDPC matrix to identify error bits through an iterative check-and-balance process. By iteratively adjusting the values of bits that violate the parity check constraints, the decoder 534 can converge toward the correct data, thereby correcting errors that occurred during the program operation or read operation.
[0058] In some implementations, the memory controller 106a can receive user data 520 in various LBA formats. For example, the system 500 may support various namespaces, allowing different data to be logically separated. This enables different users or applications to store data separately on the same physical memory device without interfering with each other. Various namespaces may support various LBA formats. In some implementations, when writing or reading data with various LBA formats, the minimum executable data size (e.g., the size of a logical block, such as 512 bytes or 4K bytes) may differ. In some cases, the metadata associated with each logical block (e.g., address and identifier) may differ depending on the LBA format.
[0059] For example, system 500 can support multiple namespaces, including a first namespace and a second namespace. User data 530 in the first namespace may be in the first LBA format, and user data 540 in the second namespace may be in the second LBA format. In some implementations, encoder 532 can generate parity data corresponding to user data 530, 540 in various LBA formats using various encoding algorithms (i.e., various LDPC matrices when the memory system employs LDPC codes as ECC codes). As seen in Figures 6A and 6B, user data 530 may be in the first LBA format, and user data 540 may be in the second LBA format. In some cases, user data 530 and 540 may differ in size due to differences in the minimum operable data size indicated by the various LBA formats. When user data 530, 540 are stored in memory device 104a, these data are stored as fixed-size allocation units 600, 605. The allocation unit may be a 1-page, 1 / 2-page, 1 / 4-page, or a stripe in a RAID structure. For example, each allocation unit in the memory device is a fixed size of 4K bytes. As seen in Figures 6A and 6B, user data 530 occupies a portion of allocation unit 600, and the remaining space of allocation unit 600 can be used to store parity data 612 corresponding to the user data 530. Encoder 532 can generate parity data 612 using LDPC matrix 01. User data 530 and the corresponding parity data 612 can be included in codeword 614. By comparison, user data 540 may occupy a smaller portion of allocation unit 605, and allocation unit 605 may have a larger remaining space to store parity data 622 corresponding to the user data 540. Encoder 532 can generate parity data 622 using a different LDPC matrix, for example, LDPC matrix 02.Therefore, the allocation unit 605 can have a higher coding rate (i.e., a ratio of parity data bits to user data bits) than the allocation unit 600, and thus can have higher error correction performance. User data 540 and the corresponding parity data 622 can be included in the codeword 624. In some implementations, the parity data 612 and the parity data 622 may have the same length, but may differ in other aspects such as the data structure (e.g., whether it contains normal LDPC codes or non-normal LDPC codes) and the parity check density (e.g., the density of the parity check matrix required to decode the parity data).
[0060] Returning to Figure 5A, in several implementations, the encoder 532 can generate parity data based on Reed-Solomon codes, other Bose-Choudhury-Ockendem (BCH) codes, and other ECC codes such as Hamming codes. For example, a typical BCH code applied to a 512-byte (4096-bit) sector of data can correct up to four error bits if at least 60 bits are used for parity data. Reed-Solomon codes are a subset of BCH codes and are also commonly used for error correction. For example, a typical Reed-Solomon code can correct up to four error bits in a 512-byte sector of data if approximately 72 bits are used for parity data.
[0061] The memory controller 106a may include a decoder 534 which includes one or more decoding circuits. During a read operation, the decoder can detect and correct error bits in the data. For example, when an LDPC code is used as an ECC code, the decoder 534 may employ an iterative algorithm to identify and correct errors by analyzing inconsistencies in the parity check equation represented by the LDPC matrix. In some implementations, the memory block can store codewords 614, 624 corresponding to user data in various LBA formats. For example, codeword 614 containing user data 530 and parity data 612, and codeword 624 containing user data 540 and parity data 622 are stored in the same memory block of the memory device 104a. The decoder 534 can decode codeword 614 using the corresponding LDPC matrix (e.g., LDPC matrix 01) and decode codeword 624 using the corresponding LDPC matrix (e.g., LDPC matrix 02). Furthermore, the decoder 534 can identify the LDPC matrix corresponding to a given codeword based on the identifier recorded by the memory controller 106a when encoding the data.
[0062] In several implementations, the decoder 534 can operate based on an LDPC hard decoding strategy and an LDPC soft decoding strategy. The LDPC hard decoding strategy uses the hard value (i.e., 0 or 1) of each received bit. The LDPC soft decoding strategy uses both the hard value of each received bit and the log-likelihood ratio (LRR) which represents the likelihood that the bit is 0 or 1. For example, for a given bit, the LRR is
number
[0063] When the memory controller receives user data 520 from the host 108, the flash translation layer (FTL) (not shown in Figure 5A) of the memory controller 106a can determine the physical address in the memory device 104a for storing the data, and can further translate the logical address of the user data 520 to a physical address. After the encoder 532 generates a codeword 522 (i.e., after adding parity data to the user data 520), the codeword is stored in the memory space indicated by the physical address. Furthermore, the FTL can generate one or more mapping tables that show the mapping relationship between the logical address of the data and the physical address where the data is stored. In some implementations, one or more mapping tables may include a logical-to-physical (L2P) mapping table and a physical-to-logical (P2L) mapping table. The L2P mapping table can map logical addresses to physical addresses. When new data is stored at a physical address, the memory controller 106a can update the entry in the L2P mapping table. For example, the memory controller 106a can demap the physical address from the logical address of the replaced data and associate the physical address with the logical address of the new data. The P2L mapping table can map physical addresses to logical addresses. When new data is stored at a physical address, the memory controller 106a can add a new entry to the P2L mapping table to map the logical address of the new data to the physical address without deleting or modifying the previous entry that mapped the physical address to the logical address of the replaced data.
[0064] In some implementations, the L2P mapping table and the P2L mapping table are stored in the storage medium 506 of the memory controller 106a. In some implementations, the memory controller 106a can periodically send a portion of the P2L mapping table and the L2P mapping table (for example, the second level table of a multi-level L2P mapping table) to the memory device 104a, thereby allowing the mapping table to be recovered if the power is accidentally turned off.
[0065] The second interface 510 can transmit and store the user data 520 and the corresponding parity data, including the codeword 522 (e.g., codeword 614 in Figure 6A and codeword 624 in Figure 6B), to the memory device 104a. In some implementations, as seen in Figure 5A, for example, the coding algorithms for generating the codewords 614 and 624 of the user data 530 and 540 having various LBA formats are different, so the codewords 614 and 624 are stored in various memory blocks of the memory device 104a (e.g., memory block 304 in Figure 3). In other words, the data in the first namespace and the data in the second namespace are stored in various memory blocks of the memory device. For example, the codeword 614 containing the user data 530 in the first LBA format can be stored in memory block A512 of the memory device, and the codeword 624 containing the user data 540 in the second LBA format can be stored in memory block B514 of the memory device. Therefore, within a given memory block, parity data for various allocation units is generated based on the same encoding algorithm (i.e., the same LDPC matrix, considering that the memory system employs LDPC codes as ECC codes). However, this can result in an excessive number of free memory blocks within the memory device 104a.
[0066] Figure 5B illustrates a block diagram of an exemplary system 501, including a memory device 104b, a memory controller 106b, and a host 108, relating to several aspects of the present disclosure. The memory device 104b and memory controller 106b may be the same as or similar to the memory device 104a and memory controller 106a in system 501, except that the memory controller 106b can control the memory device 104b to store codewords 614 and 624 corresponding to user data 530 and 540 having different LBA formats in the same memory block. That is, data from a first namespace and data from a second namespace can be stored in the same memory block. For example, as can be seen in Figure 5B, user data 530 in the first LBA format contained in codeword 614 can be stored in memory block A512. Similarly, user data 540 contained in codeword 624 can also be stored in memory block A512. Furthermore, the memory controller 106b can record an identifier that instructs the encoding algorithm used to encode each user data 530, 540. Thus, the number of free memory blocks in the memory device 104b can be optimized.
[0067] In some implementations, the memory controller 106b may record identifiers in the P2L mapping table that indicate the encoding algorithm to be implemented for encoding each user data. For example, as shown in Figure 7, the P2L mapping table 700 may have a first column 710 for recording identifiers that indicate the encoding algorithm. For example, the binary numbers 00, 01, 10, and 11 in the first column 710 can each represent four different LDPC matrices used to encode data in four different LBA formats. The P2L mapping table 700 may further include a second column 720 for recording the logical address of the data and a third column (not shown in Figure 7) for recording the physical address where the data is stored. In the P2L mapping table 700 shown in Figure 7, the physical address can be represented by the row number of each entry. For example, data associated with the logical address in the first row of the P2L mapping table may be stored in the first allocation unit of the memory block, and data associated with the logical address in the second row may be stored in the second allocation unit of the memory block. In response to a write command, when mapping the logical address of the data to the physical address where the data is stored, the P2L mapping table 700 can further map identifiers of the LDPC matrix implemented by the encoder 532 for encoding the data. In other implementations, the memory controller 106b may record identifiers indicating the encoding algorithm in another mapping table or by other appropriate means.
[0068] Figure 8 illustrates an example data structure 800 of a write command according to some aspects of this disclosure. The data structure 800 can be divided into 16 bytes into four DWORDs, each DWORD being 4 bytes. The data structure 800 contains information that instructs the memory system to perform a write operation. For example, the data structure 800 may include a command identifier 802, which is a command ID that tracks the progress and response of each command. An operation code (opcode) 804 can instruct the operation to be performed, for example, in this case, a write command. A namespace identifier 806 can identify the namespace in which the data is stored. In some implementations, the namespace identifier can correspond to the LBA format of the data to be stored.
[0069] In addition, the data structure 800 may further include the following elements: A metadata pointer 808 may point to the location of metadata for a write operation. A physical area page (PRP) entry 1810 may point to a first memory block or first memory page where the data is stored. If the data is stored across multiple memory blocks or a single memory page, a PRP entry 2812 may point to a second memory block or second memory page. A start LBA 814 may indicate the starting logical address to begin writing the data, and a number of logical addresses 816 may indicate the length of the data. The data structure 800 may further include reserved bits 820 for future use or command-specific use.
[0070] Figure 9 illustrates an exemplary method 900 for writing data to a memory system, relating to several aspects of the present disclosure.
[0071] In 902, the host can send a write command (the write command in data structure 800 in Figure 8) to a memory controller coupled to the memory device. The write command may include a namespace identifier that indicates the namespace in which the user data associated with the write command is stored. In some implementations, the data associated with the write command is in LBA format corresponding to the namespace.
[0072] In step 904, the host sends the user data associated with the write command to the memory controller. In some implementations, the host sends the user data after receiving the RTT (Ready to Transfer) signal from the memory controller.
[0073] In 906, the memory controller can determine the encoding algorithm corresponding to the LBA format of the user data. For example, if the LDPC code is implemented as the parity code of the encoding scheme, the encoding algorithm can be the LDPC matrix corresponding to the LBA format of the user data. In some implementations, the LDPC matrix used to encode the user data in various LBA formats will differ.
[0074] In operation 908, the memory controller can record the identifier of the coding algorithm in a P2L mapping table (for example, P2L mapping table 700 in Figure 7). For example, the memory controller can map the identifier of the coding algorithm (for example, the binary identifier of the LDPC matrix) to the logical address of the user data, and map the logical address of the user data to the physical address of the memory device in which the user data is stored. Note that operation 906 can be performed before, after, or simultaneously with operation 908.
[0075] At 910, the memory controller can encode user data based on an identified encoding algorithm (e.g., an LDPC matrix), thereby generating a codeword for the user data (e.g., codeword 614 in Figure 6A, codeword 624 in Figure 6B). In some implementations, an encoder (e.g., encoder 532 in Figure 5A or Figure 5B) can generate a codeword that includes a user data portion and a parity data portion appended to the end of the user data portion. The parity data portion may include parity data generated based on the user data using an identified LDPC matrix.
[0076] In step 912, the memory controller sends the generated codeword to the memory device for storage. For example, the codeword can be stored in an allocation unit within the memory device (e.g., allocation unit 600 in Figure 6A, allocation unit 605 in Figure 6B).
[0077] In 914, the memory device stores codewords for user data in various LBA formats in the same memory block. For example, referring to Figures 5 and 6, the codeword 614 corresponding to user data 530 in the first LBA format and the codeword 624 corresponding to user data 540 in the second LBA format can be stored in allocation units 600 and 605 within the same memory block of the memory device.
[0078] Figure 10 illustrates an exemplary method 1000 for reading data from a memory system, relating to several aspects of this disclosure.
[0079] In step 1002, the host sends a read command to the memory controller. The read command may include the logical address of the data to be read from the memory device (e.g., the start LBA and a length of 620 LBA). In response to receiving the read command, the memory controller can identify the physical address of the data to be read. For example, the memory controller can use an L2P mapping table to identify the physical address based on the logical address.
[0080] In step 1004, the memory controller sends a read command and the identified physical address to the memory device. The read command can instruct the memory device to read data from the identified physical address. In some implementations, a codeword containing the data to be read (i.e., user data) and its corresponding parity data are stored at the identified physical address.
[0081] In step 1006, the memory device transmits a codeword containing user data and corresponding parity data to the memory controller. In some implementations, the memory device may transmit a codeword in response to receiving a read command, or in response to receiving a command to perform garbage collection (GC) operations for the purpose of managing and optimizing storage space within the memory device, or in other scenarios where the memory controller needs to read data from the memory device.
[0082] In 1008, the memory controller identifies the logical address corresponding to the codeword. For example, the memory controller can identify the logical address from a read command that contains the logical address of the data to be read. In another embodiment, the memory controller can identify the logical address based on the physical address of the codeword by checking a mapping table, such as an L2P mapping table or a P2L mapping table.
[0083] In 1010, the memory controller can identify an encoding algorithm (e.g., an LDPC matrix) based on the identified logical address. The identified encoding algorithm is used in the write operation to generate a codeword based on the received user data, as shown in Method 900. For example, the memory controller can identify an LDPC matrix from a P2L mapping table that records the mapping relationship between the logical address of the data and the identifier of the LDPC matrix implemented to encode the data.
[0084] In 1012, the memory controller can decode the codeword based on the decoding algorithm associated with the encoding algorithm. In some implementations, the decoding algorithm can use the same LDPC matrix used for encoding the user data. For example, a decoder (e.g., decoder 534 in Figure 5A or Figure 5B) can determine whether the received codeword satisfies the parity check equation indicated by the LDPC matrix. If the received codeword does not satisfy the parity check equation, this indicates that there is an error bit in the codeword. The decoder can correct the error bits by repeatedly flipping the bits of the codeword until the parity check equation is satisfied or until the minimum number of unsatisfied parity checks is reached. After correcting the error bits, the decoder can converge to the correct user data initially received from the host.
[0085] In step 1014, the memory controller can send the user data decoded from the codeword to the host. In some implementations, if a read operation is performed in response to a GC operation, method 1000 does not include operation 1014, and the user data can be stored in the memory controller's storage medium before the user data is rewritten to another memory space within the memory device.
[0086] Figure 11 is a flowchart illustrating one example method 1100 for writing data to a memory system, relating to some aspects of the present disclosure.
[0087] In step 1102, the memory controller coupled to the memory device receives a first write command from the host. The first write command instructs the memory device to write first user data (for example, user data 530 in Figure 6A). The first user data can be in first LBA format.
[0088] In step 1104, the memory controller can generate first parity data (e.g., parity data 612 in Figure 6A) corresponding to the first user data. The first parity data can be generated based on a first encoding algorithm (e.g., LDPC matrix 01) corresponding to the LBA format of the first user data. In some implementations, the first parity data can be appended to the end of the first user data to form a first codeword (e.g., codeword 614 in Figure 6A).
[0089] In 1106, the memory controller can store a first identifier corresponding to a first coding algorithm in a P2L mapping table (for example, the P2L mapping table 700 in Figure 7). The P2L mapping table can map the first identifier to the logical address of the first user data.
[0090] In 1108, the memory device can store first user data and first parity data (for example, the first codeword 614 in Figure 6A) in a memory block (for example, the memory block 304 in Figure 3). For example, the first user data and first parity data can be stored in the first allocation unit of the memory block (for example, the allocation unit 605 in Figure 6B).
[0091] At 1110, the memory controller receives a second write command from the host. The second write command instructs the memory device to write second user data (for example, user data 540 in Figure 6B). The second user data can be in second LBA format.
[0092] In step 1112, the memory controller can generate second parity data (e.g., parity data 622 in Figure 6B) corresponding to the second user data. The second parity data can be generated based on a second coding algorithm (e.g., LDPC matrix 02) corresponding to the LBA format of the second user data. In some implementations, the second parity data can be appended to the end of the second user data to form a second codeword (e.g., codeword 624 in Figure 6B).
[0093] In step 1114, the memory controller can store a second identifier corresponding to the second coding algorithm in a P2L mapping table (for example, the P2L mapping table 700 in Figure 7). The P2L mapping table can map the second identifier to the logical address of the second user data.
[0094] In 1116, the memory device can store the second user data and the second parity data (for example, the second codeword 624 in Figure 6B) in the same memory block (for example, memory block 304 in Figure 3) as the first user data and the first parity data. For example, the second user data and the second parity data can be stored in the second allocation unit of memory block 304 (for example, allocation unit 605 in Figure 6B). When the memory device receives a read command to read the first user data and the second user data, the first user data and the second user data are read from the same memory block of the memory device.
[0095] This specification includes details of many specific implementations, but these should not be interpreted as limitations on the scope of what is claimed, but rather as descriptions of features that may be specific to a particular embodiment. Certain features described in this specification in the context of individual implementations can also be implemented in combination as a single implementation. On the other hand, various features described in the context of a single implementation can further be implemented individually or in any subcombination as multiple implementations. Furthermore, the aforementioned features are described as functioning in a particular combination and may initially be claimed as such, but in some cases one or more features may be excluded from the claimed combination, and the claimed combination may cover a subcombination or a variation of a subcombination.
[0096] Where used in this disclosure, the terms “a,” “an,” or “the” are used to include one or more, unless the context clearly indicates otherwise. Unless otherwise indicated, the term “or” refers to a non-exclusive “or.” The sentence “at least one of A and B” is equivalent to “A, B, or A and B.” Furthermore, any words or terms used in this disclosure that are not otherwise defined are for illustrative purposes only and are not intended to be restrictive. The use of section headings is intended to aid in the reading of the document and should not be interpreted restrictively. For example, information related to a section heading may exist both inside and outside that particular section.
[0097] Where used in this disclosure, the terms “about” or “approximately” may allow a degree of variation in a value or range, for example, within 10%, 5%, or 1% of the stated value or the stated limit of a range.
[0098] When used in this disclosure, the term “substantially” means a majority or the majority, such as at least about 50%, 60%, 70%, 80%, 90%, 95%, 96%, 97%, 98%, 99%, 99.5%, 99.9%, 99.99%, or at least about 99.999% or more.
[0099] Values expressed in range format shall be interpreted flexibly, not only for the numerical limits explicitly stated as the range, but also for the individual numerical values or subranges included within that range, as if each numerical value and subrange were explicitly stated. For example, the range "0.1% to approximately 5%" or "0.1% to 5%" should be interpreted as including approximately 0.1% to approximately 5%, as well as the individual values within the indicated range (e.g., 1%, 2%, 3%, and 4%), and subranges (e.g., 0.1% to 0.5%, 1.1% to 2.2%, and 3.3% to 4.4%). Unless otherwise specified, the expression "X to Y" is equivalent to "about X to about Y". Similarly, unless otherwise specified, the expression "X, Y, or Z" is equivalent to "about X, about Y, or about Z".
[0100] We have described specific implementations of this subject matter. As will be apparent to those skilled in the art, other implementations, modifications, and substitutions of the described implementations are within the scope of the following claims. While the drawings and claims depict operations in a specific order, such operations do not need to be performed in the specific order or sequential order shown, nor do they need to be performed in all of the illustrated operations, in order to obtain the desired results (some operations may be considered optional). In certain circumstances, multitasking or parallel processing (or a combination of multitasking and parallel processing) may be more convenient and may be performed if deemed appropriate.
[0101] Furthermore, the separation or integration of the various system modules and components in the embodiments described above is not required in all implementations, and in general, the components and systems described can be integrated together or packaged into multiple products.
[0102] Therefore, the exemplary embodiments described above do not define or limit this disclosure. Other modifications, substitutions, and alterations are permitted without departing from the spirit and scope of this disclosure.
[0103] The foregoing descriptions relating to specific implementations can be readily modified and / or adapted to suit various applications. Therefore, such adaptations and modifications are intended to be within the meaning and scope of the equivalents of the implementations disclosed herein, based on the teachings and guidance provided herein.
[0104] The scope and width of this disclosure are not limited to any of the exemplary implementations described above, but are defined solely in accordance with the following claims and their equivalents. Therefore, other implementations are also included in the claims.
Claims
1. A method for operating a memory system, Receiving a first write command for storing first user data in the memory device of the memory system, Based on a first coding algorithm, first parity data corresponding to the first user data in a first logical block addressing (LBA) format is generated, Receiving a second write command for storing second user data in second LBA format in the memory device, The process involves generating second parity data corresponding to the second user data based on a second coding algorithm, wherein the second coding algorithm is different from the first coding algorithm. A method comprising storing the first user data, the first parity data, the second user data, and the second parity data in the same memory block of the memory device.
2. The method according to claim 1, wherein the first parity data and the second parity data include low-density parity check (LDPC) parity data, the first encoding algorithm includes a first LDPC matrix, and the second encoding algorithm includes a second LDPC matrix.
3. The first identifier of the first user data is stored in the memory controller of the memory system, wherein the first identifier corresponds to the first encoding algorithm. The method of claim 2, comprising storing a second identifier of the second user data in the memory controller, wherein the second identifier corresponds to the second encoding algorithm.
4. The method according to claim 3, wherein the first identifier and the second identifier are stored in a physical-to-logical (P2L) mapping table.
5. The method according to claim 4, wherein the logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
6. Identifying the first LDPC matrix based on the first identifier, The method according to claim 3, further comprising decoding the first parity data based on the first LDPC matrix.
7. The method according to claim 1, wherein the first user data is included in a logical block of a first format, and the second user data is included in a logical block of a second format.
8. It is a memory system, One or more memory devices, The memory includes a memory controller coupled to one or more memory devices, The system is configured to perform an operation, and the operation is, Receiving a first write command for storing first user data in one or more memory devices, Based on a first coding algorithm, first parity data corresponding to the first user data in a first logical block addressing (LBA) format is generated, Receiving a second write command for storing second user data in second LBA format in one or more memory devices, The process involves generating second parity data corresponding to the second user data based on a second coding algorithm, wherein the second coding algorithm is different from the first coding algorithm. A memory system comprising storing the first user data, the first parity data, the second user data, and the second parity data in the same memory block.
9. The memory system according to claim 8, wherein the first parity data and the second parity data include low-density parity check (LDPC) parity data, the first encoding algorithm includes a first LDPC matrix, and the second encoding algorithm includes a second LDPC matrix.
10. The aforementioned operation is, The first identifier of the first user data is stored in the memory controller, wherein the first identifier corresponds to the first encoding algorithm. The memory system according to claim 8, further comprising storing a second identifier of the second user data in the memory controller, wherein the second identifier corresponds to the second encoding algorithm.
11. The first identifier and the second identifier are stored in a physical-to-logical (P2L) mapping table. The memory system according to claim 10, wherein the logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
12. The memory system according to claim 8, wherein the first user data is included in a logical block of a first format, and the second user data is included in a logical block of a second format.
13. It is a memory controller, The first interface, Receiving a first write command containing first user data in first logical block addressing (LBA) format, The first interface is configured to receive a second write command containing second user data in second LBA format, It is an encoder, To generate first parity data corresponding to the first user data based on a first coding algorithm, The second parity date corresponding to the second user data is determined based on the second encoding algorithm. The encoder is configured to perform the following: generating a data, wherein the second coding algorithm is different from the first coding algorithm in that it performs the generation of a data; The second interface, Sending a third write command to write the first user data and the first parity data to a memory block of the memory device, The second interface is configured to perform the following actions: sending a fourth write command to write the second user data and the second parity data to the memory block; A memory controller that stores the first user data, the first parity data, the second user data, and the second parity data in the same memory block of the memory device.
14. The aforementioned second interface is Receiving the first user data and the first parity data from the memory block, The system is further configured to receive the second user data and the second parity data from the memory block, The memory controller further includes a decoder, The decoder mentioned above is Decoding the first parity data based on the first encoding algorithm, The memory controller according to claim 13, configured to perform the following: decoding the second parity data based on the second encoding algorithm.
15. The storage of a first identifier of the first user data, wherein the first identifier corresponds to the first encoding algorithm, The memory controller according to claim 13, further configured to store a second identifier of the second user data, wherein the second identifier corresponds to the second encoding algorithm.
16. The first identifier and the second identifier are stored in a physical-to-logical (P2L) mapping table. The memory controller according to claim 15, wherein the logical address of the first user data is mapped to the first identifier in the P2L mapping table, and the logical address of the second user data is mapped to the second identifier in the P2L mapping table.
17. The first parity data and the second parity data include low-density parity check (LDPC) parity data. The memory controller according to claim 13, wherein the first encoding algorithm includes a first LDPC matrix, and the second encoding algorithm includes a second LDPC matrix.
Citation Information
Patent Citations
Error correcting code techniques for a memory having a three-dimensional memory configuration
US20150324251A1
Multiple ECC codeword sizes in an SSD
US20160026525A1
