Using get_type_name in an interface

In reply to puttasatish:

In reply to AL_verif:
Hi,
Get_type_name can be used with the objects of the classes that are registered with the factory. It won’t work with interfaces. If you want to print the complete hierarchical path, then, you can use %m.
You can find the below example for the usage of %m.

$display("in %m, @time t = %t, start signal is %0d", $time, start);

Hope this helps.
Putta Satish

I tried %m,
but I get the output “%m” himself :
[in %m] Failed …

what can be the reason that %m don’t print the module name ?