TLM write function will support to 2 arguments and single parameters?

Hi Every one,
standard says that the write function of uvm_analysis_imp TLM port, as follows
function void write(trans t);

endfunction

Can override to ::

function void write(trans t,packet P);

endfunction

Is there any way to achive this? please let me know.

Thanks
kbkdec15

No, you can;t change the prototype of a virtual method.

You can either extend your transaction to contain a handle to a packet, or create two separate analysis ports.

In reply to dave_59:

Thank you dave :)