Debugging with VFS - 2025.1 English - UG1701

Embedded Design Development Using Vitis User Guide (UG1701)

Document ID
UG1701
Release Date
2025-07-16
Version
2025.1 English

You can debug a VFS simulation object in a standard gdb environment by stepping through the AIE or HLS kernel code. To do this, you need the process ID of the VFS object. You can obtain the process ID as follows:

  • In MATLAB: <vfs_object>.getpid()
    Note: All VFS objects in a MATLAB script share the same process ID, which is separate from the MATLAB's own process ID.
  • In Python:
    import os
    os.getpid()
    Note: All VFS objects run in the same process as the Python script.

Additionally, you can use printf for simpler debugging. For MATLAB, any printed output will appear in the terminal where the application was launched.