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

In reply to cgales:

I fixed this…
Actually the issue was uvmgen script generates some ifdefs automatically which was skipping the code of interest(factory registration).
Chagned the ifdefs and it worked.
Thanks,
Suyog