# US 2021/0173772 A1 · Memory data access apparatus and method thereof

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

- Number: US 2021/0173772 A1
- Document ID: US20210173772A1
- Status: Published application
- Kind: A1
- Application number: 16/990,926
- Filed: 2020-08-11
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corporation
- Inventors: YEN-JU LU; CHAO-WEI HUANG
- Web page: https://patentgrep.com/patent/US20210173772A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 9/30105: {Register structure}
- G06F 9/383: {Operand prefetching (cache prefetching G06F12/0862)}
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 12/1441: {for a range}
- G06F 13/4068: {Electrical coupling}
- G06F 2212/601: Reconfiguration of cache memory
- G06F 2212/6082: Way prediction in set-associative cache
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a memory data access apparatus and method thereof. The memory data access apparatus includes a cache memory and a processing unit. The processing unit is configured to: execute a memory read instruction, wherein the memory read instruction includes a memory address; determine that access of the memory address in the cache memory is missed; determine that the memory address is within a memory address range, wherein the memory address range corresponds to a data access amount; and read data blocks corresponding to the data access amount from the memory address of a memory.

## Claims

### Claim 1

A memory data access method, comprising:
executing a memory read instruction, wherein the memory read instruction comprises a memory address;
determining that access of the memory address in the cache memory is missed;
determining that the memory address is within a memory address range, wherein the memory address range corresponds to a data access amount; and
reading a data block corresponding to the data access amount from the memory address of a memory.

### Claim 2 (depends on 1)

The memory data access method of claim 1, further comprising:
writing the data block into the cache memory.

### Claim 3 (depends on 2)

The memory data access method of claim 2, wherein step of writing the data block into the cache memory further comprises:
selecting a cache way from a plurality of cache ways of the cache memory;
dividing the data block into a plurality of line data, wherein size of each line data is the same as size of a cache line; and
writing at least one of the plurality of line data into the selected cache way.

### Claim 4 (depends on 3)

The memory data access method of claim 3, wherein step of writing at least one of the plurality of line data into the selected cache way further comprises:
determining that a first line data of the plurality of line data is not stored in the cache memory; and
writing the first line data into the selected cache way.

### Claim 5 (depends on 4)

The memory data access method of claim 4, further comprising:
determining that a second line data of the plurality of line data matches a cache line data of the cache memory;
determining that the second line data is not stored in the selected cache way;
cleaning the cache line data of the cache memory; and
writing the second line data into the selected cache way.

### Claim 6 (depends on 4)

The memory data access method of claim 4, further comprising:
determining that a second line data of the plurality of line data matches a cache line data of the cache memory;
determining that the second line data is stored in the selected cache way; and
abandoning the second line data.

### Claim 7 (depends on 1)

The memory data access method of claim 1, wherein the memory address range and the corresponding data access amount are stored in at least one register.

### Claim 8 (depends on 7)

The memory data access method of claim 7, wherein the at least one register comprises a first register and a second register, the memory address range is stored in the first register, and the corresponding data access amount is stored in the second register.

### Claim 9 (depends on 1)

The memory data access method of claim 1, wherein the data access amount is at least twice size of one cache line.

### Claim 10 (depends on 1)

The memory data access method of claim 1, wherein the memory includes Random Access Memory.

### Claim 11

A memory data access apparatus, comprises:
a cache memory; and
a processing unit, electrically coupled to the cache memory, and configured to:
execute a memory read instruction, wherein, the memory read instruction comprises a memory address;
determine that the memory address cache miss in the cache memory read;
determine that the memory address is within a memory address range, wherein, the memory address range corresponds to an data access amount; and
read a data block corresponding to the data access amount from the memory address of a memory.

### Claim 12 (depends on 11)

The memory data access apparatus of claim 11, wherein the processing unit is further configured to write the data block into the cache memory.

### Claim 13 (depends on 12)

The memory data access apparatus of claim 12, wherein the processing unit is further configured to:
select a cache way from a plurality of cache ways of the cache memory;
divide the data block into a plurality of line data, wherein size of each line data is the same as size of a cache line; and
write at least one of the plurality of line data into the selected cache way.

### Claim 14 (depends on 13)

The memory data access apparatus of claim 13, wherein the processing unit is further configured to:
determine that a first line data of the plurality of line data is not stored in the cache memory; and
write the first line data into the selected cache way.

### Claim 15 (depends on 14)

The memory data access apparatus of claim 14, wherein the processing unit is further configured to:
determine that a second line data of the plurality of line data matches a cache line data of the cache memory;
determine that the second line data is not stored in the selected cache way;
clean the cache line data of the cache memory; and
write the second line data into the selected cache way.

### Claim 16 (depends on 14)

The memory data access apparatus of claim 14, wherein the processing unit is further configured to:
determine that a second line data of the plurality of line data matches a cache line data of the cache memory;
determine that the second line data is stored in the selected cache way; and
abandon the second line data.

### Claim 17 (depends on 11)

The memory data access apparatus of claim 11, further comprises:
at least one register, electrically coupled to the processing unit and configured to store the memory address range and the corresponding data access amount.

### Claim 18 (depends on 17)

The memory data access apparatus of claim 17, wherein the at least one register comprises a first register and a second register, the memory address range is stored in the first register, and the corresponding data access amount is stored in the second register.

### Claim 19 (depends on 11)

The memory data access apparatus of claim 11, wherein the data access amount is at least twice size of one cache line.

### Claim 20 (depends on 11)

The memory data access apparatus of claim 11, wherein the memory includes Random Access Memory.
