Fixed-point Quantization - Fixed-point Quantization - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English

Values assigned to a fi/cfi array are quantized to the closest representable fixed-point value:

data = va.array([1.5, 2.25, -3.75, 0.125], dtype=va.fi(1, 16, 8))
np.asarray(data)    # [1.5, 2.25, -3.75, 0.125]  (all exactly representable)