Different items for subscriber class

Hi All,

From monitor ,i am sending different item to write method.
like cov_ap.write(item1)
cov_ap.write(item2)


But in subscriber class write method is having only one item.
Each item is having different fields.
Now ,how to get info from all other items into subscriber…?

Thanks,
Nagendra.

In reply to gani:

Hi gani,

you would require 2 different subscribers…because subscriber is parameterized with item and both the item would have different write function in different subscriber…

Thanks

IF you want both item in one Scope then instead of uvm_subscriber extend it from uvm_component and keep two analysis import for each of item.
For reference look pg-153 of UVM Cookbook.