In this example, the value of variable
pushed into the stream.
// Usage of void write(const T & wdata) hls::stream<int> my_stream; int src_var = 42; my_stream.write(src_var);
The << operator is overloaded such that it may be used in a similar fashion
to the stream insertion operators for C++ stream (for example, iostreams and
hls::stream<> object to be
written to is supplied as the left-hand side argument and the value to be written as
the right-hand side.
// Usage of void operator << (T & wdata) hls::stream<int> my_stream; int src_var = 42; my_stream << src_var;