1. Field
Exemplary embodiments of the present disclosure relate to a decoder.
2. Description of the Related Art
The computer environment paradigm has shifted to ubiquitous computing systems that can be used anytime and anywhere. Due to this fact, the use of portable electronic devices such as mobile phones, digital cameras, and notebook computers has rapidly increased. These portable electronic devices generally use a memory system having memory devices, that is, a data storage device. The data storage device is used as a main memory device or an auxiliary memory device of the portable electronic devices.
Since they have no moving parts, data storage devices using memory devices provide excellent stability, durability, high information access speed, and low power consumption. Examples of data storage devices having such advantages include universal serial bus (USB) memory devices, memory cards having various interfaces, and solid state drives (SSD).
Embodiments of the present disclosure are directed to a decoder for use in a memory system.
Aspects of the invention include a decoder. The decoder includes: a syndrome generator for receiving a codeword and generating at least two syndromes based on the codeword; an error location polynomial generator for generating an error-location polynomial based on the syndromes; an error location determiner for determining at least one error location based on the error-location polynomial; and an error corrector for correcting the codeword based on the one error location. The error location polynomial generator includes: a logic for receiving the syndromes and generating a combination of the syndromes as a combination of coefficients of the error-location polynomial; and a key equation solver for generating the error-location polynomial based on the combination of the coefficients and finding at least one root of the error-location polynomial. The error location determiner determines the error location based on a combination of the root and one of the syndromes.
Other aspects of the invention include a memory system including a memory device storing data, and a controller including a decoder for decoding the data read from the memory device. The decoder includes: a syndrome generator for receiving a codeword and generating at least two syndromes based on the codeword; an error location polynomial generator for generating an error-location polynomial based on the syndromes; an error location determiner for determining at least one error location based on the error-location polynomial; and an error corrector for correcting the codeword based on the one error location. The error location polynomial generator includes: a logic for receiving the syndromes and generating a combination of the syndromes as a combination of coefficients of the error-location polynomial; and a key equation solver for generating the error-location polynomial based on the combination of the coefficients and finding at least one root of the error-location polynomial. The error location determiner determines the error location based on a combination of the root and one of the syndromes.
Various embodiments will be described below in more detail with reference to the accompanying drawings. The present invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present invention to those skilled in the art. Throughout the disclosure, like reference numerals refer to like parts throughout the various figures and embodiments of the present invention.
The invention can be implemented in numerous ways, including as a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer readable storage medium; and/or a processor, such as a processor suitable for executing instructions stored on and/or provided by a memory coupled to the processor. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless stated otherwise, a component such as a processor or a memory described as being suitable for performing a task may be implemented as a general component that is temporarily suitable for performing the task at a given time or a specific component that is manufactured to perform the task. As used herein, the term ‘processor’ refers to one or more devices, circuits, and/or processing cores suitable for processing data, such as computer program instructions.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Referring
The host device 10 may be implemented using any one of various types of electronic devices. In some embodiments, the host device 10 may include an electronic device such as a desktop computer, a workstation, a three-dimensional (3D) television, a smart television, a digital audio recorder, a digital audio player, a digital picture recorder, a digital picture player, a digital video recorder and a digital video player. In some embodiments, the host device 10 may include a portable electronic device such as a mobile phone, a smart phone, an e-book, an MP3 player, a portable multimedia player (PMP), and a portable game player.
The memory controller 100 may control overall operations of the memory device 200. The memory device 200 may perform one or more erase, program, and read operations under the control of the controller 100.
The controller 100 and the memory device 200 may be integrated in a single semiconductor device. For example, the controller 100 and the memory device 200 may be integrated in a single semiconductor device such as a solid state drive (SSD). The solid state drive may include a storage device for storing data therein. When the memory system is used in an SSD, operation speed of a host (not shown) coupled to the memory system may remarkably improve.
The controller 100 and the memory device 200 may be integrated in a single semiconductor device such as a memory card. For example, the controller 100 and the memory device 200 may be integrated in a single semiconductor device to configure a memory card such as a PC card of personal computer memory card international association (PCMCIA), a compact flash (CF) card, a smart media (SM) card, a memory stick, a multimedia card (MMC), a reduced-size multimedia card (RS-MMC), a micro-size version of MMC (MMCmicro), a secure digital (SD) card, a mini secure digital (miniSD) card, a micro secure digital (microSD) card, a secure digital high capacity (SDHC), and a universal flash storage (UFS).
In another example, the memory system may be provided as one of various elements including an electronic device such as a computer, an ultra-mobile PC (UMPC), a workstation, a net-book computer, a personal digital assistant (PDA), a portable computer, a web tablet PC, a wireless phone, a mobile phone, a smart phone, an e-book reader, a portable multimedia player (PMP), a portable game device, a navigation device, a black box, a digital camera, a digital multimedia broadcasting (DMB) player, a 3-dimensional television, a smart television, a digital audio recorder, a digital audio player, a digital picture recorder, a digital picture player, a digital video recorder, a digital video player, a storage device of a data center, a device capable of receiving and transmitting information in a wireless environment, one of electronic devices of a home network, one of electronic devices of a computer network, one of electronic devices of a telematics network, a radio-frequency identification (RFID) device, or elements devices of a computing system.
The memory device 200 may store data accessed by the host device 10. The memory device 200 may be implemented with a volatile memory device such as a dynamic random access memory (DRAM) and a static random access memory (SRAM) or a non-volatile memory device such as a read only memory (ROM), a mask ROM (MROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a ferroelectric random access memory (FRAM), a phase change RAM (PRAM), a magnetoresistive RAM (MRAM) and a resistive RAM (RRAM).
The controller 100 may control storage of data in the memory device 200. For example, the controller 100 may control the memory device 200 in response to a request from the host device 10. The controller 100 may provide the data read from the memory device 200, to the host device 10, and store the data provided from the host device 10 into the memory device 200.
The controller 100 may include an error correction code (ECC) encoder 100A and an ECC decoder 100B as an ECC unit, which are bridging between the host device 10 and the memory device 200. The host device 10 sends data to be stored in the memory device 200. The data is encoded by the ECC encoder 100A and transferred to the memory device 200. When the data is required to be read, it is decoded by the ECC decoder 100B and then sent to the host device 10.
In some embodiments, the ECC encoder 100A and the ECC decoder 100B may perform an error correction operation based on a coded modulation such as a low density parity check (LDPC) code, a Bose-Chaudhuri-Hocquenghem (BCH) code, a turbo code, a turbo product code (TPC), a Reed-Solomon (RS) code, a convolution code, a recursive systematic code (RSC), a trellis-coded modulation (TCM), a Block coded modulation (BCM), and so on.
In the memory system as described above, various technologies have been proposed for achieving higher storage density at a low cost. For example, multi-level cell (MLC)/tri-level cell (TLC) technology is proposed in memory systems such as NAND flash memories. However, these advantages come with damaging the reliability of the NAND flash memories. Codes such as the LDPC and BCH codes are most commonly applied for providing better data integrity.
A TPC code for the NAND flash memories can provide significant performance gains. In the TPC code, BCH codes are used as constituent codes for encoding data of multiple rows and columns. For decoding column and rows codes, a BCH decoder is used which utilizes maximum latency in a search procedure for example, a Chien search procedure. However, inevitable massive parallel architectures are required for throughput enhancement, resulting in significantly increased hardware complexity and power consumption.
Accordingly, in this disclosure, a technique is proposed which can solve this issue by avoiding Chien searches to directly find the roots of an error location polynomial in one cycle for two-error-correcting BCH codes. The proposed technique improves latency and throughput. Additionally, a key equation solver is combined in the proposed architecture for further reducing the area used on the silicon. The proposed architecture can be easily implemented on the hardware.
Referring to
The syndrome generator 110 may receive a codeword and generate at least two syndromes based on the codeword.
The error location polynomial generator 120 may generate an error-location polynomial based on the syndromes. In some embodiments, the error location polynomial generator 120 may include a logic for receiving the syndromes and generating a combination of the syndromes as a combination of coefficients of the error-location polynomial, and a key equation solver for generating the error-location polynomial based on the combination of the coefficients and finding at least one root of the error-location polynomial.
The error location determiner 130 may determine at least one error location based on the error-location polynomial.
The error corrector 140 may correct the codeword based on the one error location.
In general, a Berlekamp-Massey (BM) algorithm or an Extended Euclidean algorithm may be utilized to compute a key equation solver (KES) for BCH codes. However, in some embodiments using two-error-correcting BCH codes, it may be more efficient to apply a Peterson-Gorenstein-Zieler (PGZ) algorithm to calculate the coefficients of the error location polynomial (x):
In the Equation (1), the inversion computation may be complicated. To simplify the hardware, the coefficients can be redefined in an inversionless manner:
0=S1,1=S12,2=S3+S13 (2)
To make computation easier for the hardware, the error location polynomial may be transformed from 2x2+1x+0 to:
By combining the methods mentioned above, the error locations can be calculated within one clock cycle after obtaining syndrome values.
Referring to
The logic includes a square operator 121, a multiplier 122, an adder 123 and a divider 124. The square operator 121 squares a first syndrome S1 of the syndromes as a first coefficient 0 to output a second coefficient 1(=S12). The multiplier 122 multiplies the first coefficient 0 by the second coefficient 1 to output a multiplied result 01(=S13). The adder 123 adds the multiplied result and a second syndrome S3 of the syndromes to output a third coefficient A1(2=S3+S13). The divider 124 divides the third coefficient A1(=2) by the multiplied result A2(=01) to output the combination of coefficients A3(=2/01=S3+S13/S13).
The key equation solver 125 generates the error-location polynomial based on the combination of the coefficients A3 and finds at least one root of the error-location polynomial. For example, the key equation solver 125 generates and solves the error-location polynomial (y2+y+c) for the combination of the coefficients A3. Further, the key equation solver 125 outputs a root β of the error-location polynomial and an error value of Tr(c), wherein Tr(c) indicates if there is a valid solution. The key equation solver 125 may be implemented with a look up table (LUT).
The logic further includes an additional divider 131 for dividing the second coefficient B1(==S12) by the third coefficient B2(=2=S3+S13) to output the dividing result B3(=1/2).
The error location determiner 130 determines the error location based on a combination of the root β and one S1 of the syndromes. The error location determiner 130 includes a multiplier 132, an adder 133, a lookup table 134 and a lookup table 135. The multiplier 132 multiplies the output B3 of the divider 131 by the root β to output a first root x1. The adder 133 adds the output B3 of the divider 131 and the first root x1 to output a second root x2. The lookup table EL_LUT 134 includes a plurality of error locations corresponding to a plurality of roots, and outputs a first error location value L1 based on the first root x1. The lookup table EL_LUT 135 includes a plurality of error locations corresponding to a plurality of roots, and outputs a second error location value L2 based on the second root x2.
A look up table EL_LUT is required to find the error location j based on the root x=a−j. For a two-error-correcting BCH decoder, it also has to deal with one error case. A look up table EL_LUT′ is applied to find the error location j based on the syndrome value S1=aj. Accordingly two different kinds LUT are needed in the decoder.
To share the LUT, we redefine the error location polynomial into ′(x)=0x2+1x+2 for two errors case. Therefore, the root becomes x=aj.
Referring to
The logic includes a square operator 121, a multiplier 122, an Text adder 123 and a divider 124, as the same as the decoder in
The key equation solver 125 generates the error-location polynomial based on the combination of the coefficients A3 and finds at least one root of the error-location polynomial. For example, the key equation solver 125 generates and solves the error-location polynomial (y2+y+c) for the combination of the coefficients A3. Further, the key equation solver 125 outputs a root β of the error-location polynomial and an error value of Tr(c). The key equation solver 125 may be implemented with a look up table (LUT).
The error location determiner 130 determines the error location based on a combination of the root β and one S1 of the syndromes. The error location determiner 130 includes a multiplier 136, an adder 137, a lookup table EL_LUT′ 138 and a lookup table EL_LUT′ 139. The multiplier 136 multiplies the first syndrome S1 by the root β to output a first root x1. The adder 137 adds the first syndrome S1 and the first root x1 to output a second root x2. The lookup table EL_LUT′ 138 includes a plurality of error locations corresponding to a plurality of roots, and outputs a first error location value L1 based on the first root x1. The lookup table EL_LUT′ 139 includes a plurality of error locations corresponding to a plurality of roots, and outputs a second error location value L2 based on the second root x2.
As compared to
Referring to
The logic includes a square operator 121, a multiplier 122, an adder 123 and a divider 124, which is the same as the decoder in
The key equation solver 125 generates the error-location polynomial based on the combination of the coefficients A3 and finds at least one root of the error-location polynomial. For example, the key equation solver 125 generates and solves the error-location polynomial (′(x)=0x2+1x+2) for the combination of the coefficients A3. Further, the key equation solver 125 outputs a root β of the error-location polynomial and an error value of Tr(c). The key equation solver 125 may be implemented with a look up table (LUT).
The error location determiner 130 determines the error location based on a combination of the root β and one S1 of the syndromes. The error location determiner 130 includes a multiplier 136, an adder 137, a multiplexer 141, a lookup table 142, a multiplexer 143, a flip-flop 144, a multiplexer 145, and a flip-flop 146. The multiplier 136 multiplies the first syndrome S1 by the root β to output a first root x1. The adder 137 adds the first syndrome S1 and the first root x1 to output a second root x2.
The lookup table EL_LUT′ 142 includes a plurality of error locations corresponding to a plurality of roots, and outputs an error location value based on one of the first root x1 and the second root x2.
The multiplexer 141 includes 3 input terminals and one output terminal. The multiplexer 141 receives the first root x1, the second root x2 and the first syndrome S1, and outputs one of the first root x1, the second root x2 and the first syndrome S1 according to a selection signal SEL0 to the lookup table 142. The selection signal SEL0 includes the third coefficient A1(=2).
The multiplexer 143 receives the error location value from the lookup table 142 and the output of the flip-flop 144, and outputs to the flip-flop 144 one of the error location value and the output of the flip-flop 144 according to a selection signal SEL1 as the first error location value L1.
The multiplexer 145 receives the error location value from the lookup table 142 and the output of the flip-flop 146, and outputs to the flip-flop 146 one of the error location value and the output of the flip-flop 146 according to a selection signal SEL2 as the second error location value L2.
The architecture of revised one-shot decoder is shown in
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
This application claims the benefit of U.S. Provisional Application No. 62/170,599 filed Jun. 3, 2015, the entire contents of which are herein incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
4099160 | Flagg | Jul 1978 | A |
5754563 | White | May 1998 | A |
5942005 | Hassner | Aug 1999 | A |
6119262 | Chang | Sep 2000 | A |
8601351 | Wong et al. | Dec 2013 | B2 |
20140129899 | Kumar et al. | May 2014 | A1 |
Number | Date | Country |
---|---|---|
1561005 | Dec 2010 | CN |
Number | Date | Country | |
---|---|---|---|
20160359502 A1 | Dec 2016 | US |
Number | Date | Country | |
---|---|---|---|
62170599 | Jun 2015 | US |