SLASH V80 Run-Time (VRT)
vrt::Device
-
class Device
Class representing a device.
Public Functions
-
Device(const std::string &bdf, const std::string &vrtbinPath, bool program = true, ProgramType programType = ProgramType::FLASH)
Constructor for Device.
- Parameters:
bdf – The Bus:Device.Function identifier.
vrtbinPath – The path to the VRTBIN file.
program – Flag indicating whether to program the device.
-
vrt::Kernel getKernel(const std::string &name)
Gets a kernel by name.
- Parameters:
name – The name of the kernel.
- Returns:
The Kernel object.
-
std::string getBdf()
Gets the Bus:Device.Function identifier.
- Returns:
The Bus:Device.Function identifier.
-
void programDevice()
Programs the device.
-
void sendPcieDriverCmd(std::string cmd)
Sends a command to the PCIe driver.
- Parameters:
cmd – The command to send.
-
void bootDevice()
Boots the device.
-
void getNewHandle()
Gets a new handle for the device.
-
void createAmiDev()
Creates the AMI device.
-
void destroyAmiDev()
Destroys the AMI device.
-
void parseSystemMap()
Parses the system map file.
-
void cleanup()
Cleans up the device.
-
void setFrequency(uint64_t freq)
Sets clk_wiz frequency.
-
uint64_t getFrequency()
Gets the clock frequency.
-
uint64_t getMaxFrequency()
Gets the maximum frequency.
-
ami_device *getAmiDev()
Gets ami device.
-
void findVrtbinType()
Finds the VRTBIN type from system map.
-
void findPlatform()
Finds the platform from system map.
-
Platform getPlatform()
Gets the platform.
-
std::shared_ptr<ZmqServer> getZmqServer()
Gets the ZMQ server.
-
Allocator *getAllocator()
Gets the Allocator instance.
-
std::vector<QdmaConnection> getQdmaConnections()
Gets the QDMA connections.
-
std::vector<QdmaIntf*> getQdmaInterfaces()
Gets the QDMA streaming interfaces.
-
void lockPcieDevice(const std::string &bdf)
Locks pcie device, for exclusive access.
-
void unlockPcieDevice(const std::string &bdf)
Unlocks pcie device, for exclusive access.
Public Members
-
QdmaIntf qdmaIntf
QDMA interface object.
-
Device(const std::string &bdf, const std::string &vrtbinPath, bool program = true, ProgramType programType = ProgramType::FLASH)