XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_perfcnt.c
u32 XAieTilePl_PerfCounterGet(XAieGbl_Tile *TileInstPtr, u8 Counter)
{
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	/*
	 * NOC / PL is actually not tile type. If any of those is set,
	 * treat as Shim which always has a PL module
	 */
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMNOC ||
			TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMPL);
	XAie_AssertNonvoid(Counter < 2);

	return XAieGbl_Read32(TileInstPtr->TileAddr +
			PerfCounter[XAIETILE_PERFCNT_MODULE_PL].RegOff[Counter]);
}
/*****************************************************************************/
/**
*
* This API gets the current performance counter value of PL 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 PL module
This API gets the current performance counter value of PL module
u32 XAieTilePl_PerfCounterGet(XAieGbl_Tile *TileInstPtr, u8 Counter)
{
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMNOC ||
			TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMPL);
	XAie_AssertNonvoid(Counter < 2);
	return XAieGbl_Read32(TileInstPtr->TileAddr +
			PerfCounter[XAIETILE_PERFCNT_MODULE_PL].RegOff[Counter]);
}
u32 XAieTilePl_PerfCounterGet ( XAieGbl_Tile * TileInstPtr , u8 Counter ) { XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; XAie_AssertNonvoid ( TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_SHIMNOC || TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_SHIMPL ) ; XAie_AssertNonvoid ( Counter < 2 ) ; return XAieGbl_Read32 ( TileInstPtr -> TileAddr + PerfCounter [ XAIETILE_PERFCNT_MODULE_PL ] . RegOff [ Counter ] ) ; }
This API gets the current performance counter value of PL module
This API gets the current performance counter value of PL module
/*
	 * NOC / PL is actually not tile type. If any of those is set,
	 * treat as Shim which always has a PL module
	 */