数据类型
支持的C/Cpp类型
Character Types
char8bits
wchar_t
Integer Types
signed char8bits
[signed] short [int]16bits
[signed] int32bits
[signed] long [int]32bits
[signed] long long [int]64bits
Integer Types(unsigned)
unsigned char8bits
unsigned short [int]16bits
unsigned [int] 32bits
unsigned long [int] 32bits
unsigned long long [int]64bits
Floating-point Types
float
double
long double
其他类型
bool
支持任意精度类型Arbitrary Precision Data Types
Cppap_int (1024bits)//#include
ap_uint (1024bits)//#include
Cppap_fixed//#include
ap_ufixed//#include
ap_fixed
W-定点数的整体位宽
I-整数部分的位宽
Q-量化模式,对小数部分的量化,默认为AP_TRN_ZERO(直接舍去尾部低位), 可选AP_RND(四舍五入).
O-溢出模式,对整数部分的溢出,默认为AP_WRAP(直接舍去首部高位), 可选为AP_SAT(饱和,所有非