In reply to dave_59:
Thanks for the response.
Actually, I have tried to create macro to covert integral type(instance path) into string and somehow i achieved it. Please see the snippet of the code.
`define STRINGIFY(x) $sformatf("%0s", `"x`")
`define DO_FORCE(HPATH, val)\
force HPATH = ``val;\
hpath = `STRINGIFY(HPATH);\
$display("%0s", hpath); \
$error("ABCD :: %s path not found", hpath);\
Is this approach is okay to use? can you feel any issue with this? Please suggest.
Please note that, define SV/UVM is defined based on environment type. (Eg, +define+SV or +define+UVM). Here, i want to make common support, which can be use by SV or UVM environment.
Thanks and Regards,