# US 10,958,292 B2 · Encoder, associated encoding method and flash memory controller utilizing divided partial parity blocks for circulant convolution calculations

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

- Number: US 10,958,292 B2
- Document ID: US10958292B2
- Status: Granted
- Kind: B2
- Application number: 16/691,552
- Filed: 2019-11-21
- Published: 2020-03-19
- Granted: 2021-03-23
- Earliest claimed: 2017-11-27
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Shiuan-Hao Kuo
- Web page: https://patentgrep.com/patent/US10958292B2

## CPC

- H03M 13/2933: {using a block and a convolutional code (H03M13/2957 takes precedence)}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- H03M 13/116: {Quasi-cyclic LDPC [QC-LDPC] codes, i.e. the parity-check matrix being composed of permutation or circulant sub-matrices}
- H03M 13/2906: {using block codes (H03M13/2957 takes precedence)}
- H03M 13/611: {Specific encoding aspects, e.g. encoding by means of decoding}
- 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

An encoding method includes: processing a plurality of data blocks to generate a plurality of partial parity blocks, wherein the partial parity blocks includes a first portion and a second portion; using a first computing circuit to generate a first calculating result according to the second portion of the partial parity blocks; using the first calculating result to adjust the first portion of the partial parity blocks; performing circulant convolution operations upon the adjusted first portion to generate a first portion of parity blocks; and using a second computing circuit to generate a second portion of the parity blocks according to at least the first portion of parity blocks; wherein the first portion of the parity blocks and the second portion of the parity blocks serve as a plurality of parity blocks generated in response to encoding the data blocks.

## Claims

### Claim 1

An encoder installed in a flash memory controller, comprising:
a first barrel shifter module, arranged to process a plurality of data blocks in order to generate a plurality of partial parity blocks, wherein the partial parity blocks comprise a first portion of partial parity blocks and a second portion of partial parity blocks;
a first computing circuit, coupled to the second portion of partial parity blocks, the first computing circuit arranged to generate a first calculating result according to the output of the second portion of partial parity blocks;
an adjusting circuit, arranged to adjust the first portion by adding the first portion of partial parity blocks on the first calculating result, to generate an adjusted first portion of partial parity blocks;
a first circulant convolution computing circuit, coupled to the adjusting circuit, the first circulant convolution arranged to perform circulant convolution operations upon the adjusted first portion of partial parity blocks, in order to generate a first portion of parity blocks; and
a second computing circuit, coupled to the first circulant convolution computing circuit and the first computing circuit, the second computing circuit arranged to generate a second portion of parity blocks by adding the first portion of parity blocks on the first calculating result;
wherein the first portion of parity blocks and the second portion of parity blocks serve as a plurality of parity blocks generated by the encoder for the data blocks, and the data blocks and the parity blocks are written into a flash memory.

### Claim 2 (depends on 1)

The encoder of claim 1, wherein the second portion of partial parity blocks comprises at least two partial parity blocks, and each of the first computing circuit and the second computing circuit comprises a circulant convolution operation.

### Claim 3 (depends on 2)

The encoder of claim 2, wherein the first portion of partial parity blocks comprises C1 partial parity blocks, the second portion comprises C2 partial parity blocks, and the first computing circuit comprises:
a second circulant convolution computing circuit, arranged to perform circulant convolution operations upon C2 partial parity blocks, in order to generate C2 intermediate blocks; and
a second barrel shifter module, coupled to the second circulant convolution computing circuit, the second barrel shifter module arranged to perform operations upon the C2 intermediate blocks in order to generate C1 calculating result blocks as the first calculating result;
wherein the adjusting circuit adds the C1 calculating result blocks to the C1 partial parity blocks, respectively, in order to generate the adjusted first portion of partial parity blocks.

### Claim 4 (depends on 3)

The encoder of claim 3, wherein the first portion of parity blocks comprises C1 parity blocks, and the second computing circuit comprises:
a third barrel shifter module, arranged to perform operations upon the C1 parity blocks in order to generate C2 processed blocks;
a third circulant convolution computing circuit, coupled to the third barrel shifter module, the third circulant convolution computing circuit arranged to perform circulant convolution operations upon the C2 processed blocks in order to generate C2 output blocks; and
an output circuit, coupled to the third circulant convolution computing circuit, the output circuit arranged to adjust the C2 output blocks according to the C2 intermediate blocks in order to generate C2 parity blocks as the second portion of parity blocks.

### Claim 5 (depends on 1)

The encoder of claim 1, wherein neither of the first computing circuit and the second computing circuit comprises any circulant convolution operation.

### Claim 6 (depends on 5)

The encoder of claim 5, wherein the first portion comprises C1 partial parity blocks, the second portion comprises C2 partial parity blocks, C2 is equal to 1, and the first computing circuit comprises:
a second barrel shifter module, arranged to perform operations upon the C2 partial parity blocks in order to generate C1 calculating result blocks as the first calculating result;
wherein the adjusting circuit adds the C1 calculating result blocks to the C1 partial parity blocks, respectively, in order to generate the adjusted first portion of partial parity blocks.

### Claim 7 (depends on 6)

The encoder of claim 6, wherein the first portion of parity blocks comprises C1 parity blocks, and the second computing circuit comprises:
a third barrel shifter module, arranged to perform operations upon the C1 parity blocks to generate C2 processed blocks;
an output circuit, coupled to the third barrel shifter module, the output circuit arranged to adjust the C2 output blocks according to the C2 intermediate blocks, in order to generate C2 parity blocks as the second portion of parity blocks.

### Claim 8 (depends on 1)

The encoder of claim 1, being a low-density parity check (LDPC) code encoding circuit in the flash memory controller.

### Claim 9

A flash memory controller, arranged to access a flash memory module and comprising:
a memory, arranged to store a code;
a microprocessor, arranged to execute the code in order to control access of the flash memory module; and
an encoder, arranged to encode the data blocks in order to obtain a plurality of parity blocks, wherein the encoder comprises:
a first barrel shifter module, arranged to perform operations upon a plurality of data blocks in order to generate a plurality of partial parity blocks, wherein the partial parity blocks comprise a first portion of partial parity blocks and a second portion of partial parity blocks;
a first computing circuit, coupled to the second portion of partial parity blocks, arranged to generate a first calculating result according to the output of the second portion of partial parity blocks;
an adjusting circuit, arranged to adjust the first portion of partial parity blocks by adding the first portion of partial parity blocks on the first calculating result to generate an adjusted first portion of partial parity blocks;
a first circulant convolution computing circuit, coupled to the adjusting circuit, and arranged to perform circulant convolution operations upon the adjusted first portion of partial parity blocks, in order to generate a first portion of parity blocks; and
a second computing circuit, coupled to the first circulant convolution computing circuit and the first computing circuit, the second computing circuit arranged to generate a second portion of parity blocks by adding the first portion of parity blocks on the first calculating result;
wherein the first portion of parity blocks and the second portion of parity blocks serve as a plurality of parity blocks generated by the encoder for the data blocks.

### Claim 10 (depends on 9)

The flash memory controller according to claim 9, wherein the second portion of partial parity blocks comprises at least two partial parity blocks, and each of the first computing circuit and the second computing circuit comprises a circulant convolution operation.

### Claim 11 (depends on 10)

The flash memory controller according to claim 10, wherein the first portion of partial parity blocks comprises C1 partial parity blocks, the second portion comprises C2 partial parity blocks, and the first computing circuit comprises:
a second circulant convolution computing circuit, arranged to perform circulant convolution operations upon C2 partial parity blocks in order to generate C2 intermediate blocks; and
a second barrel shifter module, coupled to the second circulant convolution computing circuit, the second barrel shifter module arranged to perform operations upon the C2 intermediate blocks in order to generate C1 calculating result blocks as the first calculating result;
wherein the adjusting circuit adds the C1 calculating result blocks to the C1 partial parity blocks, respectively, in order to generate the adjusted first portion of partial parity blocks.

### Claim 12 (depends on 11)

The flash memory controller according to claim 11, wherein the first portion of parity blocks comprises C1 parity blocks, and the second computing circuit comprises:
a third barrel shifter module, arranged to perform operations upon the C1 parity blocks in order to generate C2 processed blocks;
a third circulant convolution computing circuit, coupled to the third barrel shifter module, the third circulant convolution arranged to perform circulant convolution operations upon C2 processed blocks in order to generate C2 output blocks;
an output circuit, coupled to the third circulant convolution computing circuit, and arranged to adjust the C2 output blocks according to the C2 intermediate blocks, in order to generate C2 parity blocks as the second portion of parity blocks.

### Claim 13 (depends on 9)

The flash memory controller according to claim 9, wherein neither of the first computing circuit and the second computing circuit comprises any circulant convolution operation.

### Claim 14 (depends on 13)

The flash memory controller according to claim 13, wherein the first portion comprises C1 partial parity blocks, the second portion comprises C2 partial parity blocks, C2 is equal to 1, and the first computing circuit comprises:
a second barrel shifter module, arranged to perform operations upon the C2 partial parity blocks in order to generate C1 calculating result blocks as the first calculating result;
wherein the adjusting circuit adds the C1 calculating result blocks to the C1 partial parity blocks perform, respectively, in order to generate the adjusted first portion of partial parity blocks.

### Claim 15 (depends on 14)

The flash memory controller according to claim 14, wherein the first portion of parity blocks comprises C1 parity blocks, and the second computing circuit comprises:
a third barrel shifter module, arranged to perform operations upon the C1 parity blocks in order to generate C2 processed blocks;
an output circuit, coupled to the third barrel shifter module, the output circuit arranged to adjust the C2 output blocks according to the C2 intermediate blocks, in order to generate C2 parity blocks as the second portion of parity blocks.

### Claim 16 (depends on 9)

The flash memory controller according to claim 9, which functions as a low-density parity check (LDPC) code encoder.

### Claim 17

An encoding method for a flash memory controller, comprising:
processing a plurality of data blocks to generate a plurality of partial parity blocks, wherein the partial parity blocks comprise a first portion of partial parity blocks and a second portion of partial parity blocks;
using a first computing circuit to generate a first calculating result according to the second portion of partial parity blocks;
adjusting the first portion of partial parity blocks by adding the first portion of partial parity blocks on the first calculating result, in order to generate an adjusted first portion of partial parity blocks;
performing circulant convolution operations upon the adjusted first portion of partial parity blocks, in order to generate a first portion of parity blocks; and
using a second computing circuit to generate a second portion of parity blocks by adding the first portion of parity blocks on the first calculating result;
wherein the first portion of parity blocks and the second portion of parity blocks serve as a plurality of parity blocks generated by encoding the data blocks, and the data blocks and the parity blocks are written into a flash memory.

### Claim 18 (depends on 17)

The encoding method of claim 17, wherein the second portion comprises at least two partial parity blocks, and each of the first computing circuit and the second computing circuit comprises a circulant convolution operation.

### Claim 19 (depends on 17)

The encoding method of claim 17, wherein neither of the first computing circuit and the second computing circuit comprises any circulant convolution operation.

### Claim 20 (depends on 17)

The encoding method of claim 17, wherein the flash memory controller functions as a low-density parity check (LDPC) code encoder.

### Claim 21

An encoder installed in a flash memory controller, comprising:
a barrel shifter module, arranged to perform operations upon a plurality of data blocks in order to generate a plurality of partial parity blocks, wherein the partial parity blocks comprise a first portion of partial parity blocks and a second portion of partial parity blocks;
an adjusting circuit, arranged to adjust the first portion of partial parity blocks according to the second portion of partial parity blocks, in order to generate an adjusted first portion of partial parity blocks;
a circulant convolution computing circuit, coupled to the adjusting circuit, and arranged to perform circulant convolution operations on the adjusted first portion in order to generate a first portion of parity blocks; and
a computing circuit, coupled to the circulant convolution computing circuit, the computing circuit arranged to generate a second portion of parity blocks at least according to the first portion of parity blocks;
wherein the first portion of parity blocks and the second portion of parity blocks serve as a plurality of parity blocks generated by the encoder for the data blocks, and the data blocks and the parity blocks are written into a flash memory.
