Skip to content

Instantly share code, notes, and snippets.

@dvtalk
Last active June 10, 2024 08:49
Show Gist options
  • Save dvtalk/0d1df6df3d7ba1d64b55e606476a1d2f to your computer and use it in GitHub Desktop.
Save dvtalk/0d1df6df3d7ba1d64b55e606476a1d2f to your computer and use it in GitHub Desktop.
Get the type name of the factory override object using the current object handle
class base_test extend uvm_test;
base_sequence m_seq;
//..
set_type_override_by_type(base_sequence::get_type(), aes_sequence::get_type());
//..
$display($psprintf("Sequence: %s", m_seq.get_type_name()));
// ...
endclass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment