XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
void XAieLib_MemWrite32(XAieLib_MemInst *XAieLib_MemInstPtr, u64 Addr, u32 Data)
{
#ifdef __AIESIM__
#elif defined __AIEBAREMTL__
	Xil_Out32(Addr, Data);
	Xil_DCacheFlushRange(Addr, 4);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	XAieIO_MemWrite32(MemInstPtr, Addr, Data);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to write to the physical address.
*
* @param	XAieLib_MemInstPtr: Memory instance pointer.
* @param	Addr: Absolute physical address to write.
* @param	Data: A 32 bit data to write.
*
* @return	None.
*
* @note		None.
*
*******************************************************************************/
This is the memory function to write to the physical address.
This is the memory function to write to the physical address .
void XAieLib_MemWrite32(XAieLib_MemInst *XAieLib_MemInstPtr, u64 Addr, u32 Data)
{
#ifdef __AIESIM__
#elif defined __AIEBAREMTL__
	Xil_Out32(Addr, Data);
	Xil_DCacheFlushRange(Addr, 4);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	XAieIO_MemWrite32(MemInstPtr, Addr, Data);
#endif
}
void XAieLib_MemWrite32 ( XAieLib_MemInst * XAieLib_MemInstPtr , u64 Addr , u32 Data ) { #ifdef __AIESIM__ #elif defined __AIEBAREMTL__ Xil_Out32 ( Addr , Data ) ; Xil_DCacheFlushRange ( Addr , 4 ) ; #else XAieIO_Mem * MemInstPtr = ( XAieIO_Mem * ) XAieLib_MemInstPtr ; XAieIO_MemWrite32 ( MemInstPtr , Addr , Data ) ; #endif }
This is the memory function to write to the physical address.
This is the memory function to write to the physical address .