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

	XAieGbl_Write32(TileInstPtr->TileAddr +
		PerfCounterEvent[XAIETILE_PERFCNT_MODULE_CORE].RegOff[Counter],
		EventVal);
	return XAIE_SUCCESS;
}
/*****************************************************************************/
/**
*
* This API sets the current performance counter event value of Core module
*
* @param	TileInstPtr - Pointer to the Tile instance.
* @param	Counter - Counter ID. 0 to 4.
* @param	EventVal - Event value to set
*
* @return	XAIE_SUCCESS on success
*
* @note		None.
*
*******************************************************************************/
This API sets the current performance counter event value of Core module
This API sets the current performance counter event value of Core module
u32 XAieTileCore_PerfCounterEventValue(XAieGbl_Tile *TileInstPtr, u8 Counter,
		u32 EventVal)
{
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_AIETILE);
	XAie_AssertNonvoid(Counter < 4);
	XAieGbl_Write32(TileInstPtr->TileAddr +
		PerfCounterEvent[XAIETILE_PERFCNT_MODULE_CORE].RegOff[Counter],
		EventVal);
	return XAIE_SUCCESS;
}
u32 XAieTileCore_PerfCounterEventValue ( XAieGbl_Tile * TileInstPtr , u8 Counter , u32 EventVal ) { XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; XAie_AssertNonvoid ( TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_AIETILE ) ; XAie_AssertNonvoid ( Counter < 4 ) ; XAieGbl_Write32 ( TileInstPtr -> TileAddr + PerfCounterEvent [ XAIETILE_PERFCNT_MODULE_CORE ] . RegOff [ Counter ] , EventVal ) ; return XAIE_SUCCESS ; }
This API sets the current performance counter event value of Core module
This API sets the current performance counter event value of Core module