Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

Analysis port that in dynamic array

$
0
0

Hi guys,

 

I need to create a dynamic array for the analysis port in scoreboard, the reason I use dynamic array is multiple identical instances are created during run time.

 

The implementation of the scoreboard will be:

 

uvm_analysis_imp_data #(data_trans,scoreboard)  received_data[];

 

In the build phase I will first allocate space for dynamic array:

received_data=new[some_value];

then make following call inside a loop:

received_data[i]=new(".....");

 

alright, compile pass and do nothing test pass.

 

here comes my question:

if I use void write_data(data_trans data); function to process the received data.

HOW can i distinguish that from which ap port the data is received?

assuming I cant tell from the received package.

 

 


Viewing all articles
Browse latest Browse all 756

Trending Articles