Variable Precision DSP Blocks User Guide: Agilex™ 5 FPGAs and SoCs

ID 813968
Date 9/20/2024
Public
Document Table of Contents

3.2.3.1. Multiply-Add or Multiply-Subtract Mode

This mode performs floating-point multiplication followed by floating-point addition or floating-point subtraction. The chainin parameter allows you to enable a multiple-chain mode.

Table 22.  Equations Applied to Multiply-Add or Multiply-Subtract Mode
Chainin Parameter Multiply-Add Mode Multiply-Subtract Mode
Disable fp32_result = (fp32_mult_a*fp32_mult_b) + fp32_adder_a fp32_result = (fp32_mult_a*fp32_mult_b) - fp32_adder_a
Enable fp32_result = (fp32_mult_a*fp32_mult_b) + fp32_chainin fp32_result = (fp32_mult_a*fp32_mult_b) - fp32_chainin
The floating-point multiply-adder or multiply-subtract mode supports the following exception flags:
  • fp32_mult_invalid
  • fp32_mult_inexact
  • fp32_mult_overflow
  • fp32_mult_underflow
  • fp32_adder_invalid
  • fp32_adder_inexact
  • fp32_adder_overflow
  • fp32_adder_underflow
Figure 44. Multiply-Add or Multiply-Subtract Mode for Agilex™ 5 Devices