Define the Graph Class - 2023.2 English

Vitis Tutorials: AI Engine

Document ID
XD100
Release Date
2023-11-29
Version
2023.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 in fir_aie_graph.h file, for example:

class FirGraph : public graph

Declare the top level ports to the subgraph:

   input_plio   in    = input_plio::create("DataIn", plio_128_bits, "input_impulse.txt");
   output_plio  out  = output_plio::create("DataOut", plio_128_bits, "data/fir_output_impulse.txt");