pynq.pl_server.xrt_device Module¶
The pynq.pl_server.xrt_device module extends the device class to work with Xilinx Run Time (XRT) enabled devices.
-
class
pynq.pl_server.xrt_device.ErtWaitHandle(bo, future, device)[source]¶ Bases:
objectWaitHandle specific to ERT-scheduled accelerators
-
done¶ True is the accelerator has finished
-
-
class
pynq.pl_server.xrt_device.ExecBo(bo, ptr, device, length)[source]¶ Bases:
objectExecution Buffer Object
Wraps an execution buffer used by XRT to schedule the execution of accelerators. Usually used in conjunction with the ERT packet format exposed in the XRT
ert_bindingpython module.
-
class
pynq.pl_server.xrt_device.XrtDevice(index)[source]¶ Bases:
pynq.pl_server.device.Device-
clocks¶ Runtime clocks. This dictionary provides the actual clock frequencies that the hardware is running at. Frequencies are expressed in Mega Hertz.
-
default_memory¶
-
device_info¶
-
name¶
-
sensors¶
-
-
class
pynq.pl_server.xrt_device.XrtMemory(device, desc)[source]¶ Bases:
objectClass representing a memory bank in a card
Memory banks can be both external DDR banks and internal buffers. XrtMemory instances for the same bank are interchangeable and can be compared and used as dictionary keys.
-
allocate(shape, dtype)[source]¶ Create a new buffer in the memory bank
Parameters: - shape (tuple(int)) – Shape of the array
- dtype (np.dtype) – Data type of the array
-
mem_used¶
-
num_buffers¶
-
-
class
pynq.pl_server.xrt_device.XrtStream(device, desc)[source]¶ Bases:
objectXRT Streming Connection
Encapsulates the IP connected to a stream. Note that the
_ipattributes will only be populated if the corresponding device driver has been instantiated.-
source¶ Source of the streaming connection as ip_name.port
Type: str
-
sink¶ Sink of the streaming connection as ip_name.port
Type: str
-
monitors¶ Monitor connections of the stream as a list of ip_name.port
Type: [str]
-
source_ip¶ Source IP driver instance for the stream
Type: pynq.overlay.DefaultIP
-
sink_ip¶ Sink IP driver instance for the stream
Type: pynq.overlay.DefaultIP
-
monitor_ips¶ list of driver instances for IP monitoring the stream
Type: [pynq.overlay.DefaultIP]
-
-
class
pynq.pl_server.xrt_device.xclDeviceUsage[source]¶ Bases:
_ctypes.Structure-
c2h¶ Structure/Union member
-
ddrBOAllocated¶ Structure/Union member
-
ddrMemUsed¶ Structure/Union member
-
dma_channel_cnt¶ Structure/Union member
-
h2c¶ Structure/Union member
-
memSize¶ Structure/Union member
-
mm_channel_cnt¶ Structure/Union member
-
totalContents¶ Structure/Union member
-
xclbinId¶ Structure/Union member
-