ERROR: 报错分析 phase.raise_objection(this)不能是phase.raise_objection(phase)

239 阅读1分钟
	task run_phase(uvm_phase phase);
    a_seq a_seq_h;
	  phase.raise_objection(this);
	  a_seq_h=new();
	  a_seq_h.start(this);	
		phase.drop_objection(this); //this ok  ; (phase) error
	endtask

phase.raise_objection(phase)会提示下边错误

报错

# UVM_ERROR @ 0: run [TEST_DONE_NOHIER] A non-hierarchical object, ‘common.run’ () was used in a call to uvm_test_done.raise_objection(). For this objection, a sequence or component is required.