Memory Model - 2021.1 English

Versal ACAP AI Engine Programming Environment User Guide (UG1076)

Document ID
UG1076
Release Date
2021-07-19
Version
2021.1 English

Source files with static or global variables are shared between multiple AI Engines. This is not the same behavior as the AI Engine simulator. If multiple kernels access the same memory the x86 simulator model does not allocate per kernel memory. Instead all kernels share the same global scope memory. Reading and writing to the same memory between multiple kernels results in data corruption during the x86 simulation. To avoid this problem keep memory allocations function scoped to a kernel or use the AI Engine simulator which fully models the memory.