- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am creating a component between custom hardware and the SGDMA controller. The descriptors of the SGDMA are setup to transfer a large number of bytes at a time (24000 bytes) from the custom hardware to a ddr2 memory stick. My question is regarding the the way in which to communicate from the custom component to the SGDMA controller using the Avalon Streaming Interface. The Streaming interface requires packet transfer, so I need to have the start-of-packet and end-of-packet signals in the component. But the SGDMA descriptor specifies a set transfer length (24000 bytes for each descriptor). In the component, if I set the end-of-packet signal before the total number of bytes (24000) for a transfer has been sent, does that terminate the transfer? Or will the SGDMA continue the same transfer at the next start-of-packet until the total number of bytes are transfered? Could I, say, use small packets of 64 bytes to transfer the total 24000 bytes? What would the burst length be? Also, do I need to use a burst transfer? Thanks for your help!Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have two options, packet and non-packet transfers. For non-packet transfers you specify the transfer length. Packet transfers rely on the EOP signal to tell the DMA that the transfer is complete. For ST-->MM this will be controlled by the streaming component connected to the SGDMA. For MM-->ST it's up to you to set the SOP and EOP bits because you have to tell the DMA how much data is in the packet and also let it know that you want the SOP and EOP bits to be controlled in hardware.
Now if you are always moving 24000 bytes at a time and don't need packet support as a result you can just not use it. The maximum burst length should be set to whatever the memory uses (or other bursting IP in your system). DDR2 SDRAM in full rate mode uses an Avalon-MM burst length of 2 and in halfrate mode it doesn't burst on the Avalon side. As a result you should either choose an SGDMA max burst length of 2 or non-bursting depending on what you need.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for clearing that up, I really appreciate it.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page