How to access a DUT signal from a UVM test case class?

In reply to dave_59:

Hi Dave
I wanted to access a variable in a uvm_component from uvm_sequence and this is how i accomplished it.
below is the background of my problem.
I have a cover_group as a separate component in the environment. it gets the transactions from the uvm_monitor. Then i want to run the sequence till i get a particular coverage value say >90%.

I derived a class coverage_obj from uvm_object and have a static variable coverage_value in it.
In cover_group, i created a coverage_obj and the static variable coverage_value will be updated each time covergroup.sample() is called using get_coverage function.

Then the sequence also have coverage_obj instantiated.

Then in the sequence i check for the coverage_value.since its a static variable,both uvm_component and uvm_sequence sees the same variable.
This way i was able to access the variable in a uvm_component from uvm_sequence.

Thanks,
Maya