How to identify which master has initiated the transaction in UVM TB

Hello

I have a multi master and multi slave environmnet . In testcases there are two sequencers that are set one for master_0 and master_1.

How do you identify which master has sent the transaction and slave responded in a scoreboard while comparing ?

In reply to verific_engi:

We don’t know anything about your transactions. You need to tell us why it matters.

Sometime you can encode serial numbers in your transactions to map transactions.

In reply to dave_59:

The transactions here are of AXI and master 1 or master 0 use these transactions . In test case master is decided on type of seqr started before starting particular sequence.

I use
m_sys_config_seq.set_axi_seqr (n1_seqr); for master 1

  m_sys_config_seq.set_axi_seqr (n_seqr);  for master 0 

then in the test case
m_sys_config_seq.axi_write32('hC1000000, wr_data);

I can print which master using it from test case but what about to print the master curretly sending transaction

In reply to verific_engi:

You should use as a transaction member a master_id. Transactions coming from master0 get the id=0
and transactions from master1 get the id=1. Then you can identify which transaction comes from which master.

In reply to chr_sue:

Will try that if cadence transaction has that field as I have no permission to edit the class

In reply to verific_engi:

You can simply extend the base class.