interfaces
Low-level interfaces with external hardware.
OpalKelly
-
class mio.interfaces.opalkelly.okDev(read_length: int, serial_id: str = '')
I/O and configuration for an (what kind of opal kelly device?)
Todo
Phil: document what this thing does, including how bitfiles work
and how they’re generated/where they’re located.
-
read_data(length: int | None = None, addr: int = 160, blockSize: int = 16) → bytearray
Read a buffer’s worth of data
- Parameters:
length (int) – Amount of data to read
addr (int) – FPGA address to read from
blockSize (int) – Size of individual blocks (in what unit?)
- Returns:
bytearray
-
set_wire(addr: int, val: int) → None
Todo
Phil! what does this do?
- Parameters:
-
-
upload_bit(bit_file: str) → None
Upload a configuration bitfile to the FPGA
- Parameters:
bit_file (str) – Path to the bitfile