Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > FX2LP Slave FIFO full and empty change simultaneously

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



FX2LP Slave FIFO full and empty change simultaneously
Moderator:
RSKV

Post Reply
Follow this topic



FX2LP Slave FIFO full and empty change simultaneously

Dan M posted on 26 Jan 2012 5:49 PM PST
Member
9 Forum Posts

i'm using the slave FIFO interface for bulk auto-in transfers directly from an FPGA to the host, in asynchronous mode.

 

Right after the FULL flag asserts, the FULL flag deasserts and the EMPTY flag asserts simultaneously.

 

I have attached a screen shot of the waveforms.

 

Any ideas of what could cause this?




Re: FX2LP Slave FIFO full and empty change simultaneously

Gayathri posted on 27 Jan 2012 12:06 AM PST
Cypress Employee
428 Forum Posts

 Hello Dan,

 

Flag pins (A,B,C,D) reflect the status of the Flags (EF, FF and PF) when data is in the peripheral domain (fifo). So as soon as the data comes into IN endpoint fro FPGA and is full, full flag (FLAG B in your case) gets asserted. Since it is in Auto mode, the data gets auto committed to the USB domain. Thus once the full data gets comitted t0 the USB domain, there is no more data in peripheral domain. Thus the full fllag (FLAG B) deasserts, and empty flag (FLAG C) asserts.

Regards,

Gayathri



Re: FX2LP Slave FIFO full and empty change simultaneously

Dan M posted on 27 Jan 2012 10:07 AM PST
Member
9 Forum Posts

Okay, that makes sense.

 

My driver guy seemed sure that he wasn't getting any data.

 

I'll put my USB analyzer to work...



Re: FX2LP Slave FIFO full and empty change simultaneously

Dan M posted on 27 Jan 2012 04:01 PM PST
Member
9 Forum Posts

On the USB side there is nothing but NAK.

 

Where could the data be going?



Re: FX2LP Slave FIFO full and empty change simultaneously

jmwood posted on 27 Jan 2012 04:46 PM PST
Member
4 Forum Posts

Turned out this was because we were reusing the fifoadr1 pin as gpio output PORTA.5 before using it in the slave fifo interface. Cypress was driving logic low while our fpga was driving logic high, resulting in .08V on the line. I set PORTA.5 to input before starting the slave fifo interface, and our fpga was able to drive fifoadr1 to 3.3V

although an unlikely scenario, it would be nice if this was errata'd.

Thanks!



Re: FX2LP Slave FIFO full and empty change simultaneously

Gayathri posted on 29 Jan 2012 09:59 PM PST
Cypress Employee
428 Forum Posts

 Hi,

 

Thank you for posting the issue here. We will look into it.

 

Regards,

Gayathri






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20