Conversation
Added argument for _SGDMAChannel.transfer() method to write BD's to selected memory
|
Hi @mstojke, thank you for your PR. In what context have you used your updated code? From what I can see, you add Lines 138 to 158 in 19ed17d |
|
Hi @jogomojo I made a mistake in the description of the transfer() function in the _SGDMAChannel() class. It should actually pass a memory device instead of the described PynqBuffer. Lines 348 to 350 in e35a668 I used the modified code to allocate memory space in the PL DDR4. Below is a fragment from my project showing how it was used. dma_max_transfer_size = 4194304 * 4
overlay.dma = DMA(overlay.ip_dict['axi_dma_0'])
overlay.dma.recvchannel._max_size = dma_max_transfer_size
overlay.dma.recvchannel.transfer(buf, ddr_4_target=overlay.ddr4_0) |
|
Hi @mstojke Could you share a minimal Vivado tcl design I could build and a Python file for me to run so I can test this out? |
|
Hi @jogomojo I added you to the repository with the project. |
Added argument for _SGDMAChannel.transfer() method to write BD's to selected memory (for example: in case when buffer descriptors will be stored in PL RAM)
Signed-off-by: Michał Stojke michal.stojke@pwr.edu.pl