# US 2023/0266924 A1 · Dynamic multi-bank memory command coalescing

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

- Number: US 2023/0266924 A1
- Document ID: US20230266924A1
- Status: Published application
- Kind: A1
- Application number: 18/311,166
- Filed: 2023-05-02
- Published: 2023-08-24
- Earliest claimed: 2020-06-12
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Johnathan Alsop; Shaizeen Dilawarhusen Aga
- Web page: https://patentgrep.com/patent/US20230266924A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 13/1631: {through address comparison}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, apparatuses, and methods for dynamically coalescing multi-bank memory commands to improve command throughput are disclosed. A system includes a processor coupled to a memory via a memory controller. The memory also includes processing-in-memory (PIM) elements which are able to perform computations within the memory. The processor generates memory requests targeting the memory which are sent to the memory controller. The memory controller stores commands received from the processor in a queue, and the memory controller determines whether opportunities exist for coalescing multiple commands together into a single multi-bank command. After coalescing multiple commands into a single combined multi-bank command, the memory controller conveys, across the memory bus to multiple separate banks, the single multi-bank command and a multi-bank code specifying which banks are targeted. The memory banks process the command in parallel, and the PIM elements process the data next to each respective bank.

## Claims

### Claim 1

An apparatus comprising:
a request queue; and
control logic configured to:
generate a single multi-bank command based on a first request and one or more other requests in the request queue satisfying one or more conditions; and
transmit the single multi-bank command and a multi-bank code identifying a subset of a memory targeted by the single multi-bank command to the memory in a single cycle.

### Claim 2 (depends on 1)

The apparatus as recited in claim 1, wherein the one or more conditions comprise at least one of:
the first request and the one or more other requests target a common column across multiple memory banks; and
the first request and the one or more other requests share a common operator identifier (ID).

### Claim 3 (depends on 2)

The apparatus as recited in claim 2, wherein the single multi-bank command is a single memory request targeting the common column in different rows across multiple memory banks.

### Claim 4 (depends on 3)

The apparatus as recited in claim 3, wherein the control logic is configured to convey a row-activate command to one or more rows of one or more memory banks prior to conveying the single multi-bank command to the memory.

### Claim 5 (depends on 1)

The apparatus as recited in claim 1, wherein the one or more conditions comprise the first request and the one or more other requests targeting a common row across multiple banks, and wherein the single multi-bank command is a single row-activate command targeting the common row across multiple memory banks.

### Claim 6 (depends on 1)

The apparatus as recited in claim 1, wherein the first request and the one or more other requests are received from one or more data clients.

### Claim 7 (depends on 6)

The apparatus as recited in claim 6, wherein the one or more data clients comprise a processor and/or a portion of a processor.

### Claim 8

A method comprising:
generating a single multi-bank command based on a first request and one or more other requests in a request queue satisfying one or more conditions; and
transmitting the single multi-bank command and a multi-bank code identifying a subset of a memory targeted by the single multi-bank command to the memory in a single cycle.

### Claim 9 (depends on 8)

The method as recited in claim 8, wherein the one or more conditions comprise at least one of:
the first request and the one or more other requests target a common column across multiple memory banks; and
the first request and the one or more other requests share a common operator identifier (ID).

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein the single multi-bank command is a single memory request targeting the common column in different rows across multiple memory banks.

### Claim 11 (depends on 10)

The method as recited in claim 10, further comprising conveying a row-activate command to one or more rows of one or more memory banks prior to conveying the single multi-bank command to the memory.

### Claim 12 (depends on 8)

The method as recited in claim 8, wherein the one or more conditions comprise the first request and the one or more other requests target a common row across multiple banks, and wherein the single multi-bank command is a single row-activate command targeting the common row across multiple memory banks.

### Claim 13 (depends on 8)

The method as recited in claim 8, further comprising receiving the first request and the one or more other requests from one or more data clients.

### Claim 14 (depends on 13)

The method as recited in claim 13, wherein the one or more data clients comprise a processor and/or a portion of a processor.

### Claim 15

A system comprising:
a memory comprising a plurality of banks; and
a memory controller coupled to the memory, wherein the memory controller is configured to:
generate a single multi-bank command based on a first request and one or more other requests in a request queue satisfying one or more conditions; and
transmit the single multi-bank command and a multi-bank code identifying a subset of the memory targeted by the single multi-bank command to the memory in a single cycle.

### Claim 16 (depends on 15)

A system as recited in claim 15, wherein the one or more conditions comprise at least one of:
each request of the plurality of requests targets a common column across multiple banks; and
each request of the plurality of requests shares a common operator identifier (ID).

### Claim 17 (depends on 16)

The system as recited in claim 16, wherein the single multi-bank command is a single memory request targeting the common column in different rows across multiple banks.

### Claim 18 (depends on 17)

The system as recited in claim 17, wherein the memory controller is configured to convey a row-activate command to one or more rows of one or more banks prior to conveying the single multi-bank command to the memory.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein the one or more conditions comprise each request of the plurality of requests targeting a common row across multiple banks, and wherein the single multi-bank command is a single row-activate command targeting the common row across multiple banks.

### Claim 20 (depends on 15)

The system as recited in claim 15, wherein the first request and the one or more other requests are received from one or more data clients, and wherein the one or more data clients comprise a processor and/or a portion of a processor.

### Claim 21

A memory comprising:
a plurality of banks; and
control logic coupled to the plurality of banks, wherein the control logic is configured to decode a multi-bank code into one or more control signals for activating a subset of the plurality of banks.

### Claim 22 (depends on 21)

The memory as recited in claim 21, where the subset of the plurality of banks are activated in a single cycle.

### Claim 23 (depends on 22)

The memory as recited in claim 22, where the subset comprises two or more banks of the plurality of banks.

### Claim 24 (depends on 21)

The memory as recited in claim 21, further comprising a plurality of processing in memory (PIM) devices configured to perform operations on data retrieved from the subset of the plurality of banks.

### Claim 25 (depends on 24)

The memory as recited in claim 24, wherein the control logic is configured to generate the one or more control signals for activating the plurality of PIM devices in a single cycle.

### Claim 26 (depends on 25)

The memory as recited in claim 25, wherein the control logic is configured to receive a multi-bank command targeting the plurality of PIM devices.

### Claim 27 (depends on 26)

The memory as recited in claim 26, wherein the multi-bank command specifies an operation to perform on the data retrieved from the subset of the plurality of banks.
