# US 2015/0178155 A1 · Memory controller, storage device including the same and data encoding and decoding methods thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0178155 A1
- Document ID: US20150178155A1
- Status: Published application
- Kind: A1
- Application number: 14/580,815
- Filed: 2014-12-23
- Published: 2015-06-25
- Earliest claimed: 2013-12-23
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Namshik KIM; Tae-Hwan KIM; Daewook KIM; Biwoong CHUNG; Junjin KONG
- Web page: https://patentgrep.com/patent/US20150178155A1

## CPC

- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G11C 11/419: Read-write [R-W] circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A storage device is provided which includes an ECC circuit. At a write operation, the ECC circuit generates a CRC (cyclic redundancy check) parity corresponding to data and generates an ECC (error correction code) parity corresponding to the data using an error correction code. At a read operation about the data stored in the at least one nonvolatile memory device, the ECC circuit corrects an error of the data using the CRC parity and the ECC parity.

## Claims

### Claim 1

A storage device comprising:
at least one nonvolatile memory device configured to store data; and
a memory controller configured to control the at least one nonvolatile memory device, the memory controller including an error correction code (ECC) circuit, the ECC circuit configured to,
generate, at a write operation, a cyclic redundancy check (CRC) parity corresponding to the data and an error correction code (ECC) parity corresponding to the data using an error correction code (ECC), and
correct, at a read operation of the data from the nonvolatile memory device, an error of the data using the CRC parity and the ECC parity to generate corrected data, wherein
the CRC parity includes a plurality of CRC parities, the plurality of CRC parities being generated by one of concatenating a plurality of CRC polynomials based on CRC parity information or selecting from the plurality of CRC polynomials based on the CRC parity information.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the data is randomized data.

### Claim 3 (depends on 2)

The storage device of claim 2, wherein the memory controller is further configured to,
randomize data received from an external device at the write operation and output the randomized data; and
de-randomize the corrected data at the read operation and output the data.

### Claim 4 (depends on 1)

The storage device of claim 1, wherein a size of the CRC parity varies according to the CRC parity information.

### Claim 5 (depends on 4)

The storage device of claim 4, wherein the CRC parity information is generated according to selection of a user, a request of a host, environment information of the storage device, or management information of the storage device.

### Claim 6 (depends on 4)

The storage device of claim 4, wherein the CRC parities generated by the plurality of CRC polynomials have different sizes.

### Claim 7 (depends on 1)

The storage device of claim 1, wherein the ECC circuit comprises:
a CRC generator configured to generate the CRC parity corresponding to the data according to the CRC parity information at the write operation;
an ECC encoder configured to generate the ECC parity corresponding to the data using the error correction code (ECC) at the write operation; and
an ECC decoder configured to correct the error of the data using the CRC parity and the ECC parity at the read operation.

### Claim 8 (depends on 7)

The storage device of claim 7, wherein the CRC generator comprises:
a plurality of CRC parity generators, each of the CRC parity generators including the plurality of CRC polynomials, and one of the plurality of CRC parity generators is enabled according to the CRC parity information such that the enabled CRC parity generator generates the CRC parity.

### Claim 9 (depends on 7)

The storage device of claim 7, wherein the CRC generator comprises:
a plurality of CRC parity generators, each of the CRC parity generators including the plurality of CRC polynomials,
at least two of the plurality of CRC parity generators are enabled according to the CRC parity information such that the at least two enabled CRC parity generators are configured to generate CRC parities by concatenating the plurality of CRC polynomials.

### Claim 10 (depends on 7)

The storage device of claim 7, wherein the ECC decoder is configured to iteratively perform a decoding operation a number of times using the error correction code to correct the error of the data, and
when the number of times the ECC decoder has performed the decoding operation is less than a value, the ECC decoder is configured to skip a CRC checking operation.

### Claim 11 (depends on 1)

The storage device of claim 1, wherein the error correction code is an iteration code.

### Claim 12 (depends on 11)

The storage device of claim 11, wherein the iteration code is a low density parity check (LDPC) code.

### Claim 13

A memory controller comprising:
a processor configured to,
encode a message during a write operation by, generating a first code word based on the message and
a write cyclic redundancy check (CRC) parity code such that a size of the write CRC parity code varies,
generating a second code word such that the second code word includes the message, the write CRC parity code and an error correction code (ECC), and
storing the second code word in a non-volatile memory device; and
decode the message during a read operation by,
reading the second code word from the non-volatile memory device,
iteratively decoding the second code word using the error correction code (ECC) until the second code word passes a CRC check or a number of times the iteratively decoding is performed reaches a threshold, and
output the decoded message, if the second code word passes the CRC check.

### Claim 14 (depends on 13)

The memory controller of claim 13, wherein the processor is configured to determine if the second code word passes the CRC check by determining if the write CRC parity code included therein equals a read CRC parity code generated based on the decoded message.

### Claim 15 (depends on 13)

The memory controller of claim 13, wherein the processor is configured to iteratively decode the second code word such that, during an initial decoding operation, the second code word is decoded without determining if the second code word passes the CRC check.

### Claim 16 (depends on 13)

The memory controller of claim 13, wherein the size of the CRC parity code varies such that as the size of the CRC parity code increases a reliability of the error checking increases.

### Claim 17 (depends on 13)

The memory controller of claim 13, wherein the processor is configured to determine a data transfer error rate due to an external condition and set the size of the CRC parity code based on the determined data transfer error rate.

### Claim 18 (depends on 14)

The memory controller of claim 14, wherein the processor is configured to vary the size of the CRC parity code by selecting one of a plurality of polynomials based on enable information and applying the message to the selected polynomial to generate the first code word.
