How to implement Array of uvm_analysis_imp port

If multiple (array) components “A” are connected to a single component “B” using the TLM port, where components “B” implements an array of uvm_analysis_imp port. How would you define the “write” functions for each imp port in the array? Please provide an example.

In reply to Ankur1 Gupta:

https://verificationacademy.com/forums/uvm/how-declare-multiple-imp-port-write-methods-using-uvmanalysisimpdecl#reply-108057

https://verificationacademy.com/forums/uvm/array-uvmanalysisimp