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

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