Jump to content

UVM randomise specific extended class only not other classes


Recommended Posts

Hi I have a base class in UVM from with two extended classes: 

|------\

|          |

B.       C

I have two member variables in A, one of it is derived in B and one of it is derived in C. I want to randomise only the member variables in B, without randomising member variable in C. Is it possible to do that using UVM?

Link to comment
Share on other sites

It is not possible to have a class object with both a member variable from B and member variable from C simultaneously; it is one or the other. So you can never randomize an object with both member variables. 

Perhaps you can show some example code of what you are thinking. 

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...