# US 2015/0178152 A1 · Preventing programming errors from occurring when programming flash memory cells

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

- Number: US 2015/0178152 A1
- Document ID: US20150178152A1
- Status: Published application
- Kind: A1
- Application number: 14/147,825
- Filed: 2014-01-06
- Published: 2015-06-25
- Earliest claimed: 2013-12-20
- Assignees: LSI Corporation
- Applicants: LSI Corporation
- Inventors: Yu Cai; Yunxiang Wu; Zhengang Chen; Erich Haratsch
- Web page: https://patentgrep.com/patent/US20150178152A1

## CPC

- G06F 11/1072: {in multilevel memories}
- G11C 5/147: {Voltage reference generators, voltage or current regulators; Internally lowered supply levels; Compensation for voltage drops (G11C5/141 takes precedence)}
- G11C 16/30: Power supply circuits
- H03M 13/2906: {using block codes (H03M13/2957 takes precedence)}
- H03M 13/356: {Unequal error protection [UEP]}
- G11C 2029/0411: {Online error correction}
- H03M 13/1102: {Codes on graphs and decoding on graphs, e.g. low-density parity check [LDPC] codes}
- H03M 13/152: {Bose-Chaudhuri-Hocquenghem [BCH] codes}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- 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

Mis-programming of MSB data in flash memory is prevented by using ECC decoding logic on the flash die that error corrects the LSB values prior to the LSB values being used in conjunction with the MSB values to determine the proper reference voltage ranges. Error correcting the LSB page data prior to using it in combination with the MSB page data to determine the reference voltage ranges ensures that the reference voltage ranges will be properly determined and programmed into the flash cells.

## Claims

### Claim 1

A data storage system comprising:
a host system; and
a solid state drive (SSD) interfaced with the host system, the SSD including an SSD controller and at least one nonvolatile memory (NVM), the SSD controller including at least one SSD processor, a tier 1 error-correcting code (ECC) encoder/decoder, and a tier 2 ECC encoder/decoder, wherein the NVM includes at least a first flash memory having a plurality of flash memory cells, reference voltage range determination logic and tier 2 ECC decoding logic, the SSD controller receiving write data from the host system to be programmed into flash cells of the NVM, the write data comprising at least a first most significant bit (MSB) page of data and at least a first least significant bit (LSB) page of data, the tier 1 ECC encoder/decoder performing tier 1 ECC encoding of the first LSB page of data to produce a tier 1-encoded first LSB page of data, the tier 2 ECC encoder/decoder performing tier 2 ECC encoding of the tier 1-encoded first LSB page of data to produce a tier 1/tier 2-encoded first LSB page data, the SSD controller sending the tier 1/tier 2-encoded first LSB page of data to the first flash memory, the tier 1 ECC encoding/decoding logic performing tier 1 ECC encoding of the first MSB page of data to produce a tier 1-encoded first MSB page of data, the SSD controller sending the tier 1-encoded first MSB page of data to the first flash memory, the tier 1 ECC encoding and the tier 2 encoding being different types of encoding, the tier 2 decoding logic of the first flash memory being adapted to perform tier 2 decoding of LSB page data in the first flash memory.

### Claim 2 (depends on 1)

The data storage system of claim 1, wherein the first flash memory receives the tier 1/tier 2-encoded first LSB page of data and writes the tier 1/tier 2-encoded first LSB page of data to a first LSB page of the flash memory cells, and wherein the first flash memory receives the tier 1-encoded first MSB page of data, the first flash memory reading the tier 1/tier 2-encoded first LSB page of data from the first LSB page of the flash memory cells and sending the read tier 1/tier 2-encoded first LSB page to the tier 2 ECC decoding logic of the first flash memory, the tier 2 ECC decoding logic performing tier 2 ECC decoding on the tier 1/tier 2-encoded first LSB page of data to produce an error-corrected tier 1-encoded first LSB page of data, the reference voltage range determination logic using the error-corrected tier 1-encoded first LSB page of data and the tier 1-encoded first MSB page of data to determine reference voltage ranges for a first MSB page of the flash memory cells of the first flash memory, and wherein the first flash memory programs the determined reference voltage ranges into the first flash memory and writes the tier 1-encoded first MSB page of data to the first MSB page of the flash memory cells.

### Claim 3 (depends on 2)

The data storage system of claim 2, wherein the tier 1 ECC encoding performed by the tier 1 ECC encoder/decoder of the SSD controller is soft-decision ECC encoding and wherein the tier 2 encoding performed by the tier 2 ECC encoder/decoder of the SSD controller is hard-decision ECC encoding, and wherein the tier 2 ECC decoding logic of the first flash memory performs hard-decision ECC decoding.

### Claim 4 (depends on 2)

The data storage system of claim 2, wherein during a normal LSB page read operation, the first flash memory reads the tier 1/tier 2-encoded first LSB page of data from the first LSB page of the flash memory cells of the first flash memory, discards tier 2 parity bits from the first LSB of read data to remove tier 2 decoding of the first LSB page of read data, and sends a tier 1-encoded first LSB page of read data to the SSD controller without the tier 2 ECC decoding logic of the first flash memory performing tier 2 ECC decoding of the tier 1/tier 2-encoded first LSB page of read data.

### Claim 5 (depends on 4)

The data storage system of claim 4, wherein the tier 1-encoded first LSB page of read data that is sent from the first flash memory to the SSD controller is decoded by the tier 1 ECC encoder/decoder of the SSD controller to produce a tier1-decoded first LSB page of read data.

### Claim 6 (depends on 5)

The data storage system of claim 5, wherein during a normal MSB page read operation, the first flash memory causes the tier 1-encoded first MSB page of data to be read from the first MSB page of the flash memory cells and sent to the SSD controller, and wherein the tier 1-encoded first MSB page of read data that is sent from the first flash memory to the SSD controller is decoded by the tier 1 ECC encoder/decoder of the SSD controller to produce a tier1-decoded first MSB page of read data.

### Claim 7 (depends on 1)

The data storage system of claim 1, wherein the first flash memory is disposed in a first integrated circuit (IC) die and wherein the SSD controller is disposed on a second IC that is interfaced with the first IC to enable the first and second ICs to communicate with one another.

### Claim 8

A first flash memory integrated circuit (IC) die for use in a solid state drive (SSD) of a data storage system, the first flash memory IC die comprising:
a plurality of flash memory cells for storing data;
error-correcting code (ECC) decoding logic, the first flash memory IC die being configured to receive write data from an interface that interfaces an SSD controller of the SSD with the first flash memory IC die, the received write data comprising at least a first least significant bit (LSB) page of data and at least a first most significant bit (MSB) page of data, the first LSB page of data being encoded with a tier 1 ECC encoding and with a tier 2 ECC encoding, the first MSB page of data being encoded with the tier 1 encoding, the first flash memory IC die programming the first LSB page of data to a first LSB page of the flash memory cells, wherein prior to the first flash memory IC die programming the first MSB page of data to a first MSB page of the flash memory cells, the first flash memory IC die causes the encoded first LSB page of data to be read from the first LSB page of the flash memory cells and sent to the ECC decoding logic, and wherein the ECC decoding logic performs tier 2 ECC decoding of the encoded LSB page data to produce a tier 2-decoded first LSB page of data.

### Claim 9 (depends on 8)

The first flash memory IC die of claim 8, further comprising:
reference voltage range determination logic for determining reference voltage ranges to be programmed into the flash cells, the reference voltage range determination logic using the tier 2-decoded first LSB page of data and the tier 1-encoded first MSB page of data to determine reference voltage ranges to be programmed for the first MSB page of flash memory cells.

### Claim 10 (depends on 9)

The first flash memory die of claim 9, wherein the tier 1 ECC encoding is soft-decision ECC encoding and wherein the tier 2 encoding is hard-decision ECC encoding, and wherein the ECC decoding logic of the first flash memory IC die performs hard-decision ECC decoding.

### Claim 11 (depends on 8)

The first flash memory IC die of claim 8, wherein during a normal LSB page read operation, the first flash memory IC die reads the tier 1/tier 2-encoded first LSB page of data from the first LSB page of the flash memory cells, discards tier 2 parity bits from the first LSB of read data to remove tier 2 decoding of the first LSB page of read data, and sends a tier 1-encoded first LSB page of read data to the interface without the ECC decoding logic of the first flash memory IC die performing tier 2 ECC decoding of the tier 1/tier 2-encoded first LSB page of data.

### Claim 12

A method for programming data to flash memory of a data storage system, the method comprising:
in a solid state drive (SSD) interfaced with a host system, receiving write data to be written to at least one nonvolatile memory (NVM), the write data comprising at least a first most significant bit (MSB) page of data and at least a first least significant bit (LSB) page of data, wherein the NVM includes at least a first flash memory having a plurality of flash memory cells, reference voltage range determination logic and tier 2 ECC decoding logic;
in an SSD controller of the SSD, receiving the write data to be written to the NVM, the SSD controller including at least one SSD processor, tier 1 error-correcting code (ECC) encoder/decoder, and tier 2 ECC encoder/decoder;
in the tier 1 ECC encoder/decoder, performing tier 1 ECC encoding of the first LSB page of data to produce a tier 1-encoded first LSB page of data;
in the tier 2 ECC encoder/decoder, performing tier 2 ECC encoding of the tier 1-encoded first LSB page of data to produce a tier 1/tier 2-encoded first LSB page data;
in the SSD controller, sending the tier 1/tier 2-encoded first LSB page of data to the first flash memory;
in the tier 1 ECC encoder/decoder, performing tier 1 ECC encoding of the first MSB page of data to produce a tier 1-encoded first MSB page of data; and
in the SSD controller, sending the tier 1-encoded first MSB page of data to the first flash memory, the tier 1 ECC encoding and the tier 2 encoding being different types of encoding.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
in the first flash memory, receiving the tier 1/tier 2-encoded first LSB page of data;
in the first flash memory, programming the tier 1/tier 2-encoded first LSB page of data to a first LSB page of the flash memory cells;
in the first flash memory, receiving the tier 1-encoded first MSB page of data;
in the tier 2 decoding logic of the first flash memory, performing tier 2 decoding of the tier 1/tier 2-encoded first LSB page of data that was programmed to the first LSB page of flash memory cells to produce a tier 2-decoded first LSB page of data; and
in the reference voltage range determination logic, prior to programming the tier 1-encoded first MSB page of data to a first MSB page of flash memory cells, using the tier 1-encoded first MSB page of data and the tier 2-decoded first LSB page of data to determine reference voltage ranges for the first MSB page of flash memory cells.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
after determining the reference voltage ranges, programming the determined reference voltage ranges into the first MSB page of flash memory cells.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
prior to programming the tier 1/tier 2-encoded first LSB page of data to the first LSB page of the flash memory cells, buffering the tier 1/tier 2-encoded first LSB page of data in a LSB page buffer portion of a buffer of the first flash memory; and
after programming the tier 1/tier 2-encoded first LSB page of data to the first LSB page of the flash memory cells, buffering the tier 1-encoded first MSB page of data in an MSB page buffer portion of the buffer of the first flash memory.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
after performing tier 2 decoding of the tier 1/tier 2-encoded first LSB page of data and prior to determining the reference voltage ranges:
loading the tier 2-decoded first LSB page of data into the LSB page buffer portion;
moving the tier 2-decoded first LSB page of data and the tier 1-encoded first MSB page of data from the LSB and MSB page buffer portions, respectively, to the reference voltage range determination logic.

### Claim 17 (depends on 14)

The method of claim 14, wherein the tier 1 ECC encoding performed by the tier 1 ECC encoder/decoder of the SSD controller is soft-decision ECC encoding and wherein the tier 2 encoding performed by the tier 2 ECC encoder/decoder of the SSD controller is hard-decision ECC encoding, and wherein the tier 2 ECC decoding logic of the first flash memory performs hard-decision ECC decoding.

### Claim 18 (depends on 13)

The method of claim 13, further comprising:
during a normal LSB page read operation, the first flash memory reading the tier 1/tier 2-encoded first LSB page of data from the first LSB page of the flash memory cells of the first flash memory, discarding tier 2 parity bits from the first LSB of read data to remove tier 2 decoding of the first LSB page of read data, and sending a tier 1-encoded first LSB page of read data to the SSD controller without the tier 2 ECC decoding logic of the first flash memory performing tier 2 ECC decoding of the tier 1/tier 2-encoded first LSB page of read data.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
in the SSD controller, receiving the tier 1-encoded first LSB page of read data sent from the first flash memory to the SSD controller;
in the tier 1 ECC encoder/decoder of the SSD controller, decoding the tier 1-encoded first LSB page of read data to produce a tier1-decoded first LSB page of read data.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
during a normal MSB page read operation, the first flash memory causing the tier 1-encoded first MSB page of data to be read from the first MSB page of the flash memory cells of the first flash memory and sent to the SSD controller.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
in the SSD controller, receiving the tier 1-encoded first MSB page of read data sent from the first flash memory to the SSD controller; and
in the tier 1 ECC encoder/decoder of the SSD controller, decoding the tier 1-encoded first MSB page of read data to produce a tier1-decoded first MSB page of read data.
