Ganesan R Posted May 15, 2018 Report Share Posted May 15, 2018 I understand that an array of sc_module objects cannot be created even in a vector as sc_ctor requires a char* argument. For example suppose that fifog is defined as sc_module object. Then sc_vector<fifog>fifog("fifogarray",4) will not create an array four of fifog object as fifogarray is not a unique name. My VS2012 throws a warning that object fifogarray already exists on subsequent loops and instead names the instances as fifogarray, fifogarray etc. Moreover if fifog contains sc_processe sc_method functions, how they can be invoked on each unique instances of object? Even if I ignore that VS2012 warning, will the sc_method operate on each object instance individually? Pl. help. Eager to go through your replies. Simple example will help as I am newbie both to C++ and SystemC. 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.