Non-blocking write and read methods are also provided. These allow execution to continue even when a read is attempted on an empty stream or a write to a full stream.
These methods return a Boolean value indicating the status of the access (
true if successful,
false otherwise). Additional methods are included for testing the status of an
ap_fifoprotocol. More specifically, the AXI-Stream standard and the Xilinx
ap_hsIO protocol do not support non-blocking accesses.
During C simulation, streams have an infinite size. It is therefore not possible to validate with C simulation if the stream is full. These methods can be verified only during RTL simulation when the FIFO sizes are defined (either the default size of 1, or an arbitrary size defined with the STREAM directive).