# \#coverpoint-sample

**URL:** https://verificationacademy.com/forums/tag/coverpoint-sample/6501.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [All Values of a coverpoint need to be hit at same time](https://verificationacademy.com/forums/t/all-values-of-a-coverpoint-need-to-be-hit-at-same-time/41046)

<div class="topic-metadata">

**Author:** [@Verif\_begin](https://verificationacademy.com/forums/u/Verif_begin)\
**Replies:** 6\
**Last updated:** [November 30, 2022, 6:40pm UTC](https://verificationacademy.com/forums/t/all-values-of-a-coverpoint-need-to-be-hit-at-same-time/41046 "2022-11-30T18:40:31Z")

</div>

Hi, I have a scenario where I have 3 opcodes and a 4 bit ID. How do I write a coverpoint for the scenario where I want to check for cases, Same Opcode with 16 ID’s Diff Opcode with 16 ID’s. So, in simple terms, I wan…

---

## [Understanding triggering cover groups using .sample()](https://verificationacademy.com/forums/t/understanding-triggering-cover-groups-using-sample/39109)

<div class="topic-metadata">

**Author:** [@aashishs2603](https://verificationacademy.com/forums/u/aashishs2603)\
**Replies:** 2\
**Last updated:** [May 23, 2021, 11:43pm UTC](https://verificationacademy.com/forums/t/understanding-triggering-cover-groups-using-sample/39109 "2021-05-23T23:43:17Z")

</div>

Hello I am looking at some code as below (only psedo code posted.) and curious how .sample() works for triggering cover group. covergroup A option.per\_instance=1; //some code here. bins etc endgroup covergroup B // …

---

## ["GHOST" sample() function inside uvm\_reg\_block.svh!](https://verificationacademy.com/forums/t/ghost-sample-function-inside-uvm-reg-block-svh/36805)

<div class="topic-metadata">

**Author:** [@KhanMDTahmid](https://verificationacademy.com/forums/u/KhanMDTahmid)\
**Replies:** 3\
**Last updated:** [November 19, 2019, 8:23am UTC](https://verificationacademy.com/forums/t/ghost-sample-function-inside-uvm-reg-block-svh/36805 "2019-11-19T08:23:59Z")

</div>

There is an empty sample function for functional coverage in uvm\_reg\_block.svh and uvm\_reg.svh which we overwrite in our testbench environment. Neither I had to call that function for hitting the coverage bins nor i coul…

---

## [Bit toggle functional coverage with iff condition](https://verificationacademy.com/forums/t/bit-toggle-functional-coverage-with-iff-condition/34560)

<div class="topic-metadata">

**Author:** [@Zamfir](https://verificationacademy.com/forums/u/Zamfir)\
**Replies:** 3\
**Last updated:** [June 14, 2018, 2:26pm UTC](https://verificationacademy.com/forums/t/bit-toggle-functional-coverage-with-iff-condition/34560 "2018-06-14T14:26:43Z")

</div>

Hi, I am trying to create a coverpoint which covers a value toggle but under a certain condition. Here’s my code: covergroup cg @(posedge clk); coverpoint data iff(valid == 1'b1) { bins clr\_to\_set = (1'b0 =\> …
