Hi,
I was trying to map port from a outer module to an input port of inner module. The ports to be mapped in a certain way that a range of input port of outer module is to be mapped with the input port of the inner module. Example is given below.
inner module :
SC_MODULE(alu)
{
sc_in<sc_uint<8> > a_in;
sc_in<sc_uint<8> > b_in;
sc_in<sc_bv<2> > op;
sc_in<bool> en;
sc_out<sc_uint<8> > out_sig;
void calc_out();
SC_CTOR(alu){
cout<<"alu constructor"<<endl;
SC_METHOD( calc_out );
sensitiv