XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_perfcnt.c
u32 XAieTileCore_PerfCounterGet(XAieGbl_Tile *TileInstPtr, u8 Counter)
{
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_AIETILE);
	XAie_AssertNonvoid(Counter < 4);

	return XAieGbl_Read32(TileInstPtr->TileAddr +
		PerfCounter[XAIETILE_PERFCNT_MODULE_CORE].RegOff[Counter]);
}
/*****************************************************************************/
/**
*
* This API gets the current performance counter value of Core module
*
* @param	TileInstPtr - Pointer to the Tile instance.
* @param	Counter - Counter ID. 0 to 3.
*
* @return	Current counter value
*
* @note		None.
*
*******************************************************************************/
This API gets the current performance counter value of Core module
This API gets the current performance counter value of Core module
u32 XAieTileCore_PerfCounterGet(XAieGbl_Tile *TileInstPtr, u8 Counter)
{
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_AIETILE);
	XAie_AssertNonvoid(Counter < 4);
	return XAieGbl_Read32(TileInstPtr->TileAddr +
		PerfCounter[XAIETILE_PERFCNT_MODULE_CORE].RegOff[Counter]);
}
u32 XAieTileCore_PerfCounterGet ( XAieGbl_Tile * TileInstPtr , u8 Counter ) { XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; XAie_AssertNonvoid ( TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_AIETILE ) ; XAie_AssertNonvoid ( Counter < 4 ) ; return XAieGbl_Read32 ( TileInstPtr -> TileAddr + PerfCounter [ XAIETILE_PERFCNT_MODULE_CORE ] . RegOff [ Counter ] ) ; }
This API gets the current performance counter value of Core module
This API gets the current performance counter value of Core module