Delaying the start of scoreboard

In reply to Suresh_R:

I do not understand what the benefit is to make the compare after all transactions have been executed. But currently you are retrieving each single transaction from the sb_fifo.
You have a wrong condition in your while loop.
Your objective is to store all transactions first before doing the compare. Just modify your code to reach this objective, i.e. count the number of the transactions you received from the monitor. And then do the compare for each transaction pair.
To be honest, it is not a good idea to do this because you are burning your computer resources and slowing down the simulation. Compairing on the fly as the transactions arrive is the real solution.