# 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:** 5

<div class="post-metadata">

**Author:** ![enbiya.h](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/a698b9/32.png) [@enbiya.h](https://verificationacademy.com/forums/u/enbiya.h)\
**Post date:** [January 5, 2017, 7:13am UTC](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/5 "2017-01-05T07:13:38Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/4):_

> _In reply to [enbiya.h](https://verificationacademy.com/forums/t/raise-objection-syntax/32723/4):_  
> That code snippit is not legal - within any procedural block of code, all declarations must precede any statements. If you can post a link to where you saw this, I can try to get it fixed,

Hi Dave,  
I saw it on the example _“Complete block level testbench example for a simple SPI DUT”_. Below is the download link for the example and the path for the code snippet.

Block Level Testbench - Complete block level testbench example for a simple SPI DUT.  
[Download link block level testbench example](https://verificationacademy.com/cookbook/download?file=/w/images/7/7c/Uvm_Tb_build_bl_tb.tgz)

…\tb\_build\block\_level\_tbs\spi\_tb\test\spi\_test.svh Line:50

---

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