Each argument of a PE function has to be connected to either an
argument of the top-level
compute() function, or
to a statically declared stream. A
inherits from the Vitis HLS
hls::stream which is described in HLS Stream Library.
vpp::stream object provides a
few additional features:
vpp::streamconstructor takes an additional argument,
post_check, the default value is true. Most stream variables will be expected to be empty at the end of each compute call, but others might be designed to carry over data across multiple
compute()calls. In software emulation, by default
vpp::streamwill be checked to be empty at the end of each
compute()call, and will assert if it is not. The optional
post_checkargument lets you turn off this assertion.
DEPTHparameter allows the user to specify a FIFO depth to be implemented in hardware, as well as used during software and hardware emulation.
vpp::streamvariable can be passed down to a PE-function argument which can be of type
vpp::streamvariable must be declared
staticto ensure proper functional validation in Vitis software emulation. In hardware, a stream/FIFO is not emptied implicitly and its content is persistent across different runs. It behaves in the same way as a
The following sections describe popular styles of composing a
pipelined system of PEs using basic C++ coding within the
compute() body scope. The PEs in the pipeline can use direct AXI4-Stream connections or AXI4 (M_AXI) global memory access to move data across PEs.