You can’t use the hls:stream type for this. You can see the workaround to use a custom struct and have a “last”.
In the code you copied, this is the axis_
t type which is this (in header file):
struct axis_t {
ap_uint<24> data;
ap_int<1> last;
};
If you call the variable in the struct last it will be recognized as the AXI sideband TLAST signal.
It gets synthesized with this:
#pragma HLS INTERFACE axis port=src //depth=384*288 // Added depth for C/RTL cosimulation
There is more than one way to code this so you may see different variations in different examples.
Cathal