![Xilinx Virtex-5 FPGA ML561 User Manual Download Page 140](http://html.mh-extra.com/html/xilinx/virtex-5-fpga-ml561/virtex-5-fpga-ml561_user-manual_887106140.webp)
140
Virtex-5 FPGA User Guide
UG190 (v5.0) June 19, 2009
Chapter 4:
Block RAM
Data flow control is automatic; the user need not be concerned about the block RAM
addressing sequence, although WRCOUNT and RDCOUNT are also brought out, if
needed for special applications.
The user must, however, observe the FULL and EMPTY flags, and stop writing when
FULL is High, and stop reading when EMPTY is High. If these rules are violated, an active
WREN while FULL is High will activate the WRERR flag, and an active RDEN while
EMPTY is High will activate the RDERR flag. In either violation, the FIFO content will,
however, be preserved, and the address counters will stay valid.
Programmable ALMOSTFULL and ALMOSTEMPTY flags are brought out to give the user
an early warning when the FIFO is approaching its limits. Both these flag values can be set
by configuration to (almost) anywhere in the FIFO address range.
Two operating modes affect the reading of the first word after the FIFO is emptied:
•
In standard mode, the first word written into an empty FIFO will appear at DO after
the user has activated RDEN. The user must pull the data out of the FIFO.
•
In FWFT mode, the first word written into an empty FIFO will automatically appear
at DO without the user activating RDEN. The next RDEN will then pull the
subsequent data word onto DO.
•
Standard and FWFT mode differ only in the reading of the first word entry after the
FIFO is empty.
Use the EN_SYN = FALSE setting in the following cases:
•
when the clocks are asynchronous
•
when the frequencies of the two clocks are the same but the phase is different
•
when one frequency is a multiple of the other.
Synchronous FIFO
Virtex-4 FPGA designs used the same FIFO logic for multirate and synchronous FIFOs,
thus flag latency in synchronous FIFOs can vary. By setting the EN_SYN attribute to TRUE
when using Virtex-5 FPGA synchronous FIFOs, any clock cycle latency when asserting or
deasserting flags is eliminated.
First-word fall-through (FWFT) mode is only supported in the multirate FIFO
(EN_SYN = FALSE).
shows the FIFO capacity in the two modes.
Summary of Contents for Virtex-5 FPGA ML561
Page 1: ...Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 ...
Page 8: ...Virtex 5 FPGA User Guide www xilinx com UG190 v5 0 June 19 2009 ...
Page 20: ...20 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 ...
Page 24: ...24 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Preface About This Guide ...
Page 172: ...172 www xilinx com Virtex 5 FPGA User Guide UG190 v5 0 June 19 2009 Chapter 4 Block RAM ...