I am trying to create a queue of class objects in scoreboard.
The purpose is to store the packets received from the monitor and check it later.
Is it a safe method to store the data in the queue?
In reply to bachan21:
This is one method. The UVM base class library provides you a better construct. This is the
uvm_tlm_analysis_fifo.
In reply to chr_sue:
Where should I create the analysis_fifo?
Is it inside scoreboard or between agent and scoreboard?
In reply to bachan21:
You need the data inside of the scoreboard. Make an object there.
In reply to chr_sue:
In terms of performance, which one is better?
Queue or tlm-analysis-fifo
In reply to bachan21:
There might not be a big difference. But the queue is unsafe, because you can delet it and change the order. The analysis fifo does not allow this. It is a real fifo.