Chargement…
Chargement…
The FIFO controller manages a circular buffer of depth G_FIFO_DEPTH. A write advances the pointer when the FIFO is not full, and a read advances the pointer when it is not empty.
Outputs expose empty/full status, read and write pointers, and the occupancy level.
Reset is synchronous and active-high.
G_FIFO_PTR_WIDTH: integer - Pointer widthG_FIFO_DEPTH: integer - FIFO depth| Port | Direction | Width | Description |
|---|---|---|---|
i_clk | Input | 1 bit | System clock |
i_rst | Input | 1 bit | Synchronous reset |
i_fifo_we | Input | 1 bit | Write Enable |
o_fifo_full | Output | 1 bit | FIFO full |
o_fifo_ptr_wr | Output | G_FIFO_PTR_WIDTH | Write pointer |
i_fifo_re | Input | 1 bit | Read Enable |
o_fifo_empty | Output | 1 bit | FIFO empty |
o_fifo_ptr_rd | Output | G_FIFO_PTR_WIDTH | Read pointer |
o_fifo_level | Output | G_FIFO_PTR_WIDTH+1 | Fill level |