Error correction by syndrome calculation in memory devices
By generating and using syndromes in the memory subsystem for decoding, the problems of high reliability errors and performance degradation in the existing technology are solved, and efficient error correction and performance improvement are achieved.
Patent Information
- Application Number
- CN202210454032.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-04-30
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing memory subsystems rely on soft information during error correction and are prone to high-reliability errors, resulting in reduced error correction capabilities of the decoder. In addition, the decoding process based on product codes requires a large amount of additional data, resulting in performance degradation.
An improved product code decoding method is employed to improve error correction capabilities by generating syndromes for encoded data in a memory device and transmitting them to the controller, using the syndromes for decoding without transmitting additional encoded data. and robustness against high reliability errors.
Significantly improves the performance of the memory subsystem, reduces the amount of response data, improves error correction capabilities, and reduces the load on the memory device.
Smart Images

Figure CN115273956B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to error correction in memory subsystems, and more particularly to error correction by syndrome calculation in memory devices. Background Art
[0002] The memory subsystem may include one or more memory devices that store data. The memory devices may be, for example, non-volatile memory devices and volatile memory devices. In general, the host system may use the memory subsystem to store data at the memory devices and retrieve data from the memory devices. Summary of the invention
[0003] According to one aspect of the present disclosure, a method is provided. The method includes: generating a first syndrome for a first encoded data from a plurality of encoded data in a memory device storing the plurality of encoded data; transmitting the first encoded data and the first syndrome to a controller coupled to the memory device; generating a second syndrome for a first and a second encoded data from the plurality of encoded data in the memory device, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and transmitting the second syndrome to the controller without transmitting the second encoded data, wherein the controller decodes the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof.
[0004] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium includes instructions that, when executed by a processing device, cause the processing device to perform the following operations: generate a first syndrome for a first encoded data from a plurality of encoded data in a memory device storing the plurality of encoded data; transmit the first encoded data and the first syndrome to a controller coupled to the memory device; generate a second syndrome for a first and a second encoded data from the plurality of encoded data in the memory device, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and transmit the second syndrome to the controller without transmitting the second encoded data, wherein the controller decodes the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof.
[0005] According to another aspect of the present disclosure, a system is provided. The system includes: a memory device storing a plurality of encoded data, the memory device including: a local media controller that performs the following operations: generating a first syndrome for a first encoded data from the plurality of encoded data in the memory device storing the plurality of encoded data; transmitting the first encoded data and the first syndrome to a controller coupled to the memory device; generating a second syndrome for a first and a second encoded data from the plurality of encoded data in the memory device, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and transmitting the second syndrome to the controller without transmitting the second encoded data, wherein the controller decodes the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure. However, the drawings should not be considered to limit the present disclosure to specific embodiments, but are only for explanation and understanding.
[0007] Figure 1 An example computing system including a memory subsystem according to some embodiments of the present disclosure is described.
[0008] Figure 2 is a block diagram of example code that may be used in a memory device to calculate a syndrome according to some embodiments.
[0009] Figure 3 is a flow chart of an example method for correcting data according to one or more syndromes received from a memory device according to some embodiments of the present disclosure.
[0010] Figure 4 is a flow chart of an example method performed in a memory device for transmitting encoded data and syndromes in response to a request for data, according to some embodiments of the present disclosure.
[0011] Figure 5 is a flow chart of another example method for correcting data according to one or more syndromes received from a memory device according to some embodiments of the present disclosure.
[0012] Figure 6 is a flow chart of another example method performed in a memory device for transmitting encoded data and syndromes in response to a request for data, according to some embodiments of the present disclosure.
[0013] Figure 7 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION
[0014] Aspects of the present disclosure are directed to error correction by syndrome calculation in a memory device. The memory subsystem may be a memory device, a memory module, or a mixture of a memory device and a memory module. Figure 1 Examples of storage devices and memory modules are described. In general, a host system may utilize a memory subsystem that includes one or more components, such as memory devices that store data. The host system may provide data to be stored at the memory subsystem and may request data to be retrieved from the memory subsystem.
[0015] The memory device may be a non-volatile memory device. A non-volatile memory device is a package of one or more dies. An example of a non-volatile memory device is a NAND memory device. Figure 1 Other examples of non-volatile memory devices are described. A die in a package may be assigned to one or more channels for communicating with a memory subsystem controller. Each die may be composed of one or more planes. Planes may be grouped into logical units (LUNs). For some types of non-volatile memory devices (e.g., NAND memory devices), each plane is composed of a set of physical blocks, which are groups of memory cells used to store data. A cell is an electronic circuit that stores information.
[0016] Depending on the cell type, a cell can store one or more binary bits of information and have various logical states related to the number of bits stored. The logical state can be represented by a binary value (e.g., "0" and "1" or a combination of such values). There are various types of cells, such as single-level cells (SLC), multi-level cells (MLC), triple-level cells (TLC), and quad-level cells (QLC). For example, an SLC can store one bit of information and have two logical states.
[0017] Low-density parity check (LDPC) codes are widely used and effective error correction codes. LDPC codes use hard information and soft information to correct errors. Soft information indicates whether the current value of a given bit can be considered to have high reliability or low reliability. However, codes that rely on soft information can be plagued by high reliability errors (HRE). For example, when data is written incorrectly at the beginning, the LDPC decoder can regard the error bit as having high reliability because the soft information indicates a clean read. HRE reduces the error correction capability of the decoder. Therefore, ECC decoders using soft information (reliability information) are prone to HRE, which is caused by write errors or other mechanisms in memory systems.
[0018] Product codes can provide high error correction capabilities even in the presence of high reliability errors. Ladder codes are a type of product code that can be implemented in forward error correction systems. Ladder codes include several components, such as blocks, arranged in a predetermined pattern. Each component may include a data bit and a parity bit. In some ladder codes, each individual line and each individual column is a single codeword including a data bit and a parity bit. In other ladder codes, the horizontal codeword may span multiple columns and the vertical component may span multiple rows. In ladder codes, data spans adjacent components to form a valid codeword according to an error correction code (ECC). The parity bits of columns and rows are based on basic ECC, such as Bose-Chaudhuri-Hocquenghem (BCH) code. Because the components of the code are arranged in a predetermined pattern, the codeword can be formed in both the horizontal and vertical directions. That is, for any given data bit in the component, the bit is part of the horizontal codeword and the vertical codeword.
[0019] The data encoded according to the ladder code is double-encoded and can be corrected using the parity bits of the encoded data and / or using the parity bits shared with other encoded data. The decoder of the ladder code relies on hard information and is therefore not prone to high reliability errors. The decoder of the ladder code uses the correction capability of one bit of the encoded data to be sufficient for low error rates. More than one bit can be used to decode one bit of the encoded data to correct medium to high error rates. The ladder code achieves high raw bit error rate (RBER) correction by using more information bits for each encoded bit. However, it is impractical to use these codes in some memory subsystems based on the decoding of these ladder codes for multiple bits of the encoded data for each bit. In an exemplary ladder code, 3 bits are used to decode the bit for each bit of the encoded data. When using this ladder code to encode data in a memory subsystem, for each host request of n KB of data (e.g., 4KB), (3×n)KB of data (e.g., 12KB) is retrieved from the memory device to decode the encoded data. For example, for ECC with medium to high error rates, additional data may be retrieved to decode the encoded data. This can cause severe performance degradation in the memory subsystem.
[0020] Aspects of the present disclosure address the above and other deficiencies by improving the decoding of encoded data with product codes. The embodiments presented herein perform syndrome generation for encoded data in a memory device and transmit the syndrome to an error corrector for decoding the encoded data. The embodiments presented herein allow the use of multiple ECCs that are decoded using a syndrome-based decoder and have robustness against HRE. In the embodiments described herein, in response to a request for data, a memory device transmits encoded data and one or more syndromes for the encoded data without transmitting additional encoded data for the product code to generate the one or more syndromes. The embodiments described herein significantly improve the performance of a memory subsystem by reducing the amount of data transmitted from a memory device in response to a request while achieving good correction capability and robustness against HRE.
[0021] Figure 1 An example computing system 100 is illustrated that includes a memory subsystem 110 in accordance with some embodiments of the present disclosure. Memory subsystem 110 may include media such as one or more volatile memory devices (e.g., memory device 140), one or more non-volatile memory devices (e.g., memory device 130), or a combination of the like.
[0022] The memory subsystem 110 may be a storage device, a memory module, or a mixture of storage devices and memory modules. Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, embedded multimedia controller (eMMC) drives, universal flash storage (UFS) drives, secure digital (SD) cards, and hard disk drives (HDDs). Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and various types of non-volatile dual in-line memory modules (NVDIMMs).
[0023] The computing system 100 may be a computing device such as a desktop computer, a laptop computer, a server, a network server, a mobile device, a vehicle (e.g., an airplane, a drone, a train, a car, or other transportation), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or such a computing device that includes a memory and a processing device.
[0024] The computing system 100 may include a host system 120 coupled to one or more memory subsystems 110. In some embodiments, the host system 120 is coupled to memory subsystems 110 of different types. Figure 1An example of a host system 120 coupled to one memory subsystem 110 is illustrated. As used herein, "coupled to" or "coupled with" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intervening components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc.
[0025] The host system 120 may include a processor chipset and a software stack executed by the processor chipset. The processor chipset may include one or more cores, one or more caches, a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a PCIe controller, a SATA controller). The host system 120 uses the memory subsystem 110, for example, to write data to the memory subsystem 110 and read data from the memory subsystem 110.
[0026] The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. Examples of the physical host interface include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), a Small Computer System Interface (SCSI), a Double Data Rate (DDR) memory bus, a Dual In-line Memory Module (DIMM) interface (e.g., a DIMM socket interface supporting Double Data Rate (DDR)), an Open NAND Flash Interface (ONFI), Double Data Rate (DDR), Low Power Double Data Rate (LPDDR), or any other interface. The physical host interface may be used to transmit data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further utilize an NVM Express (NVMe) interface to access components (e.g., the memory device 130). The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 120 . Figure 1 Memory subsystem 110 is illustrated as an example. In general, host system 120 can access multiple memory subsystems via the same communication connection, multiple separate communication connections, and / or a combination of communication connections.
[0027] The memory devices 130, 140 may include any combination of different types of non-volatile memory devices and / or volatile memory devices. Volatile memory devices (e.g., memory device 140) may be, but are not limited to, random access memory (RAM), such as dynamic random access memory (DRAM) and synchronous dynamic random access memory (SDRAM).
[0028] Some examples of non-volatile memory devices (e.g., memory device 130) include "NAND" (NAND) type flash memory and write-in-place memory, such as a three-dimensional cross-point ("3D cross-point") memory device, which is a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, in contrast to many flash-based memories, cross-point non-volatile memory can perform write-in-place operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. NAND-type flash memory includes, for example, two-dimensional NAND (2D NAND) and three-dimensional NAND (3D NAND).
[0029] Although nonvolatile memory devices such as a 3D cross-point nonvolatile memory cell array and NAND-type flash memory (e.g., 2D NAND, 3D NAND) are described, the memory device 130 may be based on any other type of nonvolatile memory, such as read-only memory (ROM), phase change memory (PCM), self-selected memory, other chalcogenide-based memories, ferroelectric transistor random access memory (FeTRAM), ferroelectric random access memory (FeRAM), magnetic random access memory (MRAM), spin transfer torque (STT)-MRAM, conductive bridging RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), non-OR (NOR) flash memory, and electrically erasable programmable read-only memory (EEPROM).
[0030] The memory subsystem controller 115 (or, for simplicity, the controller 115) may communicate with the memory device 130 to perform operations such as reading data, writing data, or erasing data and other such operations at the memory device 130 (e.g., in response to commands dispatched by the controller 115 on a command bus). The memory subsystem controller 115 may include hardware such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The hardware may include digital circuits with dedicated (i.e., hard-coded) logic to perform the operations described herein. The memory subsystem controller 115 may be a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or another suitable processor.
[0031] The memory subsystem controller 115 may include a processing device 117 (processor) configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the memory subsystem controller 115 includes an embedded memory configured to store instructions for executing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120.
[0032] In some embodiments, local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been illustrated as including a memory subsystem controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 does not include a memory subsystem controller 115 and may instead rely on external control (e.g., provided by an external host, or by a processor or controller separate from the memory subsystem 110).
[0033] In general, the memory subsystem controller 115 may receive commands or operations from the host system 120 and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory device 130 and / or the memory device 140. The memory subsystem controller 115 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical addresses (e.g., logical block addresses (LBA), name space) and physical addresses (e.g., physical block addresses) associated with the memory device 130. The memory subsystem controller 115 may additionally include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into commands to access the memory device 130 and / or the memory device 140, and convert responses associated with the memory device 130 and / or the memory device 140 into information for the host system 120.
[0034] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the memory subsystem controller 115 and decode the addresses to access the memory device 130.
[0035] In some embodiments, memory device 130 includes a local media controller 135 that operates in conjunction with memory subsystem controller 115 to perform operations on one or more memory cells of memory device 130. An external controller (e.g., memory subsystem controller 115) can externally manage memory device 130 (e.g., perform media management operations on memory device 130). In some embodiments, memory device 130 is a managed memory device, which is a raw memory device combined with a local controller (e.g., local controller 135) within the same memory device package that performs media management. An example of a managed memory device is a managed NAND (MNAND) device.
[0036] The memory subsystem 110 includes a syndrome calculation component 113 and an error corrector 114 that implement a method of error correction by syndrome calculation in a memory device. In some embodiments, the controller 115 includes at least a portion of the error corrector 114. For example, the controller 115 may include a processor 117 (processing device) configured to execute instructions stored in a local memory 119 for performing the operations described herein. In some embodiments, the error corrector 114 is part of a host system 120, an application, or an operating system. The memory device 130 and / or the memory device 140 include the syndrome calculation component 113. In one embodiment, the local media controller 135 includes the syndrome calculation component 113. The memory device may include a processor (processing device) configured to execute instructions for performing the operations of the syndrome calculation component 113 described herein.
[0037] In some embodiments, the error corrector 114 is operable to encode and decode data stored in a memory device (e.g., an encoder and / or decoder). When data is retrieved from the memory device, encoding the data using an error correction code (ECC) allows correction of erroneous data bits. For example, the error corrector 114 may encode data received from the host system 120 and store the data and parity bits as a codeword in the memory device 130. The error corrector 114 may further be operable to decode the data stored in the memory device 130 before transmitting the corrected data to the host system 120 to identify and correct the erroneous bits of the data. Although illustrated as a single component that can perform encoding and decoding of data, the error corrector 114 may be provided as a separate component. In some embodiments, the error corrector 114 is operable to encode data according to a product code (e.g., a staircase code). The error corrector 114 is operable to receive a syndrome generated in the memory device 130 or 140 by the syndrome calculation component 113. The error corrector 114 is operable to decode the codeword stored in the memory device 130 based on the syndrome. The error corrector 114 transmits the corrected data to the host system 120.
[0038] As described in further detail below, the syndrome calculation component 113 is operable to generate one or more syndromes for the encoded data. The syndrome calculation component 113 transmits the syndrome and the encoded data to the error corrector 114, for example, in response to a request for data from the host system 120. The syndrome calculation component 113 transmits additional syndromes but without associated additional encoded data, such as data that is not requested by the host system 120 but is used to generate parity bits for the data requested by the host system 120. The error corrector 114 is operable to decode the encoded data based on the one or more syndromes received from the syndrome calculation component 113.
[0039] Figure 22 is a block diagram of an example code 200 that may be used to calculate syndromes in a memory device according to some embodiments. Code 200 may be generated, for example, by error corrector 114 and stored in memory device 130 or 140. Code 200 is a product code, and in the illustrated example, specifically a staircase code. Code 200 generally includes an initial component block 202 and a number of components of encoded data 204 (1)-(N). Initial component 202 may include a bit array in which each bit is set to a predetermined value. For example, each of the bits in initial component 202 may be set to a logical 0. Alternatively, other known values may be used. Each of the encoded data 204 (1-N) includes a plurality of data bits 210-(1-N) and parity bits 212-(1-N). Data bits 210 and parity bits 212 and the bits of initial component 202 may be arranged into horizontal codewords and vertical codewords of code 200.
[0040] In the illustrated example, each of the encoded data 204 (1-N) and the initial component is a block of m×m bits. For example, a block of encoded data 204-1 includes m×(mr) data bits 210-1 and m×r parity bits 212-1. According to a specific decoding scheme, such as a BCH code, the data bits 210-1 and the parity bits 212-1 of the encoded data 204-1 can be combined with the data bits and parity bits of another encoded data block (e.g., the encoded data 204-2) to form a plurality of codewords. The code 200 includes a plurality of codewords, such as a vertical codeword 220-1 and a horizontal codeword 220-2. The codeword includes a plurality of data bits and a plurality of parity bits. The codeword can be a horizontal codeword or a vertical codeword that spans two code blocks. For example, codeword 220-1 spans block 204-1 and block 204-2, and codeword 220-2 spans blocks 204-2 and 204-3. The data bits of a codeword may include bits of a single column or bits of a single row. Alternatively or in addition, the data bits may be wrapped by multiple rows and columns of a block. Although Figure 2 Parity bits are shown at the end of each row for convenience, but those skilled in the art will appreciate that parity bits can be located at any point in the codeword. In various embodiments, the specific size of the blocks and the number of blocks in the ladder code can be adjusted based on performance requirements. For example, an embodiment with strict timing requirements can be implemented with a smaller number of blocks than an embodiment with more relaxed timing requirements. By reducing the number of blocks, the decoding time can be reduced. In various embodiments, the specific pattern of code 200 can be different from Figure 2 In some embodiments, the two components of the code may share a parity bit. In some embodiments, the two components of the code may have a codeword that spans the two components.
[0041] Figure 2 The syndrome calculation component 113 generates one or more syndromes, namely, syndrome-1, ..., syndrome-N, for the encoded data of the code 200. In one embodiment, upon receiving a request for data from the host system 120, the memory device 130 transmits the encoded data, such as the encoded data 204-4, to the error corrector 114. The memory device 130 additionally transmits the syndrome for the encoded data, namely, syndrome-4. The memory device 130 may transmit one or more additional syndromes to the error corrector 114. For example, the memory device 130 may transmit one or more syndromes of syndrome-3, syndrome-2, and syndrome-1. The memory device 130 transmits the additional syndromes without transmitting the encoded data associated therewith. For example, when syndrome-3 is transmitted, memory device 130 does not transmit encoded data 204-3, when syndrome-2 is transmitted, encoded data 204-2 is not transmitted, and when syndrome-1 is transmitted, encoded data 204-1 is not transmitted. Error corrector 114 receives encoded data 204-4 and syndrome-4 and attempts to decode encoded data 204-4 based on this syndrome. In some embodiments, when there is no error in 204-3, decoding of encoded data 204-4 based on syndrome-4 is successful. Decoding encoded data 204-4 may include detecting errors in data bits and correcting the errors of data bits based on syndromes. In some embodiments, error corrector 114 may not be able to decode encoded data 204-4 based on syndrome-4, and decoding the encoded data requires additional syndromes. When decoding of encoded data 204-4 based on syndrome-4 fails, error corrector 114 repeatedly attempts to decode encoded data 204-4 based on different syndrome sets at each repetition. When the decoding is successful or no additional syndromes are available, the repeated decoding of the encoded data 204-4 is stopped. For example, the error corrector 114 may decode the encoded data 204-4 based only on syndrome-4. After determining that the decoding has failed, the error corrector 114 immediately decodes the encoded data 204-4 based on syndrome-4 and syndrome-3 (backward direction) or based on syndrome-4 and syndrome-5 (forward direction). Figure 3The process of using multiple syndromes to decode data is described in additional detail. If the decoding is successful, that is, the data bit is corrected, the error corrector stops decoding and sends the corrected data bit to the host system in response to the request. When decoding fails, the error corrector 114 continues to decode the encoded data 204-4 based on syndrome-4, syndrome-3 and syndrome-2. If the decoding is successful, that is, the data bit is corrected, the error corrector 114 stops decoding and sends the corrected data bit to the host system in response to the request. When decoding fails, the error corrector 114 continues to decode the encoded data 204-4 based on syndrome-4, syndrome-3, syndrome-2 and syndrome-1. This repetitive process can be repeated until all syndromes (e.g., syndrome-1, ..., syndrome-N) of code 200 have been used in decoding or until the decoding of the encoded data is successful. In some embodiments, when the decoding of the encoded data fails based on the syndrome previously transmitted, the memory device 130 can transmit additional syndromes. In other embodiments, the memory device 130 may transmit all syndromes of the code 200 along with the requested encoded data. For example, when the encoded data 204-4 is sent to the controller, syndromes-1 to -N are transmitted along with the encoded data 204-4, but no additional encoded data, such as 204-1, 204-2, 204-3, 204-5, ..., 204-N, are transmitted.
[0042] Although the embodiments herein are described with reference to code 200, other codes may be used. Thus, the illustrated codes should be understood as exemplary codes and other codes decodable based on syndromes may be used in the described error corrector 114 and / or syndrome calculation component 113.
[0043] Figure 3 is a flow chart of an example method 300 for correcting data based on one or more syndromes received from a memory device according to some embodiments of the present disclosure. The method 300 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, the method 300 is performed by Figure 1 The error corrector 114 of the embodiment of the present invention is executed. Although shown in a specific order or sequence, the order of the process can be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are only examples, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in each embodiment. Other process flows are also possible.
[0044] At operation 305, the processing device receives a request for data stored in a memory device, such as memory device 130 or memory device 140. In some embodiments, the request is a read operation from host system 120. In some embodiments, the request is a request for a block of data (e.g., the data bits of block 204-4).
[0045] At operation 310, the processing device receives encoded data from the memory device in response to the request, such as block 204-4. At operation 315, the processing device receives a syndrome, such as syndrome-4. In some embodiments, the processing device may receive encoded data 204-4 and two or more syndromes, such as syndrome-4, and one or more syndromes for the encoded data of code 200, such as syndrome-1, syndrome-2, syndrome-3, etc., or syndrome-5, syndrome-6, syndrome-7, etc. In some embodiments, the processing device receives an additional syndrome, such as syndrome-3, but does not receive its associated encoded data, such as encoded data 204-3. In some embodiments, the additional syndrome may be received when decoding of the encoded data based on a previously received syndrome fails. For example, the processing device may receive encoded data 204-4 and syndrome-4 and later request and receive syndrome-3 when decoding of the encoded data 204-4 based on syndrome-4 fails. Alternatively, the processing device may receive the encoded data 204 - 4 , syndrome- 4 , and the additional syndrome regardless of whether decoding of the encoded data 204 - 4 based on syndrome- 4 fails.
[0046] At operation 320, the processing device decodes the encoded data based on the syndrome of the encoded data. For example, the processing device may decode the encoded data 204-4 based on syndrome-4. In some embodiments, the processing device may decode the encoded data 204-4 based on syndrome-4 and based on one or more additional syndromes (e.g., syndrome-1, syndrome-2, or syndrome-3, etc.). In some embodiments, the processing device repeatedly decodes the encoded data 204-4 multiple times, wherein each repetition is performed based on a combination of the syndrome and a different additional syndrome. For example, the processing device may decode the encoded data 204-4 based on syndrome-4, and at operation 325, determine whether the decoding based on this syndrome is successful. Upon determining that the decoding is successful, the operation flow immediately moves to operation 330. Alternatively, upon determining that the decoding is unsuccessful, the operation flow immediately moves to operation 315 or operation 320.
[0047] In some embodiments, upon determining that decoding is unsuccessful, the operational flow moves to operation 315, where the processing device receives an additional syndrome. For example, upon determining that decoding of the encoded data 204-4 based on syndrome-4 fails, the processing device receives syndrome-3. In some embodiments, before receiving the additional syndrome, the processing device may transmit a request for the additional syndrome to the memory device 130. The processing device repeats the decoding operation 320 based on syndrome-3. The processing device may decode the encoded data 204-4 based on syndrome-3 and syndrome-4. For example, the processing device may detect an error in the encoded data 204-3 using syndrome-3. The processing device adjusts syndrome-4 based on the detection. The processing device detects the error and corrects the error of the encoded data 204-4 based on the adjusted syndrome-4. The flow then moves to operation 325.
[0048] In other embodiments, upon determining that the decoding is unsuccessful (i.e., the decoding fails), the operational flow immediately moves to operation 320, i.e., the processing device repeats the decoding operation 325 based on syndrome-3 as described above. In these embodiments, operation 315 is skipped because the processing device may have already received syndrome-3. The processing device may repeat the decoding of the encoded data 204-4 based on additional syndromes until all syndromes have been used or the decoding is successful. For example, the processing device may use syndrome-1 to detect an error (i.e., an error orientation) in the encoded data 204-1. The processing device adjusts syndrome-2 based on detecting the error in the encoded data 204-1. The processing device detects and corrects the error in the encoded data 204-2 based on the adjusted syndrome-2. The processing device adjusts syndrome-3 based on detecting the error in the encoded data 204-2. The processing device detects an error in the encoded data 204-3 based on the adjusted syndrome-3 and adjusts syndrome-4 based on detecting the error in the encoded data 204-3. The processing device detects errors and corrects the errors of the encoded data 204-4 using the adjusted syndrome-4. In some embodiments, the processing device may detect errors and correct the encoded data 204-4 in a similar manner using additional syndromes from the forward direction (e.g., syndrome-5 (not illustrated), ..., syndrome-N, etc.). Operations 320-325 may be repeated until the decoding of the encoded data is successful or all available syndromes are used to decode the encoded data. Upon determining that the decoding is successful or no more syndromes are available, the process moves to operation 330.
[0049] At operation 330, the processing device transmits the corrected data (or a failure indication if the processing device is unable to decode the encoded data). For example, the processing device may transmit the corrected data to the host system 120 in response to the received request.
[0050] Figure 4 4 is a flow chart of an example method 400 performed in a memory device for transmitting encoded data and syndromes in response to a request for data in accordance with some embodiments of the present disclosure. The method 400 may be performed by processing logic, which may include hardware (e.g., a processing device, circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuits, etc.), software (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, the method 400 is performed by Figure 1 The syndrome calculation component 113 of . Although shown in a specific order or sequence, the order of the processes can be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are only examples, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.
[0051] At operation 405, the processing device generates a syndrome for the encoded data in the memory device 130 or 140. For example, the processing device generates the syndrome-4 in response to a request for the encoded data 204-4. The encoded data is a component from a plurality of encoded data that form a code (e.g., code 200). The encoded data includes data bits such as 210-4 and parity bits 212-4. The generation of the syndrome is based on the data bits 210-4 and on the parity bits 212-4. The generation of the syndrome depends on the basic ECC used to encode the data. In some embodiments, the processing device generates the syndrome by performing one or more XOR operations of data bits from the data bits 210-4 and the parity bits 212-4. In some embodiments, for example, for code 200, the processing device generates a syndrome by performing an XOR operation of the data bits from data bit 210-4, parity bit 212-4, and data bits of another block (e.g., data bit 210-3) because the two blocks 204-3 and 204-4 share the parity bit in the vertical direction. The data bits used in the XOR operation are determined by the ECC used by code 200 to encode the data.
[0052] At operation 410, the processing device transmits the encoded data and the syndrome to the error corrector 114. For example, the processing device transmits the encoded data 204-4 and the syndrome-4 while omitting other encoded data of the code 200. Upon receiving the syndrome and the encoded data, the error corrector 114 attempts to decode the encoded data 204-4 based on the syndrome-4. In some embodiments, the error corrector 114 is as described above with reference to Figure 3 The encoded data 204-4 is described as being decoded.
[0053] At operation 415, the processing device determines whether decoding of the encoded data 204-4 has failed. For example, the processing device may determine that decoding of the encoded data 204-4 has failed by receiving a failure indication. In some embodiments, the processing device determines that decoding of the encoded data 204-4 has failed by receiving a request for one or more additional syndromes for the encoded data 204-4. In some embodiments, when decoding is successful, no indication or request is received and no additional operations are performed (flow moves to operation 420). Alternatively, in response to determining that decoding of the encoded data 204-4 has failed, operational flow moves to operation 425.
[0054] At operation 425, the processing device generates a syndrome by performing one or more XOR operations of the data bits from the data bits 210-3 and the parity bits 212-3. In some embodiments, such as for code 200, the processing device generates a syndrome by performing an XOR operation of the data bits from the data bits 210-3, the parity bits 212-3, and the data bits of the associated block (e.g., data bits 210-2) because the two blocks 204-3 and 204-2 share the parity bits in the horizontal direction. The data bits used in the XOR operation are determined by the ECC used by the code 200 to encode the data.
[0055] At operation 430, the processing device transmits the additional syndrome-3 to the error corrector 114. Upon receiving the syndrome, the error corrector 114 attempts to decode the encoded data 204-4 based on the syndrome-3. In some embodiments, the error corrector 114 is described above with reference to Figure 3 The encoded data 204-4 is decoded as described
[0056] In some embodiments, the processing device may repeat operations 415-430 until the encoded data is successfully decoded or all syndromes of the code 200 are generated and transmitted. In some embodiments, the processing device does not perform operation 415, and the processing device generates multiple syndromes for the encoded data 204-4, such as syndrome-(1-4) and / or syndrome-(1-N), and transmits the syndromes regardless of whether decoding of the encoded data based on some of the syndromes is successful.
[0057] Figure 5 is a flow chart of another example method for correcting data according to one or more syndromes received from a memory device according to some embodiments of the present disclosure. Method 500 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 500 is performed by Figure 1 The error corrector 114 of the embodiment of the present invention is executed. Although shown in a specific order or sequence, the order of the process can be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are only examples, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in each embodiment. Other process flows are also possible.
[0058] At operation 510, the processing device receives encoded data (e.g., encoded data 204-4) and a syndrome for the encoded data, e.g., syndrome-4, from a memory device, such as 130 or 140. In some embodiments, the processing device receives the encoded data and syndrome in response to a request for data stored in a memory device, such as memory device 130 or memory device 140. In some embodiments, the request is a read operation from a host system, such as host system 120. In some embodiments, the request is a request for a block of data (e.g., the data bits of block 204-4).
[0059] At operation 515, the processing device receives additional syndromes for the encoded data from the memory device. In some embodiments, the additional syndrome, such as syndrome-3, is used for the encoded data 204-4 and other encoded data 204-3 from the plurality of encoded data. The encoded data 204-4 shares parity data with the other encoded data 204-3, such as parity data 212-4. In some embodiments, the encoded data 204-4 does not share parity bits with other encoded data (e.g., encoded data 204-1), but is related to each other according to an error correction code (e.g., exemplary code 200). The processing device receives the additional syndromes but does not receive the other encoded data. In some embodiments, the processing device receives one or more additional syndromes, such as syndrome-1, syndrome-2, syndrome-3, etc., as described above.
[0060] At operation 520, the processing device decodes the encoded data based on the syndrome, the additional syndrome, or a combination thereof. For example, the processing device may decode the encoded data 204-4 based on syndrome-4. In some embodiments, the processing device may decode the encoded data 204-4 based on syndrome-4 and based on one or more additional syndromes (e.g., syndrome-1, syndrome-2, or syndrome-3, etc.), as described above.
[0061] Figure 66 is a flow chart of another example method 600 performed in a memory device for transmitting encoded data and syndromes in response to a request for data in accordance with some embodiments of the present disclosure. The method 600 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, a dedicated logic, a programmable logic, a microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions run or executed on a processing device), or a combination thereof. In some embodiments, the method 600 is performed by Figure 1 The syndrome calculation component 113 of . Although shown in a specific order or sequence, the order of the processes can be modified unless otherwise specified. Therefore, it should be understood that the illustrated embodiments are only examples, and the illustrated processes can be performed in different orders, and some processes can be performed in parallel. In addition, one or more processes can be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are also possible.
[0062] At operation 605, the processing device generates a syndrome, such as syndrome -4, for encoded data from the plurality of encoded data, such as encoded data 204-4, in a memory device storing the plurality of encoded data, such as code 200. The generation of the syndrome may be performed as described above.
[0063] At operation 610, the processing device transmits the encoded data and syndrome to a controller coupled to the memory device (eg, the memory subsystem controller 115 or a controller of the host system 120).
[0064] At operation 615, the processing device generates additional syndromes for the encoded data in the memory device. In some embodiments, the additional syndrome, such as syndrome-3, is for the encoded data 204-4 and other encoded data 204-3 from the plurality of encoded data. The encoded data 204-4 and the other encoded data 204-3 share parity data, such as parity data 212-4. In some embodiments, the encoded data 204-4 does not share parity bits with other encoded data (such as encoded data 204-1), but is interrelated according to an error correction code (such as exemplary code 200). As an example, the encoded data 204-2 is interrelated with the encoded data 204-4, but the syndrome-3 depends on 204-2 and 204-3. In addition, the syndrome-4 varies with the encoded data 204-3 and the encoded data 204-4.
[0065] At operation 620, the processing device transmits the additional syndrome to the controller but does not transmit other encoded data. In some embodiments, the additional syndrome is transmitted in response to determining that decoding of the encoded data based on the previous syndrome has failed. In other embodiments, the additional syndrome is transmitted regardless of whether decoding of the decoded data has failed.
[0066] Figure 7 An example machine of a computer system 700 is illustrated, within which a set of instructions for causing the machine to perform any one or more of the methods discussed herein may be executed. In some embodiments, the computer system 700 may correspond to a host system (e.g., Figure 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 of the controller may be used to execute the operation of the controller (for example, execute the operating system to execute the corresponding Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or in the capacity of a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.
[0067] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing (sequentially or otherwise) a set of instructions that specify actions to be taken by the machine. In addition, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform any one or more of the methodologies discussed herein.
[0068] The example computer system 700 includes a processing device 702, a main memory 704 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), etc.), a static memory 706 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 718, which communicate with each other via a bus 730.
[0069] The processing device 702 represents one or more general processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 702 can also be one or more special processing devices, such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 702 is configured to execute instructions 726 for performing the operations and steps discussed herein. The computer system 700 may additionally include a network interface device 708 to communicate on a network 720.
[0070] The data storage system 718 may include a machine-readable storage medium 724 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 726 or software embodying any one or more of the methods or functions described herein. The instructions 726 may also reside, completely or at least partially, within the main memory 704 and / or within the processing device 702 during execution thereof by the computer system 700, the main memory 704 and the processing device 702 also constituting machine-readable storage media. The machine-readable storage medium 724, the data storage system 718, and / or the main memory 704 may correspond to Figure 1 Memory subsystem 110.
[0071] In one embodiment, instructions 726 include implementing instructions corresponding to an error corrector and / or syndrome calculation component (e.g., Figure 1 The machine-readable storage medium 724 is a storage medium that is used to store or encode a set of instructions for execution by a machine and causes the machine to perform any one or more of the methods of the present disclosure. The term "machine-readable storage medium" should therefore be considered to include, but is not limited to, solid-state memory, optical media, and magnetic media.
[0072] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing can most effectively convey the substance of their work to others skilled in the art. In this article, and generally, an algorithm is conceived to be a self-consistent sequence of operations that produce a desired result. An operation is one that requires physical manipulation of physical quantities. Typically (but not necessarily), these quantities take the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has proven to be convenient at times, primarily for common reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, and the like.
[0073] It should be borne in mind, however, that all of these and similar terms will be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.
[0074] The present disclosure also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the desired purpose, or it may include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. For example, a computer system or other data processing system (e.g., controller 115) may perform computer-implemented methods 300 or 500 in response to its processor executing a computer program (e.g., a sequence of instructions) contained in a memory or other non-transitory machine-readable storage medium. A computer system or other data processing system (e.g., local media controller 135) may perform computer-implemented methods 400 or 600 in response to its processor executing a computer program (e.g., a sequence of instructions) contained in a memory or other non-transitory machine-readable storage medium. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk, including a floppy disk, an optical disk, a CD-ROM, and a magnetic optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic card or an optical card, or any type of medium suitable for storing electronic instructions, each of which is connected to a computer system bus.
[0075] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used in conjunction with the programs according to the teachings herein, or it may prove convenient to construct a more specialized device to perform the method. The structures of various such systems will be presented as set forth in the description below. In addition, the present disclosure is not described with reference to any particular programming language. It should be appreciated that the teachings of the present disclosure as described herein may be implemented using various programming languages.
[0076] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device, etc.
[0077] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative sense rather than a restrictive sense.
Claims
1. A method for error correction, comprising: generating, in a memory device storing a plurality of encoded data, a first syndrome for a first encoded data from the plurality of encoded data; transmitting the first encoded data and the first syndrome to a controller coupled to the memory device; generating in the memory device a second syndrome for the first encoded data and second encoded data from the plurality of encoded data, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and The second syndrome is transmitted to the controller without transmitting the second encoded data, wherein the controller is to decode the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof. 2 . The method of claim 1 , wherein the transmitting the second syndrome is in response to a failure to decode the first encoded data based on the first syndrome. The method of claim 1 , wherein the error correction code is a ladder code.
4. The method of claim 1, wherein the first encoded data comprises first data bits and first parity bits stored in the memory device, and the generating of the first syndrome is based on the first data bits and the first parity bits.
5. The method of claim 4, wherein the generating of the first syndrome is additionally based on second data bits of the second encoded data.
6. The method of claim 4, wherein the transmitting the first encoded data with the first syndrome and the second syndrome is in response to a host request for the first data bit.
7. The method of claim 1, wherein the first encoded data and the second encoded data share a parity bit.
8. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to: generating, in a memory device storing a plurality of encoded data, a first syndrome for a first encoded data from the plurality of encoded data; transmitting the first encoded data and the first syndrome to a controller coupled to the memory device; generating in the memory device a second syndrome for the first encoded data and a second encoded data from the plurality of encoded data, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and The second syndrome is transmitted to the controller without transmitting the second encoded data, wherein the controller is to decode the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof.
9. The non-transitory computer-readable storage medium of claim 8, wherein transmitting the second syndrome is in response to a decoder failing to decode the first encoded data based on the first syndrome.
10. The non-transitory computer-readable storage medium of claim 8, wherein the error correction code is a ladder code.
11. The non-transitory computer-readable storage medium of claim 8, wherein the first encoded data includes first data bits and first parity bits stored in the memory device, and generating the first syndrome is based on the first data bits and the first parity bits.
12. The non-transitory computer-readable storage medium of claim 11, wherein generating the first syndrome is additionally based on second data bits of the second encoded data.
13. The non-transitory computer-readable storage medium of claim 11, wherein transmitting the first encoded data with the first syndrome and the second syndrome is in response to a host request for the first data bit.
14. The non-transitory computer-readable storage medium of claim 8, wherein the first encoded data and the second encoded data share a parity bit.
15. A system for error correction, comprising: A memory device storing a plurality of encoded data, the memory device comprising: A local media controller that does the following: generating, in a memory device storing a plurality of encoded data, a first syndrome for a first encoded data from the plurality of encoded data; transmitting the first encoded data and the first syndrome to a controller coupled to the memory device; generating in the memory device a second syndrome for the first encoded data and second encoded data from the plurality of encoded data, wherein the first encoded data and the second encoded data are correlated with each other according to an error correction code; and The second syndrome is transmitted to the controller without transmitting the second encoded data, wherein the controller is to decode the first encoded data based on at least one of the first syndrome, the second syndrome, or a combination thereof.
16. The system of claim 15, wherein transmitting the second syndrome is in response to a decoder failing to decode the first encoded data based on the first syndrome.
17. The system of claim 15, wherein the error correction code is a ladder code.
18. The system of claim 15, wherein the first encoded data includes first data bits and first parity bits stored in the memory device, and generating the first syndrome is based on the first data bits and the first parity bits.
19. The system of claim 18, wherein generating the first syndrome is additionally based on second data bits of the second encoded data.
20. The system of claim 15, wherein the first encoded data and the second encoded data share a parity bit.
