Floating-Point Multiply-Add Shift Prediction Circuit

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The long calculation delay caused by determining shift amounts in data processing operations, particularly in AI data processing involving floating-point numbers, leads to low data processing efficiency due to the large shiftable range and time-consuming shift processes.

Innovation Solution

A data processing method that involves reading floating-point numbers, performing multiplication, determining exponent differences, and aligning shifts based on a threshold, predicting normalization shifts, and performing normalization shifts synchronously to reduce calculation delays and improve efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If traditional sequential processing of multiply-add operations is used, then calculation accuracy is maintained, but calculation delay increases and data processing efficiency decreases

Engineering Contradiction:
Improvedata processing efficiencyVSAvoidcalculation delay
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent performs alignment shift operations in advance before the adder completes its calculation. Specifically, the alignment shift module performs the shift operation based on the exponent difference between the multiplication result and the third floating-point number, so that when the addition operation is completed, the normalization shift can be directly determined without waiting for intermediate calculation results. This preliminary action reduces the overall calculation delay and improves data processing efficiency.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If the full range of shift amounts is considered, then precision is maintained, but the time required to determine shift amounts increases

Engineering Contradiction:
Improveshift amount precisionVSAvoidtime to determine shift amounts
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent segments the shift amount determination process into two distinct parts: alignment shift amount and normalization shift amount. The alignment shift amount is determined based on the exponent difference between the multiplication result and the third floating-point number, which can be calculated immediately. The normalization shift amount is determined after the addition operation based on the actual result. This segmentation allows the alignment shift to be performed in advance without waiting for the addition to complete, reducing the time to determine shift amounts while maintaining precision.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20250004711A1Data processing method and apparatus, device, and storage medium
Publication Date: 2025.01.02 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20250004711A1 patent drawing
  • US20250004711A1 patent drawing
  • US20250004711A1 patent drawing

AI summary

A method includes: performing multiplication on first and second floating-point numbers of a multiply-add operation to obtain a multiplication result; determining an exponent difference between exponents of the multiplication result and a third floating-point number of the multiply-add operation; performing alignment shift on the third floating-point number and/or the multiplication result in response to the exponent difference being less than or equal to a shift amount threshold, to obtain an aligned floating-point number and an alignment multiplication result; calculating an addition result between the aligned floating-point number and the alignment multiplication result by using an adder, and predicting a normalization shift amount for the addition result using a prediction encoder; and performing normalization shift on the addition result according to the predicted normalization shift amount, and obtaining an operation result of the multiply-add operation according to the obtained normalized result.