XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_pl.c
u64 XAieTile_PlReadTimer(XAieGbl_Tile *TileInstPtr)
{
	u32 CurValHigh;
	u32 CurValLow;
	u64 CurVal;

	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMPL ||
			TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMNOC);

	CurValLow = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_PL].LowOff);
	CurValHigh = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_PL].HighOff);
	CurVal = ((u64)CurValHigh << 0x20U) | CurValLow;

	return CurVal;
}
/*****************************************************************************/
/**
*
* This API returns the current value of the PL module 64-bit timer.
*
* @param	TileInstPtr - Pointer to the Tile instance.
*
* @return	64-bit timer value.
*
* @note		None.
*
*******************************************************************************/
This API returns the current value of the PL module 64-bit timer.
This API returns the current value of the PL module 64 - bit timer .
u64 XAieTile_PlReadTimer(XAieGbl_Tile *TileInstPtr)
{
	u32 CurValHigh;
	u32 CurValLow;
	u64 CurVal;
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	XAie_AssertNonvoid(TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMPL ||
			TileInstPtr->TileType == XAIEGBL_TILE_TYPE_SHIMNOC);
	CurValLow = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_PL].LowOff);
	CurValHigh = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_PL].HighOff);
	CurVal = ((u64)CurValHigh << 0x20U) | CurValLow;
	return CurVal;
}
u64 XAieTile_PlReadTimer ( XAieGbl_Tile * TileInstPtr ) { u32 CurValHigh ; u32 CurValLow ; u64 CurVal ; XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; XAie_AssertNonvoid ( TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_SHIMPL || TileInstPtr -> TileType == XAIEGBL_TILE_TYPE_SHIMNOC ) ; CurValLow = XAieGbl_Read32 ( TileInstPtr -> TileAddr + TimerReg [ XAIETILE_TIMER_MODULE_PL ] . LowOff ) ; CurValHigh = XAieGbl_Read32 ( TileInstPtr -> TileAddr + TimerReg [ XAIETILE_TIMER_MODULE_PL ] . HighOff ) ; CurVal = ( ( u64 ) CurValHigh << 0x20U ) | CurValLow ; return CurVal ; }
This API returns the current value of the PL module 64-bit timer.
This API returns the current value of the PL module 64 - bit timer .