ap_[u]fixed Representation - 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

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.
  • 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>;