pynq.uio Module

class pynq.uio.UioController(device)[source]

Bases: object

Class that interacts directly with a UIO device.

uio

File handle for the opened UIO.

Type:

_io.BufferedRandom

add_event(event, number)[source]
pynq.uio.get_uio_device(dev_name)[source]

Returns the UIO device path.

This method will return None if no such device can be found.

Parameters:

dev_name (str) – The name of the UIO device.

Returns:

The path of the device in /dev list.

Return type:

str

pynq.uio.get_uio_index(name)[source]

Return the uio index for the given device.

Parameters:

name (str) – The name of the UIO device.

Returns:

The index number for the UIO device.

Return type:

int