# 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:** 3

<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:** [July 12, 2020, 9:04pm UTC](https://verificationacademy.com/forums/t/how-to-write-sv-checker-for-verifying-if-a-dut-produced-right-image/37832/3 "2020-07-12T21:04:47Z")

</div>

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

If you already understand how to write the constraint expression, then you already know how to write the checker expression—they are both the same thing. You can even call randomize(null) which checks the constraints using the current values of all your variables.

---

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