pynq.pl_server.xrt_device Module
The pynq.pl_server.xrt_device module extends the device class to work with Xilinx Run Time (XRT) x86 enabled devices.
- 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.
- class pynq.pl_server.xrt_device.XrtDevice(index, tag='xrt{}')[source]
Bases:
Device- property clocks
Runtime clocks. This dictionary provides the actual clock frequencies that the hardware is running at. Frequencies are expressed in Mega Hertz.
- property default_memory
- property device_info
- property name
- property 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, **kwargs)[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
- property mem_used
- property num_buffers
- class pynq.pl_server.xrt_device.XrtStream(device, desc)[source]
Bases:
objectXRT Streaming 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:
- sink_ip
Sink IP driver instance for the stream
- Type:
- monitor_ips
list of driver instances for IP monitoring the stream
- Type:
- class pynq.pl_server.xrt_device.xclDeviceUsage[source]
Bases:
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