Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Slave Sync FIFO Flow Control

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



Slave Sync FIFO Flow Control
Moderator:
RSKV

Post Reply
Follow this topic



Slave Sync FIFO Flow Control

rdaley posted on 27 Aug 2012 9:34 AM PST
Top Contributor
39 Forum Posts

How do I initiate a transfer from the FX3?  Do I really have to do a read to update the flags to see if I can do a read? To put it another way, are the flags only updated during read and wite transactions?




Re: Slave Sync FIFO Flow Control

Spectrum posted on 27 Aug 2012 10:01 AM PST
Senior Member
13 Forum Posts

The flags are controlled by the DMA in the FX3. Their behavior is controlled by how you configure them in the GPIFII designer. For example, the supplied SYNC SLAVE FIFO example sets both flags to monitor the current thread, so in essence they mirror each other. In my application, I am setting Flag A to monitor thread 0, and Flag B to monitor thread 3. They are the only controls that the FX3 has to signal the processor on the P Port, so the P port device must monitor them. It does this by setting the address lines to look at the desired flag. So, my application works like this.

Processor selects the address I assigned to flag a and waits for it to go high.
Data comes into the FX3 from the USB. The FX3 will set flag A high to let the processor know it has data.
Processor clocks data out of thread 0.
Process sets the address assigned to thread 3. It then waist for flag B to go low indicating the FX3 has room to accept data.
Processor clocks data into the FX3, then goes back to monitoring flag a.
The FX3 sends the data to the USB.

So again, all the FX3 can do is set or clear the flags. The device on the P port must watch them and control the rest of the GPIF controls. The FX3 is the slave, the P Port device is the master.



Re: Slave Sync FIFO Flow Control

rdaley posted on 27 Aug 2012 11:37 AM PST
Top Contributor
39 Forum Posts

Thanks!  I was trying to use the CURRENT_THREAD flag configuration but your way makes more sense.






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.