Low latency matrix multiply unit

US10635740B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10635740-B2
Application numberUS-201815983043-A
CountryUS
Kind codeB2
Filing dateMay 17, 2018
Priority dateMay 17, 2017
Publication dateApr 28, 2020
Grant dateApr 28, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Methods, systems, and apparatus for a matrix multiply unit implemented as a systolic array of cells are disclosed. The matrix multiply unit may include cells arranged in columns of the systolic array. Two chains of weight shift registers per column of the systolic array are in the matrix multiply unit. Each weight shift register is connected to only one chain and each cell is connected to only one weight shift register. A weight matrix register per cell is configured to store a weight input received from a weight shift register. A multiply unit is coupled to the weight matrix register and configured to multiply the weight input of the weight matrix register with a vector data input in order to obtain a multiplication result.

First claim

Opening claim text (preview).

What is claimed is: 1. A matrix multiply unit implemented as a two-dimensional systolic array comprising: a plurality of cells arranged in columns of the systolic array, wherein each cell of the plurality of cells includes a weight shift register of a plurality of weight shift registers in each column of the columns, a weight matrix register of a plurality of weight matrix registers in each column of the columns, and a multiply unit of a plurality of multiply units in each column of the columns; two shift chains for each column of the columns, the two shift chains for each column being wired paths over which weight inputs of a neural network are transmitted to the plurality of weight shift registers in the column, wherein, for each cell in each column of the columns: the weight shift register is connected to and configured to receive a corresponding weight input of the weight inputs from only one shift chain of the two shift chains; the weight matrix register is configured to receive the corresponding weight input from the weight shift register and store the corresponding weight input; and the multiply unit is coupled to and configured to receive the corresponding weight input from the weight matrix register, the multiply unit configured to multiply the corresponding weight input with a vector data input to determine a multiplication result. 2. The matrix multiply unit of claim 1 , wherein the weight inputs are transmitted in pairs via the two shift chains from a vector register containing the weight inputs. 3. The matrix multiply unit of claim 2 , wherein when the two weight inputs are available at the vector register, the two weight inputs are shifted on a clock cycle to corresponding weight shift registers of the plurality of weight shift registers. 4. The matrix multiply unit of claim 2 , further comprising a holding register for each column of the columns, the holding register configured to hold and provide the corresponding weight input when the weight inputs are unavailable from the vector register. 5. The matrix multiply unit of claim 4 , wherein when the two weight inputs are unavailable at the vector register: on a first clock cycle when a first weight input becomes available, the holding register is loaded with the first weight input as a held value that is not transmitted via the two shift chains at the first clock cycle; and on a subsequent clock cycle, when a second weight input becomes available, the second weight input and the held value are transmitted over the two shift chains to corresponding weight shift registers, each shift chain transmitting a corresponding held value. 6. The matrix multiply unit of claim 1 , wherein: each shift chain has two injection points for injecting the weight inputs, the two injection points comprising a first point at the top of the column and a second point at another location in the column. 7. The matrix multiply unit of claim 6 , further comprising: a vector register configured to provide the vector input data, the vector register configured to contain packed sets of four 8-bit integers each representing a separate weight input. 8. The matrix multiply unit of claim 7 , wherein: two of the four integers are injected at the first point; and the other two of the four integers are injected at the second point. 9. The matrix multiply unit of claim 1 , wherein when the weight inputs are in the weight matrix register, the weight inputs are used in a plurality of multiplication cycles. 10. The matrix multiply unit of claim 9 , wherein during the plurality of multiplication cycles, additional weight inputs are transmitted into the weight shift registers in preparation for a next set of one or more multiplications. 11. The matrix multiply unit of claim 9 , wherein during the plurality of multiplication cycles, another corresponding weight input received from the weight matrix register is multiplied with another vector data input to determine another multiplication result. 12. The matrix multiply unit of claim 1 , wherein the vector data input moves by one multi-cell per clock cycle. 13. The matrix multiply unit of claim 1 , wherein the weight values are transmitted based on instructions when the instructions are received.

Assignees

Inventors

Classifications

  • Learning methods · CPC title

  • Architecture, e.g. interconnection topology · CPC title

  • having at least two separately controlled shifting levels, e.g. using shifting matrices (G06F5/012 takes precedence) · CPC title

  • G06F17/16Primary

    Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)} · CPC title

  • Systolic arrays · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10635740B2 cover?
Methods, systems, and apparatus for a matrix multiply unit implemented as a systolic array of cells are disclosed. The matrix multiply unit may include cells arranged in columns of the systolic array. Two chains of weight shift registers per column of the systolic array are in the matrix multiply unit. Each weight shift register is connected to only one chain and each cell is connected to only …
Who is the assignee on this patent?
Google Llc
What technology area does this patent fall under?
Primary CPC classification G06F17/16. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Apr 28 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).