Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > The SlaveFifoSync is missing some data,any problem?

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



The SlaveFifoSync is missing some data,any problem?
Moderator:
RSKV

Post Reply
Follow this topic



The SlaveFifoSync is missing some data,any problem?

jogn_li posted on 29 Feb 2012 7:47 PM PST
Top Contributor
49 Forum Posts

 I use the FPGA + 32bit to send data to fx3.but always lost data from fx3 to PC,there is a Image about that at the bottom.

If I receive 512 Bytes from fx3 ,missing 4 word.when I get 1024 Bytes from fx3,it still lost 4 word.

I looked the fpga part,it works well.

so,help.




Re: The SlaveFifoSync is missing some data,any problem?

aasi posted on 29 Feb 2012 08:19 PM PST
Cypress Employee
1073 Forum Posts

Is your FPGA code monitor the full flag to make sure it doesn't send data when the FIFO is full/busy?

Regards,

Anand



Re: The SlaveFifoSync is missing some data,any problem?

jogn_li posted on 29 Feb 2012 08:34 PM PST
Top Contributor
49 Forum Posts

 YES,when the fifo is full,the flagB is to pull low,then I pull the wr in high state,so it will stop send data to fx3.

I think the problem is not in the fpga.because the data I recive from the fx3 is corect,the problem is lost four word

data.

If the problem in the fpga, I reviced the data with different size,the data could not be continuation .

It just lost four word.

 



Re: The SlaveFifoSync is missing some data,any problem?

Chris R. posted on 01 Mar 2012 12:00 AM PST
Top Contributor
135 Forum Posts

Did you pay attantion to the flag latency of teh FX3? You have to use the partial full flag with watermark value for correct stopping data transfer on buffer full.



Re: The SlaveFifoSync is missing some data,any problem?

jogn_li posted on 01 Mar 2012 12:51 AM PST
Top Contributor
49 Forum Posts

 oh ,I want ask you to help me,please tell me,which PC board are you using?

I want to buy a PC board with USB3.0.

 

the watermark? what is that?



Re: The SlaveFifoSync is missing some data,any problem?

aasi posted on 01 Mar 2012 07:43 PM PST
Cypress Employee
1073 Forum Posts

 there is a 3 cycle latency between the buffer becoming full to the assertion of the flag.

Watermark is the used to counter this. Watermark is set to the assert the flag when there is space for x bytes in the buffer. So setting watermark to 3 for a synchronous interface would mean that the flag assertion happens when the buffer is full.

Regards,

Anand






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.