# US 11,119,909 B2 · Method and system for in-line ECC protection

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

- Number: US 11,119,909 B2
- Document ID: US11119909B2
- Status: Granted
- Kind: B2
- Application number: 16/590,515
- Filed: 2019-10-02
- Published: 2020-06-11
- Granted: 2021-09-14
- Earliest claimed: 2018-12-11
- Assignees: Texas Instmments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Denis Roland Beaudoin; Ritesh Dhirajlal Sojitra; Samuel Paul Visalli
- Web page: https://patentgrep.com/patent/US11119909B2

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 11/1044: {with specific ECC/EDC distribution}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/04: Addressing variable-length words or parts of words
- G06F 12/0879: Burst mode
- G06F 13/4027: {using bus bridges (G06F13/4022 takes precedence)}
- G11C 8/06: Address interface arrangements, e.g. address buffers
- G11C 11/409: Read-write [R-W] circuits
- G11C 29/42: using error correcting codes [ECC] or parity check
- G11C 29/76: {using address translation or modifications}
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/306: In system interconnect, e.g. between two buses
- G06F 2212/403: Error protection encoding, e.g. using parity or ECC codes
- G11C 2029/0411: {Online error correction}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory system having an interconnect configured to receive commands from a system to read data from and/or write data to a memory device. The memory system also has a bridge configured to receive the commands from the interconnect, to manage ECC data and to perform address translation between system addresses and physical memory device addresses by calculating a first ECC memory address for a first ECC data block that is after and adjacent to a first data block having a first data address, calculating a second ECC memory address that is after and adjacent to the first ECC block, and calculating a second data address that is after and adjacent to the second ECC block. The bridge may also check and calculate ECC data for a complete burst of data, and/or cache ECC data for a complete burst of data that includes read and/or write data.

## Claims

### Claim 1

An integrated circuit comprising:
an interconnect configured to receive, from a system, commands to read data from and/or write data to physical addresses of a memory device; and
a bridge configured to receive the commands from the interconnect and to perform address translation between system addresses and the physical addresses by:
calculating a first ECC memory address for a first ECC data block that is after and adjacent to a first address of a first data block;
calculating a second ECC memory address for a second ECC data block that is after and adjacent to the first ECC memory address of the first ECC data block; and
calculating a second data address for a second data block that is after and adjacent to the second ECC memory address of the second ECC data block.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein the first ECC data block contains ECC data for the first data block and the second ECC data block contains ECC data for the second data block.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, wherein the first ECC data block and the second ECC data block are each 64 bytes and the first data block and the second data block are each 512 bytes.

### Claim 4 (depends on 1)

The integrated circuit of claim 1, wherein the first data address, the second data address, the first ECC memory address, and the second ECC memory address correspond to contiguous locations in the memory device.

### Claim 5 (depends on 1)

The integrated circuit of claim 1 further comprising a set of processors coupled to the interconnect and configured to provide the commands to the interconnect.

### Claim 6 (depends on 5)

The integrated circuit of claim 5 further comprising a memory and a memory controller coupled between the memory and the bridge.

### Claim 7 (depends on 1)

The integrated circuit of claim 1, wherein the bridge is configured to:
calculate the first ECC data block based on the first data block; and
calculate the second ECC data block based on the second data block.

### Claim 8 (depends on 1)

The integrated circuit of claim 1, wherein the bridge is configured to perform the address translation such that:
the first address of the first data block and the second address of the second data block are powers of two; and
the first ECC memory address and the second ECC memory address are not powers of two.

### Claim 9

A memory system comprising:
a memory device;
a processor;
an interconnect configured to receive, from the processor, commands to read data from and/or write data to physical addresses of the memory device; and
a bridge configured to receive the commands from the interconnect and to perform address translation between system addresses and the physical addresses by:
calculating a first ECC memory address for a first ECC data block that is after and adjacent to a first address of a first data block;
calculating a second ECC memory address for a second ECC data block that is after and adjacent to the first ECC memory address of the first ECC data block; and
calculating a second data address for a second data block that is after and adjacent to the second ECC memory address of the second ECC data block.

### Claim 10 (depends on 9)

The memory system of claim 9, wherein the first ECC data block contains ECC data for the first data block and the second ECC data block contains ECC data for the second data block.

### Claim 11 (depends on 9)

The memory system of claim 9, wherein the first ECC data block and the second ECC data block are each 64 bytes and the first data block and the second data block are each 512 bytes.

### Claim 12 (depends on 9)

The memory system of claim 9, wherein the first data address, the second data address, the first ECC memory address, and the second ECC memory address correspond to contiguous locations in the memory device.

### Claim 13

A method of translating system memory addresses to physical memory addresses, the method comprising:
providing a first ECC block associated with a first data block;
providing a second ECC block associated with a second data block;
calculating a first ECC memory address for the first ECC data block that is after and adjacent to a first data address of the first data block;
calculating a second ECC memory address that is after and adjacent to the first ECC memory address of the first ECC block; and
calculating a second data address for the second data block that is after and adjacent to the second ECC memory address of the second ECC block.

### Claim 14 (depends on 13)

The method of claim 13, wherein the first data block, the first ECC block, the second ECC block, and the second data block are contiguous in memory based on the first data address, the first ECC memory address, the second ECC memory address, and the second data address.

### Claim 15

A bridge device comprising:
a command arbiter configured to couple between a set of processors and a memory and configured to receive an instruction to write, to the memory, a set of data that includes a first data block and a second data block;
an error correcting code (ECC) circuit coupled to the command arbiter and configured to, based on the instruction:
generate a first ECC block based on the first data block;
generate a second ECC block based on the second data block;
generate a set of addresses for the first data block, the first ECC block, the second data block, and the second ECC block such that the first ECC block is to be stored in the memory adjacent to the second ECC block; and
provide the first data block, the first ECC block, the second data block, and the second ECC block for storing in the memory.

### Claim 16 (depends on 15)

The bridge device of claim 15, wherein ECC circuit is configured to generate the set of addresses such that the first data block, the first ECC block, the second data block, and the second ECC block are to be stored in the memory contiguously.

### Claim 17 (depends on 15)

The bridge device of claim 15, wherein ECC circuit is configured to generate the set of addresses such that the first ECC block and the second ECC block are to be stored in the memory between the first data block and the second data block.

### Claim 18 (depends on 15)

The bridge device of claim 15, wherein ECC circuit is configured to generate the set of addresses such that:
a first address of the first data block and a second address of the second data block are powers of two; and
a third address of the first ECC block and a fourth address of the second ECC block are not powers of two.

### Claim 19 (depends on 15)

The bridge device of claim 15, wherein:
the instruction includes a first subset of the set of data; and
the bridge device includes a read-modify-write block coupled between the command arbiter and the error correcting code and configured to, based on the instruction including a read modify-write instruction:
read a second subset of the set of data from the memory;
merge the first subset and the second subset to produce the set of data; and
provide the set of data to the ECC circuit.

### Claim 20 (depends on 15)

The bridge device of claim 15, wherein the bridge device is configured to couple to the memory via a memory controller.
