1.便于在任何component 的main_phase 中都能raise_objection,必须通过 phase.raise_objection完成。

2.build_phase 等function phase也可以提起和撤销objection:

UVM:5.2.2 参数phase 的必要性_99


不报错,但一般使用在main_phase 等task phase,而不是 function phase。