# Interview question on constraint

**URL:** <https://verificationacademy.com/forums/t/interview-question-on-constraint/39755>\
**Category:** SystemVerilog\
**Tags:** uvm-sv-constraints, SystemVerilog, constraints\
**Created:** [October 27, 2021, 5:58pm UTC](https://verificationacademy.com/forums/t/interview-question-on-constraint/39755 "2021-10-27T17:58:19Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [June 15, 2022, 7:43am UTC](https://verificationacademy.com/forums/t/interview-question-on-constraint/39755/17 "2022-06-15T07:43:41Z")

</div>

_In reply to [Alokpati](https://verificationacademy.com/forums/t/interview-question-on-constraint/39755/16):_

**Shouldn’t there be an additional constraint to ensure d’s value is within arr ?**

```verilog

constraint INSIDE { d inside { arr } ; } 

```

---

_[View the full topic](https://verificationacademy.com/forums/t/interview-question-on-constraint/39755)._
