# How to create a coverage range bin using the set\_covergroup\_expression option?

**URL:** <https://verificationacademy.com/forums/t/how-to-create-a-coverage-range-bin-using-the-set-covergroup-expression-option/36293>\
**Category:** UVM\
**Tags:** UVM, UVM-Coverage\
**Created:** [July 14, 2019, 7:46am UTC](https://verificationacademy.com/forums/t/how-to-create-a-coverage-range-bin-using-the-set-covergroup-expression-option/36293 "2019-07-14T07:46:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [July 15, 2019, 6:10am UTC](https://verificationacademy.com/forums/t/how-to-create-a-coverage-range-bin-using-the-set-covergroup-expression-option/36293/2 "2019-07-15T06:10:10Z")

</div>

_In reply to [snognog](https://verificationacademy.com/forums/t/how-to-create-a-coverage-range-bin-using-the-set-covergroup-expression-option/36293):_  
Look here:  
int a;

covergroup …  
coverpoint a {  
bins r1 = {[120:127]};  
bins r2 = {[120, 128], [127:128]}:;  
bims r3 = {[120, 2_128], [128, 2_128]};  
…

}

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-create-a-coverage-range-bin-using-the-set-covergroup-expression-option/36293)._
