
56 www.xilinx.com 7 Series FPGAs Memory Resources
UG473 (v1.11) November 12, 2014
Chapter 2: Built-in FIFO Support
Similarly, the Almost Empty flag can be used to stop reading. However, this would make
it impossible to read the very last entries remaining in the FIFO. You can ignore the Almost
Empty signal and continue to read until EMPTY is asserted.
The Almost Full and Almost Empty offsets can also be used in unstoppable block transfer
applications to signal that a complete block of data can be written or read. When setting the
offset ranges in the design tools, use hexadecimal notation.
An additional ALMOST_FULL_OFFSET constraint value is necessary when the RDCLK
frequency is different from the WRCLK frequency. When the WRCLK and RDCLK
frequency have a wide disparity, then a different ALMOST_FULL_OFFSET applies that
supersedes the maximum values in Table 2-8. In this case, the calculation in Equation 2-1 is
used to determine the maximum ALMOST_FULL_OFFSET.
Equation 2-1
For example, using a 4K deep FIFO (FIFO36x9); if WRCLK is 500 MHz and RDCLK is
8MHz,
the maximum ALMOST_FULL_OFFSET = 4096 – (roundup(4 x 500/8)) + 6 = 3840
.
FIFO VHDL and Verilog Templates
VHDL and Verilog templates are available in the 7 Series FPGAs Libraries Guide.
FIFO Timing Models and Parameters
Table 2-9 lists the FIFO parameters.
Maximum ALMOST_FULL_OFFSET FIFO_DEPTH roundup 4
WRCLK_FREQ
RDCLK_FREQ
-----------------------------------------
×
6+–=
Table 2-9: FIFO Timing Parameters
Parameter Function
Control
Signal
Description
Setup and Hold Relative to Clock (CLK)
T
RXCK
= Setup time (before clock edge)
T
RCKX
= Hold time (after clock edge)
T
RDCK_DI
/
T
RCKD_DI
(1)
Data inputs DI Time before/after WRCLK that DI must be stable.
T
RCCK_RDEN
/
T
RCKC_RDEN
Read enable RDEN Time before/after RDCLK that RDEN must be stable.
T
RCCK_WREN
/
T
RCKC_WREN
Write enable WREN Time before/after WRCLK that WREN must be stable.
T
RREC_RST
/
T
RREM_RST
Asynchronous reset RST Time before/after RDCLK/WRCLK the RST must be
deasserted.
T
RCCK_REGCE
/
T
RCKC_REGCE
Optional output
register enable
REGCE Time before/after RDCLK that the REGCE signal
must be stable. Applies only to the synchronous FIFO
when DO_REG = 1.
T
RCCK_RSTREG
/
T
RCKC_RSTREG
Synchronous set or
reset
RSTREG Time before/after RDCLK that the set/reset signal
must be stable at the RSTREG pin. Applies only to the
synchronous FIFO when DO_REG = 1.
Comentarios a estos manuales