Examples - Examples - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English
graph = vfs.aieGraph(
    input_file="<path-to-your-graph>.cpp",
    include_paths=["include/aie", "include/dsp"],
    Xpreproc=["-DFFT_SIZE=1024", "-DUSE_OPTIMIZATION"],
)

# Config file form
graph = vfs.aieGraph(config_file="mySub.cfg")

# Reuse an existing build
graph = vfs.aieGraph(vfs_build_dir="vfs_work/mySub_d6bc4007/vfsBuildDir")

A minimal mySub.cfg looks like this:

input_files  = <path-to-your-graph>.cpp
include      = <path-to-your-includes>
part         = xcvc1902-vsva2197-1LP-e-S
target       = x86sim
aie.Xpreproc = -DFFT_SIZE=1024
aie.Xpreproc = -DUSE_OPTIMIZATION