Matrix operation device and operation method thereof

By introducing a pre-read circuit and a control circuit into the matrix calculation device, whether to perform multiplication and accumulation operations based on the pre-read data of the matrix is ​​determined, which solves the problem of low efficiency of matrix multiplication operations in the prior art, and realizes a more efficient matrix multiplication operation.

CN114077720BActive Publication Date: 2025-03-28NEUCHIPS CORP
1 Cites 0 Cited by

Patent Information

Application Number
CN202010988537.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-08-18
Filing Date
2020-09-18
Publication Date
2025-03-28
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

The prior art is less efficient when performing matrix multiplication operations, especially when processing a matrix containing a large number of zero elements, there is an unnecessary multiplication accumulation operation.

Method used

A matrix computing device is designed, including a memory unit, a multiplication and accumulation circuit, a pre-read circuit and a control circuit. By pre-reading the columns or rows of the pre-reading matrix as pre-reading data, the control circuit decides whether to perform multiplication and accumulation operations based on the pre-reading data, thereby reducing unnecessary calculations.

Benefits of technology

It effectively reduces unnecessary multiplication and accumulation operations, improves the efficiency of matrix multiplication operations, and saves significantly the operation time when processing matrixes containing zero elements.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention provides a matrix operation device and an operation method thereof. The matrix operation device includes a storage unit, a multiplication-accumulation circuit, a pre-reading circuit and a control circuit. The storage unit stores a first matrix and a second matrix. The multiplication-accumulation circuit is configured to perform a multiplication-accumulation operation. The pre-reading circuit pre-reads at least one column of the first matrix from the storage unit as pre-read data, or pre-reads at least one row of the second matrix from the storage unit as pre-read data, or pre-reads at least one column of the first matrix and at least one row of the second matrix from the storage unit as pre-read data. The control circuit determines whether to perform a multiplication-accumulation operation on the current column of the first matrix and the current row of the second matrix through the multiplication-accumulation circuit according to the pre-read data.
Need to check novelty before this filing date? Find Prior Art