|
xaiefal
|
Trace Event resource class. More...
#include <xaiefal-trace.hpp>
Public Member Functions | |
| XAieTraceCntr ()=delete | |
| XAieTraceCntr (std::shared_ptr< XAieDevHandle > DevHd, XAie_LocType Loc, XAie_ModuleType Mod) | |
| XAieTraceCntr (XAieDev &Dev, XAie_LocType Loc, XAie_ModuleType Mod) | |
| ~XAieTraceCntr () | |
| XAie_ModuleType | getModule () |
| AieRC | reserveTraceSlot (uint8_t &Slot) |
| AieRC | releaseTraceSlot (uint8_t Slot) |
| AieRC | setTraceEvent (uint32_t Slot, XAie_Events Event) |
| AieRC | setCntrEvent (XAie_Events StartE, XAie_Events StopE) |
| AieRC | setMode (XAie_TraceMode TraceMode) |
| AieRC | setPkt (const XAie_Packet &Packet) |
| uint32_t | getMaxTraceEvents () const |
| uint32_t | getReservedTraceEvents () const |
| int | getStartBc () |
| int | getStopBc () |
| uint32_t | getAvailManagedRscs () |
| XAieRscType | getManagedRscsType () |
| Public Member Functions inherited from xaiefal::XAieSingleTileRsc | |
| XAieSingleTileRsc ()=delete | |
| XAieSingleTileRsc (std::shared_ptr< XAieDevHandle > DevHd, XAie_LocType Loc, XAie_ModuleType Mod) | |
| XAieSingleTileRsc (std::shared_ptr< XAieDevHandle > DevHd, XAie_LocType Loc, XAie_ModuleType Mod, XAieRscType Type) | |
| XAieSingleTileRsc (XAieDev &Dev, XAie_LocType Loc, XAie_ModuleType Mod) | |
| XAieSingleTileRsc (XAieDev &Dev, XAie_LocType Loc, XAie_ModuleType Mod, XAieRscType Type) | |
| XAieSingleTileRsc (std::shared_ptr< XAieDevHandle > DevHd, XAie_LocType Loc) | |
| XAieSingleTileRsc (std::shared_ptr< XAieDevHandle > DevHd, XAie_LocType Loc, XAieRscType Type) | |
| XAieSingleTileRsc (XAieDev &Dev, XAie_LocType Loc, XAieRscType Type) | |
| virtual | ~XAieSingleTileRsc () |
| XAie_LocType | loc () const |
| XAie_ModuleType | mod () const |
| AieRC | getRscId (XAie_LocType &OutLoc, XAie_ModuleType &OutMod, uint32_t &OutRscId) |
| virtual XAieRscStat | getRscStat (const std::string &GName) const |
| Public Member Functions inherited from xaiefal::XAieRsc | |
| XAieRsc ()=delete | |
| XAieRsc (std::shared_ptr< XAieDevHandle > DevHd) | |
| XAieRsc (std::shared_ptr< XAieDevHandle > DevHd, XAieRscType Type) | |
| XAieRsc (XAieDev &Dev) | |
| virtual | ~XAieRsc () |
| AieRC | setPreferredId (uint32_t id, bool isStaticAllocated=false) |
| uint32_t | getPreferredId () |
| AieRC | reserve () |
| AieRC | release () |
| AieRC | free () |
| AieRC | start () |
| AieRC | stop () |
| bool | isInitialized () const |
| bool | isReserved () const |
| bool | isConfigured () const |
| bool | isRunning () const |
| void | getReservedRscs (std::vector< XAieUserRsc > &vOutRscs) const |
| AieRC | getRscs (std::vector< XAieUserRsc > &vOutRscs) |
| AieRC | setRscs (std::vector< XAieUserRsc > &vInRscs) |
| virtual XAieRscType | getRscType () const |
| XAie_DevInst * | dev () |
Protected Member Functions | |
| AieRC | _reserve () |
| AieRC | _release () |
| AieRC | _start () |
| AieRC | _stop () |
| void | _getReservedRscs (std::vector< XAieUserRsc > &vOutRscs) const |
Protected Attributes | |
| std::bitset< 8 > | TraceSlotBits |
| XAie_Events | Events [8] |
| XAie_Events | StartEvent |
| XAie_Events | StopEvent |
| XAie_ModuleType | StartMod |
| XAie_ModuleType | StopMod |
| XAieBroadcast * | StartBC |
| XAieBroadcast * | StopBC |
| XAie_Packet | Pkt |
| XAie_TraceMode | Mode |
| Protected Attributes inherited from xaiefal::XAieSingleTileRsc | |
| XAie_LocType | Loc |
| XAie_ModuleType | Mod |
| Protected Attributes inherited from xaiefal::XAieRsc | |
| XAieRscState | State |
| XAieRscType | Type |
| std::shared_ptr< XAieDevHandle > | AieHd |
| uint32_t | preferredId |
| uint32_t | reservedId |
| std::vector< XAieUserRsc > | vRscs |
Trace Event resource class.
|
delete |
|
inline |
|
inline |
|
inline |
|
inlineprotectedvirtual |
This function returns resources reserved.
| vOutRscs | vector to store the reserved resources |
Reimplemented from xaiefal::XAieSingleTileRsc.
|
inlineprotectedvirtual |
This function will be called by release(). It allows child class to implement its own resource release.
Reimplemented from xaiefal::XAieRsc.
|
inlineprotectedvirtual |
This function will be called by reserve(). It allows child class to implement its own resource reservation.
Reimplemented from xaiefal::XAieRsc.
|
inlineprotectedvirtual |
This function will be called by start(). It allows child class to implement its own resource start.
Reimplemented from xaiefal::XAieRsc.
|
inlineprotectedvirtual |
This function will be called by stop(). It allows child class to implement its own resource stop.
Reimplemented from xaiefal::XAieRsc.
|
inlinevirtual |
This function returns number of available child resources which is managed by this resource in AIEFAL
Reimplemented from xaiefal::XAieRsc.
|
inlinevirtual |
This function returns the type of child resources which is managed by this resource in AIEFAL
Reimplemented from xaiefal::XAieRsc.
|
inline |
This functinon returns the max number of trace events supported by the trace control.
|
inline |
This funtion gets module of the Trace control.
|
inline |
This functinon returns the number of trace events which have been reserved.
|
inline |
This function returns the trace control start event broadcast event if trace event needs broadcasting.
|
inline |
This function returns the trace control stop event broadcast event if trace event needs broadcasting.
|
inline |
This funtion release a trace slot.
| Slot | trace slot to release |
|
inline |
This funtion reserve a trace slot. It will fail if the trace control is already configured in hardware. This function is supposed to be called before start().
| Slot | to return the reserved trace slot. |
|
inline |
This function sets start event of the trace control. No hardware configuration is changed. It will check if trace control is already configured. If yes, it will fail the setting. That is it needs to be called before start().
| StartE | start event to set |
| StopE | stop event to set |
|
inline |
This function sets trace control mode. This function needs to be called before trace control is configured in hardware. That is it needs to be called before start().
| TraceMode | trace control mode |
|
inline |
This function sets trace control packet config. This function needs to be called before trace control is configured in hardware. That is it needs to be called before start().
| Packet | trace control packet setting |
|
inline |
This function sets events to trace to this object. No hardware configuration is changed. It will check if trace control is already configured. If yes, it will fail the setting. It will also fail if the slot is not yet assigned. User is expected to call reserveTraceSlot() first before setTraceEvent().
| Slot | trace slot for the event to configure |
| Event | event to configure. |
|
protected |
events to trace
|
protected |
trace operation mode
|
protected |
trace packet setup
|
protected |
start Event braodcast resource
|
protected |
trace control start event
|
protected |
start event module
|
protected |
stop Event braodcast resource
|
protected |
trace control stop event
|
protected |
stop event module
|
protected |
trace slots bitmap