# How to write SV checker for verifying if a DUT produced right image

**URL:** <https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [July 12, 2020, 3:56pm UTC](https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832 "2020-07-12T15:56:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![n347](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/n/9de0a6/32.png) [@n347](https://verificationacademy.com/forums/u/n347)\
**Post date:** [July 12, 2020, 9:47pm UTC](https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832/5 "2020-07-12T21:47:14Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832/4):_

Thanks Ben!  
I looked at your paper , Do you think i can consider such assertions in my testbench?

> **[sva4scoreboarding.pdf](https://systemverilog.us/papers/sva4scoreboarding.pdf)**
>
> 167.29 KB

The model holds an image in a 25x25 matrix array.  
Each pixel in that image is an unsigned integer. The image is partitioned into 25 slices or  
quadrants, and the scoreboard needs to compute within a 5x5 slice the number of pixels  
greater than 3. The image is loaded when done\_image is true, and the slice to be selected  
is determined at a new ld signal. The done\_image occurs within 1 to 3 cycles after the ld  
signal.

How can i achieve this?  
_If you are talking about a randomly generated image, you can impose that image against a reference model that creates the expected results._

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832)._
