Query on Transport port

Hi,

Please help me out on transport port. I have something like

uvm_blocking_transport_port#(txn,txn) put_port;

txn is the transaction type. I have a question, the second argument should be always same as the txn type(first argument). Whenever I call this transport function, the control goes to imp port and returns back if and only if the return type(second arguiment) is assigned. Is this notion correct?

In reply to Anudeep J:

Please show some code. Please elaborate on where is the exact error.

One guess I would like to make is that your transport_imp is a single function, and when you call that function with object of first argument and handle (null) in second argument, then the code related to second argument might be causing null object access error.

Still focusing some code might be more useful.