Declaring and Defining ap_[u]fixed<> Variables - 2021.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 English

There are separate signed and unsigned classes:

  • ap_fixed<W,I> (signed)
  • ap_ufixed<W,I> (unsigned)

You can create user-defined types with the C/C++ typedef statement:


#include "ap_fixed.h" // use ap_[u]fixed<> types

typedef ap_ufixed<128,32> uint128_t; // 128-bit user defined type, 
 //  32 integer bits