Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

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



EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~
Moderator:
RSKV

Post Reply
Follow this topic



EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

domo posted on 12 Nov 2012 9:59 PM PST
Member
5 Forum Posts

68013 works as a slavefifo with ep6 = bulk endpoint 512*2B buffer in a autoin mode;

fpga send data to 68013 with a 16bit self-increment data(0x0000-0xffff)@5MHz ifclk,but the 'slwr' and the 'fdata[15-0]' bus are only active during the cnt register is from 0-63,when cnt is 64-311 ,slwr<='1'; the cnt register trigers each clk_5M edge.so the data rate is actually 2MB/s.

the problem is that when we use the VC software we build with the cyapi(begin, wait, finish in a thread)  to write the data into a txt file,we found that there would be some repeated data error as u can see in the attach file(2.txt). the err mostly appear when the last data is  0x3FFF, and the next one should be 0x4000,but always appear to be 0x8000,but after 512 0x80xx, it appears to turn back to 0x4100, so i believe that the fpga send the data correctly, but the slave fifo or the SIE may have some proble. (btw: if ifpga send data in 0-15 and when 16-311slwr<='1' then no error occurred, means if low the  data rate to 0.5MB/s the system works well)

we believe that this is far from the max rate about 40MB/s talked in other thread. we also tested our board with the Cystreamer and got a perfect 35MB/s rate. we wonder why we meet such a problem. thx a lot!

the firmware and the fpga vhdl file are in the attachments

 




Re: EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

domo posted on 13 Nov 2012 10:02 PM PST
Member
5 Forum Posts


Re: EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

domo posted on 13 Nov 2012 10:04 PM PST
Member
5 Forum Posts

why i can't post attachments?



Re: EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

RSKV posted on 13 Nov 2012 10:54 PM PST
Cypress Employee
655 Forum Posts

Hi,

You may need to zip your files and upload (zip file).

Thanks,

sai krishna.



Re: EP6 with 512*2 buffer@5MHz ifclk from FPGA. Repetitive data error , thx~

domo posted on 13 Nov 2012 11:44 PM PST
Member
5 Forum Posts





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.