Calculate the number of bytes from master to slave

Hi ,

I had one interview question:: there is multi master slave environment.
Let’s say M1 and M2 are master’s , S1 and S2 are slaves.
There are transactions like M1 to S1 and M2 to S2 , M1 to S2 so on.
And there is no VIP ( drivers/Sequencer) , have to write a monitor logic to find the number of bytes from M1 to S1 and the time taken.

Could anyone help me on this?

Thanks

In reply to syed taahir ahmed:

You have to know the protocol of this interface. This gives you a starting point for counting the bits/bytes. And you have to count the clock cycles for each byte.