# \#constraint-dynamic

**URL:** https://verificationacademy.com/forums/tag/constraint-dynamic/8304.md

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

---

## [Constraint for square sub matrices in a bigger matrix](https://verificationacademy.com/forums/t/constraint-for-square-sub-matrices-in-a-bigger-matrix/42239)

<div class="topic-metadata">

**Author:** [@prachiparekh27](https://verificationacademy.com/forums/u/prachiparekh27)\
**Replies:** 2\
**Last updated:** [September 6, 2023, 6:25pm UTC](https://verificationacademy.com/forums/t/constraint-for-square-sub-matrices-in-a-bigger-matrix/42239 "2023-09-06T18:25:02Z")

</div>

I have a 9x9 matrix as follows M\[9\]\[9\] Each A,B,C etc below are sub square matrices of 3x3 so that its a total of 9x9 matrix. A B C M = D E F G H I I need to write a constraint for following con…

---

## [How to give constraint for a input in FSM state machine](https://verificationacademy.com/forums/t/how-to-give-constraint-for-a-input-in-fsm-state-machine/41851)

<div class="topic-metadata">

**Author:** [@Harsha\_vardhan](https://verificationacademy.com/forums/u/Harsha_vardhan)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 12:17pm UTC](https://verificationacademy.com/forums/t/how-to-give-constraint-for-a-input-in-fsm-state-machine/41851 "2023-06-20T12:17:08Z")

</div>

Hi, I have written verification test bench for a Mealy FSM 1011 sequence it is working fine but the output I am not able to get because 1011 sequence is not occurring once in an overall running of the test can anyone pl…

---

## [Generate NXN Matrix with following rules](https://verificationacademy.com/forums/t/generate-nxn-matrix-with-following-rules/41578)

<div class="topic-metadata">

**Author:** [@Bharat.manvani](https://verificationacademy.com/forums/u/Bharat.manvani)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 4:10pm UTC](https://verificationacademy.com/forums/t/generate-nxn-matrix-with-following-rules/41578 "2023-04-26T16:10:32Z")

</div>

Generate NXN Matrix must following rules sum of 1st raw is 0. sum of 1st column is 0. sum of diagonal is 0. //\* code constraint cons1 {foreach(dyn\[i,j\]) { (dyn\[0\]\[j\]) -\> …

---

## [Constraint for random dynamic value](https://verificationacademy.com/forums/t/constraint-for-random-dynamic-value/40683)

<div class="topic-metadata">

**Author:** [@uvmbee](https://verificationacademy.com/forums/u/uvmbee)\
**Replies:** 2\
**Last updated:** [July 26, 2022, 2:15pm UTC](https://verificationacademy.com/forums/t/constraint-for-random-dynamic-value/40683 "2022-07-26T14:15:42Z")

</div>

Hi, I want to make dynamic random value in constraint as below. Please help me. rand int busy\_bit\[\]; rand int count; // When I count busy\_bit\[\] = 1, the number of sum should be equal to count. // The expression coul…
