Jump to content

Recommended Posts

`uvm_do_with(m_top_seq, {m_sub_seq.num_of_trans == 0;})

The above example results in a runtime null object failure for m_sub_seq

Is there a way to overcome this without copying all m_sub_seq random variables to m_top_seq ?

Share this post


Link to post
Share on other sites

hi,

 

I assume that m_sub_seq is a child of m_top_seq. if so the constructor of m_top_seq should allocate .m_sub_seq as well (or allocate it in pre_randomize()). this is because sv doesnt allocate objects during randomization in contrast to sn/e.

 

/uwe

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

×