This invention provides an optimized method for integrating floating-point multiply-accumulate algorithms in a single-precision floating-point multiply-accumulate unit. During the single-precision floating-point multiply-accumulate calculation, the pipeline is implemented as follows: P0 stage: The first pipeline stage receives three operands a, b, and c as input; it performs special value judgment, product mantissa calculation, product
leading zero pre-statistics, and exponent difference and comparison logic; P1 stage: The second pipeline stage receives the multiplication result, compares the product exponent with the exponent of
operand c, compares the exponent difference with the product
leading zero, and performs exponent difference and product
leading zero comparison; after exponent alignment, the mantissa of the aligned result is summed; P2 stage: The third pipeline stage receives the mantissa summed result, adjusts the exponent data, the
sign bit to be operated on, and compares the results; after completion of normalization and
rounding operations, the final result is adjusted accordingly, and abnormal states are judged. A single
data path is used to ensure reuse of the same
logic module within the pipeline, reducing area overhead.