Ahmad Fahad Posted June 10, 2021 Report Share Posted June 10, 2021 Hi I have a base class in UVM from with two extended classes: A |------\ | | 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? Quote Link to comment Share on other sites More sharing options...
dave_59 Posted June 10, 2021 Report Share Posted June 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.