Ojos Posted August 10, 2022 Report Share Posted August 10, 2022 I am working in a SystemC module that connects a set of sub-modules stored in a sc_vector< submodule > with sc_vectors of ports and signals. Since the size of the sc_vectors is a parameter (in this case initialized by a constructor parameter), it would be nice to have also a configurable set of processes. They can be static, i.e., configured and registered in the parent module constructor (therefore at elaboration time). I guess that the easiest solution is to put these processes in another sub-module, and just create a sc_vector of the new sub-module. However, I want to avoid the extra overhead of having extra sub-modules, with their port bindings, etc... What would be the best way of doing it? If I use the sc_spawn function, do I need to add the macro SC_INCLUDE_DYNAMIC_PROCESS even if the spawned processes by sc_spawn are not dynamic? Or it is better to use the SC_THREAD/SC_CTHREAD/SC_METHOD macro in a loop with the same class member function as argument in each iteration? Thanks, David. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.