Hi All,
I am a novice in systemC. I am having some doubts in using SC_METHOD().
I am building a network simulator in systemC. And from each node there are about four channels. I want the four channels to work simultaneously. The four channels get data from a common buffer in receiver and then transmit.
So i declared a SC_Module and declared 4 SC_METHOD processes in it corresponding to each channel.
SC_MODULE(NoximRouter)
{
SC_CTOR(NoximRouter) {
//Recieving process
SC_METHOD(rxProcess_local);
sensitive << reset;
sensitive << clock.pos();
////Transmission processes
SC_METHOD(txProcess_mode4);
sensitive << reset;
sensitive << clock.pos();
SC_METHOD(txProcess_mode1);
sensitive << reset;
sensitive << clock.pos();
SC_METHOD(txProcess_mode2);
sensitive << reset;
sensitive << clock.pos();
SC_METHOD(txProcess_mode3);
sensitive << reset;
sensitive << clock.pos();
}
};
But when i try printing sth inside all the methods... I can see for a given simulation time only the receiver method and one of the txprocess method is running....i want everythimng to run parallely...
'kindly help me out.