Objection mechanism

Can i use objection mechanism in sequence instead of in test? both are same?

Unless you try do anything outside of the run_phase, an objection is an objection.

However ideally, you should not have to raise and lower objections in every sequence if the sequence block correctly. The is an unnecessary performance overhead in raising and lowering objections repeatedly.

See Objections | Verification Academy

In reply to dave_59:

I have another question about objection mechanism. Why should we check starting_phase != null in objection mechanism?