sumit_tuwien

Traversing a custom object

3 posts in this topic

Hello All,

For a class

class mClass final
   :   public sc_core::sc_module
{


public :

   sc_core::sc_in < T >  thisInp ;

};

 

I can use sc_core::sc_find_object("AllesKlar") to do a hierarchy traversing and can find out thisInp.

How easy or how difficult to use sc_core::sc_find_object("AllesKlar") to find a custom defined class like as follows:

 

class allesGute ;

class mClass final
   :   public sc_core::sc_module
{


public :

   allesGute < T >  thisGute ;

};

 

How do I register my custom object with systemc kernel ?

 

Regards,

Sumit

Share this post


Link to post
Share on other sites

Hello @sumit_tuwien,

Is the allesGute template class derived from sc_object? If yes, then it will be straightforward to find object using sc_find_object.

While instantiating the allesGute object you would be providing the name (object name during construction), which will be registered with the SystemC kernel at the right hierarchical level.

Hope this helps.

Regards,

Ameya Vikram Singh

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now