4x2 matrice tranfer - 2025.2 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-12-05
Version
2025.2 English

In this example the tiles are rectangular (4x2), they are transferred column major to the destination:

            adf::read_access(mtxin.out[0]) = adf::tiling({
                .buffer_dimension = {16, 4},
                .tiling_dimension = {4,2},
                .offset = {0, 0},
                .tile_traversal = {
                    {.dimension = 0, .stride = 4, .wrap = 4},
                    {.dimension = 1, .stride = 2, .wrap = 2}}});

This set of parameters will generate 4 tiles in the x-axis and 2 in the y-axis:

2D Linear Transferring 4x2

Let’s diplay the output:

Utils/GetTiles.py doc_x86simulator_output/data/Output_23.txt 2Do 16 4 0

This give:

------------------------------------------------------

filename: doc_x86simulator_output/data/Output_23.txt
NCols: 16
NRows: 4
NLayers: 1

------------------------------------------------------

Static Tile Selection

Tile: 0
 0  1  2  3 16 17 18 19  4  5  6  7 20 21 22 23
 8  9 10 11 24 25 26 27 12 13 14 15 28 29 30 31
32 33 34 35 48 49 50 51 36 37 38 39 52 53 54 55
40 41 42 43 56 57 58 59 44 45 46 47 60 61 62 63
------------------------------------------------------------