Datacount

The FIFO core includes datacount signal as output. Synchronous FIFO enables datacount_o if asymmetric width ratio = 1:1 while asynchronous FIFO or synchronous FIFO with asymmetric width ratio other than 1:1 enables both wr_datacount_o and rd_datacount_o.

The datacount is zero when the FIFO is in empty and full state. You must ensure that the width of datacount is log2(DEPTH) to get the correct value.

Note: Always refer to the empty_o and full_o signals when reading or writing FIFO.