xaiefal
Loading...
Searching...
No Matches
xaiefal::XAieRscStat Struct Reference

struct of resource usage statistics More...

#include <xaiefal-rsc-group.hpp>

Public Member Functions

 XAieRscStat (const std::string &Name="")
void addRscStat (XAie_LocType Loc, XAie_ModuleType Mod, XAieRscType RscType, uint32_t NumRscs)
uint32_t getNumRsc (XAie_LocType Loc, XAie_ModuleType Mod, XAieRscType RscType)
bool hasRsc () const
void show () const

Data Fields

std::string GroupName
std::map< std::tuple< uint8_t, uint8_t, uint32_t, uint32_t >, uint32_t > Rscs

Detailed Description

struct of resource usage statistics

Constructor & Destructor Documentation

◆ XAieRscStat()

xaiefal::XAieRscStat::XAieRscStat ( const std::string & Name = "")
inline

Member Function Documentation

◆ addRscStat()

void xaiefal::XAieRscStat::addRscStat ( XAie_LocType Loc,
XAie_ModuleType Mod,
XAieRscType RscType,
uint32_t NumRscs )
inline

This function adds resource information to the resources structure.

Parameters
Loctile location
Modmodule type
RscTyperesource type
NumRscsnumber of resources of the resource type

◆ getNumRsc()

uint32_t xaiefal::XAieRscStat::getNumRsc ( XAie_LocType Loc,
XAie_ModuleType Mod,
XAieRscType RscType )
inline

This function returns number of resource of a type of resources of a module of a tile in this resource stat structure.

Parameters
Loctile location
Modmodule type
RscTyperesource type
Returns
number of resources of the type of resources of a module of a tile.

◆ hasRsc()

bool xaiefal::XAieRscStat::hasRsc ( ) const
inline

This function checkes if the resources stat map has resources

Returns
true if the resources stat map is not empty, otherwise false.

◆ show()

void xaiefal::XAieRscStat::show ( ) const
inline

This function shows the resources information of this resource group

Field Documentation

◆ GroupName

std::string xaiefal::XAieRscStat::GroupName

name of the group of resources

◆ Rscs

std::map<std::tuple<uint8_t, uint8_t, uint32_t, uint32_t>, uint32_t> xaiefal::XAieRscStat::Rscs

number of resources info: key: col, row, mod type, rsc type> value: numer of resources


The documentation for this struct was generated from the following file: