# Simulation closing as it hits illegal bin

**URL:** <https://verificationacademy.com/forums/t/simulation-closing-as-it-hits-illegal-bin/40291>\
**Category:** SystemVerilog\
**Tags:** Coverage-bins, SystemVerilog, Coverage, coverage-exclusion, systemverilog-coverage, illegal-bins\
**Created:** [April 19, 2022, 7:38pm UTC](https://verificationacademy.com/forums/t/simulation-closing-as-it-hits-illegal-bin/40291 "2022-04-19T19:38:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bachan21](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/bachan21/32/1208_2.png) [@bachan21](https://verificationacademy.com/forums/u/bachan21)\
**Post date:** [April 19, 2022, 7:38pm UTC](https://verificationacademy.com/forums/t/simulation-closing-as-it-hits-illegal-bin/40291/1 "2022-04-19T19:38:55Z")

</div>

I am trying to implement functional coverage on error signal from RAM  
The code :

```verilog
covergroup basic_functions_cg;
CVP_LOCAL_BIST_ERROR_DETECT: coverpoint pkt.local_err_detect_sync[0] {
      bins value0 = {0};
      illegal_bins value1 = {1}; 
    }
endgroup

```

But as soon as local\_err\_detect\_sync hit 1, the simulation end without executing remaining simulation

> Error-[FCIBH] Illegal bin hit  
> /home/scratch.bshyam\_methodology/shyam\_nvtools/qa/mbist/mbist\_logic/mbist\_uvm/mbist\_uvmtb/coverage\_collector.sv, 147  
> $unit, “cbc\_coverage::basic\_functions\_cg”  
> VERIFICATION ERROR (FUNCTIONAL COVERAGE) : At time 216000 ps, Illegal state  
> bin value1 of coverpoint CVP\_LOCAL\_BIST\_ERROR\_DETECT in covergroup  
> cbc\_coverage::basic\_functions\_cg got hit with value 0x1  
> Covergroup Instance: top.me.obj.basic\_functions\_cg  
> Design hierarchy: $unit

How to rectify this situation? My intention is to capture error bit separately in coverage.

---

<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 19, 2022, 8:29pm UTC](https://verificationacademy.com/forums/t/simulation-closing-as-it-hits-illegal-bin/40291/2 "2022-04-19T20:29:53Z")

</div>

_In reply to [bachan21](https://verificationacademy.com/forums/t/simulation-closing-as-it-hits-illegal-bin/40291):_

Hitting an illegal been means there is a problem with your testbench/coverage model. It was not meant to check functional behavior.

Stopping on an illegal bin hit might be a tool specific behavior. This Mentor/Siemens EDA sponsored public forum is not for discussing tool specific usage or issues. Please read your tool’s user manual or contact your tool vendor directly for support.
