Why uvm_root class in UVM library is defined as singleton class?
Why can’t we use static in place of singleton?
What is the difference between static class and singleton class?
In reply to Sagar Shah:
There are no static classes in SystemVerilog. All class objects are constructed dynamically at runtime. You can have static class variables. The singleton pattern ensures that only one class object of the type uvm_root ever gets constructed.
In reply to dave_59:
Thanks Dave.