I have a question about how to use the callback before_end_of_elaboration.
For example, I have a top module and a submodule. The submodule takes an input "a" and I would like to use this input to initialize an vector in its constructor.
sc_in<sc_uint<10> > a;
sc_vector<sc_signal<sc_uint<4> > > b;
sub_module_nm = new sub_module("sub_module_nm");
As you can see, I perforemed the port binding in the top module(which is what I usually do). But from my understanding, I can not access to input "a" unless I perform the port binding in the before_end_of_elaboration() callback of submodule. And my question is how to do the port binding in the submodule rather than at top level so I could perform some initialization after the port has been bound.