The invention discloses multi-precision dot product operation hardware which is characterized in that an input
processing unit carries out unpacking according to an input
data format and obtains a symbol, an index and a mantissa
distribution pattern; judging a special value of a dot product result, and calculating a product symbol; the dot product arithmetic unit is used for calculating dot product indexes and product shift values according to the index distribution patterns; calculating a product or a
partial product according to the symbol, the mantissa
distribution pattern and the product symbol, performing shift alignment and summation according to an input
data format and / or a shift value, and summing a dot product operation intermediate result to obtain a dot product result; and the output
processing unit rounds and normalizes the dot product mantissa according to the standardized output format, the
rounding type and the index of the dot product result, and packages and outputs the normalized
processing result according to the special value of the dot product result. The hardware supports input data formats with various precisions, the application scene of the hardware is expanded, the design area and
power consumption are reduced by
multiplexing the dot product arithmetic unit, and the hardware
resource utilization rate and the calculation efficiency are improved.