# US 10,956,259 B2 · Error correction code memory device and codeword accessing method thereof

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

- Number: US 10,956,259 B2
- Document ID: US10956259B2
- Status: Granted
- Kind: B2
- Application number: 16/251,090
- Filed: 2019-01-18
- Published: 2020-07-23
- Granted: 2021-03-23
- Earliest claimed: 2019-01-18
- Assignees: Winbond Electronics Corp.
- Applicants: Winbond Electronics Corp.
- Inventors: Chuen-Der Lien; Ming-Huei Shieh; Chi-Shun Lin
- Web page: https://patentgrep.com/patent/US10956259B2

## CPC

- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G06F 21/78: to assure secure storage of data (address-based protection against unauthorised use of memory G06F12/14; record carriers for use with machines and with at least a part designed to carry digital markings G06K19/00)
- G11B 20/0021: {involving encryption or decryption of contents recorded on or reproduced from a record carrier}
- H04K 1/06: by transmitting the information or elements thereof at unnatural speeds or in jumbled order or backwards
- H04L 9/34: Bits, or blocks of bits, of the telegraphic message being interchanged in time {(for speech signals H04K1/06)}
- H03M 13/05: using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits {(H03M13/2906 takes precedence)}
- H03M 13/152: {Bose-Chaudhuri-Hocquenghem [BCH] codes}
- H03M 13/19: Single error correction without using particular properties of the cyclic codes, e.g. Hamming codes, extended or generalised Hamming codes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- H04K: SECRET COMMUNICATION; JAMMING OF COMMUNICATION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- 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

The codeword accessing method including: receiving a write data with M message bits; generating parity information with N-M bits based on an error correction algorithm and the M message bits, where N and M are positive integers; transforming the M message bits and the parity information to a scrambled codeword with N bits by a scrambling operation, where the scrambled codeword contains only a part of the M message bits; and writing the scrambled codeword into a memory device.

## Claims

### Claim 1

A codeword accessing method, comprising:
receiving a write data with M message bits;
generating parity information with N-M bits based on an error correction algorithm and the M message bits;
providing a random number generator to generate an internal data;
transforming the M message bits and the parity information to a scrambled codeword with N bits by a scrambling operation according to the internal data; and
writing the scrambled codeword into a memory device,
wherein the scrambled codeword is scrambled in a codeword bit sequence.

### Claim 2 (depends on 1)

The codeword accessing method as claimed in claim 1, wherein the scrambled codeword is an extended codeword, and a syndrome of the extended codeword is 0 if there are no error bits in the scrambled codeword.

### Claim 3 (depends on 1)

The codeword accessing method as claimed in claim 1, wherein the parity information is generated by operating the error correction algorithm based on a modified BCH code, a modified Hamming code or a modified Hsiao code.

### Claim 4 (depends on 1)

The codeword accessing method as claimed in claim 1, wherein the scrambling operation is a linear transformation operation or a non-linear transformation operation.

### Claim 5 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
receiving an accessed address of the memory device; and
transforming the M message bits and the parity information to the scrambled codeword by the scrambling operation according to the accessed address.

### Claim 6 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
reading a device identification of the memory device; and
transforming the M message bits and the parity information to the scrambled codeword by the scrambling operation according to the identification of the memory device.

### Claim 7 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
reading a configuration value from a configurable status register of the memory device; and
transforming the M message bits and the parity information to the scrambled codeword by the scrambling operation according to the configuration value.

### Claim 8 (depends on 1)

The codeword accessing method as claimed in claim 1, wherein a data format of the scrambled codeword is adjusted according to an external command.

### Claim 9 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
receiving an external data from an external electronic apparatus; and
transforming the M message bits and the parity information to the scrambled codeword by the scrambling operation according to the external data.

### Claim 10 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
providing a lookup table for operating the scrambling operation.

### Claim 11 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
reading the scrambled codeword from the memory device to obtain a readout codeword;
checking syndromes of the readout codeword;
performing descrambling operation on the readout codeword to obtain a correct scrambled information with N bits; and
operating an error correction operation on the correct scrambled information based on the error correction algorithm to obtain readout data with M bits.

### Claim 12 (depends on 1)

The codeword accessing method as claimed in claim 1, wherein the scrambled codeword includes at least one flip bit.

### Claim 13 (depends on 1)

The codeword accessing method as claimed in claim 1, further comprising:
scrambling the M message bits to generate scrambled message with M bits before the parity information has been generated; and
generating the parity information based on the error correction algorithm and the scrambled message.

### Claim 14

A codeword accessing method, comprising:
receiving a write data with M message bits;
scrambling the M message bits to generate a scrambled message with M bits according to an internal data generated by a random number generator before parity information has been generated;
generating the parity information with N-M bits based on an error correction algorithm and the scrambled message;
combining the scrambled message and the parity information to form a scrambled codeword with N bits; and
writing the scrambled codeword into a memory device.

### Claim 15 (depends on 14)

The codeword accessing method as claimed in claim 14, further comprising:
reading the scrambled codeword from the memory device to obtain a readout codeword;
checking syndromes of the readout codeword;
operating an error correction operation on the readout codeword based on the error correction algorithm to obtain a correct scrambled information with N bits; and
performing descrambling operation on the correct scrambled information to obtain readout data with M bits.

### Claim 16

An error correction code memory device, comprising:
a memory array;
a plurality of sense amplifiers and a plurality of write drivers, coupled to the memory array; and
a control logic circuit, coupled to the sense amplifiers and the write drivers, where the control logic circuit is configured to:
receive a write data with M message bits;
generate parity information with N-M bits based on an error correction algorithm and the M message bits, where N and M are positive integers, and N is larger than M;
transform the M message bits and the parity information to a scrambled codeword with N bits by a scrambling operation according to an internal data generated by a random number generator, where the scrambled codeword contains only a part of the M message bits; and
write the scrambled codeword into a memory device,
wherein the scrambled codeword is scrambled in a codeword bit sequence.

### Claim 17 (depends on 16)

The error correction code memory device as claimed in claim 16, wherein the control logic circuit is further configured to:
read the scrambled codeword from the memory device to obtain a readout codeword;
check syndromes of the readout codeword;
perform descrambling operation on the readout codeword to obtain a correct scrambled information with N bits; and
operate an error correction operation on the correct scrambled information based on the error correction algorithm to obtain readout data with M bits.

### Claim 18 (depends on 16)

The error correction code memory device as claimed in claim 16, wherein the control logic circuit is further configured to:
scramble the M message bits to generate scrambled message with M bits before the parity information has been generated; and
generate the parity information based on the error correction algorithm and the scrambled message.

### Claim 19

An error correction code memory device, comprising:
a memory array;
a plurality of sense amplifiers and a plurality of write drivers, coupled to the memory array; and
a control logic circuit, coupled to the sense amplifiers and the write drivers, where the control logic circuit is configured to:
receiving a write data with M message bits;
scrambling the M message bits to generate a scrambled message with M bits according to an internal data generated by a random number generator before parity information has been generated;
generating the parity information with N-M bits based on an error correction algorithm and the scrambled message;
combining the scrambled message and the parity information to form a scrambled codeword with N bits; and
writing the scrambled codeword into a memory device.

### Claim 20 (depends on 19)

The error correction code memory device as claimed in claim 19, wherein the control logic circuit is further configured to:
read the scrambled codeword from the memory device to obtain a readout codeword;
check syndromes of the readout codeword;
operate an error correction operation on the readout codeword based on the error correction algorithm to obtain a correct scrambled information with N bits; and
perform descrambling operation on the correct scrambled information to obtain readout data with M bits.
