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 Opal Kelly FPGA
Uses the FPGA code found here: https://github.com/Aharoni-Lab/wireless_fpga_daq
See that repository’s README for further documentation.
-
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