# \#priority-case

**URL:** https://verificationacademy.com/forums/tag/priority-case/5664.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Help in finding better way to restructure the code](https://verificationacademy.com/forums/t/help-in-finding-better-way-to-restructure-the-code/39020)

<div class="topic-metadata">

**Author:** [@RahulkumarBudhwani](https://verificationacademy.com/forums/u/RahulkumarBudhwani)\
**Replies:** 3\
**Last updated:** [April 29, 2021, 12:40am UTC](https://verificationacademy.com/forums/t/help-in-finding-better-way-to-restructure-the-code/39020 "2021-04-29T00:40:12Z")

</div>

I have a logic where a semaphore waits for key only if a particular condition is not set and once I gather the key, I release after clocking block statement one cycle later. However, if a condition is set, therefore, it …

---

## [Unique and priority case](https://verificationacademy.com/forums/t/unique-and-priority-case/31816)

<div class="topic-metadata">

**Author:** [@suresh\_M1](https://verificationacademy.com/forums/u/suresh_M1)\
**Replies:** 3\
**Last updated:** [May 16, 2016, 5:55am UTC](https://verificationacademy.com/forums/t/unique-and-priority-case/31816 "2016-05-16T05:55:06Z")

</div>

module casee; initial begin for(int a = 0;a\<4;a++) priority casez(a) // values 4,5,6,7 cause a warning 3'b00?: $display("0 or 1"); 3'b0??: $display("2 or 3"); endcase end endmodule RESULTS: 0 or 1 0 or 1 …
