PNG Generation in UVM/SV

Hi I want to give support like, RTL output from one of the interface will generate png. I am receiving data in monitor, Here I am planing to dump data to image png. As I know it it quite easy in C++ as language already have libpng library and related support. However I eager to know can we generate image file in SV/UVM environment from rows of hex data received from RTL.

In reply to electron:

Interesting attempt. How about sending the data (as 2-state int preferably) to C via DPI and use the libpng on C-side?

Srini
www.veriflabs.com