Floating-Point IP Cores User Guide

ID 683750
Date 10/27/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.3. ALTFP_ADD_SUB Truth Table

Table 13.  Truth Table for Addition/Subtraction Operations
DATAA[] DATAB[] SIGN BIT RESULT[] Overflow Underflow Zero NaN
Normal Normal 0 Zero 0 0 1 0
Normal Normal 0/1 Normal 0 0 0 0
Normal Normal 0/1 Denormal 0 1 1 0
Normal Normal 0/1 Infinity 1 0 0 0
Normal Denormal 0/1 Normal 0 0 0 0
Normal Zero 0/1 Normal 0 0 0 0
Normal Infinity 0/1 Infinity 1 0 0 0
Normal NaN X NaN 0 0 0 1
Denormal Normal 0/1 Normal 0 0 0 0
Denormal Denormal 0/1 Normal 0 0 0 0
Denormal Zero 0/1 Zero 0 0 1 0
Denormal Infinity 0/1 Infinity 1 0 0 0
Denormal NaN X NaN 0 0 0 1
Zero Normal 0/1 Normal 0 0 0 0
Zero Denormal 0/1 Zero 0 0 1 0
Zero Zero 0/1 Zero 0 0 1 0
Zero Infinity 0/1 Infinity 1 0 0 0
Zero NaN X NaN 0 0 0 1
Infinity Normal 0/1 Infinity 1 0 0 0
Infinity Denormal 0/1 Infinity 1 0 0 0
Infinity Zero 0/1 Infinity 1 0 0 0
Infinity Infinity 0/1 Infinity 1 0 0 0
Infinity NaN X NaN 0 0 0 1
NaN Normal X NaN 0 0 0 1
NaN Denormal X NaN 0 0 0 1
NaN Zero X NaN 0 0 0 1
NaN Infinity X NaN 0 0 0 1
NaN NaN X NaN 0 0 0 1