Does uvm_top.find() have impact of simulation time?

In reply to Byreddynaresh:

Yes, except the component handle is returned by uvm_top.find(“*u_byreddy_env”)) and cast to abc, so there’s no reason to create another handle.

class xyz

  byreddy_env  abc;

  function soc_get_address();
    begin
       longint unsigned my_addr; 
       if(abc == null) 
         begin
            if( !$cast(abc,uvm_top.find("*u_byreddy_env")) ) 
             `uvm_fatal(...)
         end
       my_addr = abc.get_system_address();
    end
  endfunction 

endclass