# CRV - item.index not working

**URL:** <https://verificationacademy.com/forums/t/crv-item-index-not-working/35980>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, system-verilog-constraints\
**Created:** [April 15, 2019, 1:56pm UTC](https://verificationacademy.com/forums/t/crv-item-index-not-working/35980 "2019-04-15T13:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [April 15, 2019, 6:52pm UTC](https://verificationacademy.com/forums/t/crv-item-index-not-working/35980/6 "2019-04-15T18:52:08Z")

</div>

_In reply to [CRVAddict](https://verificationacademy.com/forums/t/crv-item-index-not-working/35980/5):_  
Do a $display(fibo.sum with ( (item.index==5)?6:item)) after calling randomize()

---

_[View the full topic](https://verificationacademy.com/forums/t/crv-item-index-not-working/35980)._
