ap_[u]fixed Representation - 2023.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
Release Date
2023.2 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>;