# \#soft-constraints-hard-constraints-constraints

**URL:** https://verificationacademy.com/forums/tag/soft-constraints-hard-constraints-constraints/5465.md

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

---

## [How to make soft constraint for dynamic array type](https://verificationacademy.com/forums/t/how-to-make-soft-constraint-for-dynamic-array-type/37981)

<div class="topic-metadata">

**Author:** [@pullaraobeerelli](https://verificationacademy.com/forums/u/pullaraobeerelli)\
**Replies:** 5\
**Last updated:** [August 21, 2020, 4:47pm UTC](https://verificationacademy.com/forums/t/how-to-make-soft-constraint-for-dynamic-array-type/37981 "2020-08-21T16:47:22Z")

</div>

i have made constraint for data\_in variable in seq\_item file.i need to overwrite my constraint so i have used “soft”. class abc\_pkt extends uvm\_sequence\_item; rand bit \[31:0\] data\_in\[$:15\]; rand e\_hburst m\_hburst; …

---

## [How to make a constraint with implication to be soft constraint](https://verificationacademy.com/forums/t/how-to-make-a-constraint-with-implication-to-be-soft-constraint/36193)

<div class="topic-metadata">

**Author:** [@peterjin](https://verificationacademy.com/forums/u/peterjin)\
**Replies:** 5\
**Last updated:** [October 1, 2019, 9:59am UTC](https://verificationacademy.com/forums/t/how-to-make-a-constraint-with-implication-to-be-soft-constraint/36193 "2019-10-01T09:59:03Z")

</div>

Hi All, I am trying to configure an implication constraint to be soft constraint, but i always got compilation error when i add the keyword soft. For example, the following code can execute without problem. class pac…

---

## [Soft constraints vs Hard constraints](https://verificationacademy.com/forums/t/soft-constraints-vs-hard-constraints/31329)

<div class="topic-metadata">

**Author:** [@Sharandiva](https://verificationacademy.com/forums/u/Sharandiva)\
**Replies:** 6\
**Last updated:** [December 24, 2015, 1:24pm UTC](https://verificationacademy.com/forums/t/soft-constraints-vs-hard-constraints/31329 "2015-12-24T13:24:51Z")

</div>

There is a config object with random variables that are constrained by soft and hard constraints. Two instances of this config object are created. Variables in one instance take soft constraint value but variables in the…
