# Coverage increment

**URL:** <https://verificationacademy.com/forums/t/coverage-increment/40216>\
**Category:** Coverage\
**Tags:** Coverage\
**Created:** [March 30, 2022, 4:58am UTC](https://verificationacademy.com/forums/t/coverage-increment/40216 "2022-03-30T04:58:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swetha\_ch](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Swetha\_ch](https://verificationacademy.com/forums/u/Swetha_ch)\
**Post date:** [March 30, 2022, 4:58am UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/1 "2022-03-30T04:58:11Z")

</div>

Hi

How to make coverage 100% by minimal regressions either by increasing seed value or any other method

---

<div class="post-metadata">

**Author:** ![Swetha\_ch](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Swetha\_ch](https://verificationacademy.com/forums/u/Swetha_ch)\
**Post date:** [March 30, 2022, 6:50am UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/2 "2022-03-30T06:50:50Z")

</div>

_In reply to [Swetha\_ch](https://verificationacademy.com/forums/t/coverage-increment/40216):_

> Hi  
> How to make coverage 100% by minimal regressions either by increasing seed value or any other method

or there is any possibility to change stimulus

---

<div class="post-metadata">

**Author:** ![graeme\_jessiman](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/graeme_jessiman/32/1201_2.png) [@graeme\_jessiman](https://verificationacademy.com/forums/u/graeme_jessiman)\
**Post date:** [March 30, 2022, 2:15pm UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/3 "2022-03-30T14:15:20Z")

</div>

You can examine the current coverage in your simulation 9using the get\_coverage method) and when it reaches 100% then just issue $finish

e.g.

```
   if (seq_coverage.seq_2_seq.get_coverage()==100.0)
   begin    
       $write("Sequence coverage = %6.2f, ", seq_coverage.seq_2_seq.get_coverage());
       $display("Total coverage = %6.2f", seq_coverage.get_coverage());
       $finish();
   end

```

---

<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:** [March 30, 2022, 6:00pm UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/4 "2022-03-30T18:00:20Z")

</div>

_In reply to [Swetha\_ch](https://verificationacademy.com/forums/t/coverage-increment/40216/3):_

Achieving 100% coverage is the “[holy grail](https://www.dictionary.com/e/holy-grail/)” of verification. Achieving 100% coverage is not only hard, but confidence that you achieved 100% coverage means you are done is an even harder challenge.

Running the same tests multiple times with different seed values is the simplest approach that might increase your coverage. How effective that is depends on your design and the way you have architected the testbench. You need to look at the range random values produced your constraint to make sure they are as random as you expected them to be.

There is a lot of research going into machine-learning techniques to improve coverage by looking at which random variables have the most impact on coverage results, but there is nothing I would call production worthy yet. I would say we are still in the human learning stage of machine learning—trying different algorithms and seeing which ones lead to better results.

---

<div class="post-metadata">

**Author:** ![Swetha\_ch](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Swetha\_ch](https://verificationacademy.com/forums/u/Swetha_ch)\
**Post date:** [March 31, 2022, 4:33am UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/5 "2022-03-31T04:33:46Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/coverage-increment/40216/4):_  
Thank you for you suggestion

---

<div class="post-metadata">

**Author:** ![Swetha\_ch](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@Swetha\_ch](https://verificationacademy.com/forums/u/Swetha_ch)\
**Post date:** [March 31, 2022, 4:35am UTC](https://verificationacademy.com/forums/t/coverage-increment/40216/6 "2022-03-31T04:35:40Z")

</div>

_In reply to [graeme\_jessiman](https://verificationacademy.com/forums/t/coverage-increment/40216/5):_

Thank you , I’ll make sure to use of this code
