ap_[u]fixed Representation - 2025.1 English - UG1399

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2025-09-10
Version
2025.1 English

In ap[u]fixed types, a fixed-point value is represented as a sequence of bits with a specified position for the binary point.

  • Bits to the left of the binary point represent the integer part of the value, including the sign bit.
  • Bits to the right of the binary point represent the fractional part of the value.

ap_[u]fixed type is defined as follows:

ap_[u]fixed<int W, 
 int I, 
 ap_q_mode Q, 
 ap_o_mode O,
 ap_sat_bits N>;