devices

Interfaces to external devices like miniscopes and DAQs

OpalKelly

class mio.devices.opalkelly.okDev(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, 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:
  • addr

    ?

  • val

    ?

upload_bit(bit_file: str) None

Upload a configuration bitfile to the FPGA

Parameters:

bit_file (str) – Path to the bitfile