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.