Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

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



SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???
Moderator:
RSKV

Post Reply
Follow this topic



SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

raj8889 posted on 23 Nov 2012 6:02 AM PST
Senior Member
19 Forum Posts

Hii guys,

Is it possible to send data out from fx3 using two consumer sockets and I have two producer end points and  one producer socket mapped to one consumer end point. I have to perform a slave fifo interface 32 bit(burst read mode). Can I tranfer data out from one socket and when that buffer is empty can I transfer data out from the other socket is this design possible??

 




Re: SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

Gayathri posted on 26 Nov 2012 11:07 PM PST
Cypress Employee
327 Forum Posts

 Hi,

 

Yes, this is possible. As per your description, this is what I understand: (P- producer socket; C - consumer socket)

P1 (USB) -----> C1 (P-PORT) =============> external device

                                                       slave FIFO 32 bit

P2 (USB) ------> C2(P-PORT) ============> external devcie

                       slave FIFO 32 bit

 

From the GPIF II designer, you can select the appropriate thread using GPIFADR lines, and thus the consumer socket. Slave FIFO example should be a good reference for the same.

 

Regards,

Gayathri



Re: SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

raj8889 posted on 26 Nov 2012 04:08 AM PST
Senior Member
19 Forum Posts

Thanks for the Info Gayatri,

The thread address means the socket address which we intilialize in the header file right??

regards

pruthvi raj



Re: SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

raj8889 posted on 26 Nov 2012 06:40 AM PST
Senior Member
19 Forum Posts

Hi,

Can I use the same slave fifo gpif 2 designer model and change the socket or thread address using the address bits??

regards

pruthvi 



Re: SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

Gayathri posted on 26 Nov 2012 09:27 PM PST
Cypress Employee
327 Forum Posts

 Hi Pruthvi Raj,

 

Yes your understanding is correct. 

By default, thread to socket mapping is as follows:

thread 0 ==> socket 0

thread 1 ==> socket 1 etc..

 

If this is the case, therad address is same as socket address (you may even choose to change this using an API CyU3PGpifSocketConfigure(), but I believe that is not required in your application) . You can select the appropriate socket by using the addr bits from GPIF designer, and use the corresponding  socket in the firmware. You can define the macros for the sockets in the header file.

 

Regards,

Gayathri



Re: SLAVEFIFO WITH TWO OUT SOCKETS IS THIS POSSIBLE???

raj8889 posted on 27 Nov 2012 11:47 PM PST
Senior Member
19 Forum Posts

Hi Gayatri,

Thanks for the reply

regards,

Pruthvi






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.