# US 2010/0251068 A1 · Storage controller with encoding/decoding circuit programmable to support different ecc requirements and related method thereof

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

- Number: US 2010/0251068 A1
- Document ID: US20100251068A1
- Status: Published application
- Kind: A1
- Application number: 12/645,490
- Filed: 2009-12-23
- Published: 2010-09-30
- Earliest claimed: 2009-03-27
- Assignees: Mediatek Inc.
- Inventors: Li-Lien Lin; Chao-Yi Wu; Chien-Chung Wu; Li-Chun Tu
- Web page: https://patentgrep.com/patent/US20100251068A1

## CPC

- H03M 13/152: {Bose-Chaudhuri-Hocquenghem [BCH] codes}
- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- H03M 13/6516: {Support of multiple code parameters, e.g. generalized Reed-Solomon decoder for a variety of generator polynomials or Galois fields}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One exemplary storage controller of controlling data access of a storage device includes an encoding circuit and a control circuit. The encoding circuit is programmable to support a plurality of different finite fields, and implemented for generating encoded data according to an adjustable finite field setting. The control circuit is implemented for controlling the adjustable finite field setting of the encoding circuit and recording data into the storage device according to the encoded data. Another exemplary storage controller of controlling data access of a storage device includes a decoding circuit and a control circuit. The decoding circuit is programmable to support a plurality of different finite fields, and implemented for generating decoded data according to an adjustable finite field setting. The control circuit is implemented for reading data from the storage device to obtain readout data and controlling the adjustable finite field setting of the decoding circuit.

## Claims

### Claim 1

A storage controller of controlling data access of a storage device, comprising:
an encoding circuit, programmable to support a plurality of different finite fields, for generating encoded data according to an adjustable finite field setting; and
a control circuit, coupled to the encoding circuit, for controlling the adjustable finite field setting of the encoding circuit and recording data into the storage device according to the encoded data.

### Claim 2 (depends on 1)

The storage controller of claim 1, wherein:
the encoding circuit comprises:
a register, for storing a plurality of encoding coefficients, wherein the control circuit writes the encoding coefficients into the register to set the adjustable finite field setting of the encoding circuit; and
an encoding engine, coupled to the register, for generating the encoded data by encoding input data according to the encoding coefficients.

### Claim 3 (depends on 1)

The storage controller of claim 1, wherein:
the encoding circuit comprises:
a look-up table, storing a plurality of encoding coefficient sets each having encoding coefficients, and outputting a specific encoding coefficient set selected from the encoding coefficient sets in response to a selection signal, wherein the control circuit generates the selection signal to set the adjustable finite field setting of the encoding circuit; and
an encoding engine, coupled to the look-up table, for generating the encoded data by encoding the input data according to the specific encoding coefficient set.

### Claim 4 (depends on 1)

The storage controller of claim 1, wherein the encoding circuit comprises a plurality of encoders corresponding to the different finite fields, respectively, and enables one of the encoders according to an enable signal; and the control circuit generates the enable signal to set the adjustable finite field setting of the encoding circuit.

### Claim 5 (depends on 1)

The storage controller of claim 1, wherein the storage device is a non-volatile memory.

### Claim 6 (depends on 1)

The storage controller of claim 1, wherein the storage device has a multi-channel architecture utilizing a plurality of physical channels for data transmission.

### Claim 7

A storage controller of controlling data access of a storage device, comprising:
an encoding circuit, programmable to support a plurality of different error correction capabilities, for generating encoded data according to an adjustable error correction capability setting; and
a control circuit, coupled to the encoding circuit, for adjusting the adjustable error correction capability setting supported by the encoding circuit and recording data into the storage device according to the encoded data.

### Claim 8 (depends on 7)

The storage controller of claim 7, wherein the control circuit adjusts the adjustable error correction capability setting according to significance or attribute of the input data.

### Claim 9 (depends on 7)

The storage controller of claim 7, wherein the control circuit further reads data from the storage device to obtain readout data; the storage controller further comprises a decoding circuit, coupled to the control circuit, for decoding the readout data; and the control circuit adjusts the adjustable error correction capability setting according to an error rate of decoding the readout data.

### Claim 10 (depends on 7)

The storage controller of claim 7, wherein the control circuit adjusts the adjustable error correction capability setting according to a hardware specification of the storage device.

### Claim 11

A storage controller of controlling data access of a storage device, comprising:
an encoding circuit, programmable to support a plurality of different codeword lengths, for generating encoded data according to an adjustable codeword length setting; and
a control circuit, coupled to the encoding circuit, for adjusting the adjustable codeword length setting supported by the encoding circuit and recording data into the storage device according to the encoded data.

### Claim 12 (depends on 11)

The storage controller of claim 11, wherein the control circuit adjusts the adjustable codeword length setting according to a data format of the input data.

### Claim 13 (depends on 11)

The storage controller of claim 11, wherein the control circuit adjusts the adjustable codeword length setting according to a hardware specification of the storage device.

### Claim 14

A storage controller of controlling data access of a storage device, comprising:
a decoding circuit, programmable to support a plurality of different finite fields, for generating decoded data according to an adjustable finite field setting; and
a control circuit, coupled to the decoding circuit, for reading data from the storage device to obtain readout data and controlling the adjustable finite field setting of the decoding circuit.

### Claim 15 (depends on 14)

The storage controller of claim 14, wherein:
the decoding circuit comprises:
a register, for storing a plurality of decoding parameters, wherein the control circuit writes the decoding parameters into the register to set the adjustable finite field setting of the decoding circuit; and
a decoding engine, coupled to the register, for generating the decoded data by decoding the readout data according to the decoding parameters.

### Claim 16 (depends on 14)

The storage controller of claim 14, wherein:
the decoding circuit comprises:
a look-up table, storing a plurality of decoding parameter sets each having decoding parameters, and outputting a specific decoding parameter set selected from the decoding parameter sets in response to a selection signal, wherein the control circuit generates the selection signal to set the adjustable finite field setting of the decoding circuit; and
a decoding engine, coupled to the look-up table, for generating the decoded data by decoding the readout data according to the specific decoding parameter set.

### Claim 17 (depends on 14)

The storage controller of claim 14, wherein the decoding circuit comprises a plurality of decoders corresponding to the different finite fields, respectively, and enables one of the decoders according to an enable signal; and the control circuit generates the enable signal to set the adjustable finite field setting of the decoding circuit.

### Claim 18 (depends on 14)

The storage controller of claim 14, wherein the storage device is a non-volatile memory.

### Claim 19 (depends on 14)

The storage controller of claim 14, wherein the storage device has a multi-channel architecture utilizing a plurality of physical channels for data transmission.

### Claim 20

A storage controller of controlling data access of a storage device, comprising:
a decoding circuit, programmable to support a plurality of different error correction capabilities, for generating decoded data according to an adjustable error correction capability setting; and
a control circuit, coupled to the decoding circuit, for reading data from the storage device to obtain readout data and adjusting the adjustable error correction capability setting supported by the decoding circuit.

### Claim 21 (depends on 20)

The storage controller of claim 20, wherein the control circuit adjusts the adjustable error correction capability setting according to significance or attribute of the readout data.

### Claim 22 (depends on 20)

The storage controller of claim 20, wherein the control circuit adjusts the adjustable error correction capability setting according to an error rate of decoding the readout data.

### Claim 23 (depends on 20)

The storage controller of claim 20, wherein the control circuit adjusts the adjustable error correction capability setting according to a hardware specification of the storage device.

### Claim 24 (depends on 20)

The storage controller of claim 20, further comprising:
an encoding circuit, for generating encoded data according to a first error correction capability;
wherein the control circuit further records the encoded data into the storage device, and sets the adjustable error correction capability setting by a second error correction capability; and
when a decode error of decoding the readout data according to the second error correction capability occurs, the control circuit sets the adjustable error correction capability setting by a third error correction capability, and the decoding circuit re-decodes the readout data according to the third error correction capability, where the first error correction capability is equal to or greater than the third error correction capability, and the third error correction capability is greater than the second error correction capability.

### Claim 25

A storage controller of controlling data access of a storage device, comprising:
a decoding circuit, programmable to support a plurality of different codeword lengths, for generating decoded data according to an adjustable codeword length setting; and
a control circuit, coupled to the decoding circuit, for reading data from the storage device to obtain readout data and adjusting the adjustable codeword length setting supported by the decoding circuit.

### Claim 26 (depends on 25)

The storage controller of claim 25, wherein the control circuit adjusts the adjustable codeword length setting according to a data format of the readout data.

### Claim 27 (depends on 25)

The storage controller of claim 25, wherein the control circuit adjusts the adjustable codeword length setting according to a hardware specification of the storage device.

### Claim 28

A method of controlling data access of a storage device, comprising:
controlling an adjustable finite field setting, wherein the adjustable finite field setting is programmable to support a plurality of different finite fields;
generating encoded data according to at least the adjustable finite field setting; and
recording data into the storage device according to the encoded data.

### Claim 29 (depends on 28)

The method of claim 28, further comprising:
controlling an adjustable error correction capability setting, wherein the adjustable error correction capability setting is programmable to support a plurality of different error correction capabilities;
wherein the step of generating the encoded data comprises:
generating the encoded data according to the adjustable finite field setting or the adjustable error correction capability setting.

### Claim 30 (depends on 28)

The method of claim 28, further comprising:
controlling an adjustable codeword length setting, wherein the adjustable codeword length setting is programmable to support a plurality of different codeword length settings;
wherein the step of generating the encoded data comprises:
generating the encoded data according to the adjustable finite field setting or the adjustable codeword length setting.

### Claim 31

A method of controlling data access of a storage device, comprising:
reading data from the storage device to obtain readout data;
controlling an adjustable finite field setting, wherein the adjustable finite field setting is programmable to support a plurality of different finite fields; and
generating decoded data by decoding the readout data according to at least the adjustable finite field setting.

### Claim 32 (depends on 31)

The method of claim 31, further comprising:
controlling an adjustable error correction capability setting, wherein the adjustable error correction capability setting is programmable to support a plurality of different error correction capabilities;
wherein the step of generating the decoded data comprises:
generating the decoded data by decoding the readout data according to the adjustable finite field setting or the adjustable error correction capability setting.

### Claim 33 (depends on 31)

The method of claim 31, further comprising:
controlling an adjustable codeword length setting, wherein the adjustable codeword length setting is programmable to support a plurality of different codeword length settings;
wherein the step of generating the decoded data comprises:
generating the decoded data by decoding the readout data according to the adjustable finite field setting or the adjustable codeword length setting.
