# Raise Objection Syntax

**URL:** <https://verificationacademy.com/forums/t/raise-objection-syntax/32723>\
**Category:** UVM\
**Tags:** objection-syntax, UVM, illegal-declaration, SystemVerilog-Syntax\
**Created:** [January 4, 2017, 11:29am UTC](https://verificationacademy.com/forums/t/raise-objection-syntax/32723 "2017-01-04T11:29:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![aishwaryah](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/5f8ce5/32.png) [@aishwaryah](https://verificationacademy.com/forums/u/aishwaryah)\
**Post date:** [January 6, 2017, 8:12am UTC](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/6 "2017-01-06T08:12:16Z")

</div>

_In reply to [enbiya.h](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/5):_

Hi,  
If you only requirement is to create the sequence after raising an objection, you can spilt the declaration and creation of the sequence.  
For eg.  
task dummy\_test::run\_phase(uvm\_phase phase);  
abc\_sequence abc; ==================================\> Sequence declared  
phase.raise\_objection (this, “dummy\_test”);  
abc = abc\_sequence::type\_id::create(“abc”); =========\> Sequence created  
abc.start(m\_env.m\_v\_sequencer.abc\_sequencer\_t);  
#100ns;  
phase.drop\_objection(this , “dummy\_test”);  
endtask : run\_phase

Hope this helps.

---

_[View the full topic](https://verificationacademy.com/forums/t/raise-objection-syntax/32723)._
