PLIO - 2024.1 English

Vitis Libraries

Release Date
2024-05-30
Version
2024.1 English

A PLIO port attribute is used to make external stream connections that cross the AI Engine to programmable logic (PL) boundary. The following example shows how the PLIO attributes shown in the previous table can be used in a program to read input data from a file or write output data to a file. The PLIO width and frequency of the PLIO port are also provided in the PLIO constructor. For more details refer to PLIO Attributes.

//Virtual platform ports
inptr = input_plio::create("DataIn1", adf::plio_128_bits, "data/input_128x16.txt");
outptr = output_plio::create("DataOut1", adf::plio_128_bits, "data/output.txt");

//Virtual platform connectivity
connect<>(inptr.out[0], k1.in[0]);
connect<parameter>(kernelCoefficients, async(k1.in[1]));
connect<>(k1.out[0], outptr.in[0]);