I know that port is used to call a function(task) and imp define the implementation of that function(task)
So a port to imp connection is made (for example driver sequencer communication)
Can anybody give me idea and example when we need to use export
In the most simple way, Port is the initiator of a request and Export is the responder to a request.
Port (square) connected with Export (circle) makes a TLM communication.
For detailed explanation with example please refer to UVM 1.2 User’s Guide, section 2.3.1.3 “Basic TLM Communication”.