# US 2021/0342095 A1 · Data storage device with syndrome weight minimization for data alignment

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

- Number: US 2021/0342095 A1
- Document ID: US20210342095A1
- Status: Published application
- Kind: A1
- Application number: 16/864,257
- Filed: 2020-05-01
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: David Avraham; Omer Fainzilber; Mark Shlick; Yoav Markus
- Web page: https://patentgrep.com/patent/US20210342095A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- H03M 13/1111: {Soft-decision decoding, e.g. by means of message passing or belief propagation algorithms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- H03M 13/37: Decoding methods or techniques, not specific to the particular type of coding provided for in groups H03M13/03 - H03M13/35
- H03M 13/3715: {Adaptation to the number of estimated errors or to the channel state}
- H03M 13/3723: {using means or methods for the initialisation of the decoder}
- H03M 13/451: {using a set of candidate code words, e.g. ordered statistics decoding [OSD]}
- H03M 13/458: {by updating bit probabilities or hard decisions in an iterative fashion for convergence to a final decoding result}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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)

## Abstract

A memory controller that includes, in one implementation, a memory interface and a controller circuit. The memory interface is configured to interface with a non-volatile memory. The controller circuit is configured to receive a skewed codeword read from the non-volatile memory. The controller circuit is also configured to scan the skewed codeword by inserting or removing a quantity of bits at different locations in the skewed codeword and determining resulting syndrome weights of the skewed codeword. The controller circuit is further configured to determine an adjusted codeword by inserting or removing the quantity of bits at one of the different locations in the skewed codeword which results in a smallest syndrome weight. The controller circuit is also configured to decode the adjusted codeword.

## Claims

### Claim 1

A memory controller, comprising:
a memory interface configured to interface with a non-volatile memory; and
a controller circuit configured to:
receive a skewed codeword read from the non-volatile memory,
scan the skewed codeword by inserting or removing a quantity of bits at different locations in the skewed codeword and determining resulting syndrome weights of the skewed codeword,
determine an adjusted codeword by inserting or removing the quantity of bits at one of the different locations in the skewed codeword which results in a smallest syndrome weight, and
decode the adjusted codeword.

### Claim 2 (depends on 1)

The memory controller of claim 1, wherein, to scan the skewed codeword, the controller circuit is further configured to scan the skewed codeword until the resulting syndrome weight of the skewed codeword is below a decoding threshold.

### Claim 3 (depends on 1)

The memory controller of claim 1, wherein, to scan the skewed codeword, the controller circuit is further configured to scan the skewed codeword in first-sized steps that are larger than one bit.

### Claim 4 (depends on 3)

The memory controller of claim 3, wherein, to scan the skewed codeword, the controller circuit is further configured to:
determine a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight, and
scan the skewed codeword in second-sized steps near the search location until the resulting syndrome weight of the skewed codeword is below a decoding threshold,
wherein the second-sized steps are smaller than the first-sized steps.

### Claim 5 (depends on 3)

The memory controller of claim 3, wherein, to scan the skewed codeword, the controller circuit is further configured to:
determine a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight,
determine a bit error rate based on the smallest syndrome weight,
determine two candidate locations near the search location based on the bit error rate, and
scan the skewed codeword at the two candidate locations.

### Claim 6 (depends on 1)

The memory controller of claim 1, wherein the skewed codeword is a first skewed codeword read from a first memory unit of the non-volatile memory, wherein the adjusted codeword is a first adjusted codeword, and wherein the controller circuit is further configured to:
receive a second skewed codeword read from a second memory unit of the non-volatile memory, wherein the second memory unit follows the first memory unit,
determine a second adjusted codeword by inserting or removing the quantity of bits at a location of a most significant bit in the second skewed codeword, and
decode the second adjusted codeword.

### Claim 7 (depends on 1)

The memory controller of claim 1, wherein the quantity of bits includes more than one bit.

### Claim 8 (depends on 1)

The memory controller of claim 1, wherein, to scan the skewed codeword, the controller circuit is further configured to scan the skewed codeword in steps of one bit.

### Claim 9

A method, comprising:
receiving, with a controller circuit, a skewed codeword read from a non-volatile memory;
scanning, with the controller circuit, the skewed codeword by inserting or removing a quantity of bits at different locations in the skewed codeword and determining resulting syndrome weights of the skewed codeword;
determining, with the controller circuit, an adjusted codeword by inserting or removing the quantity of bits at one of the different locations in the skewed codeword which results in a smallest syndrome weight; and
decoding, with the controller circuit, the adjusted codeword.

### Claim 10 (depends on 9)

The method of claim 9, wherein scanning the skewed codeword further includes scanning the skewed codeword until the resulting syndrome weight of the skewed codeword is below a decoding threshold.

### Claim 11 (depends on 9)

The method of claim 9, wherein scanning the skewed codeword further includes scanning the skewed codeword in first-sized steps that are larger than one bit.

### Claim 12 (depends on 11)

The method of claim 11, wherein scanning the skewed codeword further includes:
determining a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight, and
scanning the skewed codeword in second-sized steps near the search location until the resulting syndrome weight of the skewed codeword is below a decoding threshold,
wherein the second-sized steps are smaller than the first-sized steps.

### Claim 13 (depends on 11)

The method of claim 11, wherein scanning the skewed codeword further includes:
determining a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight,
determining a bit error rate based on the smallest syndrome weight,
determining two candidate locations near the search location based on the bit error rate, and
scanning the skewed codeword at the two candidate locations.

### Claim 14 (depends on 9)

The method of claim 9, wherein the skewed codeword is a first skewed codeword read from a first memory unit of the non-volatile memory, wherein the adjusted codeword is a first adjusted codeword, and wherein the method further comprising:
receiving, with the controller circuit, a second skewed codeword read from a second memory unit of the non-volatile memory, wherein the second memory unit follows the first memory unit;
determining, with the controller circuit, a second adjusted codeword by inserting or removing the quantity of bits at a location of a most significant bit in the second skewed codeword, and
decoding, with the controller circuit, the second adjusted codeword.

### Claim 15 (depends on 9)

The method of claim 9, wherein the quantity of bits includes more than one bit.

### Claim 16 (depends on 9)

The method of claim 9, wherein scanning the skewed codeword further includes scanning the skewed codeword in steps of one bit.

### Claim 17

An apparatus, comprising:
means for interfacing with a non-volatile memory;
means for receiving a skewed codeword read from the non-volatile memory;
means for scanning the skewed codeword by inserting or removing a quantity of bits at different locations in the skewed codeword and determining resulting syndrome weights of the skewed codeword;
means for determining an adjusted codeword by inserting or removing the quantity of bits at one of the different locations in the skewed codeword which results in a smallest syndrome weight; and
means for decoding the adjusted codeword.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the means for scanning the skewed codeword is configured to scan the skewed codeword until the resulting syndrome weight of the skewed codeword is below a decoding threshold.

### Claim 19 (depends on 17)

The apparatus of claim 17, wherein the means for scanning the skewed codeword is configured to:
scan the skewed codeword in first-sized steps that are larger than one bit,
determine a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight, and
scan the skewed codeword in second-sized steps near the search location until the resulting syndrome weight of the skewed codeword is below a decoding threshold,
wherein the second-sized steps are smaller than the first-sized steps.

### Claim 20 (depends on 17)

The apparatus of claim 17, wherein the means for scanning the skewed codeword is configured to:
scan the skewed codeword in first-sized steps that are larger than one bit,
determine a search location in the skewed codeword as one of the different locations for the first-sized steps which results in the smallest syndrome weight,
determine a bit error rate based on the smallest syndrome weight,
determine two candidate locations near the search location based on the bit error rate, and
scan the skewed codeword at the two candidate locations.
