# US 2021/0081846 A1 · Architecture to support synchronization between core and inference engine for machine learning

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

- Number: US 2021/0081846 A1
- Document ID: US20210081846A1
- Status: Published application
- Kind: A1
- Application number: 17/247,102
- Filed: 2020-11-30
- Published: 2021-03-18
- Earliest claimed: 2018-05-22
- Assignees: Marvell Asia Pte Ltd
- Applicants: Marvell Asia Pte, Ltd.
- Inventors: Avinash Sodani; Gopal Nalamalapu
- Web page: https://patentgrep.com/patent/US20210081846A1

## CPC

- G06F 9/3879: {for non-native instruction execution, e.g. executing a command; for Java instruction set}
- G06N 20/00: Machine learning
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30038: {using a mask}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0813: with a network or matrix configuration
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 15/7842: {on one IC chip (single chip microcontrollers)}
- G06F 15/7846: {On-chip cache and off-chip main memory}
- G06F 15/8015: {One dimensional arrays, e.g. rings, linear arrays, buses}
- G06F 2212/1024: Latency reduction
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06N 5/04: Inference or reasoning models
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A system to support a machine learning (ML) operation comprises a core configured to receive and interpret commands into a set of instructions for the ML operation and a memory unit configured to maintain data for the ML operation. The system further comprises an inference engine having a plurality of processing tiles, each comprising an on-chip memory (OCM) configured to maintain data for local access by components in the processing tile and one or more processing units configured to perform tasks of the ML operation on the data in the OCM. The system also comprises an instruction streaming engine configured to distribute the instructions to the processing tiles to control their operations and to synchronize data communication between the core and the inference engine so that data transmitted between them correctly reaches the corresponding processing tiles while ensuring coherence of data shared and distributed among the core and the OCMs.

## Claims

### Claim 1

A system to support a machine learning (ML) operation, comprising:
a core configured to receive and interpret one or more commands from a host into a set of instructions for the ML operation;
a memory unit configured to maintain data for the ML operation;
an inference engine comprising one or more processing tiles configured to receive the data from the memory unit and to perform one or more computation tasks of the ML operation on the data based on the set of instructions; and
an instruction streaming engine configured to
distribute the set of instructions to the corresponding processing tiles of the inference engine, wherein each instruction of the set of instruction is associated with a color and wherein instructions with a same color are distributed to a subset of the plurality of processing tiles via a tile mask;
synchronize data communication between the memory unit and the inference engine for coherence of the data shared and distributed between the core and the inference engine.

### Claim 2 (depends on 1)

The system of claim 1, wherein:
the memory unit is a double data rate (DDR) memory.

### Claim 3 (depends on 1)

The system of claim 1, wherein:
each of the processing tiles comprises at least one or more of
an on-chip memory (OCM) configured to load and maintain the data for local access by components in the processing tile;
one or more processing units configured to perform the one or more computation tasks of the ML operation on the data in the OCM by executing the set of instructions.

### Claim 4 (depends on 3)

The system of claim 3, wherein:
each of the processing units in each processing tile includes one or more of
a first processing unit configured to perform a dense and/or regular computation task of the ML operation on the data in the OCM; and
a second processing unit configured to perform a sparse and/or irregular computation task of the ML operation on the data in the OCM and/or from the first processing unit.

### Claim 5 (depends on 1)

The system of claim 1, wherein:
the core is configured to process a plurality of performance non-critical tasks of the ML operation on the data in the memory unit.

### Claim 6 (depends on 1)

The system of claim 1, wherein:
the instruction streaming engine is configured to assign a core synchronization bit in a synchronization instruction, wherein the core wait for the processing tiles of the inference engine to finish their current tasks in response to the core synchronization bit.

### Claim 7 (depends on 6)

The system of claim 6, wherein:
the core is configured to poll the core synchronization bit in the synchronization instruction and wait for the core synchronization bit to transition from one value to another value to synchronize the core with the processing tiles of the inference engine before proceeding further with new instructions.

### Claim 8 (depends on 1)

The system of claim 1, further comprising:
a data streaming engine configured to stream data between the memory unit and the processing tiles of the inference engine.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
the core is configured to write the data for the ML operation to the memory unit; and
the inference engine is configured to read the data from the memory unit via the data streaming engine.

### Claim 10 (depends on 9)

The system of claim 9, wherein:
the core further includes a cache, wherein a portion of the data written by the core to the memory unit is stored in the cache.

### Claim 11 (depends on 10)

The system of claim 10, wherein:
the core is configured to flush the data out of the cache and into the memory unit first so that the data is saved into the memory unit before the inference engine reads from the memory unit.

### Claim 12 (depends on 11)

The system of claim 11, wherein:
the instruction streaming engine is configured to wait for the flush from the cache to the memory unit to complete before sending instructions to the processing tiles of the inference engine to read data from the memory unit via the data streaming engine.

### Claim 13

A method to support a machine learning (ML) operation, comprising:
receiving and interpreting one or more commands from a host into a set of instructions for the ML operation via a core;
maintaining data for the ML operation in a memory unit;
distributing the set of instructions to one or more corresponding processing tiles of an inference engine, wherein each instruction of the set of instruction is associated with a color and wherein instructions with a same color are distributed to a subset of the processing tiles via a tile mask;
synchronizing data communication between the memory unit and the inference engine for coherence of the data shared and distributed between the core and the inference engine;
performing one or more computation tasks of the ML operation on the data via the corresponding processing tiles based on the set of task instructions.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
processing by the core a plurality of performance non-critical tasks of the ML operation on the data in the memory unit.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
assigning a core synchronization bit in a synchronization instruction, wherein the core wait for the processing tiles of the inference engine to finish their current tasks in response to the core synchronization bit.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
polling the core synchronization bit in the synchronization instruction and wait for the core synchronization bit to transition from one value to another value to synchronize the core with the processing tiles of the inference engine before proceeding further with new instructions.

### Claim 17 (depends on 13)

The method of claim 13, further comprising:
streaming data between the memory unit and the processing tiles of the inference engine via a data streaming engine.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
writing the data for the ML operation to the memory unit;
reading the data from the memory unit via the data streaming engine.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
storing a portion of the data written by the core to the memory unit in a cache of the core.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
flushing the data out of the cache and into the memory unit first so that the data is saved into the memory unit before the inference engine reads from the memory unit.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
waiting for the flush from the cache to the memory unit to complete before sending instructions to the processing tiles of the inference engine to read data from the memory unit via the data streaming engine.
