Multiplication hardware circuit, system on chip and electronic equipment
A hardware circuit and multiplication technology, applied in the field of data processing, can solve problems such as high cost, affecting equipment power consumption, and restricting matrix operation speed.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] The matrix operation is abstracted into a mathematical model, which can be a multiply-accumulate operation, or called a multiply-accumulate operation. Wherein, both P and Q can represent a matrix or a vector. P·Q may represent matrix operations in a broad sense, including at least one of convolution operations of matrix*vector, matrix*matrix, and vector*vector. The value of P·Q can be the element p in P i with the corresponding element q in Q i Perform multiplication to get the product p i q i , and then accumulate these products, this process is the multiply-accumulate operation. The result of a multiply-accumulate operation is an element of the result matrix.
[0071] Due to the large amount of multiplication in the multiply-accumulate operation, an existing solution is to use the logarithmic operation system, that is, to convert the data from the linear field to the log field for representation and operation. Among them, in this application, the logarithmic dom...
Embodiment 3
[0192] Based on the above embodiments, this embodiment describes the steps in S930 in Embodiment 2 in detail.
[0193] 8.1 Method 1
[0194] Optionally, as an embodiment, the absolute value of the data in the logarithmic domain representation format corresponding to the s bits obtained in the above step S930 is the value N of the fractional part of the logarithmic value with base 2, which may include: table lookup Obtaining the absolute value of the data in the logarithmic domain representation format corresponding to s bits takes the value N of the fractional part of the logarithmic value with base 2, where N corresponding to all possible values of s bits is stored in the table. The method of determining that the absolute value of the data takes the value N of the fractional part of the logarithmic value with the base 2 is called a look-up table method.
[0195] Specifically, still with Figure 10 For illustration, the decimal calculation subcircuit 1030 intercepts the 8 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


