# Cross coverage with ignore\_bins that consists of autobins

**URL:** <https://verificationacademy.com/forums/t/cross-coverage-with-ignore-bins-that-consists-of-autobins/29188>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, autobins, cross-coverage\
**Created:** [February 21, 2014, 10:01am UTC](https://verificationacademy.com/forums/t/cross-coverage-with-ignore-bins-that-consists-of-autobins/29188 "2014-02-21T10:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoong\_Han](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/22d042/32.png) [@Hoong\_Han](https://verificationacademy.com/forums/u/Hoong_Han)\
**Post date:** [February 21, 2014, 10:01am UTC](https://verificationacademy.com/forums/t/cross-coverage-with-ignore-bins-that-consists-of-autobins/29188/1 "2014-02-21T10:01:22Z")

</div>

Hi,

Does it work if I ignore some portions of the cross coverage that consists of coverpoint that has autobins?  
Original example (work fine):

a\_cp: coverpoint a { a\_bin = {[1:10]}; }  
b\_cp: coverpoint b { b\_bin[5] = {[11:15]}; }  
c\_cp: coverpoint c { lo = {16}; med = {17}; hi = {18}; }  
abc: cross a, b, c {  
ignore\_bins a0\_b1\_clo = (binsof(a) intersect {1}) && (binsof(b) intersect {12}) && binsof(c.lo); }

Once i change the last line to this:  
ignore\_bins a0\_b1\_clo = binsof(a.a\_bin[0]) && binsof(b.b\_bin[1]) && binsof(c.lo); }  
Simulator flags error.

My I know why? The autobins cannot be represented in binsof()?

Thank you.

---

<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:** [February 21, 2014, 4:08pm UTC](https://verificationacademy.com/forums/t/cross-coverage-with-ignore-bins-that-consists-of-autobins/29188/2 "2014-02-21T16:08:05Z")

</div>

You are not allowed to access bins by an index because the index numbering is not defined by the standard. You can only see it in reports. Also, the setting of auto\_bin\_max will effect which values are part of a bin element. Using (binsof(a) intersect {1}) guarantees you only cross the bin associated with the value 1. The tool may have named the first bin with the index 1, not 0.

---

<div class="post-metadata">

**Author:** ![Hoong\_Han](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/22d042/32.png) [@Hoong\_Han](https://verificationacademy.com/forums/u/Hoong_Han)\
**Post date:** [February 22, 2014, 9:00am UTC](https://verificationacademy.com/forums/t/cross-coverage-with-ignore-bins-that-consists-of-autobins/29188/3 "2014-02-22T09:00:36Z")

</div>

Got it, thank you Dave!
