Floating-Point Sign Injection With NaN-Boxing Bit Protection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Sign injection operations on NaN-boxed normalized values in floating point registers can result in incorrect interpretation and denormalization, leading to unintended NaN results due to misalignment of bit manipulation during sign flipping.

Innovation Solution

Configure the processor with normalization and denormalization circuitry to re-encode values between unnormalized and normalized formats, and ignore the most-significant bit during denormalization to maintain correct NaN-boxing detection, ensuring accurate sign injection and result interpretation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If sign injection operation is performed on NaN-boxed normalized value, then sign bit is flipped, but the result is incorrectly interpreted and denormalized leading to unintended NaN results

Engineering Contradiction:
Improvesign injection operationVSAvoidresult correctness
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent applies preliminary action by detecting whether a value is NaN-boxed before performing sign injection. The system checks the exponent field to identify NaN-boxed values and prevents sign bit manipulation on these values, thereby avoiding the incorrect denormalization that would otherwise occur. This pre-detection mechanism ensures that sign injection operations are only performed on valid normalized values.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary mechanism in the form of a detection circuit that examines the exponent field to determine if a value is NaN-boxed. This intermediary detection step acts as a gatekeeper between the sign injection operation and the value interpretation, preventing incorrect operations by identifying NaN-boxed values through their distinctive exponent patterns.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If denormalization is performed on NaN-boxed values, then the value is converted to unnormalized format, but NaN-boxing detection fails due to bit misalignment

Engineering Contradiction:
Improvedenormalization speedVSAvoidNaN-boxing detection accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent applies preliminary action by detecting NaN-boxed values before denormalization occurs. The system checks the exponent field to identify NaN-boxed values and prevents denormalization operations on these values. This pre-detection mechanism ensures that NaN-boxing detection remains accurate by examining the exponent field in its correct, aligned state.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary detection mechanism that examines the exponent field to determine if a value is NaN-boxed before denormalization. This intermediary step acts as a protective barrier, preventing misalignment issues by identifying NaN-boxed values through their distinctive exponent patterns and blocking incorrect denormalization operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If normalized format is used to represent both normal and subnormal values, then a common exponential scale is achieved, but an extra exponent bit is required

Engineering Contradiction:
Improvecommon exponential scale representationVSAvoidexponent field width
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies segmentation by dividing the exponent field into functional segments. The most significant bits of the exponent field are used to encode NaN-boxing information, while the remaining bits represent the actual exponent value. This segmentation allows the system to maintain a common exponential scale for both normal and subnormal values while efficiently utilizing the extended exponent field width.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies the nested doll principle by embedding multiple functions within the exponent field structure. The exponent field simultaneously serves to represent the exponential scale, encode NaN-boxing detection information, and maintain compatibility with both normalized and unnormalized formats. This nesting allows the extra exponent bit to serve multiple purposes rather than simply increasing complexity.

Inventive Principle:
Principle #7Nested doll (Nesting)

Data Source

PatentEP4697163A1Sign injection in a floating point number format
Publication Date: 2026.02.18 IMAGINATION TECH LTD
  • EP4697163A1 patent drawingFigure 1
  • EP4697163A1 patent drawingFigure 2~3A
  • EP4697163A1 patent drawingFigure 4~5

AI summary

The disclosure relates to a processor which can re-encode from an unnormalized wider floating point format to a normalized wider floating point format, and re-encode from an unnormalized narrower floating point format to a normalized narrower floating point format. According to the disclosure, when performing a wider-format sign injection operation on a NaN-boxed value of the normalized narrower floating point format held in a source register of a set of normalized-format registers, a bit manipulation is performed on a bit in the respective source register at a most-significant bit-position of the normalized wider floating point format. And when de-normalizing the NaN-boxed value of the normalized narrower floating point format from the respective source register, the bit at the most-significant bit-position of the normalized wider floating point format is ignored in detecting NaN-boxing.