In reply to usnath:
get_hdl_path returns only the last hierarchy Level and get_full_hdl_path returns the full hierarchy down to your registers. If this does not exist it doesn’t retrurn anything.
You Can check the correct path to oyur registers with the function has_hdl_path.