FIFO, queue, stack "thread-safety"

Hi All,

I’ve been looking at the general data structures (fifo, queue, stack) provided in uvvm_vvc_framework/src. I’ve been wondering if they would work for inter-process communication in a testbench.

Do I need to enforce exclusive access during add/get operations for each process, or do they already handle this internally?


The data queue package and generic queue package are protected types, meaning they are guaranteed exclusive and atomic access to the queue data.
The data fifo package is constructed as a memory buffer and will require access synchronization if multiple processes are to read/write to the same memory buffer.

Best regards,

1 Like