声明和定义 ap_[u]fixed<> 变量 - 2023.2 简体中文

Vitis 高层次综合用户指南 (UG1399)

Document ID
UG1399
Release Date
2023-12-18
Version
2023.2 简体中文

有符号的类与无符号的类不同:

  • 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