vrt::Vrtbin

class Vrtbin

Class for handling VRTBIN operations.

Public Functions

Vrtbin(std::string vrtbinPath, const std::string &bdf)

Constructor for Vrtbin.

Parameters:
  • vrtbinPath – The path to the VRTBIN file.

  • bdf – The Bus:Device.Function identifier.

void extract()

Extracts the VRTBIN file.

std::string getSystemMapPath()

Gets the path to the system map file.

Returns:

The path to the system map file.

std::string getPdiPath()

Gets the path to the PDI file.

Returns:

The path to the PDI file.

std::vector<std::string> getPdiPaths()

Gets the paths to all discovered PDI files.

Returns:

A list of paths to PDI files.

std::string getEmulationExec()

Gets the emulation executable file.

Returns:

The path to the emulation executable file.

std::string getEmulationManifest()

Gets the emulation manifest file (if present in EMU vrtbin).

Returns:

The path to the emulation manifest file, or empty string if absent.

std::string getSimulationExec()

Gets the simulation executable file.

Returns:

The path to the simulation executable file.

std::string getUtilizationReportPath() const

Gets the path to the utilization report (if present in the vbin).

Returns:

The path to the utilization report, or empty string if absent.

Platform getPlatform() const

Gets the platform type parsed from the system map.

Returns:

The platform type.

Public Static Functions

static std::string getSystemMapPathFromBdf(const std::string &bdf)

Gets the path to the system map last loaded on a bdf.

Parameters:

bdf – The bdf to query.

Returns:

The path to the system map.

static std::string getUtilizationReportPathFromBdf(const std::string &bdf)

Gets the path to the utilization report last loaded on a bdf.

Parameters:

bdf – The bdf to query.

Returns:

The path to the utilization report.