# US 2022/0035629 A1 · Method and apparatus for performing deep learning operations

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

- Number: US 2022/0035629 A1
- Document ID: US20220035629A1
- Status: Published application
- Kind: A1
- Application number: 17/102,884
- Filed: 2020-11-24
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hyung-Dal KWON; Hanmin PARK; Seungwook LEE; Jae-Eon JO
- Web page: https://patentgrep.com/patent/US20220035629A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 7/57: Arithmetic logic units [ALU], i.e. arrangements or devices for performing two or more of the operations covered by groups G06F7/483 – G06F7/556 or for performing logical operations {(G06F7/49, G06F7/491 take precedence)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0475: Generative networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/094: Adversarial learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed is an apparatus and method for performing deep learning operations. The apparatus includes a systolic array comprising multiplier accumulator (MAC) units, and a control circuit configured to control an operation of a multiplexer connected to at least one of the MAC units and operations of the MAC units according to a plurality of operation modes.

## Claims

### Claim 1

An apparatus for performing deep learning operations, the apparatus comprising:
a systolic array comprising multiplier accumulator (MAC) units; and
a control circuit configured to control an operation of a multiplexer connected to at least one of the MAC units and operations of the MAC units according to a plurality of operation modes.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the multiplexer comprises a first multiplexer connected to input terminals of adders of the MAC units.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the multiplexer comprises a second multiplexer connected to output terminals of accumulators of the MAC units.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the multiplexer further comprises:
a third multiplexer connected to output terminals of the MAC units; and
a shift register connected to the third multiplexer.

### Claim 5 (depends on 3)

The apparatus of claim 3, wherein the MAC units, the first multiplexer, and the second multiplexer are configured to operate based on a first clock frequency.

### Claim 6 (depends on 4)

The apparatus of claim 4, wherein the third multiplexer and the shift register are configured to operate based on a second clock frequency, and
the second clock frequency is an integer multiple of a first clock frequency applied to the MAC units.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein a ratio of the first clock frequency and the second clock frequency is determined based on the number of MAC units connected to the third multiplexer.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the multiplexer is connected to input terminals of the MAC units.

### Claim 9

A method of performing deep learning operations, the method comprising:
receiving an operation mode and input data;
controlling operations of multiplier accumulator (MAC) units included in a systolic array in response to the operation mode; and
controlling a multiplexer connected to at least one of the MAC units.

### Claim 10 (depends on 9)

The method of claim 9, wherein the controlling of the multiplexer comprises controlling inputs of adders of the MAC units in response to the operation mode.

### Claim 11 (depends on 9)

The method of claim 9, wherein the controlling of the multiplexer comprises controlling outputs of accumulators of the MAC units in response to the operation mode.

### Claim 12 (depends on 9)

The method of claim 9, wherein the controlling of the multiplexer comprises:
controlling outputs of the MAC units; and
shifting the outputs of the MAC units.

### Claim 13 (depends on 9)

The method of claim 9, wherein controlling the MAC units, controlling inputs of adders of the MAC units, and controlling outputs of accumulators of the MAC units are performed based on a first clock frequency.

### Claim 14 (depends on 12)

The method of claim 12, wherein the controlling of the outputs of the MAC units and the shifting of the outputs of the MAC units are performed based on a second clock frequency, and
the second clock frequency is an integer multiple of a first clock frequency for controlling the MAC units, controlling inputs of adders of the MAC units, and controlling outputs of accumulators of the MAC units.

### Claim 15 (depends on 14)

The method of claim 14, wherein a ratio of the first clock frequency and the second clock frequency is determined based on the number of MAC units connected to a multiplexer configured to control the outputs of the MAC units.

### Claim 16 (depends on 9)

The method of claim 9, wherein the controlling of the multiplexer comprises controlling inputs of the MAC units in response to the operation mode.

### Claim 17 (depends on 9)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 9.

### Claim 18

An apparatus for performing deep learning operations, the apparatus comprising:
a systolic array comprising multiplier accumulator (MAC) units; and
a multiplexer set connected to at least one of the MAC units; and
a control circuit configured to control an operation of the multiplexer and MAC units according to a plurality of operation modes,
wherein the multiplexer set comprises a first multiplexer connected to input terminals of adders of the MAC units, a second multiplexer connected to output terminals of accumulators of the MAC units, and a third multiplexer connected to output terminals of the MAC units.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the MAC units, the first multiplexer, and the second multiplexer operate on a first clock frequency, and the third multiplexer operate on a second clock frequency that is an integer multiple of the first clock frequency.

### Claim 20 (depends on 19)

The apparatus of claim 19, a ratio of the first clock frequency and the second clock frequency is determined based on a number of MAC units connected to the third multiplexer.

### Claim 21 (depends on 18)

The apparatus of claim 18, further comprising a shift register connected to the third multiplexer and the third multiplexer is further connected to an output terminal of the second multiplexer.
