Jump to content

How to access the instance ID of a class from a base_class, whose child class is instantiated inside.


Recommended Posts

I have a class env_top, inside that I have env[0], env[1],env[2] instantiated. Inside each env, I have sub_envA, sub_envB,sub_envC and the sub_env's are extended from a sub_env_base. Now, how can I identify from my sub_env_base, that I am under env[0] or [1] or [2]?. The sub_env_base and env_top are extended from same top, say my_ovm_env_top.

I need this info inside the sub_env_base, to get the VIFs from the corresponding env instance - env[0] / env[1]/ env[2].

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...