In reply to n347:
Example:
virtual task main_phase(…);
starting_phase.raise_objection();
wait (env.scoreboard.act_number_of_responses == config.number_of_reads);
starting_phase.drop_objection();
endtask : main_phase
PS: there are several sources to get the number of reads from (scoreboard or configuration), scoreboard is basically the sink of all stimulus and response transactions