# \#arrays

**URL:** https://verificationacademy.com/forums/tag/arrays/6752.md

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

---

## [Constraint existence of value into an array](https://verificationacademy.com/forums/t/constraint-existence-of-value-into-an-array/39284)

<div class="topic-metadata">

**Author:** [@nimrodw](https://verificationacademy.com/forums/u/nimrodw)\
**Replies:** 6\
**Last updated:** [August 24, 2022, 5:18pm UTC](https://verificationacademy.com/forums/t/constraint-existence-of-value-into-an-array/39284 "2022-08-24T17:18:51Z")

</div>

Hi, I wish to randomize an unpacked array so that its values are 0, 1, 2, 3, with the values 1, 2, 3 appearing once each, and the rest of the entries are 0. Is this possible with inline constraints without a 2 step ran…

---

## [\[System verilog \] Accessing an array with range varying along with upper and lower limits and the width of the array](https://verificationacademy.com/forums/t/system-verilog-accessing-an-array-with-range-varying-along-with-upper-and-lower-limits-and-the-width-of-the-array/39780)

<div class="topic-metadata">

**Author:** [@rajivdesh](https://verificationacademy.com/forums/u/rajivdesh)\
**Replies:** 1\
**Last updated:** [November 5, 2021, 3:39pm UTC](https://verificationacademy.com/forums/t/system-verilog-accessing-an-array-with-range-varying-along-with-upper-and-lower-limits-and-the-width-of-the-array/39780 "2021-11-05T15:39:35Z")

</div>

Hi Want to access the array with different width sizes along with different upper and lower limits . The Sample code is as follows (Ignore the begin/end syntax ) foreach(fields\[i\]) begin if(fields\[i\].get\_name…

---

## [Can shuffle() function can shuffle multidimensional array?](https://verificationacademy.com/forums/t/can-shuffle-function-can-shuffle-multidimensional-array/35614)

<div class="topic-metadata">

**Author:** [@Hamimul](https://verificationacademy.com/forums/u/Hamimul)\
**Replies:** 1\
**Last updated:** [January 15, 2019, 4:12pm UTC](https://verificationacademy.com/forums/t/can-shuffle-function-can-shuffle-multidimensional-array/35614 "2019-01-15T16:12:21Z")

</div>

Can we shuffle 2d Array shuffle shuffle() ? Which data type it supports ? Can it shuffle araay of handles ?

---

## [Multidimensional arrays](https://verificationacademy.com/forums/t/multidimensional-arrays/35509)

<div class="topic-metadata">

**Author:** [@raja7052](https://verificationacademy.com/forums/u/raja7052)\
**Replies:** 3\
**Last updated:** [January 4, 2019, 4:15am UTC](https://verificationacademy.com/forums/t/multidimensional-arrays/35509 "2019-01-04T04:15:09Z")

</div>

I am trying to understand multidimensional arrays such as this reg \[7:0\]\[3:0\] array\[2\]\[2\] what does reg \[7:0\]\[3:0\] mean? how do I access elements in the array, does this work array\[0\]\[0\] = '{8’h4,4’h2};array\[0\]\[1\] = '…
