3D Linear with zero padding - 2025.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-08-25
Version
2025.1 English

In this example zero-padding is occuring in dimension 0 and 1:

adf::read_access(mtxin.out[0]) = adf::tiling(
    {.buffer_dimension = {32,4,2},
     .tiling_dimension = {34,6,2},
     .offset = {-1,-1,0},
     .tile_traversal = {}});

As you can see in this 3D representation, the zero padding is performed in dimensions x and y:

3D Linear Copy

To get a textual display just type this:

 Utils/GetTiles.py doc_x86simulator_output/data/Output_31.txt 3DO 34 6 2 0
------------------------------------------------------

filename: doc_x86simulator_output/data/Output_31.txt
NCols: 34
NRows: 6
NLayers: 2
NImages: 1

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

Static Tile Selection

Tile: 0

Layer = 0
   0    0    0    0    0    0    0    0    0    0    ...       0    0    0    0    0    0    0    0    0    0
   0    0    1    2    3    4    5    6    7    8    ...      23   24   25   26   27   28   29   30   31    0
   0   32   33   34   35   36   37   38   39   40    ...      55   56   57   58   59   60   61   62   63    0
   0   64   65   66   67   68   69   70   71   72    ...      87   88   89   90   91   92   93   94   95    0
   0   96   97   98   99  100  101  102  103  104    ...     119  120  121  122  123  124  125  126  127    0
   0    0    0    0    0    0    0    0    0    0    ...       0    0    0    0    0    0    0    0    0    0

        Layer = 1
           0    0    0    0    0    0    0    0    0    0    ...       0    0    0    0    0    0    0    0    0    0
           0  128  129  130  131  132  133  134  135  136    ...     151  152  153  154  155  156  157  158  159    0
           0  160  161  162  163  164  165  166  167  168    ...     183  184  185  186  187  188  189  190  191    0
           0  192  193  194  195  196  197  198  199  200    ...     215  216  217  218  219  220  221  222  223    0
           0  224  225  226  227  228  229  230  231  232    ...     247  248  249  250  251  252  253  254  255    0
           0    0    0    0    0    0    0    0    0    0    ...       0    0    0    0    0    0    0    0    0    0
------------------------------------------------------------