JP6102645B2 - 積和演算回路及び積和演算システム - Google Patents
積和演算回路及び積和演算システム Download PDFInfo
- Publication number
- JP6102645B2 JP6102645B2 JP2013188186A JP2013188186A JP6102645B2 JP 6102645 B2 JP6102645 B2 JP 6102645B2 JP 2013188186 A JP2013188186 A JP 2013188186A JP 2013188186 A JP2013188186 A JP 2013188186A JP 6102645 B2 JP6102645 B2 JP 6102645B2
- Authority
- JP
- Japan
- Prior art keywords
- matrix
- product
- multiplier
- outputs
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
- G06F7/5443—Sum of products
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30007—Arrangements for executing specific machine instructions to perform operations on data operands
- G06F9/3001—Arithmetic instructions
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Complex Calculations (AREA)
Description
102 命令
103 デコーダ
104,106〜108 制御情報
105 制御レジスタ
109,113 ダイレクトメモリアクセスコントローラ
110 入力行列
111 積和演算回路
112 出力行列
114 データメモリ
300 入力セレクタ
301〜308 乗算器
309〜315 加算器
316 出力セレクタ
Claims (5)
- 第1の行列及び第2の行列の積の演算を行うことにより第3の行列を出力する積和演算回路であって、
複数の乗算器と、
前記複数の乗算器の乗算結果を2個ずつ加算する複数の第1の加算器と、
前記複数の第1の加算器の加算結果を2個ずつ加算する複数の第2の加算器と、
前記第1の行列及び前記第2の行列の行数及び列数に応じて、前記第1の行列の要素及び前記第2の行列の要素を前記複数の乗算器の入力端子に出力する入力セレクタと、
前記第1の行列及び前記第2の行列の行数及び列数に応じて、前記複数の第1の加算器又は前記複数の第2の加算器の加算結果を選択し、前記第3の行列として出力する出力セレクタと
を有することを特徴とする積和演算回路。 - 前記第1の行列の行数をM、前記第2の行列の列数をNとすると、
前記入力セレクタは、前記第1の行列の各行の要素をN組みずつ前記複数の乗算器の入力端子に出力し、前記第2の行列の各列の要素をM組みずつ前記複数の乗算器の入力端子に出力することを特徴とする請求項1記載の積和演算回路。 - 前記出力セレクタは、前記第1の行列の行数が2、前記第1の行列の列数及び前記第2の行列の行数が3、前記第2の行列の列数が1の場合、前記複数の第2の加算器の加算結果を選択し、前記第3の行列として出力することを特徴とする請求項1又は2記載の積和演算回路。
- 前記出力セレクタは、前記第1の行列の行数が2、前記第1の行列の列数及び前記第2の行列の行数が2、前記第2の行列の列数が2の場合、前記複数の第1の加算器の加算結果を選択し、前記第3の行列として出力することを特徴とする請求項1又は2記載の積和演算回路。
- 請求項1〜4のいずれか1項に記載の積和演算回路と、
前記第1の行列及び前記第1の行列を記憶するメモリと、
前記第1の行列及び前記第2の行列の行数及び列数、前記第1の行列及び前記第2の行列が前記メモリに記憶されているアドレスの情報を含む行列積演算命令をデコードし、前記第1の行列及び前記第2の行列の行数及び列数の情報を前記入力セレクタ及び前記出力セレクタに出力するデコーダと、
前記第1の行列及び前記第2の行列が前記メモリに記憶されているアドレスの情報に応じて、前記メモリから前記第1の行列及び前記第2の行列を読み出し、前記入力セレクタに出力するコントローラと
を有することを特徴とする積和演算システム。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013188186A JP6102645B2 (ja) | 2013-09-11 | 2013-09-11 | 積和演算回路及び積和演算システム |
US14/337,692 US9442893B2 (en) | 2013-09-11 | 2014-07-22 | Product-sum operation circuit and product-sum operation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013188186A JP6102645B2 (ja) | 2013-09-11 | 2013-09-11 | 積和演算回路及び積和演算システム |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015055971A JP2015055971A (ja) | 2015-03-23 |
JP6102645B2 true JP6102645B2 (ja) | 2017-03-29 |
Family
ID=52626607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013188186A Active JP6102645B2 (ja) | 2013-09-11 | 2013-09-11 | 積和演算回路及び積和演算システム |
Country Status (2)
Country | Link |
---|---|
US (1) | US9442893B2 (ja) |
JP (1) | JP6102645B2 (ja) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6712052B2 (ja) | 2016-06-29 | 2020-06-17 | 富士通株式会社 | 演算処理装置及び演算処理装置の制御方法 |
CN110415157B (zh) * | 2018-04-26 | 2024-01-30 | 华为技术有限公司 | 一种矩阵乘法的计算方法及装置 |
US20200210517A1 (en) * | 2018-12-27 | 2020-07-02 | Intel Corporation | Systems and methods to accelerate multiplication of sparse matrices |
JP2022022876A (ja) * | 2020-07-09 | 2022-02-07 | キヤノン株式会社 | 畳み込みニューラルネットワーク処理装置 |
CN112214199B (zh) * | 2020-09-11 | 2022-06-21 | 北京草木芯科技有限公司 | 256位乘法器 |
CN114003196B (zh) * | 2021-09-02 | 2024-04-09 | 上海壁仞智能科技有限公司 | 矩阵运算装置与矩阵运算方法 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0720103A1 (en) * | 1994-12-29 | 1996-07-03 | Daewoo Electronics Co., Ltd | Two-dimensional inverse discrete cosine transform circuit |
JPH1063647A (ja) | 1996-08-23 | 1998-03-06 | Matsushita Electric Ind Co Ltd | 行列演算装置 |
JP3333779B2 (ja) * | 2001-12-26 | 2002-10-15 | 松下電器産業株式会社 | 行列演算装置 |
US20050240646A1 (en) * | 2004-04-23 | 2005-10-27 | The Research Foundation Of State University Of New York | Reconfigurable matrix multiplier architecture and extended borrow parallel counter and small-multiplier circuits |
US8266199B2 (en) * | 2006-02-09 | 2012-09-11 | Altera Corporation | Specialized processing block for programmable logic device |
JP5046779B2 (ja) * | 2007-07-31 | 2012-10-10 | 三菱電機株式会社 | 動的再構成プロセッサ |
JP2009075676A (ja) * | 2007-09-18 | 2009-04-09 | Nec Electronics Corp | マイクロプロセッサ |
KR20090071823A (ko) * | 2007-12-28 | 2009-07-02 | 한국과학기술원 | 다기능 연산장치 및 방법 |
JP5262248B2 (ja) | 2008-03-31 | 2013-08-14 | 富士通株式会社 | 積和演算回路 |
US8543633B2 (en) * | 2010-09-24 | 2013-09-24 | Lockheed Martin Corporation | Modified Gram-Schmidt core implemented in a single field programmable gate array architecture |
US9384168B2 (en) * | 2013-06-11 | 2016-07-05 | Analog Devices Global | Vector matrix product accelerator for microprocessor integration |
-
2013
- 2013-09-11 JP JP2013188186A patent/JP6102645B2/ja active Active
-
2014
- 2014-07-22 US US14/337,692 patent/US9442893B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
US9442893B2 (en) | 2016-09-13 |
US20150074163A1 (en) | 2015-03-12 |
JP2015055971A (ja) | 2015-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6102645B2 (ja) | 積和演算回路及び積和演算システム | |
CN105117372B (zh) | 使用显式寄存器的位矩阵乘法运算 | |
US9411726B2 (en) | Low power computation architecture | |
CN110163361B (zh) | 一种计算装置及方法 | |
JP5951570B2 (ja) | 行列演算装置 | |
EP3033670B1 (en) | Vector accumulation method and apparatus | |
US9639503B2 (en) | Vector indirect element vertical addressing mode with horizontal permute | |
GB2497698A (en) | Performing a multiply-multiply-accumulate instruction | |
GB2582094A (en) | Matrix computation engine | |
JP2013205973A (ja) | 行列演算装置 | |
KR20190107091A (ko) | 계산 장치 및 방법 | |
CN108108190B (zh) | 一种计算方法及相关产品 | |
JP6308095B2 (ja) | 演算回路及び演算回路の制御方法 | |
CN111626413A (zh) | 一种计算装置及方法 | |
CN107943756B (zh) | 一种计算方法及相关产品 | |
CN111488976A (zh) | 神经网络计算装置、神经网络计算方法及相关产品 | |
JP6003744B2 (ja) | 演算処理装置及び演算処理方法 | |
US8060549B2 (en) | Method and apparatus for accumulating floating point values | |
CN110554854A (zh) | 数据处理器、方法、芯片及电子设备 | |
JP2013122764A5 (ja) | ||
CN111381882B (zh) | 数据处理装置及相关产品 | |
CN107873091B (zh) | 用于滑动窗口运算的方法和设备 | |
CN111258544B (zh) | 乘法器、数据处理方法、芯片及电子设备 | |
WO2023065701A1 (zh) | 内积处理部件、任意精度计算设备、方法及可读存储介质 | |
CN109478199B (zh) | 分段线性逼近的系统及方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160510 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170119 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20170131 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170213 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6102645 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |