# US 9,354,970 B2 · Method and apparatus for encoding erroneous data in an error correction code protected memory

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

- Number: US 9,354,970 B2
- Document ID: US9354970B2
- Status: Granted
- Kind: B2
- Application number: 14/230,115
- Filed: 2014-03-31
- Published: 2015-10-01
- Granted: 2016-05-31
- Earliest claimed: 2014-03-31
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Ross V. La Fetra; Vilas K. Sridharan; Vydhyanathan Kalyanasundharam; Dean A. Liberty; Amit P. Apte
- Web page: https://patentgrep.com/patent/US9354970B2

## CPC

- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- H04L 1/0045: {Arrangements at the receiver end}
- H04L 1/0057: {Block codes (H04L1/0061, H04L1/0064 take precedence)}
- G11B 20/1833: {by adding special lists or symbols to the coded information (G11B20/1806, G11B20/1866 take precedence)}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- H04L 1/0071: {Use of interleaving (interleaving per se H03M13/27)}
- H04L 2027/0036: {using a recovered symbol clock}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- 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)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A method and device are described for encoding erroneous data in an error correction code (ECC) protected memory. In one embodiment, incoming data including a plurality of data symbols and a data integrity marker is received. At least one extra symbol is used to mark the incoming data as error-free data or erroneous data (i.e., poison) based on the data integrity marker. ECC may be created to protect the data symbols. The ECC may include a plurality of check symbols, a plurality of unused symbols and the at least one extra symbol. In another embodiment, an error marker may be propagated from a single ECC word to all ECC words of data block (e.g., a cache line, a page, and the like) to prevent errors due to corruption of the error marker caused by faulty memory in the erroneous ECC word.

## Claims

### Claim 1

A method of encoding received data, the method comprising:
receiving an incoming data block including a plurality of data symbols and a data integrity marker;
marking the incoming data block using at least one extra symbol to indicate whether the incoming data block contains erroneous data based on the data integrity marker; and
creating an error correction code (ECC) to protect the data symbols in the data block, wherein the ECC includes a plurality of check symbols, a plurality of unused symbols, and the at least one extra symbol.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
if a partial write of a data block that is marked as containing erroneous data is requested:
converting the partial data block write to a full data block write;
marking all error correction code (ECC) words in the data block as being erroneous; and
writing the data block with the marked ECC words into memory.

### Claim 3 (depends on 2)

The method of claim 2 wherein the partial data block write is converted by preserving remaining data in the data block.

### Claim 4 (depends on 2)

The method of claim 2 wherein the partial data block write is converted by replacing remaining data with known data.

### Claim 5 (depends on 1)

The method of claim 1 further comprising:
if a partial write of a data block that is marked as containing erroneous data is not requested:
marking all error correction code (ECC) words in the data block as being erroneous; and
writing the data block with the marked ECC words into memory.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
reading an error correction code (ECC) including a plurality of check symbols;
decoding the ECC to recover at least one extra symbol; and
making a determination as to whether the at least one extra symbol marks data in the ECC as erroneous.

### Claim 7 (depends on 6)

The method of claim 6 further comprising:
forwarding the data in the ECC to a requestor with an indication that the data is error-free or erroneous based on the determination.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
reading an error correction code (ECC) word in a data block including a plurality of ECC words; and
forwarding the read ECC word to a requestor on a condition that the ECC is determined not to have an error.

### Claim 9 (depends on 1)

The method of claim 1 further comprising:
reading a first error correction code (ECC) word in a data block including a plurality of ECC words; and
forwarding all remaining ECC words in the data block to a requestor with an indication that the data block contains erroneous data, on a condition that the first ECC word has an error and any ECC word in the data block is marked as containing erroneous data.

### Claim 10

A device comprising:
a processor configured to receive an incoming data block including a plurality of data symbols and a data integrity marker, marking the incoming data block using at least one extra symbol to indicate whether the incoming data block contains erroneous data based on the data integrity marker, and creating an error correction code (ECC) to protect the data symbols in the data block, wherein the ECC includes a plurality of check symbols, a plurality of unused symbols, and the at least one extra symbol; and
a memory configured to store the incoming data.

### Claim 11 (depends on 10)

The device of claim 10 wherein, if a partial write of a data block that is marked as containing erroneous data is requested, the processor is further configured to convert the partial data block write to a full data block write, mark all error correction code (ECC) words in the data block as being erroneous, and write the data block with the marked ECC words into the memory.

### Claim 12 (depends on 10)

The device of claim 10 wherein, if a partial write of a data block that is marked as containing erroneous data is not requested, the processor is further configured to mark all error correction code (ECC) words in the data block as being erroneous, and write the data block with the marked ECC words into the memory.

### Claim 13 (depends on 10)

The device of claim 10 wherein the processor is further configured to read error correction code (ECC) including a plurality of check symbols, decode the ECC to recover at least one extra symbol, and determine whether the at least one extra symbol marks data in the ECC as erroneous.

### Claim 14

A non-transitory computer-readable storage medium configured to store a set of instructions used for testing a semiconductor device, wherein the semiconductor device comprises:
a processor configured to receive an incoming data block including a plurality of data symbols and a data integrity marker, marking the incoming data block using at least one extra symbol to indicate whether the incoming data block contains erroneous data based on the data integrity marker, and creating an error correction code (ECC) to protect the data symbols in the data block, wherein the ECC includes a plurality of check symbols, a plurality of unused symbols, and the at least one extra symbol; and
a memory configured to store the incoming data.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14 wherein the instructions are one of or a combination of Verilog data instructions and hardware description language (HDL) instructions.

### Claim 16 (depends on 14)

The non-transitory computer-readable storage medium of claim 14 wherein the processor is further configured to create error correction code (ECC) to protect the data symbols, the ECC including a plurality of check symbols, a plurality of unused symbols and the at least one extra symbol.

### Claim 17 (depends on 14)

The non-transitory computer-readable storage medium of claim 14 wherein, if a partial write of a data block that is marked as containing erroneous data is requested, the processor is further configured to convert the partial data block write to a full data block write, mark all error correction code (ECC) words in the data block as being erroneous, and write the data block with the marked ECC words into the memory.

### Claim 18 (depends on 14)

The non-transitory computer-readable storage medium of claim 14 wherein, if a partial write of a data block that is marked as containing erroneous data is not requested, the processor is further configured to mark all error correction code (ECC) words in the data block as being erroneous, and write the data block with the marked ECC words into the memory.
