# Unique and priority case

**URL:** <https://verificationacademy.com/forums/t/unique-and-priority-case/31816>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, priority-case\
**Created:** [May 13, 2016, 9:20am UTC](https://verificationacademy.com/forums/t/unique-and-priority-case/31816 "2016-05-13T09:20:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DigvijaysinhSuryavanshi](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@DigvijaysinhSuryavanshi](https://verificationacademy.com/forums/u/DigvijaysinhSuryavanshi)\
**Post date:** [May 13, 2016, 9:59am UTC](https://verificationacademy.com/forums/t/unique-and-priority-case/31816/2 "2016-05-13T09:59:16Z")

</div>

_In reply to [suresh M](https://verificationacademy.com/forums/t/unique-and-priority-case/31816):_

Hi Suresh,

Here casez\_option 3’b00? can match value of either 3’b000 or 3’b001.  
While casez\_option 3’b0?? can match values 3’b000,3’b001,3’b010,3’b011.

While priority keyword gives priority to first match.

i.e values 'b000 and 'b001 can be matched from either 3’b00? or 3’b0?? but because of priority first matched case\_statement gets executed.

Values 4,5,6,7 are not getting satisfied with any of the provided casez\_options so warning is generated !!

---

_[View the full topic](https://verificationacademy.com/forums/t/unique-and-priority-case/31816)._
