5. x86simulator Configuration File - 2022.2 English

Vitis Tutorials: AI Engine Development

Document ID
XD100
Release Date
2022-12-01
Version
2022.2 English

${PROJECT_PATH}/Emulation-SW/Work/options/x86sim.options defines all supported features.

# For Timeout : define timeout as integer value
timeout=no
# For Snapshots : define dump=yes
dump=yes
# For Gdb debugging : define gdb=yes
gdb=no
# For running Valgrind : define valgrind=yes
valgrind=no
# For running Valgrind and debugging via Gdb server : define valgrind-gdb=yes
valgrind-gdb=no
# For overriding default options to valgrind : define --valgrind-args with options
valgrind-args=no
# For Stopping on deadlock : define stop-on-deadlock=yes
stop-on-deadlock=no
# For Trace : define trace=yes
trace=no
# For Trace print : define trace-print=yes
trace-print=no

x86simulator accepts command line options to enable/disable supported features, type in x86simulator --help to list supported command line options.

bash-4.2$ x86simulator --help
 x86simulator [-h] [--help] [--h] [--pkg-dir=PKGDIR]
 optional arguments:
 -h,--help  --h show this help message and exit
--pkg-dir=PKG_DIR     Set the package directory. ex: Work
--timeout=secs        Terminate simuation after specified number of seconds
--dump                Enable snapshots of data traffic on kernel ports
--gdb                 Invoke from gdb
--valgrind            Run simulator under valgrind to detect access violoations
--valgrind-gdb        Run simulator under valgrind and debug via gdb server
--valgrind-args=ARGS  Override default options for valgrind. Used in conjunction
                      with --valgrind.
--stop-on-deadlock    Stop simulation if deadlock is detected
--trace               Enable trace of kernel stall events
--trace-print         Print kernel stall events during simulation