Module: fifo

@brief A simple synchronous FIFO. Buffers data words between write and read clock domains that share a single clock (synchronous FIFO — no CDC handling).

Parameters

NameTypeDefaultDescription
DEPTHint16Number of entries in the FIFO
WIDTHint8Bit width of each data word

Ports

NameDirectionTypeDescription
clkinputlogicClock
rst_ninputlogicActive-low async reset
wr_eninputlogicWrite enable
wr_datainputlogic [WIDTH-1:0]Data to write
fulloutputlogicFIFO full flag
rd_eninputlogicRead enable
rd_dataoutputlogic [WIDTH-1:0]Data read out
emptyoutputlogicFIFO empty flag