IP Library Granted Patent US 10,922,057
Granted Patent B2
US 10,922,057 · App. 16/579,604 · Granted Feb 16, 2021

Transposing in a matrix-vector processor

Inventors: Jonathan Ross (Mountain View, CA); Robert David Nuckolls (Santa Clara, CA); Christopher Aaron Clark (Madison, WI); Chester Li (Cupertino, CA); Gregory Michael Thorson (Waunakee, WI)
Assignee: Google LLC
G06F7/78G06F7/00G06F7/768G11C7/1012G11C8/04G11C19/28G06N3/063G06N3/084
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,922,057
App. No.
16/579,604
Granted
Feb 16, 2021
Kind
B2
Abstract

A circuit for transposing a matrix comprising reversal circuitry configured, for each of one or more diagonals of the matrix, to receive elements of the matrix in a first vector and generate a second vector that includes the elements of the matrix in an order that is a reverse of an order of the elements of the matrix in the first vector, and rotation circuitry configured, for each of the one or more diagonals of the matrix, to determine a number of positions by which to rotate the elements of the matrix in the second vector, receive the second vector of elements of the matrix, and generate a third vector that includes the elements of the matrix in the second vector in an order that is a rotation of the elements of the matrix in the second vector by the determined number of positions.

Claims (45)

1. A method comprising:

generating, by at least one multiplexer of a first circuit, elements of a diagonal of a matrix that are positioned in a first vector;

inserting, by a second circuit connected to the first circuit, the elements of the diagonal in a second vector in an order that is a reverse of the order of the elements in the first vector; and

generating, by a third circuit connected to the second circuit, a third vector by placing the elements of the second vector in the third vector in an order that is a rotation of the elements of the diagonal by a predetermined number of positions.

2. The method of claim 1 , further comprising:

counting, by at least one counter of a fourth circuit connected to the third circuit, the predetermined number of positions.

3. The method of claim 2 , further comprising:

adjusting, by the fourth circuit, the predetermined number, the adjustment of the predetermined number comprising:

decrementing the predetermined number in response to the predetermined number being positive; and

resetting the predetermined number to an initial value in response to the predetermined number being zero.

4. The method of claim 1 , wherein the at least one multiplexer comprises a number of multiplexers, the number being equal to a width of the second circuit.

5. The method of claim 1 , wherein:

the at least one multiplexer is a plurality of multiplexers; and

each multiplexer of the plurality of multiplexers generates a corresponding element of the elements of the diagonal.

6. The method of claim 1 , wherein the matrix comprises two or more matrices.

7. The method of claim 1 , wherein the matrix is stored in a static random-access memory accessible by the first circuit.

8. The method of claim 1 , wherein the rotation is in a direction indicated by a signal received by the third circuit.

9. The method of claim 1 , wherein the rotation comprises bit-wise shifting of the elements of the diagonal.

10. The method of claim 1 , wherein the elements in the third vector form a diagonal of a transpose of the matrix.

11. A non-transitory computer program product storing instructions that, when executed by at least one programmable processor within a circuit, cause the at least one programmable processor to perform operations comprising:

generating, by a first part of the circuit, elements of a diagonal of a matrix that are inserted in a first vector;

positioning, by a second part of the circuit connected to the first part of the circuit, the elements of the diagonal in a second vector in an order that is a reverse of the order of the elements in the first vector; and

generating, by a third part of the circuit connected to the second part of the circuit, a third vector by inserting the elements of the second vector in the third vector in an order that is a rotation of the elements of the diagonal by a predetermined number of positions.

12. The non-transitory computer program product of claim 11 , wherein the operations further comprise:

counting, by at least one counter of a fourth part of the circuit that is connected to the third part of the circuit, the predetermined number of positions,

wherein the fourth part of the circuit has a counting circuitry.

13. The non-transitory computer program product of claim 12 , further comprising:

adjusting, by the fourth part of the circuit, the predetermined number, the adjustment of the predetermined number comprising:

decrementing the predetermined number in response to the predetermined number being positive; and

resetting the predetermined number to an initial value in response to the predetermined number being zero.

14. The non-transitory computer program product of claim 11 , wherein:

the first part of the circuit comprises at least one multiplexer, the at least one multiplexer comprising a number of multiplexers, the number being equal to a width of the second part of the circuit; and

each multiplexer generates a corresponding element of the elements of the diagonal.

15. The non-transitory computer program product of claim 11 , wherein:

the rotation is in a direction indicated by a signal received by the third part of the circuit; and

the rotation comprises bit-wise shifting of the elements of the diagonal.

16. The non-transitory computer program product of claim 11 , wherein the elements in the third vector form a diagonal of a transpose of the matrix.

17. A circuit comprising:

a first circuit comprising at least one multiplexer, the at least one multiplexer configured to generate a first vector that has elements of a diagonal of a matrix in a first order;

a second circuit coupled to the first circuit, the second circuit configured to generate a second vector that has the elements in a second order that is a reverse of the first order; and

a third circuit coupled to the second circuit, the third circuit configured to generate a third vector that has the elements in a third order that is a rotation of the elements in the second order by a particular number of positions.

18. The circuit of claim 17 , further comprising:

a fourth circuit coupled to the third circuit, the fourth circuit configured to count the particular number of positions.

19. The circuit of claim 17 , wherein the matrix is stored in a static random-access memory accessible by the first circuit.

20. The circuit of claim 17 , wherein the elements in the third vector form a diagonal of a transpose of the matrix.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 24, 2019
From: ROSS, JONATHAN; NUCKOLLS, ROBERT DAVID; CLARK, CHRISTOPHER AARON; LI, CHESTER; THORSON, GREGORY MICHAEL
To: GOOGLE INC.
Reel/Frame 050472/0796 →
CHANGE OF NAME Recorded Sep 24, 2019
From: GOOGLE INC.
To: GOOGLE LLC
Reel/Frame 050479/0597 →
Continuity (4)
Continuation 15896301 · Feb 14, 2018
Continuation 15614818 · Jun 6, 2017
Provisional Application 62459943 · Feb 16, 2017
Related Publication 20200019380A1 · Jan 16, 2020