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

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2023-07-17
Version
2023.1 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