Cypress Perform

Home > Support & Community
support.cypress.com     Bookmark and Share
Support & Community

Knowledge Base Article



Writing at the Full Boundary

Last Updated: 06/17/2011

- What happens if FIFO is continuously write into when Full Flag is asserted? - My system is set up to continuously write until the FIFO is full. Once it is full, I begin to read out the data. However, it seems like I lose some of the data being written into the FIFO when I do so. RCLK and WCLK are the same. What is wrong?

When the Full Flag is asserted, all write operations are ignored. If RCLK and WCLK are tied to the same clock and the reading port is waiting for the FIFO to be full before it begins to read, you will lose two words on the writing side due to how Full Flag is designed. Remember that Full Flag is synchronized to the WCLK. When you write the last word into the FIFO, tWFF after that clock edge, /FF is asserted. On the next clock cycle, the write operation is ignored. If at the same time, the assertion of /FF triggers the other port to begin reading, that is okay. The read operation will occur, but you will lose one write operation due to the Full Flag being asserted. However, you will actually lose another write cycle due to the violation of tSKEW1. Since WCLK and RCLk are tied together, the FIFO will not de-assert the Full Flag until tWFF after another clock cycle passes. Therefore, if you are continuously writing into the FIFO at every clock edge, you will lose two words in this setup.

 


Related Categories: FIFOs


Provide feedback on this article

Did this article help you solve your problem?

Yes

No

Maybe

Additional comments:

To protect your privacy, do not include contact information in your feedback.

Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20
Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20