Stack Location - 2024.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2024-11-13
Version
2024.2 English

The stack location constraint is used to specify the location of the system memory (stack and heap) of the AI Engine where the specified kernel is mapped. This provides the mechanism to constrain the location of the system memory with respect to other buffers used by that kernel. By default, the option Specify Stack Location is deselected. Select this to specify the constraint.

Figure 1. Specify Stack Location

You can specify the stack location by pointing to a:

  • Specific data memory bank on an AI Engine tile. The bank ID is relative to the tile and can take values 0,1,2,3.
  • Specific data memory address on an AI Engine tile. The offset address is relative to the tile starting at zero with a maximum value of 32768 (32K).
  • Specific data memory address offset. The offset address is between 0 and 32768 (32K) and is relative to a tile allocated by the compiler.
Figure 2. Specify Data Memory Address Offset

Vitis Model Composer also supports specifying the stack location of the kernel where it should not be mapped to a particular bank, address, or offset.