# US 2025/0156269 A1 · Soft decoding method, electronic device, and storage medium

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

- Number: US 2025/0156269 A1
- Document ID: US20250156269A1
- Status: Published application
- Kind: A1
- Application number: 18/813,072
- Filed: 2024-08-23
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: Zhongshan Longsys Electronics Co., Ltd.
- Applicants: Zhongshan Longsys Electronics Co., Ltd.
- Inventors: Guiqiang DONG; Xiaoyi ZHANG; Ao LI; Xichun GAO
- Web page: https://patentgrep.com/patent/US20250156269A1

## CPC

- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G06F 11/1016: {Error in accessing a memory location, i.e. addressing error}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A soft decoding method, an electronic device, and a storage medium. The soft decoding method includes: performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read; determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read; and performing a soft decoding based on soft-decoding reference data.

## Claims

### Claim 1

A soft decoding method, comprising:
performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read;
determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read; and
performing a soft decoding based on the soft-decoding reference data.

### Claim 2 (depends on 1)

The soft decoding method according to claim 1, wherein the performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read comprises:
performing a current hard read on the storage device to obtain a read data of the current hard read; and
hard decoding the read data of the current hard read;
the determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read comprises:
counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data; and
determining, in response to the current hard read being a hard read which is read at an i-th time, the soft-decoding reference data based on the target statistical data, wherein i is a preset number.

### Claim 3 (depends on 2)

The soft decoding method according to claim 2, wherein the counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data comprises:
performing, in response to the current hard read being not the hard read which is read at the i-th time, a next hard read on the storage device until the hard decoding is successful or the hard read which is read at the i-th time is reached.

### Claim 4 (depends on 2)

The soft decoding method according to claim 2, wherein the counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data comprises:
counting the preset data in the read data of the current hard read to obtain a current statistical data and counting the current statistical data into a historical statistical data to obtain the target statistical data, wherein the historical statistical data is a comprehensive statistical data of a read data of a historical hard read.

### Claim 5 (depends on 4)

The soft decoding method according to claim 4, further comprising:
setting a total number of times of hard read and a read voltage of each hard read; and
dividing a voltage of the storage device into a plurality of regions based on the read voltage of each hard read;
wherein the counting the preset data in the read data of the current hard read to obtain a current statistical data and counting the current statistical data into a historical statistical data to obtain the target statistical data comprises:
determining a preset data in a corresponding read data based on a read voltage of the current hard read and counting a preset data in each of the regions to obtain the current statistical data; and
counting the current statistical data into the historical statistical data to obtain the target statistical data, wherein the historical statistical data is a statistical data of the preset data in each of the regions in the read data of the historical hard read.

### Claim 6 (depends on 5)

The soft decoding method according to claim 5, wherein the preset data comprises at least one of 1 and 0;
the determining a preset data in a corresponding read data based on a read voltage of the current hard read and counting a preset data in each of the regions to obtain the current statistical data comprises:
determining, in response to a voltage of one of the regions being less than the read voltage of the current hard read, a read data corresponding to the one of the regions as 1;
determining, in response to a voltage of one of the regions being greater than the read voltage of the current hard read, a read data corresponding to the one of the regions as 0; and
counting at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions to obtain the current statistical data;
the counting the current statistical data into the historical statistical data to obtain the target statistical data comprises:
adding at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the current hard read and at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the historical hard read respectively to obtain the target statistical data.

### Claim 7 (depends on 6)

The soft decoding method according to claim 6, wherein the adding at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the current hard read and at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the historical hard read respectively to obtain the target statistical data comprises:
arranging a counter buffer group, wherein the counting buffer group comprises a buffer unit and at least one counting unit;
overwriting at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the current hard read into the buffer unit; and
adding at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the current hard read to at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the historical hard read respectively based on a data in the buffer unit through the counting unit to obtain the target statistical data.

### Claim 8 (depends on 6)

The soft decoding method according to claim 6, wherein the determining, in response to the current hard read being a hard read which is read at an i-th time, the soft-decoding reference data based on the target statistical data comprises:
determining a log-likelihood ratio of each of the regions based on at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions in the target statistical data; and
determining the log-likelihood ratio of each of the regions as the soft-decoding reference data.

### Claim 9 (depends on 8)

The soft decoding method according to claim 8, wherein the determining a log-likelihood ratio of each of the regions based on at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions in the target statistical data comprises:
calculating the log-likelihood ratio of each of the regions based on an adjustment parameter, the occurrence number of 1 in each of the regions in the target statistical data, and the occurrence number of 0 in each of the regions in the target statistical data through a preset formula;
wherein the preset formula is
LLR
=
scale
*
ln
⁢
(
C
0
C
1
)
;
where LLR is the log-likelihood ratio, scale is the adjustment parameter, C0 is the occurrence number of 0, and C1 is the occurrence number of 1.

### Claim 10 (depends on 8)

The soft decoding method according to claim 8, wherein the determining a log-likelihood ratio of each of the regions based on at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions in the target statistical data comprises:
mapping the occurrence number of 1 or the occurrence number of 0 in each of the regions in the target statistical data to a corresponding log-likelihood ratio based on a preset mapping table;
wherein the preset mapping table is established in advance based on a corresponding relationship between at least one of the occurrence number of 1 and the occurrence number of 0 and the log-likelihood ratio.

### Claim 11 (depends on 1)

The soft decoding method according to claim 1, further comprising:
performing an initial hard read on the storage device and performing a hard decoding based on a read data of the initial hard read;
performing, in response to the hard decoding being failed, at least one repeated hard read on the storage device;
wherein the method further comprises at least one of:
determining, in response to a hard decoding of a read data of at least one repeated hard read being failed, the soft-decoding reference data based on the read data of the initial hard read and the read data of the repeated hard read, and performing a soft decoding based on the soft-decoding reference data; and
performing, in response to the hard decoding of the read data of at least one repeated hard read being failed, a soft read on the storage device, determining the soft-decoding reference data based on a read data of the soft read, and performing a soft decoding based on the soft-decoding reference data.

### Claim 12

An electronic device, comprising a storage and a processor coupled to each other, wherein the processor is configured to execute a program instruction stored in the storage to realize a soft decoding method, the method comprises:
performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read;
determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read; and
performing a soft decoding based on the soft-decoding reference data.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read comprises:
performing a current hard read on the storage device to obtain a read data of the current hard read; and
hard decoding the read data of the current hard read;
the determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read comprises:
counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data; and
determining, in response to the current hard read being a hard read which is read at an i-th time, the soft-decoding reference data based on the target statistical data, wherein i is a preset number.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data comprises:
performing, in response to the current hard read being not the hard read which is read at the i-th time, a next hard read on the storage device until the hard decoding is successful or the hard read which is read at the i-th time is reached.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein the counting, in response to a hard decoding of the read data of the current hard read being failed, a preset data in the read data of the current hard read to obtain a target statistical data comprises:
counting the preset data in the read data of the current hard read to obtain a current statistical data and counting the current statistical data into a historical statistical data to obtain the target statistical data, wherein the historical statistical data is a comprehensive statistical data of a read data of a historical hard read.

### Claim 16 (depends on 15)

The electronic device according to claim 15, further comprising:
setting a total number of times of hard read and a read voltage of each hard read; and
dividing a voltage of the storage device into a plurality of regions based on the read voltage of each hard read;
wherein the counting the preset data in the read data of the current hard read to obtain a current statistical data and counting the current statistical data into a historical statistical data to obtain the target statistical data comprises:
determining a preset data in a corresponding read data based on a read voltage of the current hard read and counting a preset data in each of the regions to obtain the current statistical data; and
counting the current statistical data into the historical statistical data to obtain the target statistical data, wherein the historical statistical data is a statistical data of the preset data in each of the regions in the read data of the historical hard read.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the preset data comprises at least one of 1 and 0;
the determining a preset data in a corresponding read data based on a read voltage of the current hard read and counting a preset data in each of the regions to obtain the current statistical data comprises:
determining, in response to a voltage of one of the regions being less than the read voltage of the current hard read, a read data corresponding to the one of the regions as 1;
determining, in response to a voltage of one of the regions being greater than the read voltage of the current hard read, a read data corresponding to the one of the regions as 0; and
counting at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions to obtain the current statistical data;
the counting the current statistical data into the historical statistical data to obtain the target statistical data comprises:
adding at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the current hard read and at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the historical hard read respectively to obtain the target statistical data.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the adding at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the current hard read and at least one of an occurrence number of 1 and an occurrence number of 0 in each of the regions of the historical hard read respectively to obtain the target statistical data comprises:
arranging a counter buffer group, wherein the counting buffer group comprises a buffer unit and at least one counting unit;
overwriting at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the current hard read into the buffer unit; and
adding at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the current hard read to at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions of the historical hard read respectively based on a data in the buffer unit through the counting unit to obtain the target statistical data.

### Claim 19 (depends on 17)

The electronic device according to claim 17, wherein the determining, in response to the current hard read being a hard read which is read at an i-th time, the soft-decoding reference data based on the target statistical data comprises:
determining a log-likelihood ratio of each of the regions based on at least one of the occurrence number of 1 and the occurrence number of 0 in each of the regions in the target statistical data; and
determining the log-likelihood ratio of each of the regions as the soft-decoding reference data.

### Claim 20

A computer-readable storage medium, configured to store a program instruction, wherein the program instruction is executed by a processor to realize a soft decoding method, the method comprises:
performing a hard read on a storage device and performing a hard decoding based on a read data of the hard read;
determining, in response to the hard decoding being failed, a soft-decoding reference data based on the read data of the hard read; and
performing a soft decoding based on the soft-decoding reference data.
