Skip to content

Commit

Permalink
incorporate array offset into descriptors (#1401)
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 #1392
  • Loading branch information
sebastianpetersFAU committed May 1, 2024
1 parent 491350a commit 5fc0ff5
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 5fc0ff5

Please sign in to comment.