# US 2024/0394061 A1 · Methods and systems for data transfer

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

- Number: US 2024/0394061 A1
- Document ID: US20240394061A1
- Status: Published application
- Kind: A1
- Application number: 18/660,683
- Filed: 2024-05-10
- Published: 2024-11-28
- Earliest claimed: 2023-05-24
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: John David Robson; Kévin Petit
- Web page: https://patentgrep.com/patent/US20240394061A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/345: of multiple operands or results {(addressing multiple banks G06F12/06)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is an apparatus comprising: instruction decoding circuitry; data storage; and processing circuitry to process data responsive to an instruction decoded by instruction decoding circuitry configured to, responsive to a data transfer instruction specifying a data source and a region of the source to perform data transfer, control processing circuitry to: when the data transfer operation comprises an out-of-bounds memory access corresponding to an attempt to read data outside the indicated region of source storage, read data not associated with the out-of-bounds memory access from source storage and write data not associated with the out-of-bounds memory access to a first portion of target storage by overwriting preloaded values stored in the first portion of the target storage; and omit writing to a different second portion of the target storage data associated with the out-of-bounds memory access to preserve preloaded values stored in the second portion of target storage.

## Claims

### Claim 1

An apparatus comprising:
instruction decoding circuitry to decode instructions;
storage to store data; and
processing circuitry to perform data processing in response to an instruction decoded by the instruction decoding circuitry,
wherein the instruction decoding circuitry is configured to, in response to a data transfer instruction specifying a source storage to be accessed for data and an indication of a region of the source storage to perform a data transfer operation, control the processing circuitry to:
when the data transfer operation comprises at least one out-of-bounds memory access, wherein the at least one out-of-bounds memory access corresponds to an attempt to read data that is outside of the indicated region of the source storage specified in the data transfer instruction,
read data not associated with the at least one out-of-bounds memory access from the source storage and write the data not associated with the at least one out-of-bounds memory access to a first portion of a target storage by overwriting preloaded values stored in the first portion of the target storage; and
omit writing to a different second portion of the target storage data associated with the at least one out-of-bounds memory access to preserve preloaded values stored in the second portion of the target storage.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the target storage has stored therein a plurality of preloaded values.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the indication of the region of the source storage comprises a start location of the source storage and a size of the source storage.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the processing circuitry is configured to determine the at least one out-of-bounds memory access based on the indication of the region of the source storage and a size of the target storage.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processing circuitry is configured to, in a first out-of-bound operation mode, handle the at least one out-of-bounds memory access by returning a predetermined value as the data associated with the at least one out-of-bounds memory access.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the processing circuitry is configured to select a second out-of-bounds operation mode to disregard the data associated with the at least one out-of-bounds memory access.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein:
the target storage comprises multi-dimensional array register storage to store at least one multi-dimensional array of data.

### Claim 8

A computer-implemented method comprising:
operating instruction decoding circuitry to decode instructions;
operate storage to store data; and
operate processing circuitry to perform data processing in response to an instruction decoded by the instruction decoding circuitry,
the method further comprising, in response to a data transfer instruction decoded by the instruction decoding circuitry specifying a source storage to be accessed for data and an indication of a region of the source storage to perform a data transfer operation, the processing circuitry:
when the data transfer operation comprises at least one out-of-bounds memory access, wherein the at least one out-of-bounds memory access corresponds to an attempt to read data that is outside of the indicated region of the source storage specified in the data transfer instruction,
reading data not associated with the at least one out-of-bounds memory access from the source storage and writing the data not associated with the at least one out-of-bounds memory access to a first portion of a target storage by overwriting preloaded values stored in the first portion of the target storage; and
omitting writing to a different second portion of the target storage the data associated with the at least one out-of-bounds memory access to preserve preloaded values stored in the second portion of the target storage.

### Claim 9 (depends on 8)

The method of claim 8, further comprising storing a plurality of preloaded values in the target storage.

### Claim 10 (depends on 8)

The method of claim 8, wherein the indication of the region of the source storage comprises a start location of the source storage and a size of the source storage.

### Claim 11 (depends on 8)

The method of claim 8, wherein the processing circuitry is configured to determine the at least one out-of-bounds memory access based on the indication of the region of the source storage and a size of the target storage.

### Claim 12 (depends on 8)

The method of claim 8, further comprising, in a first out-of-bound operation mode, the processing circuitry handle the at least one out-of-bounds memory access by returning a predetermined value as the data associated with the at least one out-of-bounds memory access.

### Claim 13 (depends on 8)

The method of claim 8, further comprising the processing circuitry selecting a second out-of-bounds operation mode to disregard the data associated with the at least one out-of-bounds memory access.

### Claim 14 (depends on 8)

The method of claim 8, wherein:
the target storage comprises multi-dimensional array register storage to store at least one multi-dimensional array of data.

### Claim 15

A computer program product stored in a non-transitory computer-readable medium and comprising computer program instructions for controlling a host data processing apparatus to provide an instruction execution environment comprising:
instruction decoding program logic to decode instructions;
storage logic to store data; and
processing program logic to perform data processing in response to an instruction decoded by the instruction decoding circuitry,
wherein, the instruction decoding program logic is configured to, in response to a data transfer instruction specifying a source storage to be accessed for data and an indication of a region of the source storage to perform a data transfer operation, control the processing program logic to:
when the data transfer operation comprises at least one out-of-bounds memory access, wherein the at least one out-of-bounds memory access corresponds to an attempt to read data that is outside of the indicated region of the source storage specified in the data transfer instruction,
read data not associated with the at least one out-of-bounds memory access from the source storage and write the data not associated with the at least one out-of-bounds memory access to a first portion of a target storage by overwriting preloaded values stored in the first portion of the target storage; and
omit writing to a different second portion of the target storage the data associated with the at least one out-of-bounds memory access to preserve preloaded values stored in the second portion of the target storage.
