# US 2015/0149865 A1 · Cache structure with parity-protected clean data and ecc-protected dirty data

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

- Number: US 2015/0149865 A1
- Document ID: US20150149865A1
- Status: Published application
- Kind: A1
- Application number: 14/090,427
- Filed: 2013-11-26
- Published: 2015-05-28
- Earliest claimed: 2013-11-26
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Xiangyu Dong; Jungwon Suh
- Web page: https://patentgrep.com/patent/US20150149865A1

## CPC

- G06F 11/1064: {in cache or content addressable memories}
- G06F 12/00: Accessing, addressing or allocating within memory systems or architectures (digital input from, or digital output to record carriers, e.g. to disk storage units, G06F3/06)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes generating error detection information associated with data to be stored at a cache in response to determining that the data is clean. The method also includes storing the clean data at a first region of the cache. The method further includes generating error correction information associated with data to be stored at the cache in response to determining that the data is dirty. The method also includes storing the dirty data at a second region of the cache.

## Claims

### Claim 1

A method comprising:
in response to determining that data is clean:
generating error detection information associated with the data to be stored at a cache; and
storing the data at a first region of the cache; and
in response to determining that the data is dirty:
generating error correction information associated with the data to be stored at the cache; and
storing the data at a second region of the cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data is clean when a value of the data stored at the cache is equal to a value of the data stored at a second location of a memory system.

### Claim 3 (depends on 1)

The method of claim 1, wherein the data is dirty when the value of the data stored at the cache is different than the value of the data stored at a second location of a memory system.

### Claim 4 (depends on 3)

The method of claim 3, wherein the second location corresponds to a main memory.

### Claim 5 (depends on 2)

The method of claim 2, wherein the cache corresponds to a first hierarchy level of the memory system, and wherein the second location corresponds to a second hierarchy level of the memory system.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first region corresponds to a first cache way reserved for clean data, and wherein the second region corresponds to a second cache way reserved for dirty data.

### Claim 7 (depends on 1)

The method of claim 1, wherein a physical size of the first region is different than a physical size of the second region.

### Claim 8 (depends on 7)

The method of claim 7, wherein the physical size of the first region is smaller than the physical size of the second region.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first region is reserved for error detection-enabled data, and wherein the second region is reserved for error correction-enabled data.

### Claim 10 (depends on 1)

The method of claim 1, wherein the data is clean when the data has not undergone a write operation while stored at the cache, and wherein the data is dirty when the data has undergone a write operation while stored at the cache.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
setting a first indication that the data is associated with a clean state in response to determining that the data is clean; and
setting a second indication that the data is associated with a dirty state in response to determining that the data is dirty.

### Claim 12 (depends on 1)

The method of claim 1, wherein the error detection information includes a parity bit, and wherein the error correction information includes error correcting code (ECC) information.

### Claim 13 (depends on 12)

The method of claim 12, wherein the error detection information is insufficient to correct an error associated with the data.

### Claim 14 (depends on 1)

The method of claim 1, further comprising determining whether particular data is stored at the first region for a read operation.

### Claim 15 (depends on 14)

The method of claim 14, wherein in response to a determination that the particular data is not stored at the first region, further comprising:
selecting a particular cache line at the first region;
retrieving the particular data from a memory location;
filling a first portion of the particular cache line with the particular data;
determining a parity bit for the particular data; and
filling a second portion of the particular cache line with the parity bit.

### Claim 16 (depends on 14)

The method of claim 14, wherein in response to a determination that the particular data is stored at the first region, further comprising:
determining whether a parity of the particular data indicates an error;
reading the particular data from a particular cache line in response to a determination that the parity does not indicate an error, wherein the particular cache line stores the particular data at the first region; and
invalidating the particular cache line in response to a determination that the parity indicates an error.

### Claim 17 (depends on 16)

The method of claim 16, wherein in response to invalidating the particular cache line, further comprising:
retrieving the particular data from a memory location;
filling a first portion of the particular cache line with the particular data;
determining a parity bit for the particular data; and
filling a second portion of the particular cache line with the parity bit.

### Claim 18 (depends on 1)

The method of claim 1, further comprising:
selecting a particular cache line for a write operation, wherein the particular cache line is in the second region; and
filling the particular cache line with particular data according to the write operation.

### Claim 19 (depends on 18)

The method of claim 18, wherein prior to filling the particular cache line, further comprising:
invalidating prior data stored at the particular cache line; and
writing the prior data to a memory location.

### Claim 20 (depends on 1)

The method of claim 1, wherein generating the error detection information and generating the error correction information is performed at a processor integrated into an electronic device or a memory management unit integrated into an electronic device.

### Claim 21

An apparatus comprising:
a processor; and
a memory storing instructions executable by the processor to perform operations comprising:
in response to determining that data is clean:
generating error detection information associated with the data to be stored at a cache; and
storing the data at a first region of the cache; and
in response to determining that the data is dirty:
generating error correction information associated with the data to be stored at the cache; and
storing the data at a second region of the cache.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the data is clean when a value of the data stored at the cache is equal to a value of the data stored at a second location of a memory system.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein the data is dirty when the value of the data stored at the cache is different than the value of the data stored at a second location of a memory system.

### Claim 24 (depends on 21)

The apparatus of claim 21, wherein the processor and the memory are integrated into at least one semiconductor die.

### Claim 25 (depends on 21)

The apparatus of claim 21, further comprising a device selected from the group consisting of a set top box, a music player, a video player, an entertainment unit, a navigation device, a communications device, a personal digital assistant (PDA), a fixed location data unit, and a computer, into which the processor and the memory are integrated.

### Claim 26

An apparatus comprising:
in response to determining that data is clean:
means for generating error detection information associated with the data to be stored at a cache; and
means for storing the data at a first region of the cache; and
in response to determining that the data is dirty:
means for generating error correction information associated with the data to be stored at the cache; and
means for storing the data at a second region of the cache.

### Claim 27 (depends on 26)

The apparatus of claim 26, further comprising a device selected from the group consisting of a set top box, a music player, a video player, an entertainment unit, a navigation device, a communications device, a personal digital assistant (PDA), a fixed location data unit, and a computer, into which the means for means for generating error detection information and the means for generating error correction information are integrated.

### Claim 28 (depends on 26)

The apparatus of claim 26, integrated into at least one semiconductor device.

### Claim 29

A non-transitory computer-readable storage medium comprising instructions that, when executed by a processor, cause the processor to:
in response to determining that data is clean:
generate error detection information associated with the data to be stored at a cache; and
store the data at a first region of the cache; and
in response to determining that the data is dirty:
generate error correction information associated with the data to be stored at the cache; and
store the data at a second region of the cache.

### Claim 30 (depends on 29)

The non-transitory computer-readable storage medium of claim 29, wherein the instructions are executable by a processor integrated into a device selected from the group consisting of a set top box, a music player, a video player, an entertainment unit, a navigation device, a communications device, a personal digital assistant (PDA), a fixed location data unit, and a computer.
