pynq.mmio Module¶
-
class
pynq.mmio.MMIO(base_addr, length=4, debug=False)[source]¶ Bases:
objectThis class exposes API for MMIO read and write.
-
virt_base¶ int – The address of the page for the MMIO base address.
-
virt_offset¶ int – The offset of the MMIO base address from the virt_base.
-
base_addr¶ int – The base address, not necessarily page aligned.
-
length¶ int – The length in bytes of the address range.
-
debug¶ bool – Turn on debug mode if it is True.
-
mmap_file¶ file – Underlying file object for MMIO mapping
-
mem¶ mmap – An mmap object created when mapping files to memory.
-
array¶ numpy.ndarray – A numpy view of the mapped range for efficient assignment
-