Visible to Intel only — GUID: gzb1572910770500
Ixiasoft
Visible to Intel only — GUID: gzb1572910770500
Ixiasoft
10.15. Intel® HLS Compiler Standard Edition Arbitrary Precision Data Types
Data Type | Intel Header File | Description |
---|---|---|
ac_int | HLS/ac_int.h | Arbitrary-width integer support
To learn more, review the following tutorials:
|
ac_fixed | HLS/ac_fixed.h | Arbitrary-precision fixed-point number support To learn more, review the tutorial: <quartus_installdir>/hls/examples/tutorials/ac_datatypes/ac_fixed_constructor |
HLS/ac_fixed_math.h | Support for some nonstandard math functions for arbitrary-precision fixed-point data types To learn more, review the tutorial: <quartus_installdir>/hls/examples/tutorials/ac_datatypes/ac_fixed_math_library |
Tool | Description |
---|---|
DEBUG_AC_INT_WARNING | Emits a warning for each detected overflow. |
DEBUG_AC_INT_ERROR | Emits a message for the first overflow that is detected and then exits the component with an error. |
DEBUG_AC_INT_WARNING ac_int Debugging Tool
- Macro Syntax
- #define DEBUG_AC_INT_WARNING
If you use this macro, declare it in your code before you declare #include HLS/ac_int.h.
- i++ Command Option Syntax
- -D DEBUG_AC_INT_WARNING
- Description
-
Enables runtime tracking of ac_int data types during x86 emulation (the -march=x86-64 option, which the default option, of the i++ command).
This tool uses additional resources for tracking the overflow and empty constructors, and emits a warning for each detected overflow.
To learn more, review the tutorial: <quartus_installdir>/hls/examples/tutorials/ac_datatypes/ac_int_overflow.
DEBUG_AC_INT_ERROR ac_int Debugging Tool
- Macro Syntax
- #define DEBUG_AC_INT_ERROR
-
If you use this macro, declare it in your code before you declare #include HLS/ac_int.h.
- i++ Command Option Syntax
- -D DEBUG_AC_INT_ERROR
- Description
-
Enables runtime tracking of ac_int data types during x86 emulation of your component (the -march=x86-64 option, which the default option, of the i++ command).
This tool uses additional resources to track the overflow and empty constructors, and emits a message for the first overflow that is detected and then exits the component with an error.
To learn more, review the tutorial: <quartus_installdir>/hls/examples/tutorials/ac_datatypes/ac_int_overflow