# US 10,997,102 B2 · Multidimensional address generation for direct memory access

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

- Number: US 10,997,102 B2
- Document ID: US10997102B2
- Status: Granted
- Kind: B2
- Application number: 16/991,080
- Filed: 2020-08-12
- Published: 2020-11-26
- Granted: 2021-05-04
- Earliest claimed: 2019-04-01
- Assignees: Wave Computing, Inc.
- Applicants: Wave Computing, Inc.
- Inventors: David John Simpson; Richard Douglas Trauben; Stephen Curtis Johnson
- Web page: https://patentgrep.com/patent/US10997102B2

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for data manipulation using processor cluster address generation are disclosed. One or more processor clusters capable of executing software-initiated work requests are accessed. A direct memory access (DMA) engine, coupled to the one or more processor clusters, is configured, wherein the DMA engine employs address generation across a plurality of tensor dimensions. A work request address field is parsed, where the address field contains unique address space descriptors for each of the plurality of dimensions, along with a common address space descriptor. DMA addresses are generated based on the unique address space descriptors and the common address space descriptor. Memory using two or more of the DMA addresses that were generated is accessed, where the two or more DMA addresses enable processing within the one or more processor clusters.

## Claims

### Claim 1

A processor-implemented method for data manipulation comprising:
accessing one or more processor clusters capable of executing software-initiated work requests;
configuring a direct memory access (DMA) engine coupled to the one or more processor clusters, wherein the DMA engine employs address generation across a plurality of tensor dimensions;
parsing a work request address field, wherein the address field contains unique address space descriptors for each of the plurality of dimensions, along with a common address space descriptor;
generating DMA addresses, based on the unique address space descriptors and the common address space descriptor; and
accessing memory, using two or more of the DMA addresses that were generated, wherein the two or more DMA addresses enable processing within the one or more processor clusters.

### Claim 2 (depends on 1)

The method of claim 1 further comprising summing across the plurality of dimensions to generate a single address.

### Claim 3 (depends on 1)

The method of claim 1 wherein the plurality of dimensions includes four dimensions.

### Claim 4 (depends on 3)

The method of claim 3 wherein the plurality of dimensions does not include channels.

### Claim 5 (depends on 4)

The method of claim 4 further comprising summing across channels as part of a convolutional operation.

### Claim 6 (depends on 1)

The method of claim 1 wherein the generating comprises establishing five programming loops to accomplish five-dimensional (5-D) address generation.

### Claim 7 (depends on 6)

The method of claim 6 wherein the 5-D address is a portion of a larger dimensional address.

### Claim 8 (depends on 6)

The method of claim 6 wherein the innermost dimension is defined by hardware.

### Claim 9 (depends on 8)

The method of claim 8 wherein the dimensions are ordered by dimension size in the tensor.

### Claim 10 (depends on 1)

The method of claim 1 wherein the unique address space descriptors and the common address space descriptor comprise a 256-bit field.

### Claim 11 (depends on 1)

The method of claim 1 wherein the common address space descriptor includes a base address field, a dimensions field, and an element size field.

### Claim 12 (depends on 11)

The method of claim 11 wherein the common address space descriptor comprises a 69-bit field.

### Claim 13 (depends on 1)

The method of claim 1 wherein a first address space descriptor of the unique address space descriptors includes a count field and a stride field.

### Claim 14 (depends on 13)

The method of claim 13 wherein the first address space descriptor comprises a 35-bit field.

### Claim 15 (depends on 13)

The method of claim 13 wherein second, third, fourth, and fifth address space descriptors of the unique address space descriptors each includes an offset field and a count field.

### Claim 16 (depends on 15)

The method of claim 15 wherein the second, third, fourth, and fifth address space descriptors each comprise a 38-bit field.

### Claim 17 (depends on 1)

The method of claim 1 wherein DMA memory source and destination addresses comprise a 5-dimensional descriptor.

### Claim 18 (depends on 17)

The method of claim 17 wherein the 5-dimensional descriptor enables processing of a flattened tensor.

### Claim 19 (depends on 17)

The method of claim 17 wherein the 5-dimensional descriptor includes tensor strides and offsets.

### Claim 20 (depends on 1)

The method of claim 1 further comprising flattening a plurality of dimensions from a tensor into a single dimension.

### Claim 21 (depends on 20)

The method of claim 20 wherein the DMA engine is further configured to employ address generation across the plurality of dimensions that were flattened into a single dimension.

### Claim 22

A computer program product embodied in a non-transitory computer readable medium for data manipulation, the computer program product comprising code which causes one or more processors to perform operations of:
accessing one or more processor clusters capable of executing software-initiated work requests;
configuring a direct memory access (DMA) engine coupled to the one or more processor clusters, wherein the DMA engine employs address generation across a plurality of tensor dimensions;
parsing a work request address field, wherein the address field contains unique address space descriptors for each of the plurality of dimensions, along with a common address space descriptor;
generating DMA addresses, based on the unique address space descriptors and the common address space descriptor; and
accessing memory, using two or more of the DMA addresses that were generated, wherein the two or more DMA addresses enable processing within the one or more processor clusters.

### Claim 23

A computer system for data manipulation comprising:
a memory which stores instructions;
one or more processors coupled to the memory wherein the one or more processors, when executing the instructions which are stored, are configured to:
access one or more processor clusters capable of executing software-initiated work requests;
configure a direct memory access (DMA) engine coupled to the one or more processor clusters, wherein the DMA engine employs address generation across a plurality of tensor dimensions;
parse a work request address field, wherein the address field contains unique address space descriptors for each of the plurality of dimensions, along with a common address space descriptor;
generate DMA addresses, based on the unique address space descriptors and the common address space descriptor; and
access memory, using two or more of the DMA addresses that were generated, wherein the two or more DMA addresses enable processing within the one or more processor clusters.
