# US 2022/0358184 A1 · Matrix multiplication circuit module and matrix multiplication method

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

- Number: US 2022/0358184 A1
- Document ID: US20220358184A1
- Status: Published application
- Kind: A1
- Application number: 17/736,131
- Filed: 2022-05-04
- Published: 2022-11-10
- Earliest claimed: 2021-05-07
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Chuang ZHANG; Shan LU; Junmou ZHANG; Yimin CHEN; Jian WANG; Yuanlin CHENG
- Web page: https://patentgrep.com/patent/US20220358184A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06G 7/161: with pulse modulation, e.g. modulation of amplitude, width, frequency, phase or form {(pulse modulators H03K7/00)}
- G06N 3/063: using electronic means
- G06F 2207/4814: Non-logic devices, e.g. operational amplifiers
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06G: ANALOGUE COMPUTERS (analogue optical computing devices G06E3/00)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A matrix multiplication circuit module and a matrix multiplication method are provided by the embodiments of the present disclosure. The circuit module includes one or more row-column calculation units for realizing row-column multiplication calculation. Each of the row-column calculation units comprises one or more multiplying units and an adding unit. Each of the one or more multiplying unit has an output end connected to an input end of the adding unit. Each of the multiplying units comprises an electrical signal regulating subunit and a load. The electrical signal regulating subunit is configured to regulate a magnitude of an input electrical signal. A multiplication operation is performed by the electrical signal regulating subunit and the load in response to an electrical signal inputted to the multiplying unit. The load has a fixed load value.

## Claims

### Claim 1

A matrix multiplication circuit module, comprising:
one or more row-column calculation units for realizing row-column multiplication calculation, wherein each of the row-column calculation units comprises one or more multiplying units and an adding unit, each of the one or more multiplying unit has an output end connected to an input end of the adding unit;
each of the multiplying units comprises an electrical signal regulating subunit and a load, wherein the electrical signal regulating subunit is configured to regulate a magnitude of an input electrical signal, a multiplication operation is performed by the electrical signal regulating subunit and the load in response to an electrical signal inputted to the multiplying unit; and
the load has a fixed load value.

### Claim 2 (depends on 1)

The circuit module according to claim 1, wherein loads in the one or more multiplication units in a same row-column calculation unit have a same parameter.

### Claim 3 (depends on 1)

The circuit module according to claim 1, wherein loads in the one or more multiplication units in the one or more row-column calculation units have a same parameter.

### Claim 4 (depends on 1)

The circuit module of claim 1, wherein the load comprises a resistor or a capacitor.

### Claim 5 (depends on 1)

The circuit module according to claim 1, wherein the electrical signal comprises a voltage signal, and the electrical signal regulating subunit comprises a voltage signal duty cycle regulating unit.

### Claim 6 (depends on 5)

The circuit module according to claim 5, wherein
the voltage signal duty cycle regulating unit comprises a control signal generating circuit and a switch circuit, and
the control signal generating circuit is configured to generate a control signal to switch on or off the switch circuit to control the duty cycle of the voltage signal.

### Claim 7 (depends on 1)

The circuit module of claim 1, wherein
the electrical signal is a voltage signal, the load is a resistor, and
the adding unit of each of the row-column calculation units is configured to sum current signals outputted by the one or more multiplication units.

### Claim 8 (depends on 1)

The circuit module of claim 1, wherein
the electrical signal is a voltage signal, the load is a capacitor, and
the adding unit of each of the row-column calculation units is configured to sum charge signals outputted by the one or more multiplication units.

### Claim 9 (depends on 1)

The circuit module according to claim 1, wherein the circuit module is used for implementing convolution calculation on a weight matrix and a feature matrix outputted by neurons of a neural network.

### Claim 10

A matrix multiplication method, applied to the matrix multiplication circuit module, comprising:
obtaining a row matrix element of a row of a first matrix and a column matrix element of a column of a second matrix, wherein the column of the second matrix corresponds to the row of the first matrix, and the row matrix element is represented by an electrical signal;
inputting the electrical signal representing the row matrix element to the row-column calculation unit, and regulating the electrical signal by the electrical signal regulating subunit based on a value of the column matrix element, wherein the row-column calculation unit comprises one or more multiplying unit and an adding unit, the multiplication unit comprises an electrical signal regulating subunit and a load; and
determining a sum of response signals of all the multiplication units as a calculation result of the row-column calculation unit, wherein for each of the multiplication units, a response signal of the multiplication unit is obtained by applying an electric signal regulated by the electric signal regulating subunit of the multiplication unit to the load of the multiplying unit.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the electrical signal comprises a voltage signal, the electrical signal regulating subunit comprises a voltage signal duty cycle regulating unit, and the voltage signal duty cycle regulating unit comprises a control signal generating circuit and a switch circuit, and
the inputting the electrical signal representing the row matrix element to the row-column calculation unit, and regulating the electrical signal by the electrical signal regulating subunit based on a value of the column matrix element comprises:
generating, by the control signal generating circuit, a control signal matching the value of the column matrix element; and
applying the control signal to the switch circuit, to switch on or off the switch circuit to regulate a magnitude of the voltage signal applied on the load to be matched with the column matrix element.

### Claim 12 (depends on 10)

The method according to claim 10, wherein the first matrix is a feature matrix outputted by neurons of a neural network, and the second matrix is a weight matrix.

### Claim 13

An integrated circuit, comprising one or more matrix multiplication circuit modules, wherein the matrix multiplication circuit module, comprising:
one or more row-column calculation units for realizing row-column multiplication calculation, wherein
each of the row-column calculation units comprises one or more multiplying units and an adding unit, each of the one or more multiplying unit has an output end connected to an input end of the adding unit;
each of the multiplying units comprises an electrical signal regulating subunit and a load, wherein the electrical signal regulating subunit is configured to regulate a magnitude of an input electrical signal, a multiplication operation is performed by the electrical signal regulating subunit and the load in response to an electrical signal inputted to the multiplying unit; and
the load has a fixed load value.

### Claim 14 (depends on 13)

The integrated circuit according to claim 13, wherein loads in the one or more multiplication units in a same row-column calculation unit have a same parameter.

### Claim 15 (depends on 13)

The integrated circuit according to claim 13, wherein loads in the one or more multiplication units in the one or more row-column calculation units have a same parameter.

### Claim 16 (depends on 13)

The integrated circuit according to claim 13, wherein the load comprises a resistor or a capacitor.

### Claim 17 (depends on 13)

The integrated circuit according to claim 13, wherein the electrical signal comprises a voltage signal, and the electrical signal regulating subunit comprises a voltage signal duty cycle regulating unit.

### Claim 18 (depends on 17)

The integrated circuit according to claim 17, wherein the voltage signal duty cycle regulating unit comprises a control signal generating circuit and a switch circuit, and
the control signal generating circuit is configured to generate a control signal to switch on or off the switch circuit to control the duty cycle of the voltage signal.

### Claim 19 (depends on 13)

The integrated circuit of claim 13, wherein
the electrical signal is a voltage signal, the load is a resistor, and
the adding unit of each of the row-column calculation units is configured to sum current signals outputted by the one or more multiplication units.

### Claim 20 (depends on 13)

The integrated circuit of claim 13, wherein
the electrical signal is a voltage signal, the load is a capacitor, and
the adding unit of each of the row-column calculation units is configured to sum charge signals outputted by the one or more multiplication units.
