Jump to content

Recommended Posts

Hi,

 

Following is the sample code

 

class a_env extends uvm_env

....

endclass

 

class basic_test extends uvm_test

 

a_env a_env1;

a_env1 = a_env::type_id:create("a_env", this);

 

endclass

 

class b_env extends uvm_env

a_env a_env2; // only reference

 

...

endclass

 

class my_test extends basic_test

b_env b_env1;

 

 

virtual function void connect_phase( umv_phase phase)

  super.connect_phase(phase);

  b_env1.a_env2 = a_env1;

endfunction

..

endclass

 

 

I am getting NULL_OBJCT access error with the above code..  can anyone helpout?

 

Thanks,

Satya

Share this post


Link to post
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...