Get Type Name with Parameters?

Is it possible to printout the name of a type including the parameters that defined the type?

get_type_name() seems to print out the base class, even though I used `uvm_object_param_uitls()

In reply to raysalemi:

Not when you use the `uvm_object_param_util macros. See http://go.mentor.com/mcem for an alternative.

In reply to dave_59:

In reply to raysalemi:
Not when you use the `uvm_object_param_util macros. See http://go.mentor.com/mcem for an alternative.

Hmm…I didn’t see the answer there. Did I miss it?

In reply to raysalemi:

class B #(int w=1);
  static string name = $sformatf(“packet%0d”,w);
endclass

In reply to dave_59:

Aha. I get it.

But what if I’m using an enumeration as a type parameter.

In reply to raysalemi:
Use $typename