# US 2025/0156098 A1 · Method of organizing a programmable atomic unit instruction memory

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

- Number: US 2025/0156098 A1
- Document ID: US20250156098A1
- Status: Published application
- Kind: A1
- Application number: 19/022,852
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2020-10-20
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Tony M. Brewer
- Web page: https://patentgrep.com/patent/US20250156098A1

## CPC

- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 13/1668: {Details of memory controller}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2212/1016: Performance improvement
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2213/16: Memory access
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Disclosed in some examples, are methods, systems, devices, and machine readable mediums that store instructions for programmable atomic transactions in a memory of the programmable atomic unit prior to execution of the programmable atomic transaction. The memory in some examples may be an instruction RAM. The memory in some examples may be partitioned into partitions of a fixed size that stores a same number of instructions. Each programmable atomic transaction may use one or more contiguously located instruction partitions. By loading the instructions ahead of time, the instructions are ready for execution when the transaction is requested.

## Claims

### Claim 1

An apparatus comprising:
a memory controller comprising a programmable atomic unit, the programmable atomic unit comprising:
a memory partitioned into multiple fixed-size partitions, each partition configured to store a predetermined number of instructions;
a program counter register configured to track currently executing instructions;
a hardware processor configured to:
assign system-unique indices to the multiple fixed-size partitions;
store instructions of a programmable atomic operation in one or more of the fixed-size partitions;
maintain a control structure comprising:
validity flags indicating whether each partition contains valid instructions,
mapping data associating the system-unique indices with physical locations of the fixed-size partitions;
receive a request specifying a system-unique index of a first partition;
initialize the program counter register to point to a first instruction in the first partition;
execute instructions of the programmable atomic operation by:
retrieving an instruction from a memory location indicated by the program counter register,
incrementing the program counter register to point to a next instruction,
validating the next instruction is within an authorized partition range using the control structure;
terminate execution upon detecting access to an unauthorized partition.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
track a count of executed instructions during execution;
compare the count to a maximum instruction limit specified in the control structure;
terminate execution if the count exceeds the maximum instruction limit.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the control structure further comprises a number of contiguous partitions allocated to each programmable atomic operation, and the processor is further configured to maintain a count of the number of contiguous partitions allocated to each programmable atomic operation within the control structure.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
detect a termination instruction during execution; and
send a normal status response upon detecting the termination instruction.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
release any memory locks held by the programmable atomic operation upon termination of execution.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
initialize an instruction counter to zero when beginning execution; and increment the instruction counter after executing each instruction.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
verify a validity flag in the control structure indicates valid instructions before beginning execution of instructions in any partition.

### Claim 8

A method for executing programmable atomic operations, the method comprising:
using one or more hardware processors:
partitioning a memory into multiple fixed-size partitions, each partition configured to store a predetermined number of instructions;
assigning system-unique indices to the multiple fixed-size partitions; storing instructions of a programmable atomic operation in one or more of the fixed-size partitions;
maintaining a control structure comprising validity flags indicating whether each partition contains valid instructions and mapping data associating the system-unique indices with physical locations of the fixed-size partitions;
receiving a request specifying a system-unique index of a first partition;
initializing a program counter register to point to a first instruction in the first partition;
executing instructions of the programmable atomic operation by retrieving an instruction from a memory location indicated by the program counter register, incrementing the program counter register to point to a next instruction, and validating the next instruction is within an authorized partition range using the control structure; and
terminating execution upon detecting access to an unauthorized partition.

### Claim 9 (depends on 8)

The method of claim 8, wherein the method further comprises:
tracking a count of executed instructions during execution;
comparing the count to a maximum instruction limit specified in the control structure; and
terminating execution if the count exceeds the maximum instruction limit.

### Claim 10 (depends on 8)

The method of claim 8, wherein the method further comprises maintaining a count of the number of contiguous partitions allocated to each programmable atomic operation within the control structure.

### Claim 11 (depends on 8)

The method of claim 8, wherein the method further comprises detecting a termination instruction during execution; and sending a normal status response upon detecting the termination instruction.

### Claim 12 (depends on 8)

The method of claim 8, wherein the method further comprises releasing any memory locks held by the programmable atomic operation upon termination of execution.

### Claim 13 (depends on 8)

The method of claim 8, wherein the method further comprises:
initializing an instruction counter to zero when beginning execution; and
incrementing the instruction counter after executing each instruction.

### Claim 14 (depends on 8)

The method of claim 8, wherein the method further comprises verifying a validity flag in the control structure indicates valid instructions before beginning execution of instructions in any partition.

### Claim 15

A non-transitory machine-readable medium, storing instructions for executing programmable atomic operations, the instructions, which when executed by a hardware processor, cause a machine to perform operations comprising:
partitioning a memory into multiple fixed-size partitions, each partition configured to store a predetermined number of instructions;
assigning system-unique indices to the multiple fixed-size partitions;
storing instructions of a programmable atomic operation in one or more of the fixed-size partitions;
maintaining a control structure comprising validity flags indicating whether each partition contains valid instructions and mapping data associating the system-unique indices with physical locations of the fixed-size partitions;
receiving a request specifying a system-unique index of a first partition;
initializing a program counter register to point to a first instruction in the first partition;
executing instructions of the programmable atomic operation by retrieving an instruction from a memory location indicated by the program counter register, incrementing the program counter register to point to a next instruction, and validating the next instruction is within an authorized partition range using the control structure; and
terminating execution upon detecting access to an unauthorized partition.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise tracking a count of executed instructions during execution; comparing the count to a maximum instruction limit specified in the control structure; and terminating execution if the count exceeds the maximum instruction limit.

### Claim 17 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise maintaining a count of the number of contiguous partitions allocated to each programmable atomic operation within the control structure.

### Claim 18 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise detecting a termination instruction during execution; and sending a normal status response upon detecting the termination instruction.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise releasing any memory locks held by the programmable atomic operation upon termination of execution.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the operations further comprise initializing an instruction counter to zero when beginning execution; and incrementing the instruction counter after executing each instruction.
