In reply to TamarB:
Please explain “dont work”. Does not compile? uvm_config_db returns true, but this.spy_if_inst is still null?
Where is this code?
if(spy_if_inst != null)begin
spy_if_inst.done = 1;
$display("done %b:",spy_if_inst.done);
@(posedge spy_if_inst.done)begin
$display("done %b:",spy_if_inst.done);