In reply to dave_59:
Thanks for your help.
It is really helpful to me. I can achieve what I want now.
By the way, the example given by that post can not work in VCS/IUS simulator either.
It can only work in questasim.
The error is the statement below:
localparam string PATH = $psprintf(“%m”);
typedef ovm_object_registery #(, PATH) …
PATH should not used in the context. Cause PATH is not know when anounce typedef.