# US 2022/0291845 A1 · Semiconductor memory device and error detection and correction method

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

- Number: US 2022/0291845 A1
- Document ID: US20220291845A1
- Status: Published application
- Kind: A1
- Application number: 17/673,825
- Filed: 2022-02-17
- Published: 2022-09-15
- Earliest claimed: 2021-03-09
- Assignees: Winbond Electronics Corp.
- Applicants: Winbond Electronics Corp.
- Inventors: Takamichi Kasai; Fujimi Kaneko
- Web page: https://patentgrep.com/patent/US20220291845A1

## CPC

- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G11C 16/10: Programming or data input circuits
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/1008: {in individual solid state devices (G06F11/1004 takes precedence)}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/20: Initialising; Data preset; Chip identification
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G11C 16/3404: {Convergence or correction of memory cell threshold voltages; Repair or recovery of overerased or overprogrammed cells}
- G11C 29/74: {using duplex memories, i.e. using dual copies}
- G11C 29/42: using error correcting codes [ECC] or parity check
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

An error detection and correction method for a flash memory includes: a setting step, setting selection information to select a first error detection and correction function for performing 1-bit error detection and correction or a second error detection and correction function for performing multiple-bit error detection and correction; and an executing step, performing the first error detection and correction function or the second error detection and correction function based on the selection information during a read operation or a write operation.

## Claims

### Claim 1

An error detection and correction method for a semiconductor memory device, the error detection and correction method comprising:
a setting step, setting selection information for selecting a first error detection and correction function to perform m-bit error detection and correction or a second error detection and correction function to perform n-bit error detection and correction, wherein m and n are natural numbers, and m is less than n; and
an executing step, performing the first error detection and correction function or the second error detection and correction function based on the selection information during a read operation or a write operation.

### Claim 2 (depends on 1)

The error detection and correction method of claim 1, wherein
in the setting step, the selection information is changed externally according to an instruction.

### Claim 3 (depends on 1)

The error detection and correction method of claim 1, wherein
the selection information specifies a first address space of a memory cell array for selecting the first error detection and correction function and a second address space of the memory cell array for selecting the second error detection and correction function, and
the executing step performs the first error detection and correction function or the second error detection and correction function based on the first address space or the second address space corresponding to an address of the read operation or the write operation.

### Claim 4 (depends on 1)

The error detection and correction method of claim 1, further comprising
a converting step, converting first data that is related to the first error detection and correction function and is written to the memory cell array into second data related to the second error detection and correction function when an operation is switched from the first error detection and correction function to the second error detection and correction function.

### Claim 5 (depends on 4)

The error detection and correction method of claim 4, wherein
in the converting step, the first data in the memory cell array is read to a page buffer/sensing circuit, the first data is thereby converted into the second data through the second error detection and correction function, and the second data is then written to an original position of the memory cell array.

### Claim 6 (depends on 1)

The error detection and correction method of claim 1, wherein
the Hamming code is adopted for the first error detection and correction function to perform 1-bit error detection and correction, and the Bose-Chaudhuri-Hocquenghem codes are adopted for the second error detection and correction function to perform 2-bit, 4-bit, or 8-bit error detection and correction.

### Claim 7 (depends on 1)

The error detection and correction method of claim 1, wherein
the memory cell array is a NAND memory cell array comprising a regular sector and a spare sector, and parity check bits generated through the first error detection and correction function or the second error detection and correction function are stored in the spare sector.

### Claim 8

A semiconductor memory device, comprising:
a memory cell array;
an error detection and correction circuit, comprising a first error detection and correction function for performing m-bit error detection and correction and a second error detection and correction function for performing n-bit error detection and correction, wherein m and n are natural numbers, and m is less than n;
a setting register, adapted to set selection information for selecting the first error detection and correction function or the second error detection and correction function; and
a controller, adapted to perform the first error detection and correction function or the second error detection and correction function based on the selection information during a read operation or a write operation.

### Claim 9 (depends on 8)

The semiconductor memory device of claim 8, wherein
the setting register changes the selection information externally according to an instruction.

### Claim 10 (depends on 8)

The semiconductor memory device of claim 8, wherein
the selection information specifies a first address space of the memory cell array for selecting the first error detection and correction function and a second address space of the memory cell array for selecting the second error detection and correction function, and
the controller performs the first error detection and correction function or the second error detection and correction function based on the first address space or the second address space corresponding to an address of the read operation or the write operation.

### Claim 11 (depends on 8)

The semiconductor memory device of claim 8, wherein
the controller comprises a converting element, and first data that is related to the first error detection and correction function and is written to the memory cell array is converted into second data related to the second error detection and correction function when the converting element switches an operation from the first error detection and correction function to the second error detection and correction function.

### Claim 12 (depends on 11)

The semiconductor memory device of claim 11, wherein
the converting element reads the first data in the memory cell array to a page buffer/sensing circuit, the first data is thereby decoded through the first error detection and correction function and encoded through the second error detection and correction function to generate the second data, and the second data is then written to an original position of the memory cell array.

### Claim 13 (depends on 8)

The semiconductor memory device of claim 8, wherein
the Hamming code is adopted for the first error detection and correction function to perform 1-bit error detection and correction, and the Bose-Chaudhuri-Hocquenghem codes are adopted for the second error detection and correction function to perform 2-bit, 4-bit, or 8-bit error detection and correction.

### Claim 14 (depends on 8)

The semiconductor memory device of claim 8, wherein
the memory cell array is a NAND memory cell array comprising a regular sector and a spare sector, and parity check bits generated through the first error detection and correction function or the second error detection and correction function are stored in the spare sector.
