Define the Graph Class - 2022.2 English

Vitis Tutorials: AI Engine Development

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

Define the FIR graph class by using the objects defined in the appropriate name space. It must include the ADF library. To access ADF library elements, the following declaration is used to scope into it: using namespace adf; In addition the following namespace is declared to access the DSPLib library: namespace dsplib = xf::dsp::aie All user graphs are defined from the class graph, for example:

class FirGraph : public graph

Declare the top level ports to the subgraph:

   port<input>  in;
   port<output> out;