# US 2019/0244118 A1 · Architecture of crossbar of inference engine

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

- Number: US 2019/0244118 A1
- Document ID: US20190244118A1
- Status: Published application
- Kind: A1
- Application number: 16/226,564
- Filed: 2018-12-19
- Published: 2019-08-08
- Earliest claimed: 2018-02-08
- Assignees: Cavium, Inc.
- Applicants: Cavium, LLC
- Inventors: Avinash SODANI; Ulf HANEBUTTE; Senad DURAKOVIC; Hamid Reza GHASEMI; Chia-Hsin CHEN
- Web page: https://patentgrep.com/patent/US20190244118A1

## CPC

- G06F 9/3879: {for non-native instruction execution, e.g. executing a command; for Java instruction set}
- G06F 9/30174: {for non-native instruction set, e.g. Javabyte, legacy code}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3877: {using a secondary processor, e.g. coprocessor (peripheral processor G06F13/12)}
- G06F 15/7807: {System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 20/00: Machine learning
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06F 9/3001: {Arithmetic instructions}
- G06F 15/7864: {on more than one IC chip}
- G06F 15/8023: {Two dimensional arrays, e.g. mesh, torus}
- G06F 2212/602: Details relating to cache prefetching
- G06N 5/04: Inference or reasoning models
- G06N 20/20: Ensemble learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A programmable hardware system for machine learning (ML) includes a core and an inference engine. The core receives commands from a host. The commands are in a first instruction set architecture (ISA) format. The core divides the commands into a first set for performance-critical operations, in the first ISA format, and a second set of performance non-critical operations, in the first ISA format. The core executes the second set to perform the performance non-critical operations of the ML operations and streams the first set to inference engine. The inference engine generates a stream of the first set of commands in a second ISA format based on the first set of commands in the first ISA format. The first set of commands in the second ISA format programs components within the inference engine to execute the ML operations to infer data.

## Claims

### Claim 1

A crossbar-based inference engine configured to perform a machine learning (ML) operation on an input data stream, comprising:
a plurality of on-chip memories (OCMs) coupled to a crossbar and each OCM is configured to
load and maintain data from the input data stream for local access by components in the inference engine;
maintain and output result of the ML operation performed by the components in the inference engine as an output data stream;
a plurality of first processing units (PODs) each coupled to one OCM of the plurality of OCMs and configured to perform a dense and/or regular computation task of the ML operation on the data within the corresponding OCM;
a plurality of second processing units/elements (PEs) coupled to the crossbar and wherein each PE is configured to perform a sparse and/or irregular computation task of the ML operation on the data within the OCMs and/or from the POD units; and
said crossbar configured to connect the plurality of PEs to the plurality of OCMs to enable each PE of the plurality of PEs to read data from and/or write data to the corresponding OCM.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a plurality of OCM streamers each configured to stream data between each OCM and its corresponding POD.

### Claim 3 (depends on 1)

The system of claim 1, wherein:
the input data stream includes data to be analyzed and inferred by the inference engine and/or training data used to train the inference engine for the ML operation, wherein the training data includes a polynomial with their respective weights.

### Claim 4 (depends on 1)

The system of claim 1, wherein:
each PE of the plurality of PEs is configured to receive and execute a set of programming instructions directly from a core, wherein the core is configured to coordinate and program the inference engine to perform the ML operation.

### Claim 5 (depends on 4)

The system of claim 4, wherein:
the plurality of OCMs and/or the plurality of PODs are configured to receive and execute a set of programming instructions from the core via the crossbar.

### Claim 6 (depends on 1)

The system of claim 1, wherein:
each POD of the plurality of PODs is configured to perform a matrix multiplication operation on the data in its corresponding OCM.

### Claim 7 (depends on 6)

The system of claim 6, wherein:
each POD is configured to perform one or more post matrix multiplication operation on the POD output.

### Claim 8 (depends on 1)

The system of claim 1, wherein:
the crossbar is configured to accept one read request or one write request per PE to read data from and write data to one OCM of the plurality of OCMs, respectively.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
the crossbar is configured to route the read or the write request through the plurality of OCMs in the inference engine until the request reaches the OCM associated with the request.

### Claim 10 (depends on 8)

The system of claim 8, wherein:
the crossbar is configured to merge a plurality of read and/or write requests to a same address in the same OCM.

### Claim 11

A method to perform a machine learning (ML) operation on an input data stream via an inference engine, comprising:
loading and maintaining data from the input data stream for local access by components in the inference engine in each on-chip memory (OCM) of a plurality of OCMs, wherein the plurality of OCMs is coupled to a crossbar in the inference engine;
performing a dense and/or regular computation task of the ML operation on the data in a OCM of the plurality of OCMs via one POD of a plurality of first processing units (PODs) coupled to the OCM;
performing a sparse and/or irregular computation task of the ML operation on the data in the plurality of OCMs and/or from the plurality of POD units via one of a plurality of second processing units/elements (PEs) coupled to the crossbar;
connecting the plurality of PEs to the plurality of OCMs to enable each PE of the plurality of PEs to read data from and/or write data to the plurality of OCMs via the crossbar; and
maintaining and outputting result of the ML operation performed by a processing tile that comprises at least a PE, a POD, and an OCM as an output data stream from the OCM.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
streaming data between each OCM and its corresponding POD via an OCM streamers.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
including in the input data stream data to be analyzed and inferred by the inference engine and/or training data used to train the inference engine for the ML operation, wherein the training data includes a polynomial with their respective weights.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
receiving and executing by each PE of the plurality of PEs a set of programming instructions directly from a core, wherein the core is configured to coordinate and program the inference engine to perform the ML operation.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
receiving and executing by the plurality of OCMs and/or the plurality of PODs a set of programming instructions from the core via the crossbar.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
performing a matrix multiplication operation by each POD on the data in its corresponding OCM.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
perform one or more post matrix multiplication operation by each POD on the output from the matrix multiplication operation.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
accepting one read request or one write request per PE by the crossbar to read data from and write data to one OCM of the plurality of OCMs, respectively.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
routing the read or the write request through the plurality of OCMs in the inference engine until the request reaches the OCM associated with the request.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
merging a plurality of read and/or write requests to a same address in a same OCM.
