# US 2023/0409238 A1 · Approach for processing near-memory processing commands using near-memory register definition data

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

- Number: US 2023/0409238 A1
- Document ID: US20230409238A1
- Status: Published application
- Kind: A1
- Application number: 17/845,263
- Filed: 2022-06-21
- Published: 2023-12-21
- Earliest claimed: 2022-06-21
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Shaizeen Aga; Nuwan Jayasena
- Web page: https://patentgrep.com/patent/US20230409238A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 15/7821: {Tightly coupled to memory, e.g. computational memory, smart memory, processor in memory}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An approach is provided for processing near-memory processing commands, e.g., PIM commands, using PIM register definition data that defines multiple combinations of source and/or destination registers to be used to process PIM commands. A particular combination of source and/or destination registers to be used to process a PIM command is specified by the PIM command or determined by a near-memory processing element processing the PIM command. According to another implementation, the PIM register definition data specifies an initial combination of source and/or destination registers and one or more update functions for each PIM command. A near-memory processing element processes a PIM command using the initial combination of source and/or destination registers and uses the one or more update functions to update the combination of source and/or destination registers to be used the next time the PIM command is processed.

## Claims

### Claim 1

A memory command processing element comprising:
processing logic configured to process a near-memory processing command using a particular combination of one or more of one or more source registers or one or more destination registers selected from a plurality of combinations of one or more of one or more source registers or one or more destination registers.

### Claim 2 (depends on 1)

The memory command processing element of claim 1, wherein the particular combination of one or more of one or more source registers or one or more destination registers is specified from the plurality of combinations by the near-memory processing command without specifying the source registers or destination registers in the particular combination.

### Claim 3 (depends on 1)

The memory command processing element of claim 1, wherein the processing logic is further configured to process the near-memory processing command a second time using a different combination of one or more of one or more source registers or one or more destination registers from the plurality of combinations of one or more of one or more source registers or one or more destination registers.

### Claim 4 (depends on 1)

The memory command processing element of claim 1, wherein data that specifies the plurality of combinations of one or more of one or more source registers or one or more destination registers is stored local to the memory command processing element.

### Claim 5 (depends on 4)

The memory command processing element of claim 4, wherein the processing logic is further configured to update the data to specify a different source register or a different destination register for the particular combination of one or more of one or more source registers or one or more destination registers.

### Claim 6 (depends on 1)

The memory command processing element of claim 1, wherein the plurality of combinations of one or more of one or more source registers or one or more destination registers is designated for the near-memory processing command.

### Claim 7 (depends on 1)

The memory command processing element of claim 1, wherein the memory command processing element is implemented in a memory module.

### Claim 8

A memory command processing element comprising:
processing logic configured to:
process a near-memory processing command using a particular combination of one or more of one or more source registers or one or more destination registers, and
update the particular combination of one or more of one or more source registers or one or more destination registers to specify a different source register or a different destination register.

### Claim 9 (depends on 8)

The memory command processing element of claim 8, wherein the processing logic is further configured to use one or more update functions to update the particular combination of one or more of one or more source registers or one or more destination registers to specify a different source register or a different destination register.

### Claim 10 (depends on 9)

The memory command processing element of claim 9, wherein the one or more update functions specify one or more of an increment amount or a decrement amount.

### Claim 11 (depends on 9)

The memory command processing element of claim 9, wherein the particular combination of one or more of one or more source registers or one or more destination registers and the one or more update functions are specific to the near-memory processing command.

### Claim 12 (depends on 9)

The memory command processing element of claim 9, wherein the processing logic is further configured to one or more of:
specify a different source register or a different destination register for the particular combination of one or more of one or more source registers or one or more destination registers, or
update the one or more update functions.

### Claim 13 (depends on 8)

The memory command processing element of claim 8, wherein data that specifies the particular combination of one or more of one or more source registers or one or more destination registers is stored local to the memory command processing element.

### Claim 14 (depends on 13)

The memory command processing element of claim 13, wherein data further specifies one or more update functions to update the particular combination of one or more of one or more source registers or one or more destination registers to specify a different source register or a different destination register.

### Claim 15 (depends on 8)

The memory command processing element of claim 8, wherein data is stored local to the memory command processing element that specifies, for each of a plurality of near-memory processing commands, both a combination of one or more of one or more source registers or one or more destination registers to be used to process the near-memory processing command, and one or more update functions for updating the combination of one or more of one or more source registers or one or more destination registers.

### Claim 16 (depends on 8)

The memory command processing element of claim 8, wherein the memory command processing element is implemented in a memory module.

### Claim 17

A processor comprising:
memory command logic configured to issue a near-memory processing command that causes a near-memory processing element to perform one or more computations using a particular combination of one or more of one or more source registers or one or more destination registers that are not specified by the near-memory processing command.

### Claim 18 (depends on 17)

The processor of claim 17, wherein the near-memory processing command specifies the particular combination of one or more of one or more source registers or one or more destination registers from a plurality of combinations of one or more of one or more source registers or one or more destination registers associated with the near-memory processing command and the near-memory processing element without specifying the one or more source registers or the one or more destination registers in the particular combination.

### Claim 19 (depends on 17)

The processor of claim 17, wherein the memory command logic is further configured to send to the near-memory processing element, data that specifies one or more combinations of one or more of one or more source registers or one or more destination registers, or one or more update functions to update one or more of a source register or a destination register for the particular combination of one or more of one or more source registers or one or more destination registers.

### Claim 20 (depends on 19)

The processor of claim 19, wherein the one or more update functions specify one or more of an increment amount or a decrement amount.
