Hi!
I'm using the method tlm_fifo::try_get in my source as follows:
Code:
data = new();
forever begin
@(posedge clk);
data_fifo.try_get(data);
some_var = data.m_value;
end
I supposed that the old data is used, in case that a new item is not available.
The OVM reference clearly states that "the output argument is not modified". However, in my case data is set to null, and I get a seg fault when accessing the member m_value. 
Currently I'm using can_get() as a workaround.
Any comments on this?
Regards,
Thomas
Bookmarks