Viewing the AI Engine Memory - 2024.1 English

AI Engine Tools and Flows User Guide (UG1076)

Document ID
Release Date
2024.1 English

You can view and edit the memory of any AI Engine core with Memory Inspector view.

Launch Debug for the AI Engine component using the appropriate Launch Configuration from the launch.json. The Debug view is displayed, as previously discussed.

From the Debug view you can open the Memory Inspector by selecting View > Memory Inspector from the main menu, or by clicking the Memory Inspector icon on the right hand side of the display, as shown in the image below.

Figure 1. Memory Inspector

The Memory Inspector view displays as shown above. In the Threads view select the desired AI Engine core to examine the memory of the core. Enter an address, offset and length from which you would like to retrieve the memory range. Click the Go command to view the memory contents.

On AI Engine-ML there is a menu giving the choice of the kind of memory to be inspected:

Figure 2. Memory Menu on AI Engine-ML

Display Memory Bank will give you access to the 4 neighbor memory modules and Display Global Buffer will give you access to all the shared buffers declared in the design. In the previous image, the content of the shared buffer bufi10 is displayed.

Select the Settings command at the top of the Memory Inspector to define attributes of the memory, such as Byte Size, Bytes Per Group, or Endian. You can edit the contents of the displayed memory by selecting an address, clicking in it and entering a new value. If a data needs to be updated from the address range, it will highlight a blue under liner. Click on the highlighted address and update with the required value and select Apply Changes.