Microscaling (mx4, mx6, mx9) - Microscaling (mx4, mx6, mx9) - 2026.2 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-11-11
Version
2026.2 English

Block floating-point formats (16 values per block). These apply to AIE-ML only.

Type Bytes/block Values/block
va.mx4 8 16
va.mx6 12 16
va.mx9 18 16
# Bare class uses default rounding (0 = floor toward −∞):
data = va.array(np.arange(16, dtype=np.float32), dtype=va.mx9)

# Choose a rounding method (0–3 or 8–13):
mx9_rte = va.mx9(roundingMethod=12)   # convergent, ties to even
data = va.array(np.arange(16, dtype=np.float32), dtype=mx9_rte)

Valid roundingMethod values:

Value Mode
0 Floor (toward −∞)
1 Ceiling (toward +∞)
2 Symmetric toward 0
3 Symmetric toward ±∞
8 / 9 Halfway toward −∞ / +∞
10 / 11 Symmetric halfway toward 0 / ±∞
12 / 13 Convergent halfway toward even / odd

Array length must be a multiple of 16.