# How to constrain 2 dynamic arrays to related to each other?

**URL:** <https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, constraint-array\
**Created:** [August 9, 2018, 9:51pm UTC](https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841 "2018-08-09T21:51:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mlsxdx](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@mlsxdx](https://verificationacademy.com/forums/u/mlsxdx)\
**Post date:** [August 9, 2018, 11:53pm UTC](https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841/3 "2018-08-09T23:53:32Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841/2):_

> _In reply to [mlsxdx](https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841/2):_  
> Some questions:  
> Are the number of names in c\_typ\_e and e\_typ\_e fixed at 2 and 4 respectively?  
> Is arr\_sz constrained to the product of this numbers, 2\*4 = 8?  
> If that’s not the case, then you need to express your #3 requirement better.

Not fixed, mostly it will be 8_n, but some cases, it could be 2_n(n\>0)

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-constrain-2-dynamic-arrays-to-related-to-each-other/34841)._
