pynq.interrupt Module

class pynq.interrupt.Interrupt(pinname)[source]

Bases: object

Class that provides the core wait-based API to end users

Provides a single coroutine wait that waits until the interrupt signal goes high. If the Overlay is changed or re-downloaded this object is invalidated and waiting results in undefined behaviour.


Wait for the interrupt to be active

May raise an exception if the Overlay has been changed since initialisation.


Returns the UIO device path for a specified interrupt.

If the IRQ either cannot be found or does not correspond to a UIO device, None is returned.

Parameters:irq (int) – The desired physical interrupt line
Returns:The path of the device in /dev list.
Return type:str