Test Bench/Control Code Structure - Test Bench/Control Code Structure - 2025.2 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2026-03-27
Version
2025.2 English

This is the “top-level file” referred to in the AMD Vitis™ GUI. When running simulations, this program runs on the host PC, not on the AI Engine, and not on the PS.

#include graph.hpp  // include ADF graph header file

theGraph g; // instantiate the graph as a global variable

int main() {

  g.init(); // initialize the graph
  g.run(1); // run the graph once
  g.end();  // terminate the graph

  return (0);
}