Skip to content

Commit

Permalink
incorporate array offset into descriptors
Browse files Browse the repository at this point in the history
Array offset was ignored when filling out descriptors but was used properly when checking for alignment.
See Xilinx#1392
  • Loading branch information
sebastianpetersFAU committed Oct 18, 2022
1 parent a056b84 commit 098292a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynq/lib/dma.py
Expand Up @@ -410,9 +410,9 @@ def transfer(self, array, start=0, nbytes=0, cyclic=False):
remain -= d_len

# Buffer address (64-bit)
self._descr[i, 2] = (array.physical_address + (i * blk_size)) & 0xFFFFFFFF
self._descr[i, 2] = (array.physical_address + start + (i * blk_size)) & 0xFFFFFFFF
self._descr[i, 3] = (
(array.physical_address + (i * blk_size)) >> 32
(array.physical_address + start + (i * blk_size)) >> 32
) & 0xFFFFFFFF

# First block
Expand Down

0 comments on commit 098292a

Please sign in to comment.