How to Get the Address of a varaible in SV?

In reply to 1117ashish:

Hi Ashish,

 Can you please provide a small working example. I tried using DPI, but it is not working. Please help me