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. Enable this to specify the
constraint.
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.
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.