Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > DMA buffers

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



DMA buffers
Moderator:
RSKV

Post Reply
Follow this topic



DMA buffers

clh23047 posted on 03 Jul 2012 5:31 AM PST
Top Contributor
65 Forum Posts

Hello. In the Slave FIFO example, the dmaCfg.count is set to 2 (Slave FIFO channel buffer counts 2). When the data is transferred from U to P, the data is written to the first buffer at the first time and written to the second buffer at the second time. After that, if the Reading from Slave FIFO (SLRD) is not active, the buffer will be always full and no more data can be written. Once the Reading from Slave FIFO starts, the buffers will be clean and ready for the next transfer. Is my understanding right?

 
I also want to use I2S to transfer short command to FPGA, but I can not find such firmware example. Could someone give me some suggestions?
 
Thanks,
Lehua Chen
 



Re: DMA buffers

RSKV posted on 03 Jul 2012 06:08 AM PST
Cypress Employee
655 Forum Posts

Yes. Your understanding is right.

Coming to other question, I am assuming it is "I2C". Please let me know if my assumption is right.

Thanks,

sai krishna.



Re: DMA buffers

clh23047 posted on 03 Jul 2012 06:40 AM PST
Top Contributor
65 Forum Posts

Hello, sai Krishna,

Thank you for your reply.
 
I want to use Slave FIFO to transfer bulk data from FPGA to USB then to PC. The short command is written from the PC to FPGA through I2S. I2C is used as bootloader in my plan. Therefore I want to look for firmware example with I2S.

Thanks

Lehua Chen



Re: DMA buffers

RSKV posted on 03 Jul 2012 07:08 AM PST
Cypress Employee
655 Forum Posts

Hi Lehua Chen,

You can use I2C both for loading the programm into RAM and for sending commands to your FPGA. Just the slave address will be different from each other.

As you know, I2S is generally used for streaming the audio samples.

Regards,

sai kirshna.



Re: DMA buffers

clh23047 posted on 03 Jul 2012 07:19 AM PST
Top Contributor
65 Forum Posts

Hi, sai Krishna,

You mean that I can use I2C to loading the firmware to RAM at the begining. When the firmware is running, I can configurate the I2C to receive commands from PC and send them to FPGA. Right? If so, I need to learn through the I2C example.
 
Thanks,
Lehua Chen


Re: DMA buffers

RSKV posted on 03 Jul 2012 08:36 AM PST
Cypress Employee
655 Forum Posts

Yes. FX3 boot from the I2C EEPROM that is connected to it.

When you want to send some command to FPGA from PC, you send a command from PC to FX3 over the control endpoint and then in the firmware you parse it and initiate a I2C read from the FPGA connected to FX3.

Regards,

sai krishna.

 

 

 



Re: DMA buffers

clh23047 posted on 03 Jul 2012 02:44 PM PST
Top Contributor
65 Forum Posts

In this case, both E2PROM and two pins of FPGA will be connected to I2C_GPIO[58] (I2C_SCL) and I2C_GPIO[59]( I2C_SDA). Right?

Thank you

Lehua Chen



Re: DMA buffers

RSKV posted on 03 Jul 2012 06:44 PM PST
Cypress Employee
655 Forum Posts

Right.






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.