In reply to chr_sue:
Assuming the transfer pkts are different , I have 2 options
(1) Use uvm_analysis_imp_dec macro and have 2 write functions in myscoreboard
(2) Have only 1 analysis_imp parameterized with base class of master_data && slave_data .
So now inside the single write() function using ::
if ( $cast( .. ) )
I can differentiate and have logic written accordingly .
Which one would you suggest ? Would there be performance implications as well ?
( uvm_analysis_imp_dec macro would define 2 separate classes with its own properties and all )