In reply to Jung Ik Moon:
It’s not possible to get rid of that warning because:
- The warning is the result of a static initialization inside the uvm_object_registry class. This occurs before you have a change to set any actions, overrides, extensions, or report catchers.
- The command line options do not work on messages outside the uvm_component hierarchy. See 0004435: Move command-line report methods outside of uvm_component - Accellera Mantis
It is still not clear to me why you need to compile the same register model in two different packages. Why are you not compiling it into a package once and importing it where needed?