How to pass a variable value from env class to transaction class without using config_db?

In reply to pankaj12saha:

I don’t think you can communicate runtime information with help of parameters.

You can use find() method available in uvm_root class. Use this method in transaction class to find instance of Env and access Env properties from there.


// Declare Env class handle in Transaction class
..
  uvm_component_h =  uvm_top.find("*.env_h");

  if($cast(env_h, uvm_component_h))
  ..