Microscaling Blocks - Microscaling Blocks - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English
data = varray.mx9(rand(1, 32), roundingMethod=12);
single(data)                    % dequantized back to single
disp(data.getRoundingMethodName())

Array length must be a multiple of 16, and slicing must select one or more complete 16-element blocks aligned on a block boundary. MX types reject complex input.

data(1:16)      % OK, full block
data(17:end)    % OK, another full block (17 is "one more than a multiple of 16")
data(2:17)      % error: "The starting index must be one more than a multiple of 16."
data(1:5)       % error: "The indices must be slices each with multiple of 16 consecutive elements."
data(16)        % error: element-level indexing not allowed