XilinxProcessorIPLib/drivers/aiengine/src/lib/xaielib.c
u32 XAieLib_MemRead32(XAieLib_MemInst *XAieLib_MemInstPtr, u64 Addr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	Xil_DCacheInvalidateRange(Addr, 4);
	return Xil_In32(Addr);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemRead32(MemInstPtr, Addr);
#endif
}
/*****************************************************************************/
/**
*
* This is the memory function to read from the physical address.
*
* @param	XAieLib_MemInstPtr: Memory instance pointer.
* @param	Addr: Absolute physical address to write.
*
* @return	A read 32 bit data. 0 if not supported.
*
* @note		None.
*
*******************************************************************************/
This is the memory function to read from the physical address.
This is the memory function to read from the physical address .
u32 XAieLib_MemRead32(XAieLib_MemInst *XAieLib_MemInstPtr, u64 Addr)
{
#ifdef __AIESIM__
	return 0;
#elif defined __AIEBAREMTL__
	Xil_DCacheInvalidateRange(Addr, 4);
	return Xil_In32(Addr);
#else
	XAieIO_Mem *MemInstPtr = (XAieIO_Mem *)XAieLib_MemInstPtr;
	return XAieIO_MemRead32(MemInstPtr, Addr);
#endif
}
u32 XAieLib_MemRead32 ( XAieLib_MemInst * XAieLib_MemInstPtr , u64 Addr ) { #ifdef __AIESIM__ return 0 ; #elif defined __AIEBAREMTL__ Xil_DCacheInvalidateRange ( Addr , 4 ) ; return Xil_In32 ( Addr ) ; #else XAieIO_Mem * MemInstPtr = ( XAieIO_Mem * ) XAieLib_MemInstPtr ; return XAieIO_MemRead32 ( MemInstPtr , Addr ) ; #endif }
This is the memory function to read from the physical address.
This is the memory function to read from the physical address .