In reply to Adarsh Santhosh:
Unless get a later version, you’ll have to search for a DPI package that does this for you, or write the code yourself. The UVN package has this, and even if you do not have a UVM testbench, you can still import the package and use the routines there.