Cannot create a component as it is not registered with a factory

In reply to suyog:

Things to check if you are seeing this error:

  • Your test is registered with the factory using the `uvm_component_utils()
  • Your test is part of a test package and that package is imported in your testbench at the same level that run_test() is called.
  • Your +UVM_TESTNAME=my_testname argument on the simulation command line has ‘my_testname’ match exactly what is registered above.