Developer Guide

Contents

Additional Data Types Provided by the
hls_float.hpp
Header File

The
hls_float.hpp
header file provides some aliases for certain data types that you can use instead of explicitly declaring an
hls_float
data type.
Data Type
Description
bfloat16
A 16-bit floating-point number with an 8-bit exponent and a 7-bit mantissa (equivalent to declaring
hls_float<8, 7>
).
On Intel® Agilex™ devices, dot product operations that involve the
bfloat16
(or
hls_float<8,7>
) data type are mapped to FP16 digital signaling blocks (DSPs). On other device families, dot product operations are mapped to adaptive logic modules (ALMs) and fixed-point 18-bit DSPs.
On all device families, all other math functions are mapped to ALMs and fixed-point 18-bit DSPs.
bfloat19
A 19-bit floating-point number with an 8-bit exponent and a 10-bit mantissa (equivalent to declaring
hls_float<8,10>
).
On Intel® Agilex™ devices, dot product operations that involve the
bfloat19
(or
hls_float<8,10>
) data type are mapped to FP19 digital signaling blocks (DSPs). On other device families, dot product operations are mapped to adaptive logic modules (ALMs) and fixed-point 18-bit DSPs.
On all device families, all other math functions are mapped to ALMs and fixed-point 18-bit DSPs.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.