In reply to dave_59:
Thanks for reply.
1] Actually when we create an analysis port
analysis_port = new("analysis_port",this),
we pass "this" as the second argument. "this" needs the current instance to be a component. It throws error when the current instance is object.
2] If we don't pass "this" argument, then uvm error pop ups saying 2nd argument is missing (Where in it needs the current instance).