What is the use of this command uvm_top.print_topology();and factory.print();

uvm_top.print_topology();
      factory.print();

In reply to Nijanthan:

uvm_top.print_topology(); -

Print topology is used to print the entire TB hierarchical structure.It is called in the end_of_elaboration_phase() after the entire TB components are built.

factory.print();

factory creates the TB components and transaction objects and we can override the original type with a new type in the build_phase() before creating them.
If we override then factory.print will give u information about what overrides what.

1 Like

In reply to georgean:

Thank you for giving information