# Illegal sequential statement

**URL:** <https://verificationacademy.com/forums/t/illegal-sequential-statement/33932>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, VHDL\
**Created:** [January 16, 2018, 1:52pm UTC](https://verificationacademy.com/forums/t/illegal-sequential-statement/33932 "2018-01-16T13:52:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sbellock](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/f4b2a3/32.png) [@sbellock](https://verificationacademy.com/forums/u/sbellock)\
**Post date:** [January 16, 2018, 4:58pm UTC](https://verificationacademy.com/forums/t/illegal-sequential-statement/33932/2 "2018-01-16T16:58:48Z")

</div>

_In reply to [Rana3n](https://verificationacademy.com/forums/t/illegal-sequential-statement/33932):_

Hi Rana3n. You don’t use the when…else form inside a process. You can either get rid of the process, or use the if…elsif…else form inside the process. There are examples of both for a priority encoder if you Google it.

---

_[View the full topic](https://verificationacademy.com/forums/t/illegal-sequential-statement/33932)._
