Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pynq/lib/dma.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def transfer(self, array, start=0, nbytes=0):
array : ContiguousArray
An contiguously allocated array to be transferred
start : int
Offset into array to start. Default is 0.
Byte offset into array to start. Default is 0.
nbytes : int
Number of bytes to transfer. Default is 0.

Expand Down Expand Up @@ -344,7 +344,7 @@ def transfer(self, array, start=0, nbytes=0, cyclic=False):
array : ContiguousArray
An contiguously allocated array to be transferred
start : int
Offset into array to start. Default is 0.
Byte offset into array to start. Default is 0.
nbytes : int
Number of bytes to transfer. Default is 0.
cyclic : bool
Expand Down Expand Up @@ -414,7 +414,7 @@ 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 + start + (i * blk_size)) >> 32
) & 0xFFFFFFFF
Expand Down