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

	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);

	/* Read the timer high and low values before wait */
	CurValLow = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_CORE].LowOff);
	CurValHigh = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_CORE].HighOff);
	CurVal = ((u64)CurValHigh << 0x20U) | CurValLow;

	return CurVal;
}
/*****************************************************************************/
/**
*
* This API returns the current value of the Core 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 Core module 64-bit timer.
This API returns the current value of the Core module 64 - bit timer .
u64 XAieTile_CoreReadTimer(XAieGbl_Tile *TileInstPtr)
{
	u32 CurValHigh;
	u32 CurValLow;
	u64 CurVal;
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	CurValLow = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_CORE].LowOff);
	CurValHigh = XAieGbl_Read32(TileInstPtr->TileAddr +
			TimerReg[XAIETILE_TIMER_MODULE_CORE].HighOff);
	CurVal = ((u64)CurValHigh << 0x20U) | CurValLow;
	return CurVal;
}
u64 XAieTile_CoreReadTimer ( XAieGbl_Tile * TileInstPtr ) { u32 CurValHigh ; u32 CurValLow ; u64 CurVal ; XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; CurValLow = XAieGbl_Read32 ( TileInstPtr -> TileAddr + TimerReg [ XAIETILE_TIMER_MODULE_CORE ] . LowOff ) ; CurValHigh = XAieGbl_Read32 ( TileInstPtr -> TileAddr + TimerReg [ XAIETILE_TIMER_MODULE_CORE ] . HighOff ) ; CurVal = ( ( u64 ) CurValHigh << 0x20U ) | CurValLow ; return CurVal ; }
This API returns the current value of the Core module 64-bit timer.
This API returns the current value of the Core module 64 - bit timer .
/* Read the timer high and low values before wait */