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

In reply to dave_59:

Thanks Dave! I think i have a methodology question.

Monitor will get the DUT output image and can send it to scoreboard, Should the check be in the scoreboard?

pixel_t image[9][9] → output of the DUT

But in the scoreboard how can it check for the number of pixels to be in the below constraints below:

  1. The number of off has to be less than 10%. (if (image.sum < 8) good, else error?)
  2. The 3x3 array’s internal to 9x9 image should not have all off pixels.
    (how to do this, may be grab the image3x3[7][7][3][3] and do the checks? )

reference model can generate the output image as well and scoreboard can compare them…