XilinxProcessorIPLib/drivers/aiengine/src/tile/xaietile_core.c
void XAieTile_CoreControl(XAieGbl_Tile *TileInstPtr, u8 Enable, u8 Reset)
{
	u64 RegAddr;
	u32 RegVal;

	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);

	/* Write to the Core control register */
	RegAddr = TileInstPtr->TileAddr + CoreCtrlReg.RegOff;

	RegVal = XAie_SetField(Enable, CoreCtrlReg.CtrlEn.Lsb,
					CoreCtrlReg.CtrlEn.Mask) |
		XAie_SetField(Reset, CoreCtrlReg.CtrlRst.Lsb,
					CoreCtrlReg.CtrlRst.Mask);

	XAieGbl_Write32(RegAddr, RegVal);
}
/************************** Function Definitions *****************************/
/*****************************************************************************/
/**
*
* This API writes to the Core_control register to enable and/or reset the AIE
* core of the selected tile. This API bluntly writes to the register and any
* gracefullness required in enabling/disabling and/or resetting/unresetting
* the core are required to be handled by the application layer.
*
* @param	TileInstPtr - Pointer to the Tile instance.
* @param	Enable - Enable/Disable the core (1-Enable,0-Disable).
* @param	Reset - Reset/Unreset the core (1-Reset,0-Unreset).
*
* @return	None.
*
* @note		None.
*
*******************************************************************************/
Function Definitions
This API writes to the Core_control register to enable and/or reset the AIE
core of the selected tile. This API bluntly writes to the register and any
gracefullness required in enabling/disabling and/or resetting/unresetting
the core are required to be handled by the application layer.
Function Definitions This API writes to the Core_control register to enable and / or reset the AIE core of the selected tile . This API bluntly writes to the register and any gracefullness required in enabling / disabling and / or resetting / unresetting the core are required to be handled by the application layer .
void XAieTile_CoreControl(XAieGbl_Tile *TileInstPtr, u8 Enable, u8 Reset)
{
	u64 RegAddr;
	u32 RegVal;
	XAie_AssertNonvoid(TileInstPtr != XAIE_NULL);
	RegAddr = TileInstPtr->TileAddr + CoreCtrlReg.RegOff;
	RegVal = XAie_SetField(Enable, CoreCtrlReg.CtrlEn.Lsb,
					CoreCtrlReg.CtrlEn.Mask) |
		XAie_SetField(Reset, CoreCtrlReg.CtrlRst.Lsb,
					CoreCtrlReg.CtrlRst.Mask);
	XAieGbl_Write32(RegAddr, RegVal);
}
void XAieTile_CoreControl ( XAieGbl_Tile * TileInstPtr , u8 Enable , u8 Reset ) { u64 RegAddr ; u32 RegVal ; XAie_AssertNonvoid ( TileInstPtr != XAIE_NULL ) ; RegAddr = TileInstPtr -> TileAddr + CoreCtrlReg . RegOff ; RegVal = XAie_SetField ( Enable , CoreCtrlReg . CtrlEn . Lsb , CoreCtrlReg . CtrlEn . Mask ) | XAie_SetField ( Reset , CoreCtrlReg . CtrlRst . Lsb , CoreCtrlReg . CtrlRst . Mask ) ; XAieGbl_Write32 ( RegAddr , RegVal ) ; }
Function Definitions
This API writes to the Core_control register to enable and/or reset the AIE
core of the selected tile.
Function Definitions This API writes to the Core_control register to enable and / or reset the AIE core of the selected tile .
/* Write to the Core control register */