Thanks Sraman,
I already see this documents, I had program my code with different way. I hadn’t put a class for every module i do it like this :
decoder.h
SC_MODULE (decoder)
{sc_port<read_flit_if<int> > in;
sc_port<write_flit_if<int> > out;
void(deoding);
SC_CTOR(decoding)
{
SC_THREAD(decoding);
}
};
decoder.cpp
void decoder::decoding()
{................
................
}
It works but i want to know if it is a correct way or not with TLM1.0?
I want to know too, does modules communicate together just by sc_channel?
Thanks for your help.