Hi @AMEYE13 ,
Thanks for getting back to me.
Let me provide a bit more information...
Basically, I am trying to encapsulate `stream` and `stream_in` in an object to be able to operate on my inputs more easily.
Would something like that possible?
template <int W>
class InputClass
{
private:
using input_type = ac_int<W, false>;
input_type word_;
ihc::stream<input_type> & stream_;
public:
// Constructor
InputClass(ihc::stream<ac_int<input_type>> & stream)
: stream_(stream)
{
//std::cout<< "Constructor" << std::endl;
}
_read()
{
stream_.read();
}
_write(input_type & in)
{
stream_.write(in);
}
};
using input_type = ac_int<W, false>;
ihc::stream<input_type> myStream1;
ihc::stream<input_type> myStream2;
ihc::stream<input_type> myStream3;
....
component void
my_component()
{
InputClass myInputClass1(myStream1);
InputClass myInputClass2(myStream2);
...
myInputClass1.read();
myInputClass1.write(...)
}
Please let me know if this would be an acceptable design, and if so, why I can't have it running.
Thanks
Best,
Val