有符号的类与无符号的类不同:
-
ap_fixed<W,I>
(有符号) -
ap_ufixed<W,I>
(无符号)
您可使用 C/C++ typedef
语句创建用户定义的类型:
#include "ap_fixed.h" // use ap_[u]fixed<> types
typedef ap_ufixed<128,32> uint128_t; // 128-bit user defined type,
// 32 integer bits